Forum Discussion
Altera_Forum
Honored Contributor
11 years agoIs this a bug?
While using the left-to-right stream operator in Modelsim Altera Strater Edition 10.1e with the following code:
module stream_bug();
bit stream='{32{1'b0}};
initial begin
$monitor("@%0d...
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- No "8'b11010001" is a 8 bit sized number but " 'b11010001" is a simulator defined sized number, but at least 32 bit. It is a common misconception that a ticked(') number without an explicit size is automatically sized based on the usage in that particular usage but that is not true. It is essentially the simulator default size. So you either packing in 8 bits or however many bits the simulator feels like giving you. --- Quote End --- I think that's the case. Thanks:D