blob: 2a8c0f8c338ddf09b478b6541b32a77ce5b5b439 [file] [log] [blame]
/*
:name: packed-and-unsigned-structures
:description: Test packed and unsigned structures support
:should_fail: 0
:tags: 7.2.1 7.2
*/
module top ();
struct packed unsigned {
bit [3:0] lo;
bit [3:0] hi;
} p1;
initial begin
p1 = 8'd200;
$display(":assert: ('%h' == 'c8')", p1);
$display(":assert: (%d == 200)", p1);
end
endmodule