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] How to pass name to hierarchy modules. Message Thread: Previous | Next
  • To: Smith lels <lerlssmith@xxxxxxxxx>
  • From: "Philipp A. Hartmann" <philipp.hartmann@xxxxxxxx>
  • Date: Fri, 15 Jul 2011 10:15:23 +0200
  • Cc: systemc-forum@xxxxxxxxxxxxxxxxx
Send Email to systemc-forum@lists.systemc.org:
Send new message
Reply to this message
Simith,

you are trying to inherit multiple times from sc_module.  In short, this
is not allowed in SystemC.  Your naming problems are the least ugly
side-effects of this.  Use sub-modules instead.

Greetings from Oldenburg,
  Philipp

On 14/07/11 20:13, Smith lels wrote:
> like this:
> class a: publis sc_module {
> a(sc_module_name na):sc_module (na)
> }
> class b: publis sc_module {
> b(sc_module_name na):sc_module (na)
> }
> 
> class c: public a, public b {
> b(sc_module_name na):a(na),b(na)
> }
> 
> sc_main(...){
> c m1("master1");
> }

[snip]

-- 
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


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