J
Jason Zheng
Guest
wire x[127:0] = y[68:0];
In verilog 2001, would the upper bits of x be padded with zero's or x's?
In verilog 2001, would the upper bits of x be padded with zero's or x's?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If the MSB of y i.e. y[68] is 'X', it will be padded with x's.;
In verilog 2001, would the upper bits of x be padded with zero's or x's?
They are stuffed with zeros.;
In verilog 2001, would the upper bits of x be padded with zero's or x's?
They will be padded with zeroes. The width of the right-hand-side;
In verilog 2001, would the upper bits of x be padded with zero's or x's?
There are special rules similar to this for constant literals, toIf the MSB of y i.e. y[68] is 'X', it will be padded with x's.
If the MSB of y is 'Z', it will be padded with z's.
In all other cases (0/1), it will be padded with 0's.