mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
Merge pull request #3120 from Icenowy/anlogic-bram
anlogic: support BRAM mapping
This commit is contained in:
commit
4525e419f6
8 changed files with 283 additions and 2 deletions
13
tests/arch/anlogic/blockram.ys
Normal file
13
tests/arch/anlogic/blockram.ys
Normal file
|
@ -0,0 +1,13 @@
|
|||
read_verilog ../common/blockram.v
|
||||
hierarchy -top sync_ram_sp
|
||||
proc
|
||||
memory -nomap
|
||||
equiv_opt -run :prove -map +/anlogic/cells_sim.v synth_anlogic
|
||||
memory
|
||||
opt -full
|
||||
|
||||
design -load postopt
|
||||
cd sync_ram_sp
|
||||
|
||||
select -assert-count 1 t:EG_PHY_BRAM
|
||||
select -assert-none t:EG_PHY_BRAM %% t:* %D
|
|
@ -2,7 +2,7 @@ read_verilog ../common/lutram.v
|
|||
hierarchy -top lutram_1w1r
|
||||
proc
|
||||
memory -nomap
|
||||
equiv_opt -run :prove -map +/anlogic/cells_sim.v synth_anlogic
|
||||
equiv_opt -run :prove -map +/anlogic/cells_sim.v synth_anlogic -nobram
|
||||
memory
|
||||
opt -full
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue