View email archives for the history of this mailing list.
systemc-forum - Re: [systemc-forum] Module configuration
- 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 firstname.lastname@example.org:
- Send new message
- Reply to this message
Mareon Dovak wrote:|
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..
SystemC is C++ - you can do anything you like.
For instance, you could store configuration options in a file using
Or you could store configuration options using hierarchical paths and
values in a file, e.g.
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 :-)