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