Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by JIBI3731

  1. Thanks Eyck my intention was (is) to define a standard/default behaviour for ahb master (=> the dummy class) ie performs random bus bandwidth consumption then , when i need to instantiate and test a "real" ahb master , i can immediatly test the scene with an arbiter (fixed priority) , the ahb master under test and several dummies Regards JB
  2. Dear all, i want to define a generic simple class for ahb master (very simple modeling) liek this : SC_MODULE (ahb_master) { sc_in<bool> bus_grant ; sc_out<bool> bus_req; sc_out<bool> bus_release; sc_out<bool> busy; //------------Local Variables Here--------------------- sc_uint<4> count; void tick () {;} SC_CTOR(ahb_master) { SC_THREAD(tick); } }; then i wanted to derive daughter class with additional fields and specialised SC_THREAD, but i encountered some difficulties for the thread routine (i called it tick) struct dummy_master : ahb_master { dummy_master(sc_module_name name) : ahb_master(name) { cout<<"Executing new"<<endl; SC_THREAD(tick); sensitive << bus_grant.pos(); } SC_HAS_PROCESS(dummy_master); void tick () { do { busy.write(0); // not busy now wait(1+rand() % 10000 ,SC_PS); // wait inactive for a random delay bus_req.write(1); // request bus wait(); // wait for bus grant bus_release.write(0); // not release bus_req.write(0); // clear bus request busy.write(1); // busy now wait(1+rand() % 1000 ,SC_PS); // keep the bus for a random delay bus_release.write(1); // release bus } while (1); } }; that i instantiated this way : dummy_master master1("MASTER1"); but then i get this at run time : Warning: (W505) object already exists: MASTER1.tick. Latter declaration will be renamed to MASTER1.tick_0 This is not blocking for me but i guess a more elegant way to do this exists .... Any advice ? Thanks JB
  3. Hi all I finally decided to go with cygwin and it worked at once, without problem the main difference i could notice is the choice of the library for threading (qt vs fiber) Regards
  4. Thanks Philipp I tried : ../configure CXXFLAGS="-DWIN64" --target=mingw64 but i get an error , early at compile time : make[3] : on entre dans le répertoire « /d/BOULOT/tools/SYSTEMC/NEW2/systemc-2.3.3/objdir/src/sysc » CXX kernel/sc_attribute.lo CXX kernel/sc_cor_fiber.lo ../../../src/sysc/kernel/sc_cor_fiber.cpp: In destructor 'virtual sc_core::sc_cor_fiber::~sc_cor_fiber()': ../../../src/sysc/kernel/sc_cor_fiber.cpp:72:7: error: 'PVOID' was not declared in this scope PVOID cur_fiber = GetCurrentFiber(); ^~~~~ ../../../src/sysc/kernel/sc_cor_fiber.cpp:73:22: error: 'cur_fiber' was not declared in this scope if( m_fiber != cur_fiber && this != m_pkg->get_main() ) and then other errors in cascade ..... The missing PVOID is a declaration i think in <windows.h> ?????? I keep searching .... Regards JB config.log
  5. Hi, I made the following : ./configure --target=mingw64 CXXFLAGS="-DSC_OVERRIDE_DEFAULT_STACK_SIZE=0x80000" then : make : OK , no compilation error error and then : make check : i get the following : make[3] : on entre dans le répertoire « /d/BOULOT/tools/SYSTEMC/NEW2/systemc-2.3.3/examples/sysc » CXX fft/fft_flpt/fft_fft_flpt_test-fft.o CXX fft/fft_flpt/fft_fft_flpt_test-main.o CXX fft/fft_flpt/fft_fft_flpt_test-sink.o CXX fft/fft_flpt/fft_fft_flpt_test-source.o CXXLD fft/fft_flpt/test.exe ../../src/.libs/libsystemc.a(sc_simcontext.o):sc_simcontext.cpp:(.text+0x6704): undefined reference to `sc_core::sc_cor_pkg_qt::sc_cor_pkg_qt(sc_core::sc_simcontext*)' ../../src/.libs/libsystemc.a(sc_simcontext.o):sc_simcontext.cpp:(.text+0x6704): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `sc_core::sc_cor_pkg_qt::sc_cor_pkg_qt(sc_core::sc_simcontext*)' ../../src/.libs/libsystemc.a(sc_simcontext.o):sc_simcontext.cpp:(.text+0x6713): undefined reference to `sc_core::sc_cor_pkg_qt::get_main()' ../../src/.libs/libsystemc.a(sc_simcontext.o):sc_simcontext.cpp:(.text+0x6713): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `sc_core::sc_cor_pkg_qt::get_main()' collect2: error: ld returned 1 exit status I also atatched the config.log Many thanks for the support JB config.log
  6. Dear fellows, I just downloaded systemc2.3.3 and when i generate the test exe (using make check) i get an error at link : undefined symbol in libsystemc.a(sc_simcontext.o):sc_simcontext.cpp:(.text+0x6704): undefined reference to `sc_core::sc_cor_pkg_qt::sc_cor_pkg_qt i had no problem to build the libs (libsystemc.a , libsysc.a, libtlm_core.a and libtlm_utils.a) but apparetnly the libsystemc.a contains unresolved reference ? i use MSYS2 with mingw64 and before building, i set the CXXFLAGS variable : CXXFLAGS='-O3 -g -Wall -Wextra -Winvalid-pch -Wno-unused-parameter --std=gnu++11' Please help me , i'm stuck 😞 Thanks in advance Best regards JB
  • Create New...