- 1
- 0
- 约9.2千字
- 约 9页
- 2022-12-21 发布于上海
- 举报
在 NIOS II 10.1 下使用 Flash Programmer 烧写程序
建立 Quartus II 工程, 设计好 SOPC , 主要是在其中添加epcs_flash_controller,用于控制 EPCS 的存储与读取。最后的 SOPC架构如下:(关于 JTAG_可要可不要)
点击 generator 获得设计顶层文件,然后在 Quartus II 中进行例化、配置和编译工程管脚绑定大概如下:
DE0_NANO_SOPC DE0_NANO_SOPC_instEPCS_DCLK
( .clk_50 (CLOCK_50),
.data0_to_the_epcs_flash_controller (EPCS_DATA0),
.dclk_from_the_epcs_flash_controller (EPCS_DCLK),
.out_port_from_the_pio_led (LED),
.reset_n (KEY[0]),
.sce_from_the_epcs_flash_controller (EPCS_NCSO),
.sdo_from_the_epcs_flash_controller (EPCS_ASDO)
);
建立 Nios II 工程,编译工程,具体代码如下:
#include sys/alt_stdio.h #include stdio.h #include
原创力文档

文档评论(0)