My Project  v0.0.16
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
PathConfigurator Class Reference

Public Member Functions

Private Attributes

Static Private Attributes

Detailed Description

Helper class to deal with datapath configuration

From the user perspective, each channel datapath is configurable in the following modes
  - 'latency'
  - 'capture'
  - 'playonce'
  - 'playloop'
  - 'pattern'
  - 'zeroes'

On the other hand datapath for each channel is configured in terms of
  - buffer mode
  - data source
  - bx that triggers data-valid  high
  - number of valid words

  PathConfigurator translates the mode into the  buffer mode + data source and applies them to the block

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  mode,
  trig_bx,
  max_words 
)
Args:
    mode(string): mode to be applied to the datapath
    trig_bx(int): bunch crossing before the first frame with datavalid=1
    max_words(int):

Member Function Documentation

◆ __call__()

def __call__ (   self,
  datapath 
)

◆ __str__()

def __str__ (   self)

◆ configure()

def configure (   self,
  datapath 
)

◆ pathmode()

def pathmode (   self)

◆ withBXRange()

def withBXRange (   cls,
  mode,
  bxrange,
  generics 
)
Construct a PathConfigurator object using bunch crossign range as input.

Args:

Member Data Documentation

◆ _max_words

_max_words
private

◆ _mode

_mode
private

◆ _modes

dictionary _modes
staticprivate
Initial value:
= {
'latency': (_BufMode.Latency, _DataSrc.Input ),
'capture': (_BufMode.Capture, _DataSrc.Input ),
'playonce': (_BufMode.PlayOnce, _DataSrc.Buffer ),
'playloop': (_BufMode.PlayLoop, _DataSrc.Buffer ),
'pattern': (_BufMode.PlayOnce, _DataSrc.Pattern ),
'zeroes': (_BufMode.PlayOnce, _DataSrc.Zeroes ),
}

◆ _trig_bx

_trig_bx
private

The documentation for this class was generated from the following file: