mirror of https://github.com/YosysHQ/yosys.git
17 lines
257 B
Plaintext
17 lines
257 B
Plaintext
|
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
|