Skip to content

Commit c88a81d

Browse files
committed
Some memory types are only supported on NG-LARGE
1 parent 1f79830 commit c88a81d

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

techlibs/nanoxplore/brams.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ ram block $__NX_RAM_ {
99
abits 14;
1010
widths 2 per_port;
1111
}
12-
option "STD_MODE" "NOECC_16kx3" {
13-
abits 14;
14-
widths 3 per_port;
12+
ifdef IS_NG_LARGE {
13+
option "STD_MODE" "NOECC_16kx3" {
14+
abits 14;
15+
widths 3 per_port;
16+
}
1517
}
1618
option "STD_MODE" "NOECC_12kx4" {
1719
# only 8k used
1820
abits 13;
1921
widths 4 per_port;
2022
}
21-
option "STD_MODE" "NOECC_8kx6" {
22-
abits 13;
23-
widths 6 per_port;
23+
ifdef IS_NG_LARGE {
24+
option "STD_MODE" "NOECC_8kx6" {
25+
abits 13;
26+
widths 6 per_port;
27+
}
2428
}
2529
option "STD_MODE" "NOECC_6kx8" {
2630
# only 4k used

techlibs/nanoxplore/synth_nanoxplore.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ struct SynthNanoXplorePass : public ScriptPass
264264
if (check_label("map_ram"))
265265
{
266266
std::string args = "";
267+
if (family == "large")
268+
args += " -D IS_NG_LARGE";
267269
if (nobram)
268270
args += " -no-auto-block";
269271
if (norfram)

0 commit comments

Comments
 (0)