@@ -21,15 +21,15 @@ const t_pack_molecule* APNetlist::block_molecule(const APBlockId id) const {
21
21
return block_molecules_[id];
22
22
}
23
23
24
- APBlockType APNetlist::block_type (const APBlockId id) const {
24
+ APBlockMobility APNetlist::block_mobility (const APBlockId id) const {
25
25
VTR_ASSERT_SAFE (valid_block_id (id));
26
26
27
- return block_types_ [id];
27
+ return block_mobilities_ [id];
28
28
}
29
29
30
30
const APFixedBlockLoc& APNetlist::block_loc (const APBlockId id) const {
31
31
VTR_ASSERT_SAFE (valid_block_id (id));
32
- VTR_ASSERT (block_type (id) == APBlockType ::FIXED);
32
+ VTR_ASSERT (block_mobility (id) == APBlockMobility ::FIXED);
33
33
34
34
return block_locs_[id];
35
35
}
@@ -42,15 +42,15 @@ APBlockId APNetlist::create_block(const std::string& name, const t_pack_molecule
42
42
43
43
// Initialize the data
44
44
block_molecules_.insert (blk_id, mol);
45
- block_types_ .insert (blk_id, APBlockType ::MOVEABLE);
45
+ block_mobilities_ .insert (blk_id, APBlockMobility ::MOVEABLE);
46
46
block_locs_.insert (blk_id, APFixedBlockLoc ());
47
47
48
48
// Check post-conditions: size
49
49
VTR_ASSERT (validate_block_sizes ());
50
50
51
51
// Check post-conditions: values
52
52
VTR_ASSERT (block_molecule (blk_id) == mol);
53
- VTR_ASSERT (block_type (blk_id) == APBlockType ::MOVEABLE);
53
+ VTR_ASSERT (block_mobility (blk_id) == APBlockMobility ::MOVEABLE);
54
54
55
55
return blk_id;
56
56
}
@@ -63,7 +63,7 @@ void APNetlist::set_block_loc(const APBlockId id, const APFixedBlockLoc& loc) {
63
63
return ;
64
64
65
65
block_locs_[id] = loc;
66
- block_types_ [id] = APBlockType ::FIXED;
66
+ block_mobilities_ [id] = APBlockMobility ::FIXED;
67
67
}
68
68
69
69
APPortId APNetlist::create_port (const APBlockId blk_id, const std::string& name, BitIndex width, PortType type) {
@@ -112,8 +112,8 @@ APNetId APNetlist::create_net(const std::string& name) {
112
112
void APNetlist::clean_blocks_impl (const vtr::vector_map<APBlockId, APBlockId>& block_id_map) {
113
113
// Update all the block molecules
114
114
block_molecules_ = clean_and_reorder_values (block_molecules_, block_id_map);
115
- // Update all the block types
116
- block_types_ = clean_and_reorder_values (block_types_ , block_id_map);
115
+ // Update all the block mobilities
116
+ block_mobilities_ = clean_and_reorder_values (block_mobilities_ , block_id_map);
117
117
// Update the fixed block locations
118
118
block_locs_ = clean_and_reorder_values (block_locs_, block_id_map);
119
119
}
@@ -150,7 +150,7 @@ void APNetlist::rebuild_net_refs_impl(const vtr::vector_map<APPinId, APPinId>& /
150
150
void APNetlist::shrink_to_fit_impl () {
151
151
// Block data
152
152
block_molecules_.shrink_to_fit ();
153
- block_types_ .shrink_to_fit ();
153
+ block_mobilities_ .shrink_to_fit ();
154
154
block_locs_.shrink_to_fit ();
155
155
}
156
156
@@ -176,7 +176,7 @@ void APNetlist::remove_net_impl(const APNetId /*net_id*/) {
176
176
bool APNetlist::validate_block_sizes_impl (size_t num_blocks) const {
177
177
if (block_molecules_.size () != num_blocks)
178
178
return false ;
179
- if (block_types_ .size () != num_blocks)
179
+ if (block_mobilities_ .size () != num_blocks)
180
180
return false ;
181
181
if (block_locs_.size () != num_blocks)
182
182
return false ;
0 commit comments