Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Problem with NIOS 2 console display.

Hello....

My self is Divyang S. Jadav. I have written verilog code for edge detection algorithm using "Sobel Operator". I t works fine with Modelsim Simulator.

I am trying to design custom peripheral for this code using Quartus 12 software SOPC Builder. I have designed the system. It is built successfully. For verification I am sending Image data in the form of 8-bit pixel value in every clock cycle through C program in eclipse software build environment.

Everything is working correctly. But after programming the chip and running NIOS 2 as hardware to see the results on NIOS 2 console, when I am printing the output on NIOS 2 console it always displays '0'. I am not able to understand and sort out this problem.

Please help me regarding the same. I am stuck with this problem since from 2 months... Please help, it is my dissertation work....

I am attaching the verilog codes and C program.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You should use signal tap on your component and check that it is working correctly. I'd advise also not to use the chipselect. It is recommended to only use the read and write signals instead, which are only asserted when reading or writing your component.

    The macros you use are designed for the PIO component. You can use the more generic IORD and IOWR macros to access your component. (but this isn't the case of your problem, as the two macros you use are actually using IORD and IOWR on the register 0).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks for quick reply.

    I will do the modification as suggested by you.