aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorclairexen <claire@symbioticeda.com>2020-08-20 16:21:09 +0200
committerGitHub <noreply@github.com>2020-08-20 16:21:09 +0200
commitfaf8e19511de07e38158ae68950876843ef803c5 (patch)
tree5711e343b14c9f88ba05c51c958fe0f66479481a /tests
parent16bb3fc8bb11b6d373d0e2685b7d1fb38a306de0 (diff)
parentb4a4cb081de717a7f6de89914f8f5ffec959b0c3 (diff)
downloadyosys-faf8e19511de07e38158ae68950876843ef803c5.tar.gz
yosys-faf8e19511de07e38158ae68950876843ef803c5.tar.bz2
yosys-faf8e19511de07e38158ae68950876843ef803c5.zip
Merge pull request #2327 from YosysHQ/mwk/techmap-constmap-fix
techmap.CONSTMAP: Handle outputs before inputs.
Diffstat (limited to 'tests')
-rw-r--r--tests/techmap/bug2321.ys15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/techmap/bug2321.ys b/tests/techmap/bug2321.ys
new file mode 100644
index 000000000..637528b21
--- /dev/null
+++ b/tests/techmap/bug2321.ys
@@ -0,0 +1,15 @@
+read_verilog <<EOT
+module m (input i, output o);
+wire [1023:0] _TECHMAP_DO_00_ = "CONSTMAP; ";
+endmodule
+EOT
+
+design -stash map
+
+read_verilog <<EOT
+module top(output o);
+m m (.o(o), .i(o));
+endmodule
+EOT
+
+techmap -map %map