sp
Full Member level 6
- Joined
- Jan 1, 2004
- Messages
- 395
- Helped
- 23
- Reputation
- 46
- Reaction score
- 2
- Trophy points
- 1,298
- Location
- Floating Garden
- Activity points
- 4,044
vhdl addition
'a' and 'b' is std_logic_vector(3 downto 0), unsigned package included
b <= a + '1';
for the above addition ... the addition is done wth <a + "0001"> or <a + "1000"> ??
i do like tht n the quartus2 show no error...
'a' is 4 bits but '1' is one bits,,, but it can add together??.. does it not require the same width to add together?...
i try to read the arith package but i cannot seems to understand wad is written there,,, experiences is not enuff
--------------------------------------------------
and for comparator... it compare from leftmost or rightmost?...MSB compare first or LSB compare first?..
thank you....
regards,
sp
'a' and 'b' is std_logic_vector(3 downto 0), unsigned package included
b <= a + '1';
for the above addition ... the addition is done wth <a + "0001"> or <a + "1000"> ??
i do like tht n the quartus2 show no error...
'a' is 4 bits but '1' is one bits,,, but it can add together??.. does it not require the same width to add together?...
i try to read the arith package but i cannot seems to understand wad is written there,,, experiences is not enuff
--------------------------------------------------
and for comparator... it compare from leftmost or rightmost?...MSB compare first or LSB compare first?..
thank you....
regards,
sp