I am trying to display 32 bit values โโin decimal format, and this works fine except for the weird amount of unnecessary spaces between my% b and the previous character.
for example: if I have a 32-bit register a with a decimal value of 33, I will use something like this
initial
begin
$display("a=%d;", a);
end
the output in cmd will look something like this: a = ___________________ 33;
The line simply represents the long empty space between% b and the previous char. Can someone explain to me why this is happening? And how can I get rid of them?
source
share