[Serialization] [FPGA black gold Development Board] What about the niosii-how to download the program to epcsx (13th)

Source: Internet
Author: User
  Disclaimer: This article is an original work and copyright belongs to the author of this blog. All. If you need to repost, please indicate the source Http://www.cnblogs.com/kingst/

Introduction

In this section, we will explain how to use the FPGA configuration file andProgramDownload To epcsx (X is, 16 ...) . First of all, we need to download the program to epcsx without downloading it to parallel Flash because we can remove the parallel flash to save 32 pins, the PCB layout can also save space. I just want to improve the core board. Someone may ask, the speed of parallel processing is much faster. In fact, we storeCode, Each power-on or reset only needs to be read once, with no significant impact on speed. Unless you have special requirements, such as frequent flash operations in the program, in order to meet the speed requirements in parallel. Now, let's proceed.

Hardware settings

First, add the ancestor serial flash controller to the soft core, as shown in red circle

Double-click the red circle, as shown in

There is nothing to modify. Click Finish to complete the addition.

Then, modify the name, as shown in. In fact, you can do this without modifying it, just to make it look simple.

After the modification, we have another step to deal with. Double-click the CPU and click it, as shown in the red circle. We want to select memory as an Apsara stack, that is, read data from Apsara stack after power-on. Everyone remembers what I said when talking about parallel flash. Here we should choose cfi_flash. That is to say, after power-on or reset, You need to select the data you want to read from the Nios. Because we want to read data from the Apsara stack management framework, we select the Apsara stack management framework.

After the above is complete, the next step is to automatically configure the address, interrupt, compile, wait, compile, and wait. The hardware part is over.

Software settings

Next, let's take a look at what configurations are required in the nioss 9.0 IDE. Here, we assume that all the programs to be downloaded have been compiled successfully. Then we start to download the program to epcsx, and click the Red Circle shown in,

After clicking, as shown in, you need to select red circles 1, 2, and 4, and red circles 3 do not need to be selected. Select red circle 1 to write the Nios software program to flash, and where to write it, it is determined by the memory of the Reset vector in the CPU we mentioned earlier. That is to say, if we have selected an Apsara stack management framework, we will download the code to epcsx. The red circle 2 is used to download the FPGA configuration file to flash, and the download here is determined by the Red Circle 5. Here we will select the new source object, download the configuration file to epcsx. In fact, epcsx is actually a serial flash. Again, red circle 3 Downloads files to flash, such as font files and waveform files, and stores these files directly in flash, you only need to read it. However, this option has nothing to do with downloading the configuration file and the Nios program. So we will not select it here. I have already said the role of red circle 4, and I will not repeat it here.

After the above selection, click Apply, and then click program flash to start writing flash.

So far, how can I download the FPGA configuration file and the program of the Nios to epcsx (X is, 16 ...) The process is complete. It's easy. You only need to pay attention to it.

All right, the content in this section will be finished. If you have any questions, you can leave a message for me directly, add my QQ: 984597569, or join the latest group: 109711029 (107122106 is full ), of course you can also mail me: avic633@gmail.com, thank you for your support.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.