aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-08-08 17:02:44 +0200
committerClifford Wolf <clifford@clifford.at>2019-08-08 17:02:44 +0200
commit6943ad7afae03fb19f55522d0e22f2db9b25bb95 (patch)
tree33d93da752a197de518f0aaa5c7ccb6bd4c10d97
parent792cef084a751e32f541332feb4905f8e49e9943 (diff)
downloadicestorm-6943ad7afae03fb19f55522d0e22f2db9b25bb95.tar.gz
icestorm-6943ad7afae03fb19f55522d0e22f2db9b25bb95.tar.bz2
icestorm-6943ad7afae03fb19f55522d0e22f2db9b25bb95.zip
Only write bram data to ASCII output if bram data is present, fixes #228
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r--icepack/icepack.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/icepack/icepack.cc b/icepack/icepack.cc
index 5b1745a..d441042 100644
--- a/icepack/icepack.cc
+++ b/icepack/icepack.cc
@@ -912,7 +912,7 @@ void FpgaConfig::write_ascii(std::ostream &ofs) const
ofs << '\n';
}
- if (cic.tile_type == "ramb")
+ if (cic.tile_type == "ramb" && !this->bram.empty())
{
BramIndexConverter bic(this, x, y);
ofs << stringf(".ram_data %d %d\n", x, y);