Only write bram data to ASCII output if bram data is present, fixes #228

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2019-08-08 17:02:44 +02:00
parent 792cef084a
commit 6943ad7afa
1 changed files with 1 additions and 1 deletions

View File

@ -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);