diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-05-05 20:31:27 +0200 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-05-08 15:50:03 +0200 |
commit | 32a0ce9d6809d073abcbf19fe3eaf7a0cf936963 (patch) | |
tree | cc363ac3c67217c72bf17eaddf4024b252f50daf /tests | |
parent | a6081b46ce61a35fee18756de151d72581c8f49b (diff) | |
download | yosys-32a0ce9d6809d073abcbf19fe3eaf7a0cf936963.tar.gz yosys-32a0ce9d6809d073abcbf19fe3eaf7a0cf936963.tar.bz2 yosys-32a0ce9d6809d073abcbf19fe3eaf7a0cf936963.zip |
blif: Use library cells' start_offset and upto for wideports.
Fixes #2729.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/blif/bug2729.ys | 20 | ||||
-rwxr-xr-x | tests/blif/run-test.sh | 6 |
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/blif/bug2729.ys b/tests/blif/bug2729.ys new file mode 100644 index 000000000..0cbc21aa0 --- /dev/null +++ b/tests/blif/bug2729.ys @@ -0,0 +1,20 @@ +read_verilog <<EOF + +module cell (input [2:12] I, output [5:-5] O); +endmodule + +module top(input [10:0] A, output [10:0] B); +cell my_cell(.I(A), .O(B)); +endmodule + +EOF + +write_blif tmp-bug2729.blif +delete top +read_blif -wideports tmp-bug2729.blif +!rm tmp-bug2729.blif +rename -enumerate t:cell +dump +cd top +connect -assert -port _0_ I A +connect -assert -port _0_ O B diff --git a/tests/blif/run-test.sh b/tests/blif/run-test.sh new file mode 100755 index 000000000..44ce7e674 --- /dev/null +++ b/tests/blif/run-test.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +for x in *.ys; do + echo "Running $x.." + ../../yosys -ql ${x%.ys}.log $x +done |