Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSomeone mentioned that the integer variables I'm using dont have a specified range. So the max size I want them to be is 32 bits long. I set the range to be 0 to 4294967295 (2^32 -1) and I got an error
--- Quote Start --- Error (10528): VHDL error at Main.vhd(196): value "0" is outside the target constraint range (0 to -1) --- Quote End --- Which makes sense because a value of xFFFFFFFF in a 32 reg signed would be -1. So I removed the initialization of the integers to 0 and everything compiled fine. Like someone mentioned the division was unknown width so the compiler was having trouble. Regardless its compiling fine now. Thanks to everyone!