public class NanosimDataAnalyzer extends NanosimBERT.NanosimTerminal implements BERT.DataAnalyzer
Modifier and Type | Method and Description |
---|---|
void |
clearCapturedData() |
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). |
BitVector |
getCapturedData()
Return a BitVector representing the captured data
|
double |
getMeasuredBER()
Get the Bit Error Rate measured the last time
the BERT was run.
|
java.lang.String |
getPinName()
Get the name of the pin this terminal connects to.
|
static void |
main(java.lang.String[] args)
Unit Test
|
void |
measureBER(BERT.DataGenerator expectedData)
Measure the Bit Error Rate using expected data from the
given data generator.
|
void |
printCapturedData() |
void |
setDelay(int periods,
double ns)
Set the delay before starting to acquire data.
|
void |
setPinName(java.lang.String pin)
Set the name of the pin this terminal connects to.
|
void |
setVoltageThreshold(double voltageLowThreshold,
double voltageHighThreshold)
Set the voltage thresholds for distinguishing a logic low
and logic high value.
|
int |
voltageToState(double voltage)
Convert the voltage to a valid state 0 or 1.
|
getParentModule, isEnabled, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParentModule, isEnabled, setEnabled
public void measureBER(BERT.DataGenerator expectedData)
BERT.DataAnalyzer
measureBER
in interface BERT.DataAnalyzer
public void setDelay(int periods, double ns)
BERT.DataAnalyzer
setDelay
in interface BERT.DataAnalyzer
periods
- the number of periodsns
- the number of nanosecondspublic void setPinName(java.lang.String pin)
BERT.DataAnalyzer
setPinName
in interface BERT.DataAnalyzer
pin
- the pin namepublic java.lang.String getPinName()
BERT.DataAnalyzer
getPinName
in interface BERT.DataAnalyzer
public void setVoltageThreshold(double voltageLowThreshold, double voltageHighThreshold)
BERT.DataAnalyzer
setVoltageThreshold
in interface BERT.DataAnalyzer
voltageLowThreshold
- voltages below this value will be considered logic lowvoltageHighThreshold
- voltages above this value will be considered logic highpublic double getMeasuredBER()
BERT.DataAnalyzer
getMeasuredBER
in interface BERT.DataAnalyzer
public int voltageToState(double voltage)
voltage
- the voltage to convertpublic 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 BitVector getCapturedData()
BERT.DataAnalyzer
getCapturedData
in interface BERT.DataAnalyzer
public void clearCapturedData()
public void printCapturedData()
public static void main(java.lang.String[] args)