com.sun.electric.tool.io.input.verilog
Class VerilogReader

java.lang.Object
  extended by com.sun.electric.tool.io.input.Input
      extended by com.sun.electric.tool.io.input.verilog.VerilogReader

public class VerilogReader
extends Input

User: gg151869 Date: Oct 23, 2006


Nested Class Summary
static class VerilogReader.VerilogPreferences
           
 
Nested classes/interfaces inherited from class com.sun.electric.tool.io.input.Input
Input.InputPreferences
 
Field Summary
 
Fields inherited from class com.sun.electric.tool.io.input.Input
byteCount, dataInputStream, ep, errorLogger, fileLength, filePath, inputStream, lineReader, READ_BUFFER_SIZE
 
Constructor Summary
VerilogReader(VerilogReader.VerilogPreferences ap)
          Creates a new instance of VerilogReader.
 
Method Summary
 Cell createCellsOnly(VerilogData verilogData, Job job)
           
protected  Library importALibrary(Library lib, Technology tech, java.util.Map<Library,Cell> currentCells)
          Method to import a Verilog file from disk.
 VerilogData parseVerilog(java.lang.String[] lines, java.lang.String verilogName)
           
 VerilogData parseVerilog(java.lang.String file, boolean simplifyWires)
          Function to parse Verilog file without creating Electric objects.
 Cell readVerilog(java.lang.String testName, java.lang.String file, boolean createCells, boolean fullOyster, Job job)
           
 VerilogData readVerilogOnly(java.lang.String file, boolean fullOyster, Job job)
           
 
Methods inherited from class com.sun.electric.tool.io.input.Input
changesQuiet, closeInput, eofDuring, getAKeyword, getInputPreferences, getLine, getLineFromBinary, getProgressNote, getRestOfLine, importLibrary, initKeywordParsing, isBreakCharacter, isChangeQuiet, isNewLibraryCreated, openBinaryInput, openStringsInput, openTextInput, preprocessLine, readWholeLine, setProgressNote, setProgressValue, startProgressDialog, stopProgressDialog, updateProgressDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerilogReader

public VerilogReader(VerilogReader.VerilogPreferences ap)
Creates a new instance of VerilogReader.

Method Detail

importALibrary

protected Library importALibrary(Library lib,
                                 Technology tech,
                                 java.util.Map<Library,Cell> currentCells)
Method to import a Verilog file from disk.

Overrides:
importALibrary in class Input
Parameters:
lib - the library to ready
currentCells - this map will be filled with currentCells in Libraries found in library file
Returns:
the created library (null on error).

parseVerilog

public VerilogData parseVerilog(java.lang.String[] lines,
                                java.lang.String verilogName)

parseVerilog

public VerilogData parseVerilog(java.lang.String file,
                                boolean simplifyWires)
Function to parse Verilog file without creating Electric objects.

Parameters:
file -
simplifyWires -
Returns:
VerilogData object

createCellsOnly

public Cell createCellsOnly(VerilogData verilogData,
                            Job job)

readVerilogOnly

public VerilogData readVerilogOnly(java.lang.String file,
                                   boolean fullOyster,
                                   Job job)

readVerilog

public Cell readVerilog(java.lang.String testName,
                        java.lang.String file,
                        boolean createCells,
                        boolean fullOyster,
                        Job job)