Patent ID: 7327291

Claim:
A device for variable length decoding, comprising: a first register, receiving input data so as to output data according to a first control signal; a second register, receiving data from said first register so as to output data according to said first control signal; a first barrel shifter, receiving data from said first register, said second register and a buffer so as to output data according to a window shift signal and a second control signal, wherein said buffer receives data from said first barrel shifter so as to output data according to a third control signal; a coding table, receiving data from said buffer so as to decode data and output a code-word and a code-length of said code-word; and an adding device, receiving said code-length so as to output said window shift signal and said second control signal according to said third control signal, wherein said buffer comprises: a first multiplexer, receiving data from said first barrel shifter and a third register so as to output data according to said third control signal; and said third register, receiving data from said first multiplexer so as to output data from said buffer.