D
David Perry
Guest
I have a 16 bit vector which I want to split into 2 8 bit vectors, I thought I would be able to do this:
(Tx_Byte_4, Tx_Byte_3) <= INV_Volts; --this no worky
I want to split the 16 bit voltage value into 2 bytes to be transmitted later.
Obviously I could avoid the problem by assigning (15:8) to byte 4 and (7:0) to byte 3 (I was doing this originally), but I am trying to avoid doing that, it's not quite as neat
Is there any decent reference to this stuff? I'm finding that I end up just trying things and see if it compiles and does what I think it does, which is a pain and obviously not the best way to find out how to do such things. Almost all of the documentation I find only deals with the absolute basics
(Tx_Byte_4, Tx_Byte_3) <= INV_Volts; --this no worky
I want to split the 16 bit voltage value into 2 bytes to be transmitted later.
Obviously I could avoid the problem by assigning (15:8) to byte 4 and (7:0) to byte 3 (I was doing this originally), but I am trying to avoid doing that, it's not quite as neat
Is there any decent reference to this stuff? I'm finding that I end up just trying things and see if it compiles and does what I think it does, which is a pain and obviously not the best way to find out how to do such things. Almost all of the documentation I find only deals with the absolute basics