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] Module configuration Message Thread: Previous | Next
  • To: Mareon Dovak <mareon11@xxxxxxxxxxx>
  • From: Alan Fitch <alan.fitch@xxxxxxxxxx>
  • Date: Thu, 24 Sep 2009 20:50:04 +0100
  • Cc: systemc-forum@xxxxxxxxxxxxxxxxx
Send Email to systemc-forum@lists.systemc.org:
Send new message
Reply to this message
Mareon Dovak wrote:
Hi Sir,
Back to this subject again, i still have some doubts about the efficiency of configuration the member variables in hierachical system model. Assuming, i have 5 modules A,B,C,D,E. A is parent of B, which is in turn parent of C and so on. To configure some member variables of the module E at the run time, i have to give the new values through the config file and then through the constructor of the top module over all child modules to the distenation module.
But is this technique the only way or efficient enough to configure the member variables in hierachical model in systemc. are there another technique to do that in c++ or systemC? can i configure for example each module at the run time before the end of elaboration phase? how?
i appreciate each support..

Hi Mareon,

 SystemC is C++ - you can do anything you like.

For instance, you could store configuration options in a file using

Boost:program_options (see
http://www.boost.org/doc/libs/1_40_0/doc/html/program_options.html)

Or you could store configuration options using hierarchical paths and values in a file, e.g.

mymod.uut.dut.a  2

Or you can set public data members hierarchically e.g. from the top level

myod.uut.dut.a = 2;

The only limit is your imagination - and the time you have available :-)

regards
Alan
--
Alan Fitch
www.doulos.com

By Date: Previous | Next Current Thread By Thread: Previous | Next
  • Module configuration, Mareon Dovak 16:32 GMT
    • Re: [systemc-forum] Module configuration, Alan Fitch  (you are here)