com.sun.electric.tool.io.input
Class Simulate

java.lang.Object
  extended by com.sun.electric.tool.io.input.Input
      extended by com.sun.electric.tool.io.input.Simulate
Direct Known Subclasses:
ArchSimOut, EpicOutProcess, HSpiceOut, LTSpiceOut, PSpiceOut, RawSpiceOut, SmartSpiceOut, SpiceOut, VerilogOut

public class Simulate
extends Input

This class reads simulation output files and plots them.


Nested Class Summary
 
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
Simulate()
           
 
Method Summary
protected  java.lang.String getLineFromSimulator()
          Method to get the next line of text from the simulator.
static FileType getSpiceOutputType(java.lang.String format, Simulation.SpiceEngine engine)
           
static void plotArchSimResults()
          Method called from the pulldown menus to read ArchSim output and plot it.
static void plotSimulationResults(FileType type, Cell cell, java.net.URL fileURL, WaveformWindow ww)
          Method to read simulation output of a given type.
static void plotSpiceResults()
          Method called from the pulldown menus to read Spice output and plot it.
static void plotSpiceResultsThisCell()
          Method called from the pulldown menus to read Spice output for the current cell.
static void plotVerilogResults()
          Method called from the pulldown menus to read Verilog output and plot it.
static void plotVerilogResultsThisCell()
          Method called from the pulldown menus to read Verilog output for the current cell.
protected  Stimuli readSimulationOutput(java.net.URL fileURL, Cell cell)
          Method that is overridden by subclasses to actually do the work.
static Stimuli readSimulationResults(FileType type, Cell cell, java.net.URL fileURL)
           
 
Methods inherited from class com.sun.electric.tool.io.input.Input
changesQuiet, closeInput, eofDuring, getAKeyword, getInputPreferences, getLine, getLineFromBinary, getProgressNote, getRestOfLine, importALibrary, 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

Simulate

public Simulate()
Method Detail

plotSpiceResults

public static void plotSpiceResults()
Method called from the pulldown menus to read Spice output and plot it.


plotSpiceResultsThisCell

public static void plotSpiceResultsThisCell()
Method called from the pulldown menus to read Spice output for the current cell.


plotVerilogResults

public static void plotVerilogResults()
Method called from the pulldown menus to read Verilog output and plot it.


plotVerilogResultsThisCell

public static void plotVerilogResultsThisCell()
Method called from the pulldown menus to read Verilog output for the current cell.


plotArchSimResults

public static void plotArchSimResults()
Method called from the pulldown menus to read ArchSim output and plot it.


plotSimulationResults

public static void plotSimulationResults(FileType type,
                                         Cell cell,
                                         java.net.URL fileURL,
                                         WaveformWindow ww)
Method to read simulation output of a given type.


readSimulationResults

public static Stimuli readSimulationResults(FileType type,
                                            Cell cell,
                                            java.net.URL fileURL)

readSimulationOutput

protected Stimuli readSimulationOutput(java.net.URL fileURL,
                                       Cell cell)
                                throws java.io.IOException
Method that is overridden by subclasses to actually do the work.

Throws:
java.io.IOException

getSpiceOutputType

public static FileType getSpiceOutputType(java.lang.String format,
                                          Simulation.SpiceEngine engine)

getLineFromSimulator

protected java.lang.String getLineFromSimulator()
                                         throws java.io.IOException
Method to get the next line of text from the simulator. Returns null at end of file.

Throws:
java.io.IOException