mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
intel_alm: DSP inference
This commit is contained in:
parent
01772dec8c
commit
b004f09018
7 changed files with 209 additions and 9 deletions
23
tests/arch/intel_alm/mul.ys
Normal file
23
tests/arch/intel_alm/mul.ys
Normal file
|
@ -0,0 +1,23 @@
|
|||
read_verilog ../common/mul.v
|
||||
hierarchy -top top
|
||||
proc
|
||||
equiv_opt -assert -map +/intel_alm/common/dsp_sim.v synth_intel_alm -family cyclonev # 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
|
||||
|
||||
stat
|
||||
|
||||
select -assert-count 1 t:MISTRAL_MUL9X9
|
||||
select -assert-none t:MISTRAL_MUL9X9 %% t:* %D
|
||||
|
||||
design -reset
|
||||
read_verilog ../common/mul.v
|
||||
hierarchy -top top
|
||||
proc
|
||||
equiv_opt -assert -map +/intel_alm/common/dsp_sim.v synth_intel_alm -family cyclone10gx # 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
|
||||
|
||||
# Cyclone 10 GX does not have 9x9 multipliers, so we use 18x18.
|
||||
select -assert-count 1 t:MISTRAL_MUL18X18
|
||||
select -assert-none t:MISTRAL_MUL18X18 %% t:* %D
|
Loading…
Add table
Add a link
Reference in a new issue