diff --git a/techlibs/nanoxplore/brams.txt b/techlibs/nanoxplore/brams.txt index 6098ee72ec6..046f54c2340 100644 --- a/techlibs/nanoxplore/brams.txt +++ b/techlibs/nanoxplore/brams.txt @@ -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 diff --git a/techlibs/nanoxplore/synth_nanoxplore.cc b/techlibs/nanoxplore/synth_nanoxplore.cc index babc9139144..2d80a418910 100644 --- a/techlibs/nanoxplore/synth_nanoxplore.cc +++ b/techlibs/nanoxplore/synth_nanoxplore.cc @@ -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)