public class IRSIM extends java.lang.Object implements Engine, IAnalyzer.GUI
Constructor and Description |
---|
IRSIM() |
Modifier and Type | Method and Description |
---|---|
double |
atof(java.lang.String text)
Method to parse the floating-point number in a string.
|
int |
atoi(java.lang.String s)
Method to parse the number in a string.
|
char |
canonicChar(char ch)
Returns canonical char for ignore-case comparison.
|
java.lang.String |
canonicString(java.lang.String s)
Returns canonical string for ignore-case comparison.
|
void |
closePanels() |
void |
createBus(java.lang.String busName,
IAnalyzer.GuiSignal... subsigs) |
java.lang.String |
formatDouble(double v)
Method to convert a double to a string.
|
double |
getMaxPanelTime() |
double |
getMinTimeRange()
Method to return the minimum amount of time to show in the waveform window.
|
java.util.Collection<IAnalyzer.GuiSignal> |
getSignals() |
Stimuli |
getStimuli()
Returns current Stimuli.
|
FileType |
getVectorsFileType()
Returns FileType of vectors file.
|
static boolean |
hasIRSIM()
Method to tell whether the IRSIM simulator is available.
|
void |
makeBusSignals(java.util.List<IAnalyzer.GuiSignal> sigList) |
IAnalyzer.GuiSignal |
makeSignal(java.lang.String name) |
void |
openPanel(java.util.Collection<IAnalyzer.GuiSignal> sigs) |
void |
refresh()
Method to reload the circuit data.
|
void |
removeAllStimuli()
Method to remove all stimuli from the simulation.
|
boolean |
removeSelectedStimuli()
Method to remove the selected stimuli.
|
void |
removeStimuliFromSignal()
Method to remove all stimuli from the currently-selected signal.
|
void |
repaint() |
void |
restoreStimuli(java.net.URL stimuliURL)
Method to restore the current stimuli information from URL.
|
static void |
runIRSIM(Cell cell,
VarContext context,
java.lang.String fileName,
IRSIM.IRSIMPreferences ip,
boolean doNow)
Method to run the IRSIM simulator on a given cell, context or file.
|
void |
saveStimuli(java.io.File stimuliFile)
Method to save the current stimuli information to disk.
|
void |
setClock(double period)
Method to set the currently-selected signal to have a clock with a given period.
|
void |
setMainXPositionCursor(double curTime) |
void |
setSignalHigh()
Method to set the currently-selected signal high at the current time.
|
void |
setSignalLow()
Method to set the currently-selected signal low at the current time.
|
void |
setSignalX()
Method to set the currently-selected signal undefined at the current time.
|
void |
showSignalInfo()
Method to show information about the currently-selected signal.
|
void |
update()
Method to update the simulation (because some stimuli have changed).
|
public static boolean hasIRSIM()
public static void runIRSIM(Cell cell, VarContext context, java.lang.String fileName, IRSIM.IRSIMPreferences ip, boolean doNow)
cell
- the Cell to simulate.context
- the context to the cell to simulate.fileName
- the name of the file with the netlist. If this is null, simulate the cell.
If this is not null, ignore the cell and simulate the file.public FileType getVectorsFileType()
getVectorsFileType
in interface Engine
public Stimuli getStimuli()
getStimuli
in interface Engine
public void refresh()
public void update()
public void setSignalHigh()
setSignalHigh
in interface Engine
public void setSignalLow()
setSignalLow
in interface Engine
public void setSignalX()
setSignalX
in interface Engine
public void setClock(double period)
public void showSignalInfo()
showSignalInfo
in interface Engine
public void removeStimuliFromSignal()
removeStimuliFromSignal
in interface Engine
public boolean removeSelectedStimuli()
removeSelectedStimuli
in interface Engine
public void removeAllStimuli()
removeAllStimuli
in interface Engine
public void saveStimuli(java.io.File stimuliFile) throws java.io.IOException
saveStimuli
in interface Engine
stimuliFile
- file to save stimuli informationjava.io.IOException
public void restoreStimuli(java.net.URL stimuliURL) throws java.io.IOException
restoreStimuli
in interface Engine
stimuliURL
- path to stimuli informationjava.io.IOException
public double getMinTimeRange()
getMinTimeRange
in interface Engine
public IAnalyzer.GuiSignal makeSignal(java.lang.String name)
makeSignal
in interface IAnalyzer.GUI
public void createBus(java.lang.String busName, IAnalyzer.GuiSignal... subsigs)
createBus
in interface IAnalyzer.GUI
public void makeBusSignals(java.util.List<IAnalyzer.GuiSignal> sigList)
makeBusSignals
in interface IAnalyzer.GUI
public java.util.Collection<IAnalyzer.GuiSignal> getSignals()
getSignals
in interface IAnalyzer.GUI
public void setMainXPositionCursor(double curTime)
setMainXPositionCursor
in interface IAnalyzer.GUI
public void openPanel(java.util.Collection<IAnalyzer.GuiSignal> sigs)
openPanel
in interface IAnalyzer.GUI
public void closePanels()
closePanels
in interface IAnalyzer.GUI
public double getMaxPanelTime()
getMaxPanelTime
in interface IAnalyzer.GUI
public void repaint()
repaint
in interface IAnalyzer.GUI
public char canonicChar(char ch)
canonicChar
in interface IAnalyzer.GUI
ch
- given char.public java.lang.String canonicString(java.lang.String s)
canonicString
in interface IAnalyzer.GUI
s
- given Stringpublic double atof(java.lang.String text)
atof
in interface IAnalyzer.GUI
text
- the string with a number in it.public int atoi(java.lang.String s)
There are many reasons to use this method instead of Integer.parseInt...
atoi
in interface IAnalyzer.GUI
s
- the string with a number in it.public java.lang.String formatDouble(double v)
formatDouble
in interface IAnalyzer.GUI
v
- the double value to format.