Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
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.
21615 Discussions

FPGA Configuration with JTAG

Altera_Forum
Honored Contributor II
3,575 Views

Hey All, 

 

I have an interesting issue. I have a EP2C35F484 FPGA mounted on a FireflyII board (adds some memory, an oscillator, serial configuration chip and max232 converter). I am able to load a NiosII core onto the FPGA and run a simple counter but when I try to do anything in VHDL, even the simplest core does not seem to run. For instance, (using the schematic design mode) I simply connect an input to an output, assign the clock to the input pin and then assign the output to a physical pin on my board. As I understand it, I should see the clock being output to the physical pin, yes? I'm using the JTAG usb blaster to load the core, not worrying about the serial configuration chip yet. This seems like a very simple task but its really getting me stuck, especially because the NiosII core seems to work just fine. Any suggestions?
0 Kudos
13 Replies
Altera_Forum
Honored Contributor II
1,375 Views

Check whether you had a legal FPGA pin-out for your board for the Quartus compile with your VHDL.

0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

The output pin was a valid pin. I used the same output pin in the NIOS application wihtout any problem.

0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

 

--- Quote Start ---  

The output pin was a valid pin. I used the same output pin in the NIOS application wihtout any problem. 

--- Quote End ---  

 

 

It doesn't make sense to say your vhdl doesn't work while nios works(nios is just vhdl platform produced by SOPC). 

I am sure your testing is wrong, try signaltap instead of pins and make sure your vhdl is not optimised away.
0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

 

--- Quote Start ---  

Hey All, 

 

I have an interesting issue. I have a EP2C35F484 FPGA mounted on a FireflyII board (adds some memory, an oscillator, serial configuration chip and max232 converter). I am able to load a NiosII core onto the FPGA and run a simple counter but when I try to do anything in VHDL, even the simplest core does not seem to run. For instance, (using the schematic design mode) I simply connect an input to an output, assign the clock to the input pin and then assign the output to a physical pin on my board. As I understand it, I should see the clock being output to the physical pin, yes? I'm using the JTAG usb blaster to load the core, not worrying about the serial configuration chip yet. This seems like a very simple task but its really getting me stuck, especially because the NiosII core seems to work just fine. Any suggestions? 

--- Quote End ---  

 

 

Hi, 

 

how did you add your schematic to your Nios System ? 

 

Kind regards 

 

GPK
0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

I'm using one of the example applications that come with the NIOS design suite: http://www.altera.com/support/examples/nios2/exm-hello_free.html. The design was already inserted into a schematic. All I had to do was assign the LED output pins. This simple counter example works and I am able to view the output using a simple digital analyzer scope. In my vhdl, I am simply assigning the clock input pin to one of the same output pins that I used in the NIOS counter. There is no difference between the way I tested the two designs.  

 

Is there some configuration option I'm missing here? Thanks for the continued help everyone. 

 

-Chris
0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

 

--- Quote Start ---  

I'm using one of the example applications that come with the NIOS design suite: http://www.altera.com/support/examples/nios2/exm-hello_free.html. The design was already inserted into a schematic. All I had to do was assign the LED output pins. This simple counter example works and I am able to view the output using a simple digital analyzer scope. In my vhdl, I am simply assigning the clock input pin to one of the same output pins that I used in the NIOS counter. There is no difference between the way I tested the two designs.  

 

Is there some configuration option I'm missing here? Thanks for the continued help everyone. 

 

-Chris 

--- Quote End ---  

 

 

Hi Chris, 

 

am I right, that created a new project with your small test counter and you used the pin assignments of your NIOS project ? Did you check that your counter is not removed from the synthesis tool ? Did you check it with e.g. RTL or technology viewer ? 

 

Kind regards 

 

GPK
0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

In my design I used the same output pins that were used in the working NIOS project. I just did a timing simulation and was able to see that my counter was working as expected. I've attached the schematic and the results below. 

 

Thanks 

 

http://i560.photobucket.com/albums/ss46/creeg2/schematic.jpg  

http://i560.photobucket.com/albums/ss46/creeg2/simresult.jpg
0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

 

--- Quote Start ---  

In my design I used the same output pins that were used in the working NIOS project. I just did a timing simulation and was able to see that my counter was working as expected. I've attached the schematic and the results below. 

 

Thanks 

 

http://i560.photobucket.com/albums/ss46/creeg2/schematic.jpg  

http://i560.photobucket.com/albums/ss46/creeg2/simresult.jpg  

--- Quote End ---  

 

 

Hi, 

 

on the schematic I don't see any reason, why it should not work. Can you post the whole project? 

 

What kind of Quartus version did you use ? If you have a version which includes signaltap, 

try to tap one of your internal signals in order to make sure that the design is loaded. 

 

Kind regards 

 

GPK
0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

So it appears there is a problem loading the design onto the FPGA. When I tried to use signal tap on my design, Quartus responded saying "Error: Can't find the instance. Download a design with SRAM Object File containing this instance.".  

 

I suppose this means the design is not being loaded. When I ran SignalTap on the NOIS design I was able to see all of the output signals without any issue. 

 

So I guess this means the question has now moved to what is wrong with loading the design to the FPGA. I'll try to look for some differences between the NIOS design and my design but I definitely could use some guidance. 

 

Thanks for the signal tap hint. 

 

p.s. quartus version is: 7.2
0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

 

--- Quote Start ---  

So it appears there is a problem loading the design onto the FPGA. When I tried to use signal tap on my design, Quartus responded saying "Error: Can't find the instance. Download a design with SRAM Object File containing this instance.".  

 

I suppose this means the design is not being loaded. When I ran SignalTap on the NOIS design I was able to see all of the output signals without any issue. 

 

So I guess this means the question has now moved to what is wrong with loading the design to the FPGA. I'll try to look for some differences between the NIOS design and my design but I definitely could use some guidance. 

 

Thanks for the signal tap hint. 

 

p.s. quartus version is: 7.2 

--- Quote End ---  

 

 

Hi, 

 

can you post your small project, I will have a look to it. 

 

Kind regards 

 

GPK
0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

Here is the project I've made myself which I can't seem to get loaded onto the FPGA. 

 

https://netfiles.uiuc.edu/creeg2/shared/clockout.zip 

 

Here is the hardware info again too: 

FPGA: EP2C35F484C6N 

mounted on a FireflyII module: http://www.microtronix.com/products/?product_id=86 

 

Thanks! 

 

-Chris
0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

I think I resolved this issue. Looking though the Knowledge database: 

 

http://www.altera.com/support/kdb/solutions/rd03212006_5.html 

 

It doesn't really explain it though. Does anyone know why this is a solution?
0 Kudos
Altera_Forum
Honored Contributor II
1,375 Views

Looks like a hardware bug in the dev board but they don't admit it, must be some unused pins are physically connected somewhere...

0 Kudos
Reply