12-28-2017 03:52 PM
I get this warning when trying to load a text file:
WARNING: Data truncated while reading Datafile: dds3memcosine.data, while loading at index: ....
with a command like:
The cosine reg is defined like this:
reg signed [12:0] cosine [0:RASTER_HALF_LENGTH-1];
dds3memcosine.data has data like:
How could I either suppress or avoid this warning. Everything works fine, but I don't want to see this warning RASTER_HALF_LENGTH times.
01-03-2018 02:28 PM
Your cosine table is defined as 13 bits - but your readmem file is feeding in 32-bit constants per entry.
The tool is (correctly IMHO) warning you that it's truncating data. Tweak your readmem file to define just those 13 bits, and the tool should stop complaining.
01-05-2018 06:55 AM
That's kind of hard to specify using readmemh, which reads a hex value, which are in units of 4 bits each... Any thoughts on that?
01-05-2018 07:27 AM
I'd imagine the tool would stop issuing warnings if your mem file contained just 4 hex digits per line.