Real (real_xs_s)
Returns the real part of complex numbers.
Design
The mathematical representation of the implementation is given in (96).
(96)\[y[n] = \operatorname{Re}(x[n])\]
In (96):
\(x[n]\) is the input values.
\(y[n]\) is the output values.
Interface
<?xml version="1.0"?>
<componentspec>
<port name="input" producer="false" protocol="complex_short_timed_sample-prot"/>
<port name="output" producer="true" protocol="short_timed_sample-prot"/>
</componentspec>
Ports
Inputs:
inputProtocol:
complex_short_timed_sample-protOptional:
False
Outputs:
outputProtocol:
short_timed_sample-protOptional:
False
Opcode Handling
The real value is only found for values in a sample opcode message. All other opcodes messages received are passed through this component without any effect.
Properties
None.
Implementations
Example Application
<?xml version="1.0"?>
<application done="file_write">
<instance component="ocpi.core.file_read" connect="real_xs_s">
<property name="filename" value="input.bin"/>
</instance>
<instance component="ocpi.comp.sdr.math.real_xs_s" connect="file_write"/>
<instance component="ocpi.core.file_write">
<property name="filename" value="output.bin"/>
</instance>
</application>
Dependencies
The dependencies to other elements in OpenCPI are:
There is also a dependency on:
ieee.std_logic_1164
ieee.numeric_std
Limitations
Limitations of real_xs_s are:
None.
Testing
Tested platforms: None
Component testing not completed.