kostbill
Full Member level 1
Hello.
In VHDL, when I have an integer in a certain range, if we assign to this integer a number that is outside the range, what will happen?
For example, I have this:
signal counter : integer range 0 to 16;
in reset, I assign counter to 16.
and then, in a rising clock edge, I have:
counter <= counter - 1;
What will happen after counter reaches zero? It will stay to zero or will it go back to 16?
Thanks.
In VHDL, when I have an integer in a certain range, if we assign to this integer a number that is outside the range, what will happen?
For example, I have this:
signal counter : integer range 0 to 16;
in reset, I assign counter to 16.
and then, in a rising clock edge, I have:
counter <= counter - 1;
What will happen after counter reaches zero? It will stay to zero or will it go back to 16?
Thanks.