Currently integers can be used but they are always 32 bits (this is a bit of a Altera issue, sometimes it is very clear that integer can only have, lets say 4 bits), also in python wraparound behavior is not simulated.
It would be useful to specify integer size of register, for example:
Implementation could be in metaclass to just remove the Int wrapper, alternative is to fully implement the Int class for all operator overloads (like intbv in MyHDL).
Currently integers can be used but they are always 32 bits (this is a bit of a Altera issue, sometimes it is very clear that integer can only have, lets say 4 bits), also in python wraparound behavior is not simulated.
It would be useful to specify integer size of register, for example:
Implementation could be in metaclass to just remove the Int wrapper, alternative is to fully implement the Int class for all operator overloads (like intbv in MyHDL).
in VHDL, integer range can be constrained as:
I have tested this in Quartus and it works well.