按Myfirst Niosii QSYS文档操作,编译出错:Error:12002 Port xxx doesn't exist in macrofunction "DE0 NANO inst"

From Terasic Wiki

Jump to: navigation, search

Q:按Myfirst Niosii QSYS文档操作创建工程后,编译出错:

Error:12002 Port "clk_50" doesn't exist in macrofunction "DE0_NANO_inst"

Error:12002 Port "out_port_from_the_pio_led" doesn't exist in macrofunction "DE0_NANO_inst"

Error:12002 Port "reset_n" doesn't exist in macrofunction "DE0_NANO_inst"

而直接编译myfirst_niosii DEMO没有出错。

A: 根据错误提示,对比DEMO中的DE0_NANO_QSYS.v代码和QSYS中generate生成的DE0_NANO_QSYS.v代码:

QQ截图20180621154851.jpg

将myfirst_noisii.v中的 “clk_50” 改为 “clk_clk”,“out_port_from_the_pio_led” 改为 “pio_led_external_connection_export”,“reset_n” 改为 “reset_reset_n”,保存后再编译没有出错。


Back

Personal tools