diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-09-04 10:55:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-04 10:55:41 -0700 |
commit | 3c462e5eeb5d24f5252bc1e7437f91372ec48fd0 (patch) | |
tree | 0d7524842086e84cb266b6a6e8dac54afe349d2c /tests | |
parent | 58af64b63a3a253ab08b1410422677deac5c6618 (diff) | |
parent | d2306d7b1d9725fef2d1db4e205c1b0cb6c84715 (diff) | |
download | yosys-3c462e5eeb5d24f5252bc1e7437f91372ec48fd0.tar.gz yosys-3c462e5eeb5d24f5252bc1e7437f91372ec48fd0.tar.bz2 yosys-3c462e5eeb5d24f5252bc1e7437f91372ec48fd0.zip |
Merge pull request #1338 from YosysHQ/eddie/deferred_top
hierarchy -auto-top to work with (* top *) modules from read/read_verilog -defer
Diffstat (limited to 'tests')
-rw-r--r-- | tests/various/hierarchy_defer.ys | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/various/hierarchy_defer.ys b/tests/various/hierarchy_defer.ys new file mode 100644 index 000000000..70f5b70a3 --- /dev/null +++ b/tests/various/hierarchy_defer.ys @@ -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 |