add width syntex to the fabric bitstream file format

This commit is contained in:
tangxifan 2020-07-27 13:54:23 -06:00
parent aef1d7ba63
commit e09eddab43
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,9 @@ int write_fabric_config_bit_to_xml_file(std::fstream& fp,
for (const ConfigBlockId& temp_block : block_hierarchy) {
write_tab_to_file(fp, 2);
fp << "<instance level=\"" << hierarchy_counter << "\"";
if (0 < bitstream_manager.block_bits(temp_block).size()) {
fp << " width=\"" << bitstream_manager.block_bits(temp_block).size() << "\"";
}
fp << " name=\"" << bitstream_manager.block_name(temp_block) << "\"";
fp << "/>\n";
hierarchy_counter++;