From dad85b5178133cbadd25dbf52ddb95ae033acca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Mon, 27 Nov 2023 14:22:28 +0100 Subject: [PATCH] synth_quicklogic: Fix missing FF mapping --- techlibs/quicklogic/synth_quicklogic.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/techlibs/quicklogic/synth_quicklogic.cc b/techlibs/quicklogic/synth_quicklogic.cc index 9bfaa191e..0e7aaa752 100644 --- a/techlibs/quicklogic/synth_quicklogic.cc +++ b/techlibs/quicklogic/synth_quicklogic.cc @@ -282,6 +282,7 @@ struct SynthQuickLogicPass : public ScriptPass { run("shregmap -minlen -maxlen ", "(for qlf_k6n10f)"); run("dfflegalize -cell "); run("techmap -map " + lib_path + family + "/cells_map.v", "(for pp3)"); + run("techmap -map " + lib_path + family + "/ffs_map.v", "(for ql_k6n10f)"); } if (family == "pp3") { run("dfflegalize -cell $_DFFSRE_PPPP_ 0 -cell $_DLATCH_?_ x"); @@ -293,6 +294,7 @@ struct SynthQuickLogicPass : public ScriptPass { // not in the allowed set. As a workaround we put them in the allowed // set explicitly and map them later to $_DLATCHSR_[NP]NN_. run("dfflegalize -cell $_DFFSRE_?NNP_ 0 -cell $_DLATCHSR_?NN_ 0 -cell $_DLATCH_?_ 0" " -cell $_SDFFE_?N?P_ 0"); + run("techmap -map " + lib_path + family + "/ffs_map.v"); } run("opt"); }