[lib] fixed a few bugs

This commit is contained in:
tangxifan 2023-02-22 21:23:08 -08:00
parent a9d5e4dfbd
commit 40f6b5a3fe
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
</spine>
<spine name="spine_lvl2_lower" start_x="2" start_y="2" end_x="2" end_y="1">
<switch_point tap="rib_lvl1_lower_left" x="2" y="1"/>
<switch_point tap="rib_lvl1_lower_left" x="2" y="1"/>
<switch_point tap="rib_lvl1_lower_right" x="2" y="1"/>
</spine>
<spine name="rib_lvl1_upper_left" start_x="2" start_y="3" end_x="1" end_y="3"/>
<spine name="rib_lvl1_upper_right" start_x="2" start_y="3" end_x="3" end_y="3"/>

View File

@ -170,7 +170,6 @@ ClockSpineId ClockNetwork::create_spine(const std::string& name) {
/* Create a new id */
ClockSpineId spine_id = ClockSpineId(spine_ids_.size());
VTR_ASSERT(valid_spine_id(spine_id));
spine_ids_.push_back(spine_id);
spine_names_.push_back(name);
@ -184,6 +183,7 @@ ClockSpineId ClockNetwork::create_spine(const std::string& name) {
spine_parent_trees_.emplace_back();
/* Register to the lookup */
VTR_ASSERT(valid_spine_id(spine_id));
spine_name2id_map_[name] = spine_id;
return spine_id;