SystemC without Signals
Hi All I tried to implement a simple Task Scheduler in SystemC. It works as follows: I have three modules "TaskA" , "TaskB" and "CPU". The algorithm works in such a way that the CPU gives full...
View Articlesc_event_queue query
Hello, I am having an SC_THREAD as follows // // SC_THREAD(my_proc); sensitive << event_1; dont_initialize(); // // // void my_proc() { while(1) { wait(10,SC_NS); cout <<...
View ArticleSC_THREADS not starting?
Hello everyone! I am new in this forum. I am doing some SystemC exercises after a long time without using it, and I have a very basic problem. I wrote the following code: #include <iostream>...
View Articleasync reset does not reset singlas assigned in a CTHREAD
Hello everyone, here's the secenario: CTHREAD A THREAD B CTHREAD C CTHREAD A and CTHREAD C are both triggered by the same clock signal, CTHREAD C has an async reset signal assigned to it. This...
View ArticleProblem with re-instatiation of modules
Hi, I'm working on a TL-Model in SystemC. Due to some internal necessarities, it is important to re-instantiate the model before a new simulation. I do not want to re-start the whole program....
View ArticleBest Practice to Synchronize Modules
Hi, I created a pair of modules in SystemC. The purpose is to model a data transfer with one side being the source and the other side being the sink. It currently uses SC_THREAD for processing, e.g....
View Articleno match for ‘operator=’ in ‘((sync_fifo*)this)->sync_fifo::wptr = 0’
Hi All , I am new to SytemC and I am designing a FIFO . When I run the make file I am getting an error " no match for ‘operator=’ in ‘((sync_fifo*)this)->sync_fifo::wptr = 0’ " . I guess this has...
View ArticleProblems with custom Packet Class in sc_in/sc_out
Hello, I have a Packet class, that for the last week I had to overload some operators ot make it compile using SystemC. Currently I'm trying to instantiate this class in the main file to start...
View Articlesyntax for copying the bit vector , systemC 2.3.1 version
Hi All ,I am trying to copy a particular bit from one bit vector to other . I tried several ways of assigning the values but could not get it right. Also ,I want to assign a variable 'i' to a constant...
View Articleprimitive and hierarchical channel
Hi Guys, I am a bit confused on the primitive and hierarchical channel In primitive channels we have request-update/update but not in hierarchical channel. Is it mandatory to have request-update/update...
View ArticleHow to compile Systemc on MinGW / MSYS?
Hi I tried to compile systemC on MSYS Windows. I got error. Can anybody help me? I also pasted the config.log This file contains any messages produced by compilers while running configure, to...
View Articleinout port binding issue
Hello all, I am trying to bind 'inout' port named sda in two different modules in a top module. But it is showing the below error when I am executing it. Error: (E109) complete binding failed:...
View ArticleSystemC Assertion Library
Hi all, Please, I would like to know if someone here is aware of any update/progress related to the "Implementation of a SystemC Assertion Library" developed by Wolfgang Ecker, Volkan Esen, Thomas...
View ArticlesystemC
Hi, I am a beginner in systemC and i want to know if i can connect it to quartus. Is that possible??
View ArticleData sampling in SC?
Hi, I have 3 components in system. Two in SC [Tx and Rx] and One in SV. Two SC modules are connected in sc_main which is exported. SV is connected via UVM Connect. Tx is driving clock and few...
View ArticlePort Encapsulation
Hello, I am working on a model where I am attempting to encapsulate ports. The following code groups sc_in/sc_out ports together based on what bus they belong to. Then I can use arrays to declare the...
View ArticleSystemC load modules at runtime
Hi, I am currently trying to load modules from external dlls into a systemc application. Basic info: compiler gcc (from cygwin) x64 bit os: windows 7 Also I am using Systemc-AMS but as this appears...
View ArticleAny method of stopping simulation without sc_start(time) and sc_stop
Hi All, I have built a simulator which uses system C library. Its a network simulator and i am planning to run some traces. Well earlier when i was running my own generated traffic i was specifying...
View ArticleProblem with multiple process|Threads and runtime error E115 of multiple writers
Hello, I'm trying to model a packet switcher, for such I broke the packet assignment of different ports in different methods, because I need to evaluate each port in parallel, however the system...
View ArticleObject Oriented programming using SystemC
Hi From what I have seen, SystemC throws error while attempting to use Inheritance/polymorphism. For example I have a Task SC_MODULE(Task) { sc_in<bool> in; sc_in<bool> out; void...
View Article