3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-19 01:32:20 +00:00

Add tests for some common techmap files.

This commit is contained in:
Marcelina Kościelnicka 2021-02-23 21:23:26 +01:00
parent cde73428b0
commit b05b98521c
3 changed files with 50 additions and 0 deletions

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

@ -0,0 +1,15 @@
read_verilog -icells << EOT
module top(...);
input [3:0] A;
input [3:0] B0;
input [3:0] B1;
input [1:0] S;
output [3:0] O;
\$pmux #(.WIDTH(4), .S_WIDTH(2)) pm (.A(A), .B({B1, B0}), .S(S), .Y(O));
endmodule
EOT
equiv_opt techmap -map +/pmux2mux.v