Search the Community
Showing results for tags 'Simulation Running'.
Found 1 result
Hello all, I am going to build a four-MIPS platform by SystemC TLM2.0. The purpose for that platform: 1. capture pcap dump file and preload into data memory; 2. load OpenDPI program into program memory; 3. trigger the MIPS processor on and simulate the performance. I built a module called "Loader_Scheduler" which is used to capture packets in sequence and preload the data of each packet into different data memories. The whole story is like, capture first packet and run the MIPS simulation, in the meantime, "Loader_Scheduler" will capture the second packet. But I encountered such error: Error: (E113) insert primitive channel failed: simulation running In file: sc_prim_channel.cpp:166 In process: top.loader_scheduler.loader_scheduler @ 0 s Finished sc_main. I googled it: Error: (E113) insert primitive channel failed: simulation running In file: ../../../../src/sysc/communication/sc_prim_channel.cpp:166 Any of your module has attempted to create an instance of a primitive channel (sc_signal, sc_fifo, etc) after the start of simulation.In systemC primitive channels can only be created before the start of simulation . Please search your code for any signal declaration inside a function. Does it mean I cannot let Loader_Scheduler run after the simulation start? Could you provide me any suggestions to solve it by loop or something else? Thank you!