[lib] fixed a few bugs
This commit is contained in:
parent
a9d5e4dfbd
commit
40f6b5a3fe
|
@ -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"/>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue