- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi, I am new on simulation using Modelsim. According to altera Quartus software handbook (under the section running Nios ii system with modelsim), the document stated that " to run a Qsys generated Nios ii system with modelsim, you must first create a simulation model and testbench and specify memory initialization file". Anyone knows why we need to specify a memory initialization file?
Link copiado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
You are simulating a processor, this is the code that the simulated processor is running.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Thanks for the information Galfonz.
Between, for example, I wish to run the simple hello word program. Is it mean that the memory initialization file helps to put the code into the memory so that the processor is able to process the hello world.c?- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Maybe should rephase a little bit. The mcu or processor can not run with out a memory. And during mcu start up. It will going to look for file for all kind of initialization where this store in a memory. And conrtol by progam counter.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Typically your NIOS code will reside in an on-chip memory. You set the processor reset and interrupt addresses to be in that on-chip memory. I'd recommend an LED blink program rather than hello, world as it's easier to verify your results. Follow a tutorial that blinks LEDs. I don't think a console will work in simulation other than seeing logic levels of the RS232 wire. There is a utility somewhere that you will need to run to convert your software binary to mif format for use in the sim. Sorry but I don't remember what it is called.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Thanks all!
That mean if I did not specify memory initialization file, the on-chip memory would be empty and the processor is running with no data available? While on the other hand if there is an memory initialization file, the on-chip memory would contain the software code for the processor to process?- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
you are right...

- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora