第一个NIOS工程,流水灯!我使用的9.0本版的。
1、建立一个流水灯工程,如下图:
Next选择器件,再Finish。我的开发板上是Cyclone II系列EP2C8,大家按自己的实际选择器件。
2、打开SOPC Builder,配置NIOS硬件,如下图:
CPU配置经济型的就OK了
添加on-chip menory ROM 改名为progam,RAM改名为data
再添加PIO,4位OUTPUT改名为led,但这样Quartus II RUN时会产生错误,如下图:
在错误上面点击右键help,上面提示: Project too complex: hierarchy path is too long
CAUSE:
The depth of the design hierarchy is too deep for the Quartus II software to process. This could also be due to an undetected recursion.
ACTION:
Reduce the depth of the hierarchies. If necessary, modify the design so that it does not contain any recursive logic.