Analog Devices FMCOMMS Receiver

Receive data from Analog Devices FMCOMMS board

Library

Communications System Toolbox Support Package for Xilinx(R) FPGA-Based Radio

Description

The Analog Devices FMCOMMS Receiver block supports communication between Simulink® and a Xilinx® FPGA-based radio device, allowing simulation and development for various software-defined radio applications. The Analog Devices FMCOMMS Receiver block enables communication with a Xilinx FPGA board on the same Ethernet subnetwork.

The Analog Devices FMCOMMS Receiver block is a signal sink that receives data from a Xilinx FPGA board and outputs a column vector signal of fixed length. The first call to this block can contain transient values that result in packets containing undefined data.

The block diagram shows how Simulink, the Analog Devices FMCOMMS Receiver block, and Xilinx FPGA hardware interface.

When the Analog Devices FMCOMMS Receiver block is called during simulation, the host might not have received any data from the Xilinx FPGA hardware. The data length port, DataLength, indicates when valid data is present. When the data length port contains a zero value, there is no data. You can use the data length with an enabled subsystem to qualify the execution of part of the model.

If your computer is not connected to any Xilinx FPGA hardware, you can still use this block to develop a model that propagates sample time and data type information. To propagate this information, update your diagram.

Data Path

The following diagram illustrates the data path for radio signal reception (when the decimation filter, IF tuner, and DC blocking filter are all in use in the block):

Supported Data Types

PortSupported Data Types

Data

The output port supports the following complex data types only:

  • Double-precision floating point

  • Single-precision floating point

  • 16-bit signed integers

When you select a double or single data type, the complex values are scaled to the range of [-1,1]. When you select int16, the complex values are the raw 16-bit I and Q samples from the board.

Dialog Box and Parameters

Radio IP address

Specify the logical network location of the radio as a string. The default is 192.168.2.2 for ADI radios.

    Note:   If you are attaching two radios to the same host, note that each radio must be located at a different IP address. In the block mask, set the IP address for each radio to a unique value, as shown here for a pair of Analog Devices FMCOMMS Receiver and Analog Devices FMCOMMS Transmitter blocks (values shown are default for ADI FMCOMMS radios):

See also Check Radio Connection.

Synchronize

Configure the SDR board with chosen parameter values and read back the actual hardware values.

Center frequency (Hz)

Choose either Dialog or Input port as the source of the center frequency value. If you choose Dialog, specify the desired center frequency as a double-precision, nonnegative, finite scalar. The default is 2.4 GHz. The valid range of values for this parameter is 400 MHz to 4 GHz.

Intermediate frequency (Hz)

The intermediate frequency (IF) tuner allows you to account for the error in tuning between target center frequency and actual center frequency and avoid unwanted interference by shifting it out of the pass band of interest. Choose either Dialog or Input port as the source of the center frequency value. If you choose Dialog, specify the desired center frequency as a double-precision, finite scalar. The default value is 0 Hz. The valid range of values for this parameter is to , where is the analog-digital converter (ADC) rate.

See also Set Intermediate Frequency Tuning.

Gain (dB)

Choose either Dialog or Input port as the source of the overall gain value. If you choose Dialog, specify the gain as a double precision, nonnegative scalar. The default value and the valid range of this parameter are dependent upon the RF daughterboard. This parameter is tunable.

ADC sampling rate (Hz)

Specify the desired sampling rate as a double precision, nonnegative scalar. The default value is 98.304 MHz. The valid range of this parameter for this board is 39–100 MHz.

    Note:   The 14-bit ADC value is returned as a sign-extended 16-bit value in the hardware.

Decimation factor

Specify the desired decimation factor as a double precision, nonnegative scalar. The default is 512. The baseband rate is ADC sampling rate/Decimation factor.

See also Apply Decimation Factors.

Enable lost samples output port

Select this parameter to instruct the Analog Devices FMCOMMS Receiver block to output the number of lost samples during host-hardware data transfers.

  • Zero indicates no data loss.

  • A positive number indicates that overruns or underruns occurred.

The default value is not selected, which means that the port is not enabled and no information about dropped packets is displayed.

This port is a useful diagnostic tool to determine real-time operation of the Analog Devices FMCOMMS Receiver block. If your model is not running in real time, you can increase the decimation factor to approach or achieve real-time performance.

See also Detect Underruns and Overruns.

Output data type

Specify the complex output data type as double, single, or int16. When you select double or single for the output data type, the complex values are scaled to the range of [-1,1]. When you select int16, the complex values are the raw 16–bit I and Q samples from the board. The default is int16.

This block supports the following complex output data types:

  • Double-precision floating point

  • Single-precision floating point

  • 16-bit signed integers

Sample time

Specify the sample time for a single radio sample. For the Simulink sample time to correspond to real time, use the following formula: Sample time = 1/(ADC sampling rate/Decimation factor). The default setting for this parameter is 1.

See also Set Sample Times.

Frame length

Specify a positive, scalar integer for the frame length of the output signal. Values less than 366 cany yield very poor performance. The default value is 3660.

See also Set Frame Length.

Enable burst mode

When selected, this parameter instructs the Analog Devices FMCOMMS Receiver block to produce a set of contiguous frames without an overrun or underrun to the radio. This setting can help you simulate models that cannot run in real time. When this parameter is selected, specify the desired amount of contiguous data using the Number of frames in burst parameter. By default, this option is selected.

See also Burst-Mode Buffering

Number of frames in burst

Specify the number of frames in contiguous burst

This parameter is valid and visible only when the Enable burst mode parameter is selected. The default number of frames in a burst is 20.

Bypass DC blocking filter

Bypass the DC bias removal filter. When you select this parameter, the DC blocking filter to automatically reduce a DC bias is bypassed. Enable this when the filter is also blocking some signal and you need to use a different DC bias compensation scheme. By default, this option is not selected, which means to include the automatic DC blocking filter.

See also Apply DC Blocking.

Bypass user logic

When you select this option, the FPGA data path bypasses the algorithm generated and programmed during the SDR Targeting workflow. This bypass helps with debugging system bringup. By default, this option is not selected.

Info

Communicate with the attached radio to obtain basic hardware information. The information appears in the Hardware Information pane.

Desired vs. Actual Device Block Parameter Values

When you set block values for center frequency, intermediate frequency, ADC, gain, and decimation, the block initially performs some rudimentary checks that the values are scalar and real. If your values pass those checks, you can still provide values that are out of range for the FPGA-based radio. In that case, the hardware makes a best effort to set the requested value, and will report the actual value in the Device value column of the block mask.

Was this topic helpful?