mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
25 lines
347 B
Plaintext
25 lines
347 B
Plaintext
logger -expect-no-warnings
|
|||
|
|
read_verilog << EOF
|
||
|
|
module bar (
|
||
|
|
input portname
|
||
|
|
);
|
||
|
|
parameter paramname = 7;
|
||
|
|
endmodule
|
||
|
|
|
||
|
|
module empty (
|
||
|
|
);
|
||
|
|
bar #() barinstance ();
|
||
|
|
endmodule
|
||
|
|
|
||
|
|
module implicit (
|
||
|
|
);
|
||
|
|
bar #(.paramname()) barinstance (.portname());
|
||
|
|
endmodule
|
||
|
|
|
||
|
|
module explicit (
|
||
|
|
input a
|
||
|
|
);
|
||
|
|
bar #(.paramname(3)) barinstance (.portname(a));
|
||
|
|
endmodule
|
||
|
|
EOF
|