Forum Discussion

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

NIos5.0 Modelsim trouble !

I try to simulate in Modelsim 6.0 new Nios5.0 (low_cost_1C20 example )

My steps is

1. Open and genarate low_cost_1C20 example with Modelsim project

2. Run IDE

3. Create Hello leds example

4. In system liblary properties set "Modelsim only , no hardware support"

5. Build software

6. Start in IDE (RUN->RUN), press "new" Button after this press "RUN" button

7. MOdelsim starts

8. in Modelsim i press (Tools->Execute macro) and execute "setup_sim.do"

9. In modelsim console write "s"

10. after previous proccess write "w" and timing diagramm starts

11. Next i write "run 500 us"

AND SIMULATING STOPS IN FILE "cpu_test_bench.v" in "$stop" string

I comment this strings in the file

and try run again - result - program code is not working !!!!!!!11

In previous version that way work just fine but what happen in new version ??????????

2 Replies

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

    Can you please paste some of the lines of code around the $stop in cpu_test_bench.v so I can see why it is stopping?

    What software are you running?

    You might have accidentally executed a special instruction variation in the CPU used to stop our simulations for

    internal testing purposes.

    You can always just try running again in modelsim to continue execution.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have also encounter this problem, The modelsim console show the following info:# # ************************************************************# This testbench includes an SOPC Builder Generated Altera model:# 'sdram_test_component.v', to simulate accesses to SDRAM.# Initial contents are loaded from the file: 'sdram.dat'.# ************************************************************# 100970 ns: WARNING: cpu_test_bench/M_wr_data_unfiltered is 'x'# 100990 ns: ERROR: cpu_test_bench/W_wr_data is 'x'

    If i comment the lines in cpu_test_bench.v, the nios seems not work.Any one can tell me how to solve this problem?