How to map the circuit into LUT and DFF in yosys? #3752
-
There is no asynchronous reset port and latch in my circuit, so I want to map it into LUT and DFF only. Now, I find a minimum lib (with INV BUF NAND2 DFF), and my circuit can map to this lib successfully, but I do not know how to further map the INV, BUF, NAND2 into LUT, and therefore I can get a circuit with LUT and DFF only? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
You can use e.g.
This should leave you with only |
Beta Was this translation helpful? Give feedback.
You can use e.g.
synth -lut 4
to map the combinatorial logic to 4-LUT. If you only want strictly$_DFF_[PN]_
(no enable or reset signal on DFF cells) you can use the following script:This should leave you with only
$lut
and$_DFF_P_/$_DFF_N_
cells in the circuit.