P
Paul Marciano
Guest
Hi.
Given:
reg [7:0] a;
reg [7:0] b;
is there any value in:
a <= 8'h12;
b <= b + 8'h12;
over:
a <= h12;
b <= b + h12;
I find myself writing 1'b1, 1'b0 and <size>'h0 a lot... and not knowing
what to write when I have a variable of a parameterized size.
It there any real value in being so explicit in unambiguous
expressions?
Thanks,
Paul.
Given:
reg [7:0] a;
reg [7:0] b;
is there any value in:
a <= 8'h12;
b <= b + 8'h12;
over:
a <= h12;
b <= b + h12;
I find myself writing 1'b1, 1'b0 and <size>'h0 a lot... and not knowing
what to write when I have a variable of a parameterized size.
It there any real value in being so explicit in unambiguous
expressions?
Thanks,
Paul.