@@ -108,8 +108,7 @@ static void init_molecule_chain_info(const AtomBlockId blk_id,
108
108
109
109
static AtomBlockId get_sink_block (const AtomBlockId block_id,
110
110
const t_pack_pattern_connections& connections,
111
- const AtomNetlist& atom_nlist,
112
- bool is_chain_pattern);
111
+ const AtomNetlist& atom_nlist);
113
112
114
113
static AtomBlockId get_driving_block (const AtomBlockId block_id,
115
114
const t_pack_pattern_connections& connections,
@@ -1046,7 +1045,7 @@ static bool try_expand_molecule(t_pack_molecule& molecule,
1046
1045
// this block is the driver of this connection
1047
1046
if (block_connection->from_block == pattern_block) {
1048
1047
// find the block this connection is driving and add it to the queue
1049
- auto sink_blk_id = get_sink_block (block_id, *block_connection, atom_nlist, molecule. is_chain () );
1048
+ auto sink_blk_id = get_sink_block (block_id, *block_connection, atom_nlist);
1050
1049
// add this sink block id with its corresponding pattern block to the queue
1051
1050
pattern_block_queue.push (std::make_pair (block_connection->to_block , sink_blk_id));
1052
1051
// this block is being driven by this connection
@@ -1075,12 +1074,10 @@ static bool try_expand_molecule(t_pack_molecule& molecule,
1075
1074
* the block should be driven by only one block
1076
1075
* block_id : id of the atom block that is driving the net connected to the sink block
1077
1076
* connections : pack pattern connections from the given block
1078
- * is_chain_pattern : whether the pattern is a chain
1079
1077
*/
1080
1078
static AtomBlockId get_sink_block (const AtomBlockId block_id,
1081
1079
const t_pack_pattern_connections& connections,
1082
- const AtomNetlist& atom_nlist,
1083
- bool is_chain_pattern) {
1080
+ const AtomNetlist& atom_nlist) {
1084
1081
const t_model_ports* from_port_model = connections.from_pin ->port ->model_port ;
1085
1082
const int from_pin_number = connections.from_pin ->pin_number ;
1086
1083
auto from_port_id = atom_nlist.find_atom_port (block_id, from_port_model);
0 commit comments