Disabling BRAM commands in bitsream for LP384

This commit is contained in:
hermitsoft 2017-03-06 16:56:32 +01:00
parent e207307c74
commit 4d4738beea
1 changed files with 37 additions and 34 deletions

View File

@ -487,6 +487,8 @@ void FpgaConfig::write_bits(std::ostream &ofs) const
int bram_chunk_size = 128;
if (this->bram_width && this->bram_height)
{
debug("BRAM: Setting bank width to %d.\n", this->bram_width);
write_byte(ofs, crc_value, file_offset, 0x62);
write_byte(ofs, crc_value, file_offset, (this->bram_width-1) >> 8);
@ -529,6 +531,7 @@ void FpgaConfig::write_bits(std::ostream &ofs) const
write_byte(ofs, crc_value, file_offset, 0x00);
}
}
}
debug("Writing CRC value.\n");
write_byte(ofs, crc_value, file_offset, 0x22);