blob: 0e3132d4235a8bdd120bb4f14b30e0fde8c9b4fc [file] [log] [blame]
/*
:name: operations-on-packed-arrays-one-bit
:description: Test packed arrays operations support (one bit)
:should_fail: 0
:tags: 7.4.3
:type: simulation parsing
*/
module top ();
bit [7:0] arr_a;
bit [7:0] arr_b;
initial begin
arr_a = 8'hff;
arr_b = 8'h00;
$display(":assert: (('%h' == 'ff') and ('%h' == '00'))", arr_a, arr_b);
arr_b[5] = arr_a[2];
$display(":assert: ('%b' == '00100000')", arr_b);
end
endmodule