diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-01-13 09:04:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-13 09:04:20 -0800 |
commit | ca2f3db53f3f330d283079bf44b3cef6b7f197be (patch) | |
tree | b633788b56a0575be8f70644641c352adb1a653e /tests | |
parent | 0f489c5ea340869206888c6f1feb672b7202b185 (diff) | |
parent | 35e49fde4dfa67030a3e80d0bdf700c97258ed45 (diff) | |
download | yosys-ca2f3db53f3f330d283079bf44b3cef6b7f197be.tar.gz yosys-ca2f3db53f3f330d283079bf44b3cef6b7f197be.tar.bz2 yosys-ca2f3db53f3f330d283079bf44b3cef6b7f197be.zip |
Merge pull request #1620 from YosysHQ/eddie/abc9_scratchpad
abc9: add some scripts/options into "scratchpad"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/techmap/abc9.ys | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/techmap/abc9.ys b/tests/techmap/abc9.ys new file mode 100644 index 000000000..20f263da8 --- /dev/null +++ b/tests/techmap/abc9.ys @@ -0,0 +1,40 @@ +read_verilog <<EOT +`define N 256 +module top(input [`N-1:0] a, output o); +wire [`N-2:0] w; +assign w[0] = a[0] & a[1]; +genvar i; +generate for (i = 1; i < `N-1; i++) +assign w[i] = w[i-1] & a[i+1]; +endgenerate +assign o = w[`N-2]; +endmodule +EOT +simplemap +dump +design -save gold + +abc9 -lut 4 + +design -load gold +abc9 -lut 4 -fast + +design -load gold +scratchpad -copy abc9.script.default.area abc9.script +abc9 -lut 4 + +design -load gold +scratchpad -copy abc9.script.default.fast abc9.script +abc9 -lut 4 + +design -load gold +scratchpad -copy abc9.script.flow abc9.script +abc9 -lut 4 + +design -load gold +scratchpad -copy abc9.script.flow2 abc9.script +abc9 -lut 4 + +design -load gold +scratchpad -copy abc9.script.flow3 abc9.script +abc9 -lut 4 |