Forum Discussion

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

Using ModelSim and Nios II

Hi

My project involves a Nios II processor with on-chip dual port memory that I would like accessible from within the processor and custom logic. I'm using a Avalon Memory Master Template to make the memory accessible to my external logic.

Currently I'm launching ModelSim from within 'Nios II 12.0 Software Build Tools for Eclipse'. However the simulator doesn't seem to register the changes to memory made by my external logic. Should it be able to do this?

Thanks!

1 Reply

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

    I solved my problem. I needed to change the simulation files so my top file was also 'top' during the simulation.

    Running ModelSim from Eclipse automatically makes the Nios II itself the 'top'.

    You can find the tutorial I used by going to the AlteraWiki website and searching 'Simulating Designs with Lower-Level Qsys Systems' (I don't seem to be able to post links).