Skip to content

Commit

Permalink
do not leave NX_RAM empty to prevent removing it
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Apr 24, 2024
1 parent b429593 commit 4ef2446
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions techlibs/nanoxplore/brams_map.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions techlibs/nanoxplore/synth_nanoxplore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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*");
}

Expand Down

0 comments on commit 4ef2446

Please sign in to comment.