Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
2,049 Views

Changing Nios Clock Frequency on a De0 nano board

Hi, 

 

I've got a design including a Nios 2 working on my De0 nano board. I read the tutorials for setting up a Nios 2 in Qsys, I just added some more pio for my signals. I'm also using the SDRAM, so I am using the clocks module from the university program, which might make a difference to my question. 

 

The design works fine at the moment, but I would like to run the processor a little bit faster. I assumed I could use a PLL to generate my faster clock, pass this to the Nios processor when I instantiate it, and change the input clock frequency from 50MHz to whatever my new clock is in my Qsys design. However, after I've done this I get the 'unable to download ELF' message in Eclipse. I regenerated the BSP, are there any other steps I missed out? Or is it not possible to clock the processor faster in this way? 

 

Thanks for your help. 

 

Bert
0 Kudos
9 Replies
Altera_Forum
Honored Contributor I
81 Views

Did you re-programmed fpga with the new *.sof file?

Altera_Forum
Honored Contributor I
81 Views

I didn't mention that step because I thought it was too obvious, but yes, I did reprogram the FPGA! Does it sound like it should have worked otherwise? Could it be that the logic that the PIO connects to is still running at 50MHz while the processor is running faster?

Altera_Forum
Honored Contributor I
81 Views

Can you post a snapshot of your QSYS System here?

Altera_Forum
Honored Contributor I
81 Views

https://www.alteraforum.com/forum/attachment.php?attachmentid=7582  

 

After passing my clock frequency to the nios 2 when I instantiate it, I was simply changing the clock frequency listed in the clk_50 block to my new clock frequency. 

 

Thanks 

 

Bert
Altera_Forum
Honored Contributor I
81 Views

I must say, that I don't like how your reset signals are connected together. clk_reset goes to reset_n. Is it possible, that your Nios II does not leave reset state?

Altera_Forum
Honored Contributor I
81 Views

I'll look through the tutorials again to see if I've got that wired right. It must be leaving reset though, because it works fine when I am using a clock of 50MHz, unless that would change for some reason with a faster clock.

Altera_Forum
Honored Contributor I
81 Views

Where exactly do you set the new frequency? Where is the PLL?

Altera_Forum
Honored Contributor I
81 Views

Hi Linas, 

 

The PLL is a mega function in my verilog code, that is working correctly because I can see it on an output pin. 

 

I've actually managed to resolve the issue by starting a new project in eclipse and pasting my existing code in. It's almost as if the generate BSP function doesn't do what it's supposed to (or what I think it does) after changing the hardware. 

 

Thanks for all your help anyway!
Altera_Forum
Honored Contributor I
81 Views

So instead of deleting and re-creating BSP for your new hardware you used that funny "Generate BSP" button in Eclipse?

Reply