WangYuchen Posted October 18, 2012 Report Share Posted October 18, 2012 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! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.