LUT only works in simulation
Posted: Sat Feb 04, 2017 4:44 pm
Hello
I am using a 24FV16KA304 device with FC7 and am not able to get my look-up table to work on hardware. It does work perfectly however in simulation.
I have stored about 1100 numbers in the range 1727 to 29271 using the LUT macro.
There is a compiler warning stating that these values are truncated to UINT. I should not have thought it a problem as my numbers are in that range and it is what the macro requires and the chip ROM is 16 bit anyway. Please correct me if I am wrong.
During simulation the loop exits with the correct value but on hardware the loop does not exit unless I force it to escape. My uninformed guess is that the numbers are not stored in ROM correctly.
Any ideas?
Howard
I am using a 24FV16KA304 device with FC7 and am not able to get my look-up table to work on hardware. It does work perfectly however in simulation.
I have stored about 1100 numbers in the range 1727 to 29271 using the LUT macro.
There is a compiler warning stating that these values are truncated to UINT. I should not have thought it a problem as my numbers are in that range and it is what the macro requires and the chip ROM is 16 bit anyway. Please correct me if I am wrong.
During simulation the loop exits with the correct value but on hardware the loop does not exit unless I force it to escape. My uninformed guess is that the numbers are not stored in ROM correctly.
Any ideas?
Howard