ruwan2
Member level 5
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: