@@ -175,9 +175,7 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
175
175
176
176
public: // Public Mutators
177
177
/* *
178
- * @brief Create a new block in the netlist or return an existing block.
179
- * If a block with the specified name already exists, the existing block's ID is returned,
180
- * and no new block is created.
178
+ * @brief Create a new block in the netlist.
181
179
*
182
180
* @param name The unique name of the block
183
181
* @param pb The physical representation of the block
@@ -186,9 +184,7 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
186
184
ClusterBlockId create_block (const char * name, t_pb* pb, t_logical_block_type_ptr type);
187
185
188
186
/* *
189
- * @brief Create a new port in the netlist or return an existing port.
190
- * If a port with the specified name already exists for the given block,
191
- * the existing port's ID is returned, and no new port is created.
187
+ * @brief Create a new port in the netlist.
192
188
*
193
189
* @param blk_id The block the port is associated with
194
190
* @param name The name of the port (must match the name of a port in the block's model)
@@ -197,9 +193,8 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
197
193
*/
198
194
ClusterPortId create_port (const ClusterBlockId blk_id, const std::string& name, BitIndex width, PortType type);
199
195
/* *
200
- * @brief Create a new pin in the netlist or return an existing pin.
201
- * If a pin with the specified ID already exists, the existing pin's ID is returned,
202
- * and no new pin is created.
196
+ * @brief Create a new pin in the netlist.
197
+ * @note If a pin with the specified ID already exists, the function will crash.
203
198
*
204
199
* @param port_id The port this pin is associated with
205
200
* @param port_bit The bit index of the pin in the port
@@ -211,7 +206,7 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
211
206
ClusterPinId create_pin (const ClusterPortId port_id, BitIndex port_bit, const ClusterNetId net_id, const PinType pin_type, int pin_index, bool is_const = false );
212
207
213
208
/* *
214
- * @brief Create an empty, or return an existing net in the netlist
209
+ * @brief Create a net in the netlist
215
210
*
216
211
* @param name The unique name of the net
217
212
*/
0 commit comments