Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- To the best of my knowledge, there are not any additional tools to support you. Beyond setting the NIOS running your program, there isn't a lot you can do without additional labor on your part. You can inspect the nets inside the NIOS instance and observe the program counter, what opcode has been decoded, the instruction/data bus activity, etc. Determining what file+line of C code is being executed during Modelsim simulation is probably do-able via Modelsim TCL and some offline processing, but will take some work. If traffic on this forum is an indicator, NIOS simulation is not commonly done beyond the level which you have already achieved (i.e. consider moving to hardware). --- Quote End --- Do you know why im getting this error in Modelsim_Nios Simulation: --- Quote Start --- # Warning: read_during_write_mode_mixed_ports is assumed as OLD_DATA# Time: 0 Instance: nios2_tb.nios2_inst.nios2.niil1ii.genblk1.altsyncram_inst# 0: INFO: nios2_tb.nios2_inst_clk_bfm.__hello: - Hello from altera_clock_source.# 0: INFO: nios2_tb.nios2_inst_clk_bfm.__hello: - $Revision:# 1 $# 0: INFO: nios2_tb.nios2_inst_clk_bfm.__hello: - $Date: 2014/02/16 $# 0: INFO: nios2_tb.nios2_inst_clk_bfm.__hello: - CLOCK_RATE = 50000000 Hz# 0: INFO: ------------------------------------------------------------# # ===============================================================# Testing the Software implementation of GCD# ===============================================================# # - GCD (Warning : Address pointed at port A is out of bound!# Time: 1105670000 Instance: nios2_tb.nios2_inst.onchip_memory.the_altsyncram.genblk1.altsyncram_inst# warning : address pointed at port a is out of bound!# Time: 1105670000 Instance: nios2_tb.nios2_inst.onchip_memory.the_altsyncram.genblk1.altsyncram_inst# 20 ,Warning : Address pointed at port A is out of bound!# Time: 1161730000 Instance: nios2_tb.nios2_inst.onchip_memory.the_altsyncram.genblk1.altsyncram_inst# Warning : Address pointed at port A is out of bound!# Time: 1161730000 Instance: nios2_tb.nios2_inst.onchip_memory.the_altsyncram.genblk1.altsyncram_inst# 10) =Warning : Address pointed at port A is out of bound!# Time: 1217650000 Instance: nios2_tb.nios2_inst.onchip_memory.the_altsyncram.genblk1.altsyncram_inst# Warning : Address pointed at port A is out of bound!# Time: 1217650000 Instance: nios2_tb.nios2_inst.onchip_memory.the_altsyncram.genblk1.altsyncram_inst 10 --- Quote End --- I have no idea what is port A!, but i try to printf different type of variables (int (%d), short int ...) but still i got the same error. I tried to stop that using Modelsim commands:"set StdArithNoWarnings 1 ,set NumericStdNoWarnings 1" but it didnt work. thanks