N310 qADC Class Worker (n310_qadc_csts)

OpenCPI qDAC Class Worker for the n310 platform.

Design

Interface

<ComponentSpec>
  <Property name='ADC_WIDTH_BITS'
            type='ushort'
            parameter='true'
            default='16'
            description='Number of bits in each of the real and imaginary values received
            from the ADC device.'/>
  <Property name='ADC_INPUT_IS_LSB_OF_OUT_PORT'
            type='bool'
            parameter='true'
            default='false'
            description='Indicates whether ADC data is justified to most
            significant or least significant ADC_WIDTH_BITS of the out port.
            When value is false, sign extension occurs.'/>

  <Property name='clr_overrun_sticky_error'
            type='bool'
            writable='true'
            default='false'
            description='Writing true clears overrun_sticky_error.'/>
  <Property name='overrun_sticky_error'
            type='bool'
            volatile='true'
            description='Sticky bit indication of samples overrun.'/>

  <Property name='samp_count_before_first_samp_drop'
            type='ulong'
            volatile='true'
            description='Number of samples before the first dropped sample.'/>

  <Property name='num_dropped_samps'
            type='ulong'
            volatile='true'
            description='Number of samples dropped.'/>

  <Property name='suppress_discontinuity_opcode'
          type='bool'
          writable='true'
          default='false'
          description='Writing true suppresses the worker from sending sync opcodes'/>
</ComponentSpec>

Properties

  • ADC_WIDTH_BITS: Number of bits in each of the real and imaginary values received from the ADC device.

    • Type: ushort

    • Access:

      • Parameter: True

      • Writable: False

      • Initial: False

      • Volatile: False

    • Default value: 16

  • ADC_INPUT_IS_LSB_OF_OUT_PORT: Indicates whether ADC data is justified to most significant or least significant ADC_WIDTH_BITS of the out port. When value is false, sign extension occurs.

    • Type: bool

    • Access:

      • Parameter: True

      • Writable: False

      • Initial: False

      • Volatile: False

    • Default value: false

  • clr_overrun_sticky_error: Writing true clears overrun_sticky_error.

    • Type: bool

    • Access:

      • Parameter: False

      • Writable: True

      • Initial: False

      • Volatile: False

    • Default value: false

  • overrun_sticky_error: Sticky bit indication of samples overrun.

    • Type: bool

    • Access:

      • Parameter: False

      • Writable: False

      • Initial: False

      • Volatile: True

    • Default value: None

  • samp_count_before_first_samp_drop: Number of samples before the first dropped sample.

    • Type: ulong

    • Access:

      • Parameter: False

      • Writable: False

      • Initial: False

      • Volatile: True

    • Default value: None

  • num_dropped_samps: Number of samples dropped.

    • Type: ulong

    • Access:

      • Parameter: False

      • Writable: False

      • Initial: False

      • Volatile: True

    • Default value: None

  • suppress_discontinuity_opcode: Writing true suppresses the worker from sending sync opcodes.

    • Type: bool

    • Access:

      • Parameter: False

      • Writable: True

      • Initial: False

      • Volatile: False

    • Default value: false

Ports

Inputs:

None.

Outputs:

  • out: Output Data Port.

    • Protocol: complex_short_timed_sample-prot

    • Optional: False

Implementations

Dependencies

The dependencies to other elements in OpenCPI are:

  • ocpi.platforms.adc_csts primitive

  • ocpi.core.util, ocpi.core.bsv, ocpi.core.timed_sample_prot primitives

There is also a dependency on:

  • ieee.std_logic_1164

  • ieee.numeric_std

Limitations

Limitations of n310_qadc_csts are:

  • NONE