From d2040a9506e71905c7fe5e4bbd26a69f68f13546 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Tue, 25 Feb 2025 11:59:41 +0100 Subject: [PATCH] synth_quicklogic: enable dspv2 tests, fix -dspv2 --- techlibs/quicklogic/synth_quicklogic.cc | 2 +- tests/arch/quicklogic/dspv2/run-test.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 tests/arch/quicklogic/dspv2/run-test.sh diff --git a/techlibs/quicklogic/synth_quicklogic.cc b/techlibs/quicklogic/synth_quicklogic.cc index 11af7ef7e..292c59500 100644 --- a/techlibs/quicklogic/synth_quicklogic.cc +++ b/techlibs/quicklogic/synth_quicklogic.cc @@ -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); } diff --git a/tests/arch/quicklogic/dspv2/run-test.sh b/tests/arch/quicklogic/dspv2/run-test.sh new file mode 100644 index 000000000..43a7874b2 --- /dev/null +++ b/tests/arch/quicklogic/dspv2/run-test.sh @@ -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.'"