mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
ice40_wrapcarry to really preserve attributes via -unwrap option
This commit is contained in:
parent
946d5854c0
commit
e05372778a
4 changed files with 61 additions and 39 deletions
|
@ -47,6 +47,8 @@ EOT
|
|||
ice40_wrapcarry
|
||||
select -assert-count 1 t:$__ICE40_CARRY_WRAPPER
|
||||
select -assert-count 0 t:* t:$__ICE40_CARRY_WRAPPER %d
|
||||
select -assert-count 1 a:foo=bar a:answer=42 %i a:keep=1 %i a:blah=blah %i
|
||||
techmap -map +/ice40/cells_map.v
|
||||
#TODO: Check unwrapped attributes
|
||||
select -assert-count 1 a:keep=1 a:SB_CARRY.\foo=bar %i a:SB_CARRY.\answer=42 %i a:SB_LUT4.\blah=blah %i a:SB_LUT4.\answer=43 %i
|
||||
|
||||
ice40_wrapcarry -unwrap
|
||||
select -assert-count 1 c:carry a:src=<<EOT:3 %i a:keep=0 %i a:foo=bar %i a:answer=42 %i
|
||||
select -assert-count 1 c:adder a:src=<<EOT:10 %i a:keep=1 %i a:blah=blah %i a:answer=43 %i
|
Loading…
Add table
Add a link
Reference in a new issue