public class NanosimDataGen extends NanosimBERT.NanosimTerminal implements BERT.DataGenerator
Modifier and Type | Method and Description |
---|---|
void |
addPinName(java.lang.String pinName)
Add the name of a pin this terminal connects to.
|
void |
addPinNameComplement(java.lang.String pinName)
Many terminal outputs both True and Complement.
|
void |
clearPins()
Clear all pin assignments (both true and complement).
|
void |
enableComplement(boolean enable)
Enable or disable complement signal
|
java.util.Set |
generateEvents(double startTimeNS,
double stopTimeNS)
Return a Set of
NanosimBERT.Event objects
that characterize the behavior of the Module
when the BERT runs (BERT starts at time 0). |
boolean |
getBit(int bitIndex)
Get the bit at the specified location in the pattern, where zero
is the first bit in the pattern.
|
java.util.Iterator |
getPinNames()
Get the names of pins connected to the true output
of this terminal (String iterator).
|
java.util.Iterator |
getPinNamesComplement()
Get the names of pins connected to the complement output
of this terminal (String iterator).
|
protected BitVector |
getRepeatPattern() |
java.lang.String |
getRepeatState() |
protected BitVector |
getStartPattern() |
java.lang.String |
getStartState() |
static void |
main(java.lang.String[] args)
Unit Test
|
void |
setClock()
Configure this terminal to generate a clock.
|
void |
setDDRClock()
Configure this terminal to generate a DDR clock.
|
void |
setDelay(double nanoseconds)
Set the delay before the pattern starts.
|
void |
setPattern(BitVector start,
BitVector repeat)
Set the pattern that this generator will generate.
|
void |
setPattern(java.lang.String start,
java.lang.String repeat)
Set the pattern that this generator will generate.
|
void |
setSignalMode(BERT.SignalMode mode)
Set the way data is generated.
|
void |
setVoltage(double voltageLow,
double voltageHigh)
Set the voltage driven by Data Generator.
|
getParentModule, isEnabled, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParentModule, isEnabled, setEnabled
public void setPattern(BitVector start, BitVector repeat)
BERT.DataGenerator
setPattern
in interface BERT.DataGenerator
start
- the start of the patternrepeat
- the pattern that will repeat after the start patternpublic void setPattern(java.lang.String start, java.lang.String repeat)
BERT.DataGenerator
setPattern
in interface BERT.DataGenerator
start
- the start of the patternrepeat
- the pattern that will repeat after the start patternpublic void setDelay(double nanoseconds)
BERT.DataGenerator
setDelay
in interface BERT.DataGenerator
nanoseconds
- the time delay, in nanosecondspublic void setSignalMode(BERT.SignalMode mode)
BERT.DataGenerator
setSignalMode
in interface BERT.DataGenerator
mode
- which mode to use.public void setClock()
BERT.DataGenerator
setClock
in interface BERT.DataGenerator
public void setDDRClock()
BERT.DataGenerator
setDDRClock
in interface BERT.DataGenerator
public void addPinName(java.lang.String pinName)
BERT.DataGenerator
addPinName
in interface BERT.DataGenerator
pinName
- the pin namepublic void addPinNameComplement(java.lang.String pinName)
BERT.DataGenerator
addPinNameComplement
in interface BERT.DataGenerator
pinName
- the pin namepublic java.util.Iterator getPinNames()
BERT.DataGenerator
getPinNames
in interface BERT.DataGenerator
public java.util.Iterator getPinNamesComplement()
BERT.DataGenerator
getPinNamesComplement
in interface BERT.DataGenerator
public void clearPins()
BERT.DataGenerator
clearPins
in interface BERT.DataGenerator
public void setVoltage(double voltageLow, double voltageHigh)
BERT.DataGenerator
setVoltage
in interface BERT.DataGenerator
voltageLow
- the voltage for a logic low valuevoltageHigh
- the voltage for a logic high valuepublic void enableComplement(boolean enable)
BERT.DataGenerator
enableComplement
in interface BERT.DataGenerator
enable
- true to enable, false to disableprotected BitVector getStartPattern()
protected BitVector getRepeatPattern()
public java.lang.String getStartState()
public java.lang.String getRepeatState()
public java.util.Set generateEvents(double startTimeNS, double stopTimeNS)
NanosimBERT.Event
objects
that characterize the behavior of the Module
when the BERT runs (BERT starts at time 0).generateEvents
in class NanosimBERT.NanosimTerminal
stopTimeNS
- the time to the BERT will stop,
with the BERT start time being time zero.public boolean getBit(int bitIndex)
bitIndex
- location in the patternpublic static void main(java.lang.String[] args)