Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Required Nios components

Altera_Forum
Honored Contributor II
5,738 Views

Hello, 

I am trying to develop a very simple Nios cpu to run Hello world application. I have created a design: 

 

http://i55.tinypic.com/a29isy.jpg  

As You can see, I have inserted DDR2 memory to store required code. The whole system should run from altmemddr PLL. However, the EDS tool doesn't find neither sysid, nor timestamp. What is wrong with this design? I have tried to add timer, but that didn't help and afaik it is not required. 

 

DDR2 pins are OK, I have taken them from a working example from development board CD.
0 Kudos
47 Replies
Altera_Forum
Honored Contributor II
500 Views

If you are only storing 16bit audio in the external memory, and are not accessing them sequentially (at least in the critical paths) it might be worth using uncached accesses and a 16bit slave (zero or sign extended to taste!) 

 

There is also nothing (in principle at least) accessing the physical memory from two different avalon slaves (at different addresses), one giving 16bit accesses, the other 32bit (by doing two physical accesses).
0 Kudos
Altera_Forum
Honored Contributor II
500 Views

 

--- Quote Start ---  

I have replaced the DDR2 memory with on-chip memory (262144 bytes), but the issue somehow was 125MHz clock. I have set the 50MHz clock instead and the Nios started. 

 

The 125MHz clock was running for sure, I have made a blinker which works either with 125MHz clock or with 50MHz clock. 

 

The development board is Cyclone III Host board from Altera (2 clocks on board + SMA IN) 

 

Now the strange problem is that the console doesn't show anything. It runs the CPU: 

 

 

I've checked BSP parameters, the stdin/stdout/stderr are all set to uart_jtag, but the console screen is empty. 

--- Quote End ---  

 

 

I know this was quite a while ago, Socrates, but I'm having this same problem now. I'm wondering if you were able to solve this issue of no output on the Nios Console.
0 Kudos
Altera_Forum
Honored Contributor II
500 Views

Yes. Connect all the system peripherals through pipeline bridge (e.g. sysid, jtag, timers, etc). Also fix timing warnings. It is possible to run Nios II @ 133MHz on Cyclone speed grade 8 and ~160MHz on the fastest speed grade. Maybe more, but I've not tested that.

0 Kudos
Altera_Forum
Honored Contributor II
500 Views

 

--- Quote Start ---  

Yes. Connect all the system peripherals through pipeline bridge (e.g. sysid, jtag, timers, etc). Also fix timing warnings. It is possible to run Nios II @ 133MHz on Cyclone speed grade 8 and ~160MHz on the fastest speed grade. Maybe more, but I've not tested that. 

--- Quote End ---  

 

 

Thanks for the suggestion Socrates. I am really hopefull that this will get me out of the rut that I have been in for the past several days. However, now I am back to the old problem that keeps showing up whereby the System ID and Timestamp cannot be found. 

 

The system is running at a conservative 50 MHz and Timequest is not complaining about not meeting constraints. 

 

I tried with the Sys_ID component inside and outside the pipeline bridge, but neither work. It was working before I added the pipeline bridge to the Qsys design. 

 

I attached a screen shot of my Qsys design as it stands now.
0 Kudos
Altera_Forum
Honored Contributor II
500 Views

Possibly system is in reset. Check reset and reset_n signals for polarities.

0 Kudos
Altera_Forum
Honored Contributor II
500 Views

Great suggestion Socrates. I found an issue with the reset circuitry on my custom board - it was in desperate need of a pull-up resistor! That solved my problem. 

 

Thanks for the help.
0 Kudos
Reply