@@ -175,7 +175,7 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
175
175
176
176
public: // Public Mutators
177
177
/* *
178
- * @brief Create or return an existing block in the netlist
178
+ * @brief Create a new block in the netlist.
179
179
*
180
180
* @param name The unique name of the block
181
181
* @param pb The physical representation of the block
@@ -184,7 +184,7 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
184
184
ClusterBlockId create_block (const char * name, t_pb* pb, t_logical_block_type_ptr type);
185
185
186
186
/* *
187
- * @brief Create or return an existing port in the netlist
187
+ * @brief Create a new port in the netlist.
188
188
*
189
189
* @param blk_id The block the port is associated with
190
190
* @param name The name of the port (must match the name of a port in the block's model)
@@ -193,7 +193,8 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
193
193
*/
194
194
ClusterPortId create_port (const ClusterBlockId blk_id, const std::string& name, BitIndex width, PortType type);
195
195
/* *
196
- * @brief Create or return an existing pin in the netlist
196
+ * @brief Create a new pin in the netlist.
197
+ * @note If a pin with the specified ID already exists, the function will crash.
197
198
*
198
199
* @param port_id The port this pin is associated with
199
200
* @param port_bit The bit index of the pin in the port
@@ -205,7 +206,7 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
205
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 );
206
207
207
208
/* *
208
- * @brief Create an empty, or return an existing net in the netlist
209
+ * @brief Create a net in the netlist
209
210
*
210
211
* @param name The unique name of the net
211
212
*/
0 commit comments