read_verilog <<EOT
(* blackbox *)
module bb(input i, output o);
endmodule
(* whitebox *)
module wb(input i, output o);
assign o = ~i;
module top(input i, output o);
EOT
design -stash gate
design -import gate -as gate