ruwan2
Member level 5
- Joined
- Nov 29, 2011
- Messages
- 90
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 2,141
Hi,
The following lines has a print value: 1431655761, while the picture shows that it is 21841.
What is wrong? My code or the description?
Thanks,
The following lines has a print value: 1431655761, while the picture shows that it is 21841.
Code:
[COLOR="#0000CD"]
integer intA;
reg [15:0] regA;
intA = -4'd12 / 3;
$display ("\$display: A4 = %b, A4 = %d", intA, intA); //
step
# $display: A4 = 01010101010101010101010101010001, A4 = 1431655761[/COLOR]
What is wrong? My code or the description?
Thanks,
Last edited: