Forum Discussion

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

nios II implementation problem

Respected members,

I have some doubts on Nios II processors. I am requesting the forum members to clarify my doubt.

When designing NiosII processor system using SOPC builder, there is a on-chip ROM component inside the system. But the problem is that, the design is volatile, ie, when disconnecting the power, and again switching it on, again we need to program the FPGA. So my question is, what's the use of on-chip ROM. because whenever we there is a power off, data will vanish!!!.

please suggest a solution for this.

13 Replies

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

    Thank you Slacker, Larsen, Mike and Wombat for your valuable suggestons.

    I have a C-code for the 8051 microcontroller simulation. Whether can i implement it in NIOS II? If possible, how?

    Please give some valuable informations....
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I forget what 8051 code looks like, however the porting of the C code will mainly require changes to how you access peripherals, and whether or not your code was very dependent on what was previously available. So my answer is yes, but depending on the code it could be a simple or complex job. If the 8051 was memory mapped I/O (can't remember myself) then the port will not be too bad, and if this is not the case then some re-structuring may be needed (again it really depends on the code to be ported).

    What does the 8051 in the system do? Also you may find that you just want to port the functionality and redo the code (might be more efficient the 2nd time around).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    thank you BadOmen for ur suggestion.

    i haven't gone thru the code for 8051. after going thru, i'll send details

    thank you