yosys/tests/various/design.ys

18 lines
255 B
Plaintext
Raw Normal View History

2020-04-14 12:34:23 -05:00
read_verilog <<EOT
2020-04-16 14:48:40 -05:00
(* blackbox *)
module bb(input i, output o);
endmodule
(* whitebox *)
module wb(input i, output o);
assign o = ~i;
endmodule
2020-04-14 12:34:23 -05:00
module top(input i, output o);
2020-04-16 14:48:40 -05:00
assign o = ~i;
2020-04-14 12:34:23 -05:00
endmodule
EOT
2020-04-16 14:48:40 -05:00
design -stash gate
design -import gate -as gate