serial to parellel converter

V

veeru

Guest
I have a typical problem for which i am not getting the idea.

I have written a code for adaptive huffman in verilog for data
compression.I am converting the fixed size data 8 bit to variable one
by assigning the code.Every thing works fine like reading the data
from file, assigning code, but problem occurs when i have to write the
assigned code for the charaters in the output file,because its a
variable length fron 4bits to 12 bits.

so i thought to convert this parallel data to serial one and write to
output but how to do that one,because my data will change for the next
clock,and converting parellel data to serila will take more clock
cycles.

Any idea are welcome please respond

Thanks
Sagar
 
veeru <sagarnitr@gmail.com> writes:

I have a typical problem for which i am not getting the idea.

I have written a code for adaptive huffman in verilog for data
compression.I am converting the fixed size data 8 bit to variable one
by assigning the code.Every thing works fine like reading the data
from file, assigning code, but problem occurs when i have to write the
assigned code for the charaters in the output file,because its a
variable length fron 4bits to 12 bits.

so i thought to convert this parallel data to serial one and write to
output but how to do that one,because my data will change for the next
clock,and converting parellel data to serila will take more clock
cycles.
So, how about using a buffer/fifo, like you would if you were crossing
a clock domain, which effectively you are. You push your variable
length data into the fifo on the write side and you read out fixed
width (e.g. 8 bit) parallel data on the read side.

Hope this helps,
-Chris

******************************************************************************
Chris Clark Internet: christopher.f.clark@compiler-resources.com
Compiler Resources, Inc. or: compres@world.std.com
23 Bailey Rd Web Site: http://world.std.com/~compres
Berlin, MA 01503 voice: (508) 435-5016
USA fax: (978) 838-0263 (24 hours)
------------------------------------------------------------------------------
 

Welcome to EDABoard.com

Sponsor

Back
Top