I don't understand why some of the code example in the internet uses %0d
to display the value of the variables and some of the code use %d
? what are the difference between %0d
and %d
?
data_1bit = {32{4'b1111}};
$display("data_1bit = %0d",data_1bit);
data_1bit_unsigned = {32{4'b1111}};
$display("data_1bit_unsigned = %d",data_1bit_unsigned);