What should be the results of streaming operator unpack if there is more
than we need bits on RHS
LRM:
'If the source expression contains more bits than are needed, the
appropriate number of bits shall be consumed from its left (most
significant) end."
But does LRM mean that we need to take appropriate number of bits from
source expression or from reordered stream.
So attached example should print:
1z0
0z1
or
1z0
x0z
Example
module top;
reg [4:1] b1;
reg [5:1] d;
initial
begin
#1 b1='b1z0x;
{>>{c}} =b1; $display("c=%b ",c);
#1 b1='b1z0x;
{<<{c}} =b1; $display("c=%b ",c);
end
endmodule
DANiel
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Feb 10 04:56:48 2011
This archive was generated by hypermail 2.1.8 : Thu Feb 10 2011 - 04:57:09 PST