Skip Nav
Home » Forums » SystemC Forum

Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
systemc-forum - Re: [Systemc-forum] Legacy C Message Thread: Previous | Next
  • To: systemc-forum@xxxxxxxxxxx
  • From: Sven Heithecker <heithecker@xxxxxxxxxxxxxxxx>
  • Date: Tue, 3 May 2005 11:48:27 +0200
Send Email to
Send new message
Reply to this message
Hi Stepthen,

I had the same problems one year ago when I integrated the SimpleScalar 
simulator in my SystemC code.

I created a single SystemC class and put all C code in it, i.e the (global) C 
functions became member functions. The main function was then started as a 
SystemC thread (as you did it) and I could call wait whereever I wanted to.

If you dont want to do this, AFAIK creating a "proxy" class as you mentioned 
is the best solution. This should work because once you called the member 
function you are inside a SystemC class with its context. However, I haven't 
tried that one yet.

Kind Regards,
S. Heithecker

Dipl.-Ing. Sven Heithecker
Institute of Computer and Communication Network Engineering
Technical University of Braunschweig, Germany

By Date: Previous | Next Current Thread By Thread: Previous | Next

  Mail converted by the most-excellent MHonArc 2.6.10