|
The examples use tasks to access the various functions of the VHS board. This section describes these basic building blocks which you should use to make your own applications.
vhs_dac
This task sends samples to the DACs.

It has four input ports:
|
Input Port
|
Description
|
|
0
|
Samples for channels 1 to 4.
Bits 0 to 15: channel 1,
Bits 16 to 31: channel 2,
Bits 32 to 47: channel 3,
Bits 48 to 63: channel 4.
|
|
1
|
Samples for channels 5 to 8 .
Bits 0 to 15: channel 5,
Bits 16 to 31: channel 6,
Bits 32 to 47: channel 7,
Bits 48 to 63: channel 8.
|
|
2
|
Samples for channels 9 to 12.
Bits 0 to 15: channel 9,
Bits 16 to 31: channel 10,
Bits 32 to 47: channel 11,
Bits 48 to 63: channel 12.
|
|
3
|
Samples for channels 13 to 16.
Bits 0 to 15: channel 13,
Bits 16 to 31: channel 14,
Bits 32 to 47: channel 15,
Bits 48 to 63: channel 16.
|
vhs_adc
This task receives the samples captured by the ADCs.

It has four Output ports:
|
Output Port
|
Description
|
|
0
|
Samples for channels 1 to 4.
Bits 0 to 15: channel 1,
Bits 16 to 31: channel 2,
Bits 32 to 47: channel 3,
Bits 48 to 63: channel 4.
|
|
1
|
Samples for channels 5 to 8 .
Bits 0 to 15: channel 5,
Bits 16 to 31: channel 6,
Bits 32 to 47: channel 7,
Bits 48 to 63: channel 8.
|
|
2
|
Samples for channels 9 to 12.
Bits 0 to 15: channel 9,
Bits 16 to 31: channel 10,
Bits 32 to 47: channel 11,
Bits 48 to 63: channel 12.
|
|
3
|
Samples for channels 13 to 16.
Bits 0 to 15: channel 13,
Bits 16 to 31: channel 14,
Bits 32 to 47: channel 15,
Bits 48 to 63: channel 16.
|
vhs_sdram_playback
This task retrieves data from the onboard SDRAM. Although the data produced on the output ports can be used in any way, they are usually sent to the various DAC channels as described in the table.

It has four output ports:
|
Output Port
|
Description
|
|
0
|
Samples for channels 1 to 4.
Bits 0 to 15: channel 1,
Bits 16 to 31: channel 2,
Bits 32 to 47: channel 3,
Bits 48 to 63: channel 4.
|
|
1
|
Samples for channels 5 to 8 .
Bits 0 to 15: channel 5,
Bits 16 to 31: channel 6,
Bits 32 to 47: channel 7,
Bits 48 to 63: channel 8.
|
|
2
|
Samples for channels 9 to 12.
Bits 0 to 15: channel 9,
Bits 16 to 31: channel 10,
Bits 32 to 47: channel 11,
Bits 48 to 63: channel 12.
|
|
3
|
Samples for channels 13 to 16.
Bits 0 to 15: channel 13,
Bits 16 to 31: channel 14,
Bits 32 to 47: channel 15,
Bits 48 to 63: channel 16.
|
vhs_sdram_record
This task stores data to the onboard SDRAM. Although you can store any sort of data in sdram using this task, it is usually used to store samples coming from the ADC channels

It has four input ports:
|
Input Port
|
Description
|
|
0
|
Samples for channels 1 to 4.
Bits 0 to 15: channel 1,
Bits 16 to 31: channel 2,
Bits 32 to 47: channel 3,
Bits 48 to 63: channel 4.
|
|
1
|
Samples for channels 5 to 8 .
Bits 0 to 15: channel 5,
Bits 16 to 31: channel 6,
Bits 32 to 47: channel 7,
Bits 48 to 63: channel 8.
|
|
2
|
Samples for channels 9 to 12.
Bits 0 to 15: channel 9,
Bits 16 to 31: channel 10,
Bits 32 to 47: channel 11,
Bits 48 to 63: channel 12.
|
|
3
|
Samples for channels 13 to 16.
Bits 0 to 15: channel 13,
Bits 16 to 31: channel 14,
Bits 32 to 47: channel 15,
Bits 48 to 63: channel 16.
|
adac_cm
This task is used to create the clock domain for the ADC and DAC samples. It connects to the clock signal that is used to send samples to the DACs and receives samples from the ADCs (adac_clk). The clock is copied to its output port clk_out. The clock domain should be assigned to tasks that must run at the frequency of the ADCs or the DACs.

vhs_control
This task initializes a number of signals required for the VHS to function properly. It must be placed on all processors of type VHS used in your application. You should not need to modify it.

|