Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Huffman codes in vhdl

Status
Not open for further replies.

jihadmoussa

Newbie level 5
Joined
Sep 28, 2010
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,342
Hello

I need to generate a Huffman codes for symbols (bytes) based on Huffman tree.
but I cant find a way that I can implement by fpga.

Can any one help me with an algorithm that can generate a Huffman codes.

Thanks
 

What have you done so far that you need help with? Because you would never ask someone else to do your homework assignment for you would you?
 
no not at all

I found 2 ways to generate Huffman code

1- generate the tree like its mentioned in :
Huffman Coding « anupom.toString( );
but this as I imagine consume a lot of CLK cycles and a lot of RAMs because we cant insert data in the ram .

2- to start with setting code length and then set the base of each code length and after that generate the codes .
but I cant find how must I set the code length for any given data .
 

There are two different things:
a) to construct the tree for a given alphabet
b) to code the data
The first can be done only "once for ever" for any means if the alphabet does not change.
Do you need to implement both in FPGA or only b)?
Regards

Z
 

thank you zorro

I need to implement booth a and b.

but I don't know how to create the tree for the alphabet of the data.
the tree for each data must be constructed depending on the frequencies of the alphabets in each data .
as I think.

can you advice me.
thanks
 

For a) you need to know the a priori probabilities of the symbols. Is they are not known, they must be estimated from the data. The algorithm is explained in many texts on digital communications, for instance:

Sklar: Digital Communications - Fundamentals and Applications, 2nd Edition (Prentice-Hall, 2001)
Proakis and Salehi: Digital Communications, 5th Edition (McGraw-Hill, 2008)
Haykin: Communication Systems, 4th Edition (Wiley, 2001)

For b) you can use simply a look-up table.

Regards

Z
 
Last edited:
Hello

I need to generate a Huffman codes for symbols (bytes) based on Huffman tree.
but I cant find a way that I can implement by fpga.

Can any one help me with an algorithm that can generate a Huffman codes.

Thanks

Hi ,
i have the same problem,i want to implement the huffman algorithm.
i succed to calculate the porobability but i can't implement the tree of huffman in order to find the code huffman.
Please help me
best regards
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top