3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-22 19:17:55 +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

19
tests/techmap/adff2dff.ys Normal file
View file

@ -0,0 +1,19 @@
read_verilog -icells << EOT
module top(...);
input [1:0] D;
input C, R;
output [1:0] Q;
always @(posedge C, posedge R)
if (R)
Q <= 0;
else
Q <= D;
endmodule
EOT
proc
equiv_opt -async2sync techmap -map +/adff2dff.v