Timeiq to iqstream (timeiq_to_iqstream)
timeiq_to_iqstream is an asset in the ocpi.assets.misc_comps component library. Implementations include timeiq_to_iqstream HDL Worker (timeiq_to_iqstream.hdl). Tested platforms include e310, xsim, zed.
Design
The TimeIQ to IQstream component adapts the TimeStamped_IQ protocol to the iqstream protocol.
A block diagram representation of the implementation is given in Figure 155:
Figure 155: timeiq_to_iqstream block diagram.
Interface
<ComponentSpec>
<Port Name='in' Protocol='TimeStamped_IQ-prot'/>
<Port Name='out' Producer='true' Protocol='iqstream_protocol'/>
</ComponentSpec>
Properties
None.
Ports
Inputs:
inProtocol:
TimeStamped_IQ-protOptional:
False
Outputs:
outProtocol:
iqstream_protocolOptional:
False
Implementations
timeiq_to_iqstream(HDL)
Dependencies
The dependencies to other elements in OpenCPI are:
bsp_picoflexor/components/timeiq_to_iqstream.hdl/timeiq_to_iqstream.vhd
Limitations
Limitations of timeiq_to_iqstream are:
None.
Testing
The input file contains message metadata and uses three different opcodes from the TimeStamped_IQ protocol, and is formatted in the following manner:
8 byte time operation
8 byte interval operation
2880 byte samples operation
8 byte time operation
2880 byte samples operation
The data in the samples operation is a ramp from 0 to 2087.
The expected output waveform is the identical ramp with all other operations removed. For verification, the output file is compared to a golden input file.