mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
fabulous: Add support for mapping carry chains
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
8216b23fb7
commit
2ab3747cc9
5 changed files with 102 additions and 2 deletions
9
tests/arch/fabulous/carry.ys
Normal file
9
tests/arch/fabulous/carry.ys
Normal file
|
@ -0,0 +1,9 @@
|
|||
read_verilog ../common/add_sub.v
|
||||
hierarchy -top top
|
||||
proc
|
||||
equiv_opt -assert -map +/fabulous/prims.v synth_fabulous -carry ha # equivalency check
|
||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
||||
cd top # Constrain all select calls below inside the top module
|
||||
select -assert-max 10 t:LUT4_HA
|
||||
select -assert-max 4 t:LUT1
|
||||
select -assert-none t:LUT1 t:LUT4_HA %% t:* %D
|
Loading…
Add table
Add a link
Reference in a new issue