SOPC Operation Steps

SOPC Operation Steps:

1. Create a new project folder, ensuring that the name and path do not contain Chinese characters, for example, T3. 2. Copy the tcl resource files from the development board into T3. 3. Launch the Quartus II software. 4. Start the New Project Wizard, navigate to T3, and click the Finish button. 5. Create a new block diagram schematic file as the top level, naming it Top. 6. Launch SOPC Builder (Tools – SOPC Builder).

7. In the “Altera SOPC Builder” window, create your system on a chip, correctly assign addresses and interrupts, as well as memory resources, and then click the Generate button. 8. Start the Nios II SBT (Software Build Tools), the current version should be Eclipse. 9. In Eclipse, create a new BSP project (Board Support Package): New – Nios II Board Support Package. 10. In the pop-up “Nios II Board Support Package” window, enter the BSP project name, for example, T3_BSP, and load the correct SOPC information file (SOPC Information File name), which should be the one generated by SOPC Builder. Click the Finish button and wait for the BSP generation. (After successful generation, it should be visible in the Project Explorer.) 11. Next, generate a Nios II application: New – Nios II Application. 12. In the pop-up “Nios II Application” window, enter the application project name, for example, T3_APP, and correctly load the BSP project location (BSP location), which should be the recently generated T3_BSP. Double-click it to load it, and then click Finish. 13. Right-click on the T3_APP in the Project Explorer window, and from the context menu, select New – Source File. 14. In the pop-up “New Source File” window, enter the source file name, for example, main.c (make sure to add the extension), choose the C module template (the C++ template is larger), and then click Finish, waiting for the generation of main.c. 15. Now, you can write your own C language program in main.c and reference the resources (header files) from the BSP. 16. After writing, right-click on T3_APP in the Project Explorer, select Build Project from the context menu, and wait for the generation. If there are no errors, you can proceed to the next step of programming download or online debugging. 17. When programming download in SBT, first ensure that the current SOPC has been programmed into the development board, then right-click on T3_APP in the Project Explorer, and select Run As – Nios II Hardware from the context menu. 18. In the pop-up configuration window, click the JTAG button until you see the JTAG connection appear. Then click the ID detection button until you see the Run button light up, and then click the Run button.

SOPC Operation StepsSOPC Operation Steps

Leave a Comment