View email archives for the history of this mailing list.
systemc-forum - Re: [Systemc-forum] Legacy C
- To: systemc-forum@xxxxxxxxxxx
- From: Sven Heithecker <heithecker@xxxxxxxxxxxxxxxx>
- Date: Tue, 3 May 2005 11:48:27 +0200
- Send Email to email@example.com:
- Send new message
- Reply to this message
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.
Dipl.-Ing. Sven Heithecker
Institute of Computer and Communication Network Engineering
Technical University of Braunschweig, Germany