Forum Discussion
Altera_Forum
Honored Contributor
15 years agotext to mif conversion
Hello, I am looking for something that would convert a text file (with fractional entries), with values to be stored in a LUT, into a mif file with hexadecimal entries. For example, let a fra...
Altera_Forum
Honored Contributor
15 years agoI assume you use Matlab, here is short cut:
convert your data to signed integers: data = round(data *(2^15-1)/max(data)); %for 16 bits mif then display as column: data' copy and paste the column to a mif in quartus as follows: open a new mif with 16 bits width. change data view to signed then copy the data directly, save and enjoy...