Altera provides a fixed testbench as an example to simulate the
SDI Audio Altera FPGA IP cores. Use this testbench to simulate
the SDI Audio Embed and the associated SDI Audio Extract IP cores, and the SDI Clocked
Audio Input and the associated SDI Clocked Audio Output IP cores.
You can obtain the testbench from ip/altera/audio_ip/simulation directory.
To use the testbench with the ModelSim simulator, follow these steps:
The following table lists the SDI Audio IP cores to generate with recommended parameter configurations and file names.
| IP Name | Number of Supported Audio Groups Parameter | Include Avalon-ST Interface Parameter | Include Avalon-MM Control Interface Parameter | IP Variant File Name |
|---|---|---|---|---|
| Audio Embed | 4 | Off | On | audio_embed_top.ip |
| Audio Embed | 4 | On | On | audio_embed_avalon_top.ip |
| Audio Extract | — | Off | On | audio_extract_top.ip |
| Audio Extract | — | On | On | audio_extract_avalon_top.ip |
| Clocked Audio Input | — | — | On | clocked_audio_input_top.ip |
| Clocked Audio Output | — | — | On | clocked_audio_output_top.ip |
Guidelines
When you use the testbench to simulate the IP cores, consider the following guidelines:
- Select the video standard for the video test source through the generic G_TEST_STD of the testbench entity. Set 0, 1, 2, or 3 to select SD-SDI, HD-SDI, 3G-SDI Level A, or 3G-SDI Level B.
- The audio test source uses the 48 kHz clock output from the SDI Audio Embed IP core. The audio test sample comprises an increasing count which allows the testbench to check the extracted audio at the far end of the processing chain.
- The SDI Audio Embed IP core accepts these video and audio test sources to create a video stream with embedded audio. The SDI Audio Extract IP core then receives the resulting stream to recover the embedded audio. Examine this audio sequence to ensure that the count pattern that was created is preserved.
- The synchronization requirements of the receive FIFO buffer in the SDI Audio Extract IP core allows you to repeat the occasional sample from the SDI Audio Extract IP core. Synchronization may take up to a field period of typically 16.7 ms to complete.
- Select G_INCLUDE_AVALON_ST = 1, if you want to instantiate another SDI Audio Embed IP core with Avalon streaming interface (with embedded clocked audio output component) and the associated SDI Audio Extract IP core with Avalon streaming interface (with embedded clocked audio input component) in this testbench.