3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 04:28:18 +00:00

Some memory types are only supported on NG-LARGE

This commit is contained in:
Miodrag Milanovic 2024-06-11 11:05:45 +02:00
parent 4372487a6f
commit 7601dc740b
2 changed files with 12 additions and 6 deletions

View file

@ -9,18 +9,22 @@ ram block $__NX_RAM_ {
abits 14; abits 14;
widths 2 per_port; widths 2 per_port;
} }
option "STD_MODE" "NOECC_16kx3" { ifdef IS_NG_LARGE {
abits 14; option "STD_MODE" "NOECC_16kx3" {
widths 3 per_port; abits 14;
widths 3 per_port;
}
} }
option "STD_MODE" "NOECC_12kx4" { option "STD_MODE" "NOECC_12kx4" {
# only 8k used # only 8k used
abits 13; abits 13;
widths 4 per_port; widths 4 per_port;
} }
option "STD_MODE" "NOECC_8kx6" { ifdef IS_NG_LARGE {
abits 13; option "STD_MODE" "NOECC_8kx6" {
widths 6 per_port; abits 13;
widths 6 per_port;
}
} }
option "STD_MODE" "NOECC_6kx8" { option "STD_MODE" "NOECC_6kx8" {
# only 4k used # only 4k used

View file

@ -264,6 +264,8 @@ struct SynthNanoXplorePass : public ScriptPass
if (check_label("map_ram")) if (check_label("map_ram"))
{ {
std::string args = ""; std::string args = "";
if (family == "large")
args += " -D IS_NG_LARGE";
if (nobram) if (nobram)
args += " -no-auto-block"; args += " -no-auto-block";
if (norfram) if (norfram)