blob: 762bac6ba0c5a761702faa01e002b0f9160790d5 [file] [log] [blame]
yosys -import
if { [info procs synth_quicklogic] == {} } { plugin -i ql-qlf}
yosys -import ;# ingest plugin commands
set TOP "mult16x16"
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