public class ModuleCache
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FILE_VERSION_16BIT_WIRES |
static String |
MODULE_FILE_VERSION
This is the current module file version (saved in file to ensure proper compatibility)
|
static String |
NULL_SENTINEL |
static int |
NULL_SITE_INST |
static int |
OUTPIN_FLAG |
static int |
PIN_FIXED_FLAG |
static int |
SITE_LOCKED_FLAG |
Modifier and Type | Method and Description |
---|---|
static void |
readDesignHierarchy(Design d,
com.esotericsoftware.kryo.io.Input in) |
static ModuleImpls |
readFromCompactFile(String fileName,
EDIFNetlist edifNetlist)
Loads the module from memory and is stored in this object.
|
static ModuleImpls |
readModuleImpls(com.esotericsoftware.kryo.io.Input in,
EDIFNetlist edifNetlist) |
static void |
saveToCompactFile(ModuleImpls modules,
String fileName)
Saves all provided implementations of a module to the compact file format.
|
static void |
writeDesignHierarchy(Design d,
com.esotericsoftware.kryo.io.Output out) |
public static final String MODULE_FILE_VERSION
public static final String FILE_VERSION_16BIT_WIRES
public static final int SITE_LOCKED_FLAG
public static final int PIN_FIXED_FLAG
public static final int OUTPIN_FLAG
public static final int NULL_SITE_INST
public static final String NULL_SENTINEL
public static void saveToCompactFile(ModuleImpls modules, String fileName)
modules
- All implementations that correspond to the same module.fileName
- Name of the file where the data should go.public static ModuleImpls readModuleImpls(com.esotericsoftware.kryo.io.Input in, EDIFNetlist edifNetlist)
public static ModuleImpls readFromCompactFile(String fileName, EDIFNetlist edifNetlist)
fileName
- The name of the file that is to be loaded.
Should coordinate with the file name used with the saveToCompactFile() method.public static void writeDesignHierarchy(Design d, com.esotericsoftware.kryo.io.Output out)
public static void readDesignHierarchy(Design d, com.esotericsoftware.kryo.io.Input in)