Skip to content

Commit

Permalink
Add some overloads with default deferredRemovals of null
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx committed Oct 16, 2023
1 parent 24300aa commit 87f9513
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/com/xilinx/rapidwright/eco/ECOTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@
* modifying 'top/u1(foo1)/lut1' would no longer affect 'top/u2(foo2)/lut1'.
*/
public class ECOTools {
/**
* Given a list of EDIFHierPortInst objects, disconnect these pins from their current nets.
* This method modifies the EDIF (logical) netlist as well as the place-and-route (physical)
* state, and is modelled on Vivado's <TT>disconnect_net -pinlist</TT> command.
* @param design The design where the pin(s) are instantiated.
* @param pins A list of hierarchical pins for disconnection.
*/
public static void disconnectNet(Design design,
List<EDIFHierPortInst> pins) {
disconnectNet(design, pins, null);
}

/**
* Given a list of EDIFHierPortInst objects, disconnect these pins from their current nets.
* This method modifies the EDIF (logical) netlist as well as the place-and-route (physical)
Expand Down Expand Up @@ -162,6 +174,19 @@ public static void disconnectNet(Design design,
}
}

/**
* Given a list of String-s with one more space-separated pins, disconnect these pins from
* their current nets.
* This method modifies the EDIF (logical) netlist as well as the place-and-route (physical)
* state, and is modelled on Vivado's <TT>disconnect_net -pinlist</TT> command.
* @param design The design where the pin(s) are instantiated.
* @param pins A list of hierarchical pins for disconnection.
*/
public static void disconnectNetPath(Design design,
List<String> pins) {
disconnectNetPath(design, pins, null);
}

/**
* Given a list of String-s with one more space-separated pins, disconnect these pins from
* their current nets.
Expand Down Expand Up @@ -609,6 +634,19 @@ private static void connectNetSource(Design design,
}
}

/**
* Given a list of String-s containing one net path followed by one or more pin paths
* (separated by spaces) connect the latter pins to the former net.
* This method modifies the EDIF (logical) netlist as well as the place-and-route (physical)
* state, and is modelled on Vivado's <TT>connect_net -hier -net_object_list</TT> command.
* @param design The design where the net(s) and pin(s) are instantiated.
* @param netPinList A list of String-s containing net and pin paths.
*/
public static void connectNet(Design design,
List<String> netPinList) {
connectNet(design, netPinList, null);
}

/**
* Given a list of String-s containing one net path followed by one or more pin paths
* (separated by spaces) connect the latter pins to the former net.
Expand Down

0 comments on commit 87f9513

Please sign in to comment.