Skip to content

Commit 0664ad9

Browse files
committed
fixed netlist documentation
1 parent 27361b7 commit 0664ad9

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

vpr/src/base/atom_netlist.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ class AtomNetlist : public Netlist<AtomBlockId, AtomPortId, AtomPinId, AtomNetId
166166

167167
/**
168168
* @brief Create a new block in the netlist or returns an existing block.
169-
If a block with the specified name already exists, its associated data
170-
(model and truth table) will be overwritten with the provided data.
169+
If a block with the specified name already exists, the existing block's ID is returned
170+
and no new block is created.
171171
*
172172
* @param name The unique name of the block
173173
* @param model The primitive type of the block
@@ -180,7 +180,7 @@ class AtomNetlist : public Netlist<AtomBlockId, AtomPortId, AtomPinId, AtomNetId
180180
/**
181181
* @brief Create a new port in the netlist or return an existing port.
182182
* If a port with the specified name already exists for the given block,
183-
* its associated data (model) will be overwritten with the provided data.
183+
* the existing port's ID is returned, and no new port is created.
184184
*
185185
* @param blk_id The block the port is associated with
186186
* @param model_port The model port the port is associated with
@@ -189,7 +189,7 @@ class AtomNetlist : public Netlist<AtomBlockId, AtomPortId, AtomPinId, AtomNetId
189189

190190
/**
191191
* @brief Create a new pin in the netlist or return an existing pin.
192-
* If a pin with the specified ID already exists, it is returned.
192+
* If a pin with the specified ID already exists, it is returned, and no new pin is created.
193193
*
194194
* @param port_id The port this pin is associated with
195195
* @param port_bit The bit index of the pin in the port

vpr/src/base/clustered_netlist.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
176176
public: //Public Mutators
177177
/**
178178
* @brief Create a new block in the netlist or return an existing block.
179-
* If a block with the specified name already exists, its associated data
180-
* will be overwritten.
179+
* If a block with the specified name already exists, the existing block's ID is returned,
180+
* and no new block is created.
181181
*
182182
* @param name The unique name of the block
183183
* @param pb The physical representation of the block
@@ -188,7 +188,7 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
188188
/**
189189
* @brief Create a new port in the netlist or return an existing port.
190190
* If a port with the specified name already exists for the given block,
191-
* its associated data will be overwritten.
191+
* the existing port's ID is returned, and no new port is created.
192192
*
193193
* @param blk_id The block the port is associated with
194194
* @param name The name of the port (must match the name of a port in the block's model)
@@ -198,7 +198,8 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
198198
ClusterPortId create_port(const ClusterBlockId blk_id, const std::string& name, BitIndex width, PortType type);
199199
/**
200200
* @brief Create a new pin in the netlist or return an existing pin.
201-
* If a pin with the specified ID already exists, its associated data will be overwritten.
201+
* If a pin with the specified ID already exists, the existing pin's ID is returned,
202+
* and no new pin is created.
202203
*
203204
* @param port_id The port this pin is associated with
204205
* @param port_bit The bit index of the pin in the port

0 commit comments

Comments
 (0)