blob: 0db32a985e3ea9fb711290ea8f15e434288574d7 [file] [log] [blame]
yosys -import
if { [info procs quicklogic_eqn] == {} } { plugin -i ql-qlf}
yosys -import ;# ingest plugin commands
set TOP "mac_unit"
read_verilog $::env(DESIGN_TOP).v
design -save read
#Infer QL_DSP
hierarchy -top $TOP
synth_quicklogic -family qlf_k6n10 -top $TOP
yosys cd $TOP
stat
select -assert-count 1 t:QL_DSP
#Test no_dsp arg
design -load read
hierarchy -top $TOP
synth_quicklogic -family qlf_k6n10 -top $TOP -no_dsp
yosys cd $TOP
stat
select -assert-count 0 t:QL_DSP