3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00

Merge pull request #2327 from YosysHQ/mwk/techmap-constmap-fix

techmap.CONSTMAP: Handle outputs before inputs.
This commit is contained in:
clairexen 2020-08-20 16:21:09 +02:00 committed by GitHub
commit faf8e19511
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 1 deletions

15
tests/techmap/bug2321.ys Normal file
View file

@ -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