rt2001atmaildotcom
Technical User
Hello,
I have a question:
This seems to work...
led_nxt <= not (not slave_register)
... but this won't:
led_nxt <= slave_register
Here, led_nxt is a vector 0 to 7
and slave_register is a vector 0 to 31.
Even if I do something like:
led_nxt <= slave_register(0 to 7)
...it won't work.
Basically I'm trying to give the lower 8 bits of the bigger vector to the smaller one.And I'm trying this in VHDL'93.
Can anyone tell me why it's like this? Also how can I assign the lower x bits of a bigger vector to a smaller one?
If someone has a circuit understanding of it, please share.
Thanks.
-TRO.
I have a question:
This seems to work...
led_nxt <= not (not slave_register)
... but this won't:
led_nxt <= slave_register
Here, led_nxt is a vector 0 to 7
and slave_register is a vector 0 to 31.
Even if I do something like:
led_nxt <= slave_register(0 to 7)
...it won't work.
Basically I'm trying to give the lower 8 bits of the bigger vector to the smaller one.And I'm trying this in VHDL'93.
Can anyone tell me why it's like this? Also how can I assign the lower x bits of a bigger vector to a smaller one?
If someone has a circuit understanding of it, please share.
Thanks.
-TRO.