Quantcast
Channel: SystemC Language Forum RSS Feed
Browsing all 595 articles
Browse latest View live

Dynamic module instance creation

Hello everyone,    I have a folder with many modules. I want to create a configuration file specifying which of those modules to use in my simulation. In the sc_main.cpp, before the simulation starts I...

View Article


What is the difference in default_event() and value_changed_event()

Hi Folks   What is the difference in default_event() and value_changed_event() for sc_signal channel. I have an sc_in port in my module and a process run is sensitive on it   SC_THREAD(run)...

View Article


Error: (E115) sc_signal<T> cannot have more than one driver:

Hi every one,   I got this error in my simulator:   Error: (E115) sc_signal<T> cannot have more than one driver:  signal `NoC.signal_213936' (sc_signal)  first driver...

View Article

Building on Windows using gcc - compiler vs. environment #ifdefs

I've been using SystemC for years on Linux with gcc and Windows with Visual Studio.  I decided to try it out in Eclipse on windows with the Cygwin environment.   Several problems have popped up.  For...

View Article

What is a basic SystemC definition?

Hi, Once I was asked about the question: What is the basic SystemC definition? It was said that it is the first thing too add to a general C language. I remembered that I found it (It is prefixed by...

View Article


When the method to_default_time_units() returns 0?

Hi, I see the below code snippet from an example. I wonder that when sc_time_stamp().to_default_time_units() returns 0.            static bool first = true;     if (first ||...

View Article

Image may be NSFW.
Clik here to view.

Undefined process control interaction: attempt to disable a thread with...

Hi Experts   With the below programe, I have following error   Error: (E559) Undefined process control interaction: attempt to disable a thread with timeout wait: t.func2 In file:...

View Article

Where is declared SC_OFF?

Hi,   After I define fixed point, the last line      d(SC_OFF);   of   #define SC_INCLUDE_FX  #include <systemc.h> #include "fir_data.h"   void fir_data::entry() {   int state;   sc_int<8>...

View Article


Why does not this kind of parameter initialization?

Hi,   When I try the following module, I find that the blue color initialization works while the red part is used, it does not work.     SC_MODULE(mytop) { sc_signal<bool> mysig; sc_clock clk;...

View Article


It can have two constructors in a SC_MODULE?

Hi,   A class can have several constructors. Can a module have two constructors? I try to do that, but it fails. I don't know whether it is allowed or the code is wrong:         #include...

View Article

Where is sc_link_mp defined?

Hi,   I try to run the following code from    FUNCTIONAL SPECIFICATION FOR SYSTEMC 2 . 0   There are several key words are undefined. For example, "sc_link_mp" "sc_outmaster" etc. are not recognized by...

View Article

Why is fixed point number not recognized by compiler?

Hi,   Sorry, I find the answer #define SC_INCLUDE_FX

View Article

How to achieve concurrency through SC_THREAD

Hi, everyone,   I am a starter of SystemC. I wrote a simple example with using SC_THREAD following the example in systemc source.   I have two classes which boot two threads, bootMAC and respondDrv....

View Article


Writting to fifo causes process to hang.

Hello systemc community, I want to model a network on chip for my research and systemc proved to be my choice as it meets most of my requirements .In my attempt to try it ,I created two nodes that send...

View Article

Image may be NSFW.
Clik here to view.

How to read a text file as input data?

Hi,   I want to simulate a FIR filter, which reads a text file content as input data. I have tried with open a text file and call a function (entry) as a parameter, but it fails compilation. Because I...

View Article


Why this forum cannot paste text to a post?

Hi,   I don't know what is wrong that I cannot paste text to a post. I have tried Google Chrom and Microsoft Explore.   Can you paste when writing a post?   I cannot upload image too. When I open the...

View Article

Can it write a text file in a MC_CTHREAD?

Hi,   I write to a text file in a MC_CTHREAD. I find that it can write before an IO write method and wait(). Then, nothing is written to the file any more.   I do not know where this is written on the...

View Article


Image may be NSFW.
Clik here to view.

Difference of file write between MSVC and MINGW421?

Hi, I have a code run well with Microsoft Visio Studio Express 10.0, but I would like to run with Modelsim which has MINGW4.2.1. I find that the file write operation fails. If I comment out the file...

View Article

SystemC- 2.3.1 64-bit static library linking issue in windows

Hello,       I am using systemC-2.3.1 which I think has started supporting native windows(x64) build. I have build the library of systemC using the msvc solution file in visual C++ express 2010. The...

View Article

Process Synchronisation issue

Hello experts   I have a tricky synchronisation to achieve in one model. Here I have two thread processes, The IInd one is waiting for an event which is notified by Ist thread. Here after the event...

View Article
Browsing all 595 articles
Browse latest View live