A sample Quartus Prime project for CYC1000 works with on-board 8MB SDRAM. This project is based on the reference NIOS design provided by TrenzElectronic, and fixed sdram related issues.
- SDRAM related port directions (input or output) defined in the top module (top.v) are fixed.
- A phase shifted PLL output and its output pin are added for SDRAM clock.
- Sample Eclipse projects are included, which use SDRAM as a main memory.
- Clone this project, and open cyc1000_nios.qpf by Quartus Prime 20.1 or later.
- Double click the top entity at the hierarchy window of the Quartus Prime, then read instructions in top.v file.
- According to the instructions, Start Compile. Then program your CYC1000.
- Run Eclipse from the menu [Tools->Nios II Software Build Tools for Eclipse].
- Choose the project top directory as an Eclipse workspace.
- Import LedCopy_bsp and LedCopy projects located under the software/ by the following steps:
- Click the menu [File->import], select [Nios II Software Build Tools Projectl->Import Nios II Software Build Tools Project] and click Next.
- Click Browse and choose software/LedCopy_bsp under the project top directory.
- Enter LedCopy_bsp as a project name.
- Click Finish.
- Import LedCopy project by the same steps.
- Build LedCopy_bsp project first. After that, build LedCopy project. If you are using Linux and failed to build LedCopy_bsp due to errors in Makefile, right click the LedCopy_bsp project and re-generate bsp from [Nios II->Generate BSP].
- Run LedCopy project by "Run As"->"Nios II Hardware".