mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 09:55:20 +00:00
19 lines
261 B
Plaintext
19 lines
261 B
Plaintext
read -vlog2k <<EOT
|
|
module first;
|
|
endmodule
|
|
|
|
(* top *)
|
|
module top(input i, output o);
|
|
sub s0(i, o);
|
|
endmodule
|
|
|
|
module sub(input i, output o);
|
|
assign o = ~i;
|
|
endmodule
|
|
EOT
|
|
|
|
hierarchy -auto-top
|
|
select -assert-any top
|
|
select -assert-any sub
|
|
select -assert-none foo
|