yosys/tests/verilog/global_parameter.ys

17 lines
257 B
Plaintext
Raw Permalink Normal View History

read_verilog -sv <<EOF
parameter P = 1;
module example(
output integer out
);
assign out = P;
endmodule
module top(
output integer out
);
example #(2) e1(out);
endmodule
EOF
logger -expect error "Can't find object for defparam" 1
hierarchy