Skip to content

Commit

Permalink
Some memory types are only supported on NG-LARGE
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Jun 23, 2024
1 parent 1f79830 commit c88a81d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 10 additions & 6 deletions techlibs/nanoxplore/brams.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@ ram block $__NX_RAM_ {
abits 14;
widths 2 per_port;
}
option "STD_MODE" "NOECC_16kx3" {
abits 14;
widths 3 per_port;
ifdef IS_NG_LARGE {
option "STD_MODE" "NOECC_16kx3" {
abits 14;
widths 3 per_port;
}
}
option "STD_MODE" "NOECC_12kx4" {
# only 8k used
abits 13;
widths 4 per_port;
}
option "STD_MODE" "NOECC_8kx6" {
abits 13;
widths 6 per_port;
ifdef IS_NG_LARGE {
option "STD_MODE" "NOECC_8kx6" {
abits 13;
widths 6 per_port;
}
}
option "STD_MODE" "NOECC_6kx8" {
# only 4k used
Expand Down
2 changes: 2 additions & 0 deletions techlibs/nanoxplore/synth_nanoxplore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ struct SynthNanoXplorePass : public ScriptPass
if (check_label("map_ram"))
{
std::string args = "";
if (family == "large")
args += " -D IS_NG_LARGE";
if (nobram)
args += " -no-auto-block";
if (norfram)
Expand Down

0 comments on commit c88a81d

Please sign in to comment.