|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbyucc.jhdl.parsers.edif.sablecc.EdifParser
This class provides the basic interface to parsing EDIF files into JHDL.
| Field Summary | |
static JHDLOutput |
jout
JHDLOutput for EdifParser |
static java.lang.String |
MESSAGE
A message prepended to output. |
static java.lang.String |
target
The default target. |
| Constructor Summary | |
EdifParser()
|
|
| Method Summary | |
static void |
addToMergePortList(java.lang.String nam)
Adds nam to a list of ports that the JHDL Translator
will attempt to merge into a single bus port. |
static void |
clearMergePortList()
Clears the list of ports that the JHDL Translator will attempt to merge into a single bus port. |
static void |
main(java.lang.String[] args)
Method used to parse an edif file according to the given parameters and build a wrapper file. |
static Cell |
parse(Cell parent,
java.lang.String filename,
EdifPortInterface[] portWires,
java.lang.String targetStr)
Method to return a JHDL Cell as the result of parsing the given edif file |
static Cell |
parse(Cell parent,
java.lang.String filename,
java.lang.String subcellname,
EdifPortInterface[] portWires,
java.lang.String targetStr)
Method to return a JHDL Cell as the result of parsing the given edif file |
static Cell |
parse(Cell parent,
java.lang.String filename,
java.lang.String subcellname,
Wire[] portWires,
java.lang.String targetStr)
Method to return a JHDL Cell as the result of parsing the given edif file |
static Cell |
parse(Cell parent,
java.lang.String filename,
Wire[] portWires,
java.lang.String targetStr)
Method to return a JHDL Cell as the result of parsing the given edif file |
static Cell |
parse(java.lang.String filename,
java.lang.String targetStr)
Method to support the automatic parsing of a file to be used by DRC, etc. |
static Cell |
parse(Tbone tbone,
java.lang.String filename)
Method to support the automatic parsing of a file to be a child of Tbone |
static void |
parse(Tbone tbone,
java.lang.String filename,
java.lang.String targetStr)
Method to support the automatic parsing of a file to be a child of Tbone |
static void |
parseAndBuildWrapper(java.lang.String filename,
java.lang.String targetStr)
Method that will generate JHDL source code to act as a wrapper for a given edif file. |
static void |
parseAndBuildWrapper(java.lang.String filename,
java.lang.String subcellname,
java.lang.String targetStr)
Method that will generate JHDL source code to act as a wrapper for a given edif file. |
static void |
print(java.lang.String filename)
Method to parse the given file and generate corresponding JHDL source to the "EdifParser" JHDLOutput. |
static void |
removeFromMergePortList(java.lang.String nam)
Removes nam from a list of ports that the JHDL
Translator will attempt to merge into a single bus port. |
static void |
setCaseSensitive(boolean b)
Method to determine the type of input stream to send into the parser, if b is true, the input stream will maintain the case, if false, the input stream will be all lower case |
static EdifToJHDLTranslator |
translate(java.lang.String filename)
Method to return a EdifToJHDLTranslator based on the given edif file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static JHDLOutput jout
public static java.lang.String target
public static final java.lang.String MESSAGE
| Constructor Detail |
public EdifParser()
| Method Detail |
public static void addToMergePortList(java.lang.String nam)
nam to a list of ports that the JHDL Translator
will attempt to merge into a single bus port.
nam - the name of the port to mergepublic static void clearMergePortList()
public static void removeFromMergePortList(java.lang.String nam)
nam from a list of ports that the JHDL
Translator will attempt to merge into a single bus port.
nam - the name of the port to remove from merge listpublic static void setCaseSensitive(boolean b)
b - Case sensitivity enabled if true.
public static void parseAndBuildWrapper(java.lang.String filename,
java.lang.String targetStr)
filename - The name of the file containing the ediftargetStr - The name of the target technology
public static void parseAndBuildWrapper(java.lang.String filename,
java.lang.String subcellname,
java.lang.String targetStr)
filename - The name of the file containing the edifsubcellname - The name a subcell of the top-level hierarchy
of the edif file, for which the wrapper will be builttargetStr - The name of the target technology
public static Cell parse(Cell parent,
java.lang.String filename,
EdifPortInterface[] portWires,
java.lang.String targetStr)
parent - This JHDL Cell will be the parent of the Cell
generated by the methodfilename - Name of the file for the edif to be parsedportWires - Interface of the cell to be generatedtargetStr - Name of the technology to be targetted
public static Cell parse(Cell parent,
java.lang.String filename,
java.lang.String subcellname,
EdifPortInterface[] portWires,
java.lang.String targetStr)
parent - This JHDL Cell will be the parent of the Cell
generated by the methodfilename - Name of the file for the edif to be parsedsubcellname - Name of subcell of the outermost cell in
filename. The name of the subcell to be returned by this methodportWires - Interface of the cell to be generatedtargetStr - Name of the technology to be targetted
public static Cell parse(Cell parent,
java.lang.String filename,
Wire[] portWires,
java.lang.String targetStr)
parent - This JHDL Cell will be the parent of the Cell
generated by the methodfilename - Name of the file for the edif to be parsedportWires - Array of Wires to be attached to the ports of
the cell generatedtargetStr - Name of the technology to be targetted
public static Cell parse(Cell parent,
java.lang.String filename,
java.lang.String subcellname,
Wire[] portWires,
java.lang.String targetStr)
parent - This JHDL Cell will be the parent of the Cell
generated by the methodfilename - Name of the file for the edif to be parsedsubcellname - Name of subcell of the outermost cell in
filename. The name of the subcell to be returned by this methodportWires - Array of Wires to be attached to the ports of
the cell generatedtargetStr - Name of the technology to be targettedpublic static void print(java.lang.String filename)
filename - Name of the edif file to be parsed
public static Cell parse(java.lang.String filename,
java.lang.String targetStr)
filename - The file to parse.targetStr - The target technology ("XC4000" or "Virtex")
public static void parse(Tbone tbone,
java.lang.String filename,
java.lang.String targetStr)
tbone - An instance of Tbone to be the parent of the parsed cellfilename - The file to parse.targetStr - The target technology ("XC4000" or "Virtex")
public static Cell parse(Tbone tbone,
java.lang.String filename)
tbone - An instance of Tbone to be the parent of the parsed cellfilename - The file to parse.public static EdifToJHDLTranslator translate(java.lang.String filename)
filename - Name of the edif filepublic static void main(java.lang.String[] args)
args - Commandline arguments
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||