public class CodeGenerator
extends Object
Constructor and Description |
---|
CodeGenerator() |
Modifier and Type | Method and Description |
---|---|
static void |
addPIPs(Net net,
String[] pips) |
static Net |
createTestNet(Design design,
String netName,
String[] pips) |
static String |
testNetGenerator(Design design,
Collection<String> nets,
Collection<String> siteInsts)
Generates RapidWright test code from a provided checkpoint that instantiates the provided nets and siteInsts,
and adds the associated PIPs to each of the nets.
|
static String |
testNetGenerator(Net net)
Convenience method to take a net and return a String the generates the routed
net for an example test case in RapidWright code
|
static String |
testNetGenerator(String dcp,
Collection<String> nets,
Collection<String> siteInsts)
Generates RapidWright test code from a provided checkpoint that instantiates the provided nets and siteInsts,
and adds the associated PIPs to each of the nets.
|
static String |
testNetGenerator(String dcp,
String edif,
Collection<String> nets,
Collection<String> siteInsts)
Generates RapidWright test code from a provided checkpoint that instantiates the provided nets and siteInsts,
and adds the associated PIPs to each of the nets.
|
public static String testNetGenerator(Net net)
net
- The net to extract routing and SiteInst frompublic static String testNetGenerator(String dcp, Collection<String> nets, Collection<String> siteInsts)
dcp
- The path to the desired DCP to generate code from.nets
- A collection of nets to generate code for.siteInsts
- A collection of site instances to generate code for.public static String testNetGenerator(String dcp, String edif, Collection<String> nets, Collection<String> siteInsts)
dcp
- The path to the desired DCP to generate code from.edif
- The path to the external EDIF file to load (in case of an encrypted DCP file).nets
- A collection of nets to generate code for.siteInsts
- A collection of site instances to generate code for.public static String testNetGenerator(Design design, Collection<String> nets, Collection<String> siteInsts)
design
- The design to generate code from.nets
- A collection of nets to generate code for.siteInsts
- A collection of site instances to generate code for.public static void addPIPs(Net net, String[] pips)