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:
parent
cde73428b0
commit
b05b98521c
3 changed files with 50 additions and 0 deletions
19
tests/techmap/adff2dff.ys
Normal file
19
tests/techmap/adff2dff.ys
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue