mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-10 05:00:52 +00:00
Add ice40_wrapcarry pass, rename $__ICE40_FULL_ADDER -> CARRY_WRAPPER
This commit is contained in:
parent
cc331cf70d
commit
675c1d4218
6 changed files with 128 additions and 10 deletions
11
passes/pmgen/ice40_wrapcarry.pmg
Normal file
11
passes/pmgen/ice40_wrapcarry.pmg
Normal file
|
@ -0,0 +1,11 @@
|
|||
pattern ice40_wrapcarry
|
||||
|
||||
match carry
|
||||
select carry->type.in(\SB_CARRY)
|
||||
endmatch
|
||||
|
||||
match lut
|
||||
select lut->type.in(\SB_LUT4)
|
||||
index <SigSpec> port(lut, \I1) === port(carry, \I0)
|
||||
index <SigSpec> port(lut, \I2) === port(carry, \I1)
|
||||
endmatch
|
Loading…
Add table
Add a link
Reference in a new issue