Skip to content

How to map the circuit into LUT and DFF in yosys? #3752

Closed Answered by nakengelhardt
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

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:

synth -noabc -top <top_module>
dfflegalize -cell $_DFF_?_ 01
abc -lut 4
opt

This should leave you with only $lut and $_DFF_P_/$_DFF_N_ cells in the circuit.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ghost
Comment options

@Maerd6
Comment options

@ghost
Comment options

@Maerd6
Comment options

@GPJ-ZFF
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants