This is possibly similar to bug 2043384, in that it deals with behavior being different between explicit and implicit sizing of a parameter value.
If I define a submodule with a parameter -- with no range specified in the parameter declaration, so we expect the size of the parameter to be determined by the location which gives it a value -- and inside the submodule we display the value:
$display ( "%m xxx is: ", xxx );
Then I see different behavior when I instantiate the parameter with "5" vs "32'd5", even though my understanding is that "5" is implicitly assumed to be size 32.
With a size, I see this output:
test.m1d xxx is: 5
Without a size, I see this output:
test.m1 xxx is: 5
I believe that the first spacing is correct and we should see this amount of spacing in the second example.
Log in to post a comment.