Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHelp in VHDl code
Please can any one review this code for me function of code " data taken from text file and stored in memory with random address created by using LFSR ,then i make some modification on this data and...
Altera_Forum
Honored Contributor
11 years agowow, your code is quite difficult to read. It would be nice if you'd clean it up when you ask for some support.
It seems you read lines in from a file and put then into an integer array: Integer is often default a 32-bit signed value. You then cast the integer value into an unsigned 8-bit bit-vector. Could it be that something already goes wrong with the type conversion? The code is missing the implementation of LFSR and Embedding_Module. Also: "endoffile" and "linenumber" seem unused.