mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-10 05:00:52 +00:00
Merge remote-tracking branch 'origin/master' into xaig_arrival
This commit is contained in:
commit
ba629e6a28
6 changed files with 63 additions and 5 deletions
|
@ -12,7 +12,7 @@ done
|
|||
shift "$((OPTIND-1))"
|
||||
|
||||
# check for Icarus Verilog
|
||||
if ! which iverilog > /dev/null ; then
|
||||
if ! command -v iverilog > /dev/null ; then
|
||||
echo "$0: Error: Icarus Verilog 'iverilog' not found."
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -12,7 +12,7 @@ done
|
|||
shift "$((OPTIND-1))"
|
||||
|
||||
# check for Icarus Verilog
|
||||
if ! which iverilog > /dev/null ; then
|
||||
if ! command -v iverilog > /dev/null ; then
|
||||
echo "$0: Error: Icarus Verilog 'iverilog' not found."
|
||||
exit 1
|
||||
fi
|
||||
|
|
27
tests/various/hierarchy_defer.ys
Normal file
27
tests/various/hierarchy_defer.ys
Normal file
|
@ -0,0 +1,27 @@
|
|||
read -noverific
|
||||
read -vlog2k <<EOT
|
||||
module first;
|
||||
endmodule
|
||||
|
||||
(* top *)
|
||||
module top(input i, output o);
|
||||
sub s0(i, o);
|
||||
endmodule
|
||||
|
||||
(* constant_expression=1+1?2*2:3/3 *)
|
||||
module sub(input i, output o);
|
||||
assign o = ~i;
|
||||
endmodule
|
||||
EOT
|
||||
design -save read
|
||||
|
||||
hierarchy -auto-top
|
||||
select -assert-any top
|
||||
select -assert-any sub
|
||||
select -assert-none foo
|
||||
|
||||
design -load read
|
||||
hierarchy
|
||||
select -assert-any top
|
||||
select -assert-any sub
|
||||
select -assert-none foo
|
Loading…
Add table
Add a link
Reference in a new issue