mirror of https://github.com/YosysHQ/yosys.git
design: add test
This commit is contained in:
parent
dac5adde12
commit
9eace8f360
|
@ -1,9 +1,17 @@
|
|||
read_verilog <<EOT
|
||||
(* blackbox *)
|
||||
module bb(input i, output o);
|
||||
endmodule
|
||||
|
||||
(* whitebox *)
|
||||
module wb(input i, output o);
|
||||
assign o = ~i;
|
||||
endmodule
|
||||
|
||||
module top(input i, output o);
|
||||
assign o = i;
|
||||
assign o = ~i;
|
||||
endmodule
|
||||
EOT
|
||||
design -stash foo
|
||||
design -delete foo
|
||||
logger -expect error "No saved design 'foo' found!" 1
|
||||
design -delete foo
|
||||
|
||||
design -stash gate
|
||||
design -import gate -as gate
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
read_verilog <<EOT
|
||||
module top(input i, output o);
|
||||
assign o = i;
|
||||
endmodule
|
||||
EOT
|
||||
design -stash foo
|
||||
design -delete foo
|
||||
logger -expect error "No saved design 'foo' found!" 1
|
||||
design -delete foo
|
Loading…
Reference in New Issue