Reconfigurable Computing S. Reda, Brown University Reconfigurable Computing (EN2911X, Fall07) Lecture 17: Application-Driven Hardware Acceleration (3/4) Prof. Sherief Reda Division of Engineering, Brown University
Reconfigurable Computing S. Reda, Brown University Viterbi algorithm A dynamic programming algorithm for finding the most likely sequence of hidden states, the Viterbi path, that results in a sequence of observed events. Originally devised by Andrew Viterbi in 1967 as an error- correction scheme for noisy digital communication links. Widely used in decoding the convolutional codes for both CDMA and GSM digital cellular, dial-up modems, satellite, deep-space communications and wireless LANs. Also used in speech recognition, computational linguistics, and bioinformatics.
Reconfigurable Computing S. Reda, Brown University Viterbi decoders in digital communication systems
Reconfigurable Computing S. Reda, Brown University 1. Encoding using convolution codes Each input bit is coded onto 2 output bits. The 2 outputs bits are produced by using modulo-2 adders. The selection of which bits are to be added to produce an output bit is called the generating polynomial O 1 = (u 0 +u 1 +u -1 +u -2 )mod 2 O 2 = (u 1 +u 0 +u -2 ) mod O1O1 O2O2 u1u1 u0u0 u -1 u -2
Reconfigurable Computing S. Reda, Brown University Example Assume the input sequence is 1011 What is the output? Example by C. Langton
Reconfigurable Computing S. Reda, Brown University Truth table presentation
Reconfigurable Computing S. Reda, Brown University State transition graph representation O 1 O 2 =00 de Bruijn graph. Not all outputs are shown O 1 O 2 =00O 1 O 2 =11 O 1 O 2 =00 O 1 O 2 =01 O 1 O 2 =10
Reconfigurable Computing S. Reda, Brown University Tree representation
Reconfigurable Computing S. Reda, Brown University Trellis diagram Not all transitions are shown
Reconfigurable Computing S. Reda, Brown University Output of the encoder for various inputs How can we devise a good generating polynomial? Let’s say we receive It is not one of the possible 16 sequences. How do we decode it? inputEncoder output
Reconfigurable Computing S. Reda, Brown University 2. Decoding received sequences using the Viterbi algorithm Let’s decode the received sequence cost
Reconfigurable Computing S. Reda, Brown University 2 nd step Let’s decode the received sequence cost
Reconfigurable Computing S. Reda, Brown University 3 rd step Let’s decode the received sequence cost
Reconfigurable Computing S. Reda, Brown University 4 th step Let’s decode the received sequence A any step, there is only one path from the initial state to any state. In case more than one path converge to a node, always pick the minimum cost min(3, 6)
Reconfigurable Computing S. Reda, Brown University 5 th step Let’s decode the received sequence cost
Reconfigurable Computing S. Reda, Brown University 6 th step Let’s decode the received sequence cost
Reconfigurable Computing S. Reda, Brown University Finally Winner path is 000, 100, 010, 101, 110, 011, 001, 000 with input sequence What is runtime using SW on a general-purpose CPU? What is the runtime using an FPGA? cost
Reconfigurable Computing S. Reda, Brown University Summary So far we have covered popular application-driven algorithms to accelerate in FPGAs –FFT for signal and image processor as an example of divide and conquer algorithms –Speech recognition applications –Viterbi algorithm for digital communication as an example of dynamic programming algorithms Next time, we cover some popular algorithms for bioinformatics
Reconfigurable Computing S. Reda, Brown University Project updates 2 nd project report extended until Sunday Dec 2 nd. Make sure to add the new material to the content of the 1 st report. The new report is worth 10 points. Main evaluation criterion is your progress on the project plan you outlined in the first report. –How thorough and creative your ideas develop? –How meticulous is the experimental setup? –How do the carried out experiments serve towards the project goals? Make sure to also send me a couple of slides by Monday Dec 3rd to present on Tuesday Dec 4 th (last lecture)