bag3_testbenches.measurement.tran.eye

Module Contents

Classes

EyeResults

EyeAnalysis

Functions

bin_search(→ float)

class bag3_testbenches.measurement.tran.eye.EyeResults[source]
width: float[source]
height: float[source]
pos_w0: int[source]
pos_w1: int[source]
pos_h: int[source]
val_mid: float[source]
eye_vals: numpy.ndarray[source]
time_eye: numpy.ndarray[source]
plot(ax: Optional[matplotlib.axes.Axes] = None) None[source]
savefig(fname: str) None[source]
class bag3_testbenches.measurement.tran.eye.EyeAnalysis(t_per: float, t_delay: float, strobe: int = 1000)[source]
_compute_width_height(eye_vals: numpy.ndarray, val_mid: float) EyeResults[source]
analyze_eye(time: numpy.ndarray, sig: numpy.ndarray) EyeResults[source]
Parameters:
  • time (np.ndarray) – Time axis

  • sig (np.ndarray) – Signal axis

Returns:

ans – the EyeResults object which has attributes ‘width’ and ‘height’, and can be plotted using plot()

Return type:

EyeResults