PLUTO

Overview

The purpose of this testbench is to validate the functionality of the projects/pluto reference design.

The entire HDL documentation can be found here PLUTO HDL project.

Block design

The testbench block design includes part of the PLUTO HDL reference design, along with VIPs used for clocking, reset, PS and DDR simulations.

Block diagram

The data path and clock domains are depicted in the below diagram:

pluto/Testbench block diagram

Configuration parameters and modes

There are no project parameters that can be configured in the testbench configuration files.

Configuration files

The following configuration file is available:

Configuration mode

Parameters

—

cfg1

—

Tests

The following test program file is available:

Test program

Usage

test_program

Tests the pluto project capabilities.

Available configurations & tests combinations

The test program is compatible with the above mentioned configuration.

CPU/Memory interconnect addresses

Below are the CPU/Memory interconnect addresses used in this project:

Instance

Address

axi_intc

0x4120_0000

axi_ad9361

0x7902_0000

axi_ad9361_adc_dma

0x7C40_0000

axi_ad9361_dac_dma

0x7C42_0000

axi_tdd_0

0x7C44_0000

Interrupts

Below are the Programmable Logic interrupts used in this project:

Instance name

HDL

axi_ad9361_adc_dma

13

axi_ad9361_dac_dma

12

Test stimulus

The test program is structured into several tests as follows:

Environment bringup

The steps of the environment bringup are:

  • Create the environment

  • Start the environment

  • Start the clocks

  • Assert the resets

Sanity test

This test is used to check the ADC version and DAC version.

PN test

The PN test verifies the PN data.

The steps of this test are:

  • Link setup
    • Configure RX and TX interfaces

    • Pull RX and TX out of reset

  • Enable test data for TX1 and RX1

  • Sync DAC channels

  • Sync ADC channels

  • Allow initial OOS to propagate

  • Clear PN OOS and PN ERR

  • Check PN OOS and PN ERR flags

DDS test

The DDS test verifies the DDS path.

The steps of this test are:

  • Link setup

  • Select DDS as source

  • Enable normal data path for RX1

  • Configure tone amplitude and frequency

  • Enable RX channels, enable sign extension

  • Sync DAC channels

  • Sync ADC channels

  • Link down
    • Put RX and TX in reset

DMA test

The DMA test verifies the DMA path.

The steps of this test are:

  • Write data to DDR

  • Configure the TX DMA

  • Select DMA as source

  • Enable normal data path for RX1

  • Enable RX channel, enable sign extension

  • Sync DAC channels

  • Sync ADC channels

  • Link setup

  • Configure RX DMA

  • Check captured data from DDR

  • Check captured data against incremental pattern based on first sample

TDD test

The TDD test verifies the TDD procedure.

Note

This test is used only for the 2R2T mode.

The steps of this test are:

  • Write data to DDR

  • Link setup

  • Configure the TX and RX channels

  • Select DMA as source

  • Enable normal data path for RX

  • Enable RX channel, enable sign extension

  • Sync DAC channels

  • Sync ADC channels

  • Configure the TX and RX DMA

  • Configure the TDD for the phaser synchronization
    • Configure the TDD for the application

    • Submit the DMA transfer and wait for the TDD sync

    • Send the external sync signal

    • The first RX transfer is submitted between the first two TDD pulses

  • Check cyclic data
    • After each RX DMA end of transfer, check the captured data and issue a new transfer

  • Link down

Stop the environment

  • Stop the clocks

Building the testbench

The testbench is built upon ADI’s generic HDL reference design framework. ADI does not distribute compiled files of these projects so they must be built from the sources available here and here, with the specified hierarchy described Set up the Testbenches repository. To get the source you must clone the HDL repository, and then build the project as follows:.

Linux/Cygwin/WSL

Example 1

Build all the possible combinations of tests and configurations, using only the command line.

user@analog:~$
cd testbenches/project/pluto
user@analog:~/testbenches/project/pluto$
make

Example 2

Build all the possible combinations of tests and configurations, using the Vivado GUI. This command will launch Vivado, will run the simulation and display the waveforms.

user@analog:~$
cd testbenches/project/pluto
user@analog:~/testbenches/project/pluto$
make MODE=gui

Example 3

Build a particular combination of test and configuration, using the Vivado GUI. This command will launch Vivado, will run the simulation and display the waveforms.

user@analog:~$
cd testbenches/project/pluto
user@analog:~/testbenches/project/pluto$
make MODE=gui CFG=cfg1 TST=test_program

The built projects can be found in the runs folder, where each configuration specific build has it’s own folder named after the configuration file’s name. Example: if the following command was run for a single configuration in the clean folder (no runs folder available):

make CFG=cfg1

Then the subfolder under runs name will be:

cfg1

Resources

More information

Support

Analog Devices, Inc. will provide limited online support for anyone using the reference design with ADI components via the EngineerZone FPGA reference designs forum.

It should be noted, that the older the tools’ versions and release branches are, the lower the chances to receive support from ADI engineers.