Search the Community
Showing results for tags 'systemc2.3.1'.
-
Hello, I have defined one class "Class A" and when creating instances of that class e.g. A* instA1 = new A (); I want to attach the instA1 object to an sc_in port of my SystemC module as an attribute of that port. - Can I use for that purpose the add_attribute function? - How safe is that? - Are there any other recommended mechanisms (as alternatives)? Thanks.
-
Hello, When using a multiport port type as follows: struct M:sc_module{ sc_port<sc_signal_in_if<sc_dt::sc_logic>, 32, SC_ZERO_OR_MORE_BOUND> prt_input; void end_of_eleaboration(){ SC_METHOD(action); for(int i=0;i<prt_input.size();i++) sensitive << prt_input->value_changed_event(); } ... }; Is there any way to capture the port index "i" which changed the value and caused the method to be called? Thanks,
- 3 replies
-
- systemc2.3.1
- channels
-
(and 1 more)
Tagged with:
-
when I launch the executable program it signals me this error: export LD_LIBRARY_PATH=/usr/local/systemc2.3.1/lib-linux64 ./run_me.x: error while loading shared libraries: libsystemc-2.3.1.so: cannot open shared object file: No such file or directory operating system: Debian 9 gcc --version gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 g++ --version g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516