N310 qDAC Class Worker (n310_qdac_csts)

OpenCPI qDAC Class Worker for the n310 platform.

Design

Interface

<ComponentSpec>
  <Property Name="DAC_WIDTH_BITS"
            Type="UChar"
            Parameter="True"
            Default="16"
            Description="Number of bits in each of the real and imaginary values delivered to the DAC device"/>
  <Property Name="DAC_OUTPUT_IS_LSB_OF_IN_PORT" 
            Type="Bool" 
            Parameter="True"
            Default="false"
            Description="Indicates whether DAC data is extracted from the most
                         significant or least significant DAC_WIDTH_BITS of the in port."/>
  <Property Name="underrun_sticky_error"
            Type="Bool"
            Volatile="true"
            Description="Sticky bit indication of samples underrun."/>
  <Property Name="clr_underrun_sticky_error" 
            Type="Bool"
            Writable="true"
            Description="Writing true clears underrun_sticky_error."/>
  <Property name='samp_count_before_first_underrun'
            type='ulong'
            volatile='true'
            description='Number of samples before the first sample underrun.'/>
  <Property name='num_underruns'
            type='ulong'
            volatile='true'
            description='Number of sample underruns.'/>
</ComponentSpec>

Properties

  • DAC_WIDTH_BITS: Number of bits in each of the real and imaginary values delivered to the DAC device.

    • Type: uchar

    • Access:

      • Parameter: True

      • Writable: False

      • Initial: False

      • Volatile: False

    • Default value: 16

  • DAC_OUTPUT_IS_LSB_OF_IN_PORT: Indicates whether DAC data is extracted from the most significant or least significant DAC_WIDTH_BITS of the in port.

    • Type: bool

    • Access:

      • Parameter: True

      • Writable: False

      • Initial: False

      • Volatile: False

    • Default value: false

  • underrun_sticky_error: Sticky bit indication of samples underrun.

    • Type: bool

    • Access:

      • Parameter: False

      • Writable: False

      • Initial: False

      • Volatile: True

    • Default value: None

  • clr_underrun_sticky_error: Writing true clears underrun_sticky_error.

    • Type: bool

    • Access:

      • Parameter: False

      • Writable: True

      • Initial: False

      • Volatile: False

    • Default value: None

  • samp_count_before_first_underrun: Number of samples before the first sample underrun.

    • Type: ulong

    • Access:

      • Parameter: False

      • Writable: False

      • Initial: False

      • Volatile: True

    • Default value: None

  • num_underruns: Number of sample underruns.

    • Type: ulong

    • Access:

      • Parameter: False

      • Writable: False

      • Initial: False

      • Volatile: True

    • Default value: None

Ports

Inputs:

  • in: Input Data Port.

    • Protocol: complex_short_timed_sample-prot

    • Optional: False

Outputs:

  • on_off: Tx Event Port.

    • Protocol: tx_event-prot

    • Optional: True

Implementations

Dependencies

The dependencies to other elements in OpenCPI are:

  • ocpi.platforms.dac_csts primitive

  • ocpi.core.timed_sample_prot primitive

There is also a dependency on:

  • ieee.std_logic_1164

  • ieee.numeric_std

Limitations

Limitations of n310_qdac_csts are:

  • NONE