@@ -108,8 +108,7 @@ static void init_molecule_chain_info(const AtomBlockId blk_id,
108108
109109static AtomBlockId get_sink_block (const AtomBlockId block_id,
110110 const t_pack_pattern_connections& connections,
111- const AtomNetlist& atom_nlist,
112- bool is_chain_pattern);
111+ const AtomNetlist& atom_nlist);
113112
114113static AtomBlockId get_driving_block (const AtomBlockId block_id,
115114 const t_pack_pattern_connections& connections,
@@ -1046,7 +1045,7 @@ static bool try_expand_molecule(t_pack_molecule& molecule,
10461045 // this block is the driver of this connection
10471046 if (block_connection->from_block == pattern_block) {
10481047 // 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);
10501049 // add this sink block id with its corresponding pattern block to the queue
10511050 pattern_block_queue.push (std::make_pair (block_connection->to_block , sink_blk_id));
10521051 // this block is being driven by this connection
@@ -1075,12 +1074,10 @@ static bool try_expand_molecule(t_pack_molecule& molecule,
10751074 * the block should be driven by only one block
10761075 * block_id : id of the atom block that is driving the net connected to the sink block
10771076 * connections : pack pattern connections from the given block
1078- * is_chain_pattern : whether the pattern is a chain
10791077 */
10801078static AtomBlockId get_sink_block (const AtomBlockId block_id,
10811079 const t_pack_pattern_connections& connections,
1082- const AtomNetlist& atom_nlist,
1083- bool is_chain_pattern) {
1080+ const AtomNetlist& atom_nlist) {
10841081 const t_model_ports* from_port_model = connections.from_pin ->port ->model_port ;
10851082 const int from_pin_number = connections.from_pin ->pin_number ;
10861083 auto from_port_id = atom_nlist.find_atom_port (block_id, from_port_model);
0 commit comments