public class BinaryEDIFWriter
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EDIF_BINARY_FILE_TAG |
static String |
EDIF_BINARY_FILE_VERSION |
static int |
EDIF_DIR_INOUT_MASK |
static int |
EDIF_DIR_INPUT_MASK |
static int |
EDIF_DIR_OUTPUT_MASK |
static int |
EDIF_HAS_OWNER |
static int |
EDIF_MACRO_LIB |
static int |
EDIF_NAME_FLAG |
static int |
EDIF_NULL_INST |
static int |
EDIF_PROP_FLAG |
static int |
EDIF_PROP_TYPE_BIT |
static int |
EDIF_PROP_VALUE_MASK |
static int |
EDIF_RENAME_MASK |
static int |
EDIF_SAME_LIB_FLAG |
static int |
EDIF_UNIQUE_VIEW_FLAG |
static int |
PORT_WIDTH_MASK |
Constructor and Description |
---|
BinaryEDIFWriter() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Integer> |
createStringMap(EDIFNetlist netlist)
This method iterates over an entire EDIFNetlist to enumerate all Strings.
|
static void |
writeBinaryEDIF(OutputStream outputStream,
EDIFNetlist netlist) |
static void |
writeBinaryEDIF(Path path,
EDIFNetlist netlist)
Writes the provided netlist as a binary EDIF file (.bedf).
|
static void |
writeBinaryEDIF(String fileName,
EDIFNetlist netlist)
Writes the provided netlist as a binary EDIF file (.bedf).
|
static void |
writeEDIFCell(EDIFCell c,
com.esotericsoftware.kryo.io.Output os,
Map<String,Integer> stringMap)
Writes the provided EDIFCell to Kryo-based output stream.
|
public static final String EDIF_BINARY_FILE_TAG
public static final String EDIF_BINARY_FILE_VERSION
public static final int EDIF_NAME_FLAG
public static final int EDIF_UNIQUE_VIEW_FLAG
public static final int EDIF_SAME_LIB_FLAG
public static final int EDIF_PROP_FLAG
public static final int EDIF_HAS_OWNER
public static final int EDIF_DIR_INPUT_MASK
public static final int EDIF_DIR_OUTPUT_MASK
public static final int EDIF_DIR_INOUT_MASK
public static final int EDIF_RENAME_MASK
public static final int PORT_WIDTH_MASK
public static final int EDIF_PROP_TYPE_BIT
public static final int EDIF_PROP_VALUE_MASK
public static final int EDIF_NULL_INST
public static final int EDIF_MACRO_LIB
public static Map<String,Integer> createStringMap(EDIFNetlist netlist)
netlist
- The netlist to include in the String map.public static void writeEDIFCell(EDIFCell c, com.esotericsoftware.kryo.io.Output os, Map<String,Integer> stringMap)
c
- The current cell to writeos
- The Kryo-based output streamstringMap
- Map of string to integer enumerations to use to reference stringsBinaryEDIFReader.readEDIFCell(Input, String[], EDIFLibrary, EDIFNetlist)
public static void writeBinaryEDIF(String fileName, EDIFNetlist netlist)
fileName
- Name of the file to writenetlist
- The current netlist to writeBinaryEDIFReader.readBinaryEDIF(String)
public static void writeBinaryEDIF(Path path, EDIFNetlist netlist)
path
- Path to the file to writenetlist
- The current netlist to writeBinaryEDIFReader.readBinaryEDIF(Path)
public static void writeBinaryEDIF(OutputStream outputStream, EDIFNetlist netlist)