FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6159 Discussions

Is it possible to run NIOSV through SDRAM ?

himanshuvaria
Beginner
1,461 Views

Hello, 

 

I am developing a project where NIOS II needs to replaced with NIOSV processor. When my design was having NIOS II as CPU, I was running the software code through External SDRAM on the Cyclone IV E Kit(EP4CE40F23C8). It's working fine with NIOS II. Able to run the software program.

 

Now, when I replaced the NIOS II processor with the NIOSV processor, I am not getting the expected results. I am trying to print a Simple "Hello World" code through the NIOSV processor with the same configuration of design. Almost all BSP settings are same for NIOSV processor as of the NIOS II. Still not getting the results.

 

I want to inquire that if we can run the NIOSV processor through external SDRAM or not ?

 

Please note that I am not talking here about booting the NIOSV. I am simply running the software image through RiscFree IDE software on the external SDRAM of the board.

 

Regards,

Himanshu

 

 

Labels (1)
0 Kudos
11 Replies
EBERLAZARE_I_Intel
1,439 Views

Hi,


Can you try to generate the first two example design as shown below:

https://www.intel.com/content/www/us/en/docs/programmable/778829/current/standard-edition.html


0 Kudos
himanshuvaria
Beginner
1,431 Views

Hello,

 

I want to inform you that the link you provided has already been working for me. But it's when On-Chip-Ram has been used for the reset vector of NIOSV. I am using SDRAM Controller IP to program the external SDRAM as program memory. I have set the reset vector to sdram_controller_ip in the QSYS system and have made connections based on that. 

 

When I am using On-Chip-Ram as program memory, then there is no issue, everything works as expected. But when I use external SDRAM as program memory, then I am able to run the ELF on the board but the NIOSV code does not  executed. The reason to use external SDRAM is that my Cyclone IV E(EP4CE40F23C8) does not have enough M9K blocks to fit the design due to which I have to use external SDRAM.

 

My question to you is that can I use external SDRAM as program memory for running NIOSV processor. Please consider the following devices that I am using for you reference.

  1. FPGA used : Cyclone IV E (EP4CE40F23C8)
  2. External SDRAM Part No : W9816G6IH ( WinBond )

Below is the image of my QSYS system configuration.

himanshuvaria_0-1692851760618.png

The reset vector is set as below:

himanshuvaria_1-1692851819053.png

 

Please let me know if I am missing something in the hardware design. 

 

Thanks in advance.

 

Regards,

Himanshu

0 Kudos
EBERLAZARE_I_Intel
1,362 Views

Hi,


Let me check this later today, I will get back to you.


0 Kudos
himanshuvaria
Beginner
1,347 Views

Hello,

 

I would be waiting for your feedback.

 

Thanks in advance !!

 

Regards,

Himanshu

0 Kudos
EBERLAZARE_I_Intel
1,271 Views

Hi,


I got your questions now, I will need to check again on the limitations for your request and device, I will get back to you as soon as possible, I might come back to get some further details.


0 Kudos
himanshuvaria
Beginner
1,248 Views

Hi,

 

Thanks for looking out. I would be waiting for your response.

 

 

0 Kudos
EBERLAZARE_I_Intel
1,201 Views

Hi,


Is this the same issue as the one with your 16-bit data bus to your Nios V?


0 Kudos
himanshuvaria
Beginner
1,192 Views

Hi,

 

Yes, it is the same issue as of the 16-bit data bus to the NIOSV. If we keep aside the SDRAM, and try to use On-Chip-Ram as program memory, where the data width of On-Chip-Ram IP is set to 16 bits, then same issue arises when running the ELF. The ELF gets downloaded successfully but the Debugger Console shows warning : "Cannot access memory at address 0x29c". When the data width of On-Chip-Ram IP is set to 32 bits everything works fine as expected.

 

With NIOS II, we were capable to configure the device with 16-bits On-Chip-Ram, but NIOSV does not seems to work like that. So  I think due the data width of SDRAM being 16-Bits set in the QSYS system, similar issues are occuring in that cases. Any help regarding to solve this would be appreciated.

 

Thanks !!!!

 

Regards,

Himanshu

0 Kudos
himanshuvaria
Beginner
1,170 Views

Hi,

 

Any update on the regarding the issue ? Please share your response !! 

0 Kudos
EBERLAZARE_I_Intel
1,160 Views

Hi,


For this issue, we currently working on a fix, we will update you from time to time, this will take some time. 


In the mean time, we would like to only have one active thread to keep you updated since the case is similar. Thus, we will close this thread and follow-up with IPS and below thread you filed:

https://community.intel.com/t5/forums/forumtopicpage/board-id/nios-II-embedded-design-suite/message-id/52189#M52189


0 Kudos
EBERLAZARE_I_Intel
1,143 Views

Hi,


I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.



p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.


0 Kudos
Reply