From 6943ad7afae03fb19f55522d0e22f2db9b25bb95 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 8 Aug 2019 17:02:44 +0200 Subject: Only write bram data to ASCII output if bram data is present, fixes #228 Signed-off-by: Clifford Wolf --- icepack/icepack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3