Jump to content

SystemC: simulation stopped by user.


WangYuchen

Recommended Posts

Hello all,

I met a general problem when I was running simulation on SystemC platform. Maybe it not a problem, but I would like to figure out how it comes.

Info (OR_OF) Target 'ram_sh' has object file read from '../../Loader_Scheduler/program_examples/test.MIPS32.elf'
Info (OR_SH)	 Section		flg  sect addr   size		load addr   file offset
Info (OR_SD)	 .text		  -ax  0x80080000  0x00005920  0x80080000  0x00000058
Info (OR_SD)	 .init		  -ax  0x80085920  0x00000024  0x80085920  0x00005978
Info (OR_SD)	 .fini		  -ax  0x80085944  0x0000001c  0x80085944  0x0000599c
Info (OR_SD)	 .rodata		-a-  0x80085960  0x00000804  0x80085960  0x000059b8
Info (OR_SD)	 .sdeinit	   -a-  0x80086164  0x00000004  0x80086164  0x000061bc
Info (OR_SD)	 .sdefini	   -a-  0x80086168  0x00000004  0x80086168  0x000061c0
Info (OR_SD)	 .sdeosabi	  -a-  0x8008616c  0x00000008  0x8008616c  0x000061c4
Info (OR_SD)	 .eh_frame	  -a-  0x80086174  0x00000044  0x80086174  0x000061cc
Info (OR_SD)	 .data		  wa-  0x800861b8  0x000002d8  0x800861b8  0x00006210
Info (OR_SD)	 .ctors		 wa-  0x80086490  0x00000008  0x80086490  0x000064e8
Info (OR_SD)	 .dtors		 wa-  0x80086498  0x00000008  0x80086498  0x000064f0
Info (OR_SD)	 .jcr		   wa-  0x800864a0  0x00000004  0x800864a0  0x000064f8
Info (OR_SD)	 .sdata		 wa-  0x800864a4  0x00000018  0x800864a4  0x000064fc
=======================
number is 0
number is 1
number is 2
number is 3
number is 4
number is 5
number is 6
number is 7
number is 8
number is 9
=======================
number is 0
number is 1
number is 2
number is 3
number is 4
number is 5
number is 6
number is 7
number is 8
number is 9
=======================
number is 0
number is 1
number is 2
number is 3
number is 4
number is 5
number is 6
number is 7
number is 8
number is 9
=======================
number is 0
number is 1
number is 2
number is 3
number is 4
number is 5
number is 6
number is 7
number is 8
number is 9
------Start Loader_Scheduler------
Now is at0 s
------Finish Loader_Scheduler------
SystemC: simulation stopped by user.
Finished simulation 1
Info
Info ---------------------------------------------------
Info CPU '/top.cpu_4' STATISTICS
Info   Type				  : mips32
Info   Nominal MIPS		  : 100
Info   Final program counter : 0x80080084
Info   Simulated instructions: 8,700
Info   Simulated MIPS		: run too short for meaningful result
Info ---------------------------------------------------
Info
Info ---------------------------------------------------
Info CPU '/top.cpu_3' STATISTICS
Info   Type				  : mips32
Info   Nominal MIPS		  : 100
Info   Final program counter : 0x80080084
Info   Simulated instructions: 8,700
Info   Simulated MIPS		: run too short for meaningful result
Info ---------------------------------------------------
Info
Info ---------------------------------------------------
Info CPU '/top.cpu_2' STATISTICS
Info   Type				  : mips32
Info   Nominal MIPS		  : 100
Info   Final program counter : 0x80080084
Info   Simulated instructions: 8,700
Info   Simulated MIPS		: run too short for meaningful result
Info ---------------------------------------------------
Info
Info ---------------------------------------------------
Info CPU '/top.cpu_1' STATISTICS
Info   Type				  : mips32
Info   Nominal MIPS		  : 100
Info   Final program counter : 0x80080084
Info   Simulated instructions: 8,743
Info   Simulated MIPS		: run too short for meaningful result
Info ---------------------------------------------------
Info
Info ---------------------------------------------------
Info TOTAL
Info   Simulated instructions: 34,843
Info   Simulated MIPS		: run too short for meaningful result
Info ---------------------------------------------------
Info
Info ---------------------------------------------------
Info SIMULATION TIME STATISTICS
Info   Simulated time		: 0.00 seconds
Info   User time			 : 0.04 seconds
Info   System time		   : 0.01 seconds
Info   Elapsed time		  : 0.05 seconds
Info ---------------------------------------------------
CpuManager finished: Fri Oct 26 17:08:00 2012

After the 4 processors simulated, there is a stop "SystemC: simulation stopped by user".

I was wondering if the unexpected stop is from platform or ELF linked file. I didn't use sc_stop() or setting the time for sc_start() (such as sc_start(20, SC_MS)). Thus, how the stopp comes?

Is it because of the "return 0;" at the end of ELF file?

Or, there is nothing to change in simulation environment?

Link to comment
Share on other sites

We're missing a lot of information. This forum is about SystemC coding, but you provided no code for us to comment on. I have no idea what your platform looks like nor what it is supposed to do. About the best advice I can give you at this point is to use a debugger (GDB) and set a breakpoint on sc_core::sc_stop. You can then look at the stack trace to determine where the code stopped. It does look like your design did something even though SystemC time did not appear to move forward. I am guessing this is a loosely timed (LT) model with 4 CPU cores. Don't have any idea what architecture.

BOTTOM LINE: GIve us more information about the design if you want a more substantial answer.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...