Search the Community
Showing results for tags 'constructor'.
-
Hello, I need a help, Its a huge implementation like having A, B, C systemC Modules and instantiated in the Top and sc_main have the Top hierarchy sc_module_name. In the systemC Module A, i have lot of pure C++ classes and instantiated so many times like some algorithm to do some computation. While debugging difficult to get the hierarchy which one is printing or tracing. I am looking for a solution, without changing the pure C++ classes to derive from sc_module, how do i make it a hierarchy to Top. Changing every where to have a constructor with sc_module_name will be little difficult as the code is huge. Is there any suggestion? Regards Aarthi
- 2 replies
-
- sc_module_name
- constructor
-
(and 1 more)
Tagged with:
-
I have an array of initiaot/target sockets(without pointers) like tlm_utils::multi_passthrough_initiator_socket<Router, 32, tlm::tlm_base_protocol_types,1,sc_core::SC_ZERO_OR_MORE_BOUND > Out[10] How I can provide the name to these elements as Out0, Out1,Out2,...,Out9. Please note these are not pointers but simple object Thanks Sumit
-
I wanna take a 4 digit integer value as an input an make an BCD equivalent, I tried this code but it has \error at red line error: 'decimal' : no appropriate default constructor available it mean the class constructor? is the constructor of class decimal wrong? plz help me class decimal { public: sc_int<4> dec0; sc_int<4> dec1; sc_int<4> dec2; sc_int<4> dec3; ///constructor decimal(sc_int<4> d0,sc_int<4> d1,sc_int<4> d2,sc_int<4> d3) { dec3=d3; dec2=d2; dec1=d1; dec0=d0; } } SC_MODULE (seprate_digit) { sc_in <sc_int<16>> in; sc_in <bool> clk; sc_out <decimal> d; decimal dtmp; SC_CTOR (seprate_digit) { SC_METHOD(process3); sensitive << clk.pos(); } void process3() { ///// } };