Example: VHS Record/Playback with Onboard Memory

Top  Previous  Next

This example shows how you can record and play back data in real time with the DDR SDRAM on the VHS board.

 

The example uses six tasks. Task vhs_adc receives samples from the ADCs and sends them to task vhs_sdram_record which stores them in memory. The samples are read from memory by the host using the VHS Control Utility software.  Samples for the DAC are written into the memory also using the VHS Control Utility software. Task vhs_sdram_playback reads the samples from memory and sends them to the DACs.

 

Task adac_cm generates the adac_clk clock domain used to clock the other tasks in the system. This clock is the same as the clock used by the ADCs and the DACs; all samples are synchronous to it. Task control sets up a few signals required for the VHS to function properly.

 

A detailed description of the main tasks is available here.

 

 

Running the Example

Select the type of VHS as shown here.

 

You can build the application by typing Ctrl+B and then execute it by clicking run. Note that building this application takes a few minutes as it involves launching the Xilinx tools.

 

Once the application is running, open the VHS Control Utility (Start Menu / Host SDK / cPCI Platform / VHS Control Utility), select 'Clock Source = Fixed', and then click Run to start the ADC and the DACs.

You can then use the 'Data Playback' and 'Data Record' tabs to access the memory.

 

Prerequisites

You  need the following components to be able to run this example:

 


Hardware

Quantity


VHS ADC / DAC

1


3L Diamond DSP licence

0


3L Diamond FPGA licence

1