Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- you need this line: are you aaware though, that integers are 32 bits by default. To define their width in implementation, you need to give it a range when you declare it: signal tmp_delay : integer range 0 to 15; --will synthesise to 4 bits. Also, integers do not roll over. so when simulating, if you get to the end of the range of the integer, the simulator will throw an error. So you need to explicitly catch a roll-over case. --- Quote End --- Fair points!