From 606439b44c417773453694e69a940410e0bebe1a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 24 Apr 2024 11:28:03 +0200 Subject: [PATCH] do not leave NX_RAM empty to prevent removing it --- techlibs/nanoxplore/brams_map.v | 12 ++++++++++++ techlibs/nanoxplore/synth_nanoxplore.cc | 1 + 2 files changed, 13 insertions(+) diff --git a/techlibs/nanoxplore/brams_map.v b/techlibs/nanoxplore/brams_map.v index 04b6134c3..b025a6782 100644 --- a/techlibs/nanoxplore/brams_map.v +++ b/techlibs/nanoxplore/brams_map.v @@ -29,4 +29,16 @@ input [12:0] PORT_B_ADDR; input [PORT_B_WIDTH-1:0] PORT_B_WR_DATA; output [PORT_B_WIDTH-1:0] PORT_B_RD_DATA; +NX_RAM_WRAP #( +) _TECHMAP_REPLACE_ ( + .ACK(PORT_A_CLK), + .AA(PORT_A_ADDR), + .AI(PORT_A_WR_DATA), + .AO(PORT_A_RD_DATA), + + .BCK(PORT_B_CLK), + .BA(PORT_B_ADDR), + .BI(PORT_B_WR_DATA), + .BO(PORT_B_RD_DATA) +); endmodule \ No newline at end of file diff --git a/techlibs/nanoxplore/synth_nanoxplore.cc b/techlibs/nanoxplore/synth_nanoxplore.cc index de422ae9c..e34ae212e 100644 --- a/techlibs/nanoxplore/synth_nanoxplore.cc +++ b/techlibs/nanoxplore/synth_nanoxplore.cc @@ -264,6 +264,7 @@ struct SynthNanoXplorePass : public ScriptPass args += " [-no-auto-block] [-no-auto-distributed]"; run("memory_libmap -lib +/nanoxplore/rf_rams"+ postfix + ".txt -lib +/nanoxplore/brams.txt" + args, "(-no-auto-block if -nobram, -no-auto-distributed if -norfram)"); run("techmap -map +/nanoxplore/rf_rams_map"+ postfix + ".v -map +/nanoxplore/brams_map.v"); + run("techmap -map +/nanoxplore/cells_wrap.v t:NX_RAM*"); run("techmap -map +/nanoxplore/cells_wrap" + postfix + ".v t:NX_XRFB* t:NX_RFB*"); }