2019-09-03 12:52:34 -05:00
|
|
|
read -noverific
|
2019-08-28 21:58:58 -05:00
|
|
|
read -vlog2k <<EOT
|
|
|
|
module first;
|
|
|
|
endmodule
|
|
|
|
|
|
|
|
(* top *)
|
|
|
|
module top(input i, output o);
|
|
|
|
sub s0(i, o);
|
|
|
|
endmodule
|
|
|
|
|
2019-08-29 11:10:20 -05:00
|
|
|
(* constant_expression=1+1?2*2:3/3 *)
|
2019-08-28 21:58:58 -05:00
|
|
|
module sub(input i, output o);
|
|
|
|
assign o = ~i;
|
|
|
|
endmodule
|
|
|
|
EOT
|
2019-09-03 14:17:26 -05:00
|
|
|
design -save read
|
2019-08-28 21:58:58 -05:00
|
|
|
|
|
|
|
hierarchy -auto-top
|
|
|
|
select -assert-any top
|
|
|
|
select -assert-any sub
|
|
|
|
select -assert-none foo
|
2019-09-03 14:17:26 -05:00
|
|
|
|
|
|
|
design -load read
|
|
|
|
hierarchy
|
|
|
|
select -assert-any top
|
|
|
|
select -assert-any sub
|
|
|
|
select -assert-none foo
|