@@ -21,15 +21,15 @@ const t_pack_molecule* APNetlist::block_molecule(const APBlockId id) const {
2121 return block_molecules_[id];
2222}
2323
24- APBlockType APNetlist::block_type (const APBlockId id) const {
24+ APBlockMobility APNetlist::block_mobility (const APBlockId id) const {
2525 VTR_ASSERT_SAFE (valid_block_id (id));
2626
27- return block_types_ [id];
27+ return block_mobilities_ [id];
2828}
2929
3030const APFixedBlockLoc& APNetlist::block_loc (const APBlockId id) const {
3131 VTR_ASSERT_SAFE (valid_block_id (id));
32- VTR_ASSERT (block_type (id) == APBlockType ::FIXED);
32+ VTR_ASSERT (block_mobility (id) == APBlockMobility ::FIXED);
3333
3434 return block_locs_[id];
3535}
@@ -42,15 +42,15 @@ APBlockId APNetlist::create_block(const std::string& name, const t_pack_molecule
4242
4343 // Initialize the data
4444 block_molecules_.insert (blk_id, mol);
45- block_types_ .insert (blk_id, APBlockType ::MOVEABLE);
45+ block_mobilities_ .insert (blk_id, APBlockMobility ::MOVEABLE);
4646 block_locs_.insert (blk_id, APFixedBlockLoc ());
4747
4848 // Check post-conditions: size
4949 VTR_ASSERT (validate_block_sizes ());
5050
5151 // Check post-conditions: values
5252 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);
5454
5555 return blk_id;
5656}
@@ -63,7 +63,7 @@ void APNetlist::set_block_loc(const APBlockId id, const APFixedBlockLoc& loc) {
6363 return ;
6464
6565 block_locs_[id] = loc;
66- block_types_ [id] = APBlockType ::FIXED;
66+ block_mobilities_ [id] = APBlockMobility ::FIXED;
6767}
6868
6969APPortId 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) {
112112void APNetlist::clean_blocks_impl (const vtr::vector_map<APBlockId, APBlockId>& block_id_map) {
113113 // Update all the block molecules
114114 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);
117117 // Update the fixed block locations
118118 block_locs_ = clean_and_reorder_values (block_locs_, block_id_map);
119119}
@@ -150,7 +150,7 @@ void APNetlist::rebuild_net_refs_impl(const vtr::vector_map<APPinId, APPinId>& /
150150void APNetlist::shrink_to_fit_impl () {
151151 // Block data
152152 block_molecules_.shrink_to_fit ();
153- block_types_ .shrink_to_fit ();
153+ block_mobilities_ .shrink_to_fit ();
154154 block_locs_.shrink_to_fit ();
155155}
156156
@@ -176,7 +176,7 @@ void APNetlist::remove_net_impl(const APNetId /*net_id*/) {
176176bool APNetlist::validate_block_sizes_impl (size_t num_blocks) const {
177177 if (block_molecules_.size () != num_blocks)
178178 return false ;
179- if (block_types_ .size () != num_blocks)
179+ if (block_mobilities_ .size () != num_blocks)
180180 return false ;
181181 if (block_locs_.size () != num_blocks)
182182 return false ;
0 commit comments