synth_quicklogic: enable dspv2 tests, fix -dspv2

This commit is contained in:
Emil J. Tywoniak 2025-02-25 11:59:41 +01:00
parent 23924902a7
commit d2040a9506
2 changed files with 5 additions and 1 deletions

View File

@ -258,7 +258,7 @@ struct SynthQuickLogicPass : public ScriptPass {
run("techmap -map +/mul2dsp.v -map " + lib_path + family + "/dspv2_map.v -D USE_DSP_CFG_PARAMS=0 -D DSP_SIGNEDONLY "
"-D DSP_A_MAXWIDTH=16 -D DSP_B_MAXWIDTH=9 -D DSP_A_MINWIDTH=4 -D DSP_B_MINWIDTH=4 -D DSP_NAME=$__MUL16X9");
run("chtype -set $mul t:$__soft_mul");
run("ql_dspv2");
run("ql_dsp");
} else {
log_assert(false);
}

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -eu
source ../../../gen-tests-makefile.sh
generate_mk --yosys-scripts --bash --yosys-args "-w 'Yosys has only limited support for tri-state logic at the moment.'"