iverilog/ivtest/ivltests/sv_const_fail7.v

22 lines
254 B
Coq
Raw Normal View History

// Check that binding a const variable to a module output port fails.
module M(
output integer x
);
assign x = 20;
endmodule
module test;
const integer x = 10;
M i_m (
.x (x)
);
initial begin
$display("FAILED");
end
endmodule