KMLM List
View email archives for the history of this mailing list.
|
|
|
|
systemc-forum - Re: [systemc-forum] face problem in compilation of code
|
Message Thread:
Previous |
Next
|
- To: mitul nagar <mitul.nagar.08ec@xxxxxxxxx>
- From: "Philipp A. Hartmann" <philipp.hartmann@xxxxxxxx>
- Date: Tue, 28 Feb 2012 11:07:10 +0100
- Cc: "systemc-forum@xxxxxxxxxxxxxxxxx" <systemc-forum@xxxxxxxxxxxxxxxxx>
- Send Email to systemc-forum@lists.accellera.org:
- Send new message
- Reply to this message
|
Mitul,
please keep the mailing list in CC.
As I suggested in my initial mail, you need to add all your .o files
(and libraries) to the final linker command. Since you have a separate
definition of e.g. ei_pmu::pwr_mng_unt, the linker currently seems to
miss the ei_pmu.o file during linking.
Check the command-line options given during linking (the one with
-lsystemc etc.).
Greetings from Oldenburg,
Philipp
On 28/02/12 10:25, mitul nagar wrote:
> ...............................................header
> file......................................................................
> #include "systemc.h"
>
> SC_MODULE(ei_pmu){
>
> sc_in<bool> FCLK;
>
> //--------------WIC INTERFACE------------------------
> sc_out<bool> WICENREQ;
> sc_in<bool> WAKEUP;
> sc_in<bool> WICENACK;
>
> //---------------NVIC INTERFACE----------------------
>
> sc_out<bool> SLEEPHOLDREQPMU;
> sc_in<bool> SLEEPHOLDACKPMU;
> sc_in<bool> SLEEPDEEP;
>
> //---------------- OUTPUT ---------------------------
>
> sc_out<bool> ISOLATE;
> sc_out<bool> RETAIN;
> sc_out<bool> PWRUP;
>
> //-----------------FUNCTION ------------------------
>
> void pwr_mng_unt();
>
> SC_CTOR(ei_pmu)
> {
> SC_THREAD(pwr_mng_unt);
> sensitive<< FCLK.pos();
> dont_initialize();
> }
>
> } ;
>
> ............................................................... cpp
> file....................................................................
>
> #include "../Include/ei_pmu.h"
>
> void ei_pmu : : pwr_mng_unt()
> {
>
>
> .......................code...............................
> }
>
> }
> }
--
Philipp A. Hartmann
Hardware/Software Design Methodology Group
OFFIS Institute for Information Technology
R&D Division Transportation · FuE-Bereich Verkehr
Escherweg 2 · 26121 Oldenburg · Germany · http://offis.de/en/
Phone/Fax: +49-441-9722-420/282 · PGP: 0x9161A5C0 · Skype: phi.har
|
|