From e19833f8c78846fc30f581259d06d2e34ff9fd86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Mon, 9 Oct 2023 13:18:09 +0200 Subject: [PATCH] synth_quiclogic: Fix conditioning of bram passes --- techlibs/quicklogic/synth_quicklogic.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/techlibs/quicklogic/synth_quicklogic.cc b/techlibs/quicklogic/synth_quicklogic.cc index 101dff665..9bfaa191e 100644 --- a/techlibs/quicklogic/synth_quicklogic.cc +++ b/techlibs/quicklogic/synth_quicklogic.cc @@ -245,16 +245,15 @@ struct SynthQuickLogicPass : public ScriptPass { run("opt_clean"); } - if (check_label("map_bram", "(for qlf_k6n10f, skip if -no_bram)")) { - if(family == "qlf_k6n10f" || help_mode) + if (check_label("map_bram", "(for qlf_k6n10f, skip if -no_bram)") + && (family == "qlf_k6n10f" || help_mode)) { run("memory_libmap -lib " + lib_path + family + "/libmap_brams.txt"); run("ql_bram_merge"); run("techmap -map " + lib_path + family + "/libmap_brams_map.v"); run("techmap -autoproc -map " + lib_path + family + "/brams_map.v"); - if (bramTypes || help_mode) { + if (bramTypes || help_mode) run("ql_bram_types", "(if -bramtypes)"); - } } if (check_label("map_ffram")) {