仅对英特尔可见 — GUID: amk1637633516854
Ixiasoft
1.4. 编译和测试设计
图 5. 设计编译和硬件流程
请按照以下步骤在硬件示例设计上编译并运行一个演示测试:
- 请确保已完成硬件示例设计的生成。
- 运行英特尔 Quartus Prime Pro Edition软件,然后打开.qpf文件。目录位置:
- project directory/quartus/agx_hdmi21_frl_demo.qpf, 或者
- project directory/quartus/agx_hdmi21_frl_axi_demo.qpf
- 点击Processing > Start Compilation。
- 成功编译后,将在指定的目录中生成一个.sof文件。
- 设置硬件并对英特尔 FPGA板卡上电,
- 根据不同的设计示例类别设置工厂开关设置,如下表所述。
表 6. 根据设计示例类别的工厂开关设置 时钟输入 MUX_SEL 开关(Switch) 设计类别(Design Variant) Enable Active Video = None Enable Active Video Protocol = AXIS-VVP Full, Video in and out use the same clock = OFF Enable Active Video Protocol = AXIS-VVP Full, Video in and out use the same clock = ON SI5332E OUT3 MUX_SEL8 S4[4] /MUX_DIP_SW11 不适用 ON ON SI5391B OUT0 MUX_SEL10 S23[1]/MUX_DIP_SW4 OFF OFF OFF SI5391B OUT6 MUX_SEL11 S23[2]/MUX_DIP_SW5 ON ON 不适用 SI5391B OUT9 MUX_SEL12 S23[3]/MUX_DIP_SW6 ON ON ON SI5391B OUT5 MUX_SEL14 S23[4]/MUX_DIP_SW7 ON ON ON - 执行以下设置。打开Clock Controller编辑器,然后在Si5391-B选项卡中设置时钟频率。
注: 在继续进行时钟设置之前,请确保Clock Controller显示Connected to the target。如果Clock Controller显示不同的消息,那么需要退出并重新打开Clock Controller。在一个成功的时钟设置中,F_vco显示下图所示的某一个时钟频率。
- 对于Support FRL = 1和Enable Active Video Protocol = None的HDMI 2.1设计示例,请将OUT6频率设置为100.00 MHz。
图 6. Support FRL = 1和Enable Active Video Protocol = None的HDMI 2.1设计示例
- 对于Support FRL = 1,Enable Active Video Protocol = AXIS-VVP Full和Video in and out use the same clock = ON的HDMI 2.1设计示例,请将OUT9频率设置为100.00 MHz。
图 7. Support FRL = 1,Enable Active Video Protocol = AXIS-VVP Full和Video In and Out Use the Same Clock = ON的HDMI 2.1设计示例
- 对于Support FRL = 1,Enable Active Video Protocol = AXIS-VVP Full和Video in and out use the same clock = OFF的HDMI 2.1设计示例,请将OUT6和OUT9频率设置为100.00 MHz。
图 8. Support FRL = 1,Enable Active Video Protocol = AXIS-VVP Full和Video In and Out Use the Same Clock = OFF的HDMI 2.1设计示例
- 对于Support FRL = 1和Enable Active Video Protocol = None的HDMI 2.1设计示例,请将OUT6频率设置为100.00 MHz。
- 使用生成的.sof文件在开发板上配置所选的器件(Tools > Programmer)。
- Support FRL使能的HDMI 2.1设计示例:
- project directory/quartus/output_files/agx_hdmi21_frl_demo.sof
- Support FRL使能的HDMI 2.1设计示例:
- 如果您对软件文件或者在IP Parameter Editor中进行了更改,那么您需要运行build_sw.sh脚本来重建软件。
- 使用Nios2 Terminal下载软件.elf文件。
- Enable Active Video Protocol = None
- Download .elf file: nios2-download <project directory> /software/tx_control/tx_control.elf -g -r -i 1
- Run Nios terminal: nios2-terminal -i 1
- Enable Active Video Protocol = AXIS-VVP Full
- Download .elf file: nios2-download <project directory> / software/hdmi21_demo_app/hdmi21_demo.elf -g -r -i 0
- Run Nios terminal: nios2-terminal -i 0
注: 此步骤是必需的,因为软件DEBUG_MODE在默认情况下是使能的。 - Enable Active Video Protocol = None