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

notify() or notify(SC_ZERO_TIME)

Hi Expers When I should use notify() and when notify(SC_ZERO_TIME) Should I always use notify(SC_ZERO_TIME) to overcome threads indeterministics order ? Is there some scenarion when I should strictly...

View Article


(E112) Port is not bound

Hi,   I'm fairly new to systemsC and I've a problem with a port binding that I cannot solve. In fact, I cannot understand why it consider a port as not bound. I checked other threads about binding...

View Article


Can I close sc_trace_file dynamically at any time?

Hello,   Can I close sc_trace_file dynamically? Can I use sc_close_vcd_trace_file(wf) at any time after sc_trace and sc_create_vcd_trace_file(); I believe so but there is no error in compile time, but...

View Article

What is Validation in systemC?

I studied that, SystemC is useful to know the problems early in the design cycles, like verification, validation, and software development.                But how SystemC is useful in the case of...

View Article

Overloading/ Registering sc_export

Hello All,   I am wandering for overloading sc_export.   Lets say at the target side I have 3 exports(same transaction type), so how to implement their write functions? class abc : public sc_module,...

View Article


Process deadlock situation

Hi Guys   WIth the below program I was expecting the simulation will be blocked indefinitely but it exits and total simulation time is 0   Can someone tells me why it didn'y gets blocked indefinitely ?...

View Article

line coverage with gcov

hello,   I trying to do coverage using gcov and can't reach 100% for line coverage, for example:   #####:  32: SC_MODULE(test) {         -:   33:        sc_in<bool> clk;         -:   34:...

View Article

Generate a shared-library containing a SystemC program

Hello, I have a SystemC program encapsulated into a C++ class allowing to interact with a SystemC model. In order to easily call that program from a scripting language, I would like to generate a...

View Article


Question about the inconsistency of document and the code about MSVC10...

In README file of systemc 2.3.0,   Windows 7 SP1, Microsoft Visual C++ 2010     (10.0) is listed as "has been well tested".   On the other hand, in src/sysc/packages/boost/config/compiler/visualc.hpp:...

View Article


simulating time delays in SystemC

Hello! I am working on a SystemC project which has 2 different modules interacting through ports and channels. Both modules are running SC_THREADS. Now, I am having problems using the wait(sc_time)...

View Article

E549, uncaught exception bad_alloc when invoking sc_spawn()

 Hello All,   I need to spawn a large number of threads for my simulation using sc_spwan(). My threads are very small piece of code. When I have 16384 threads the simulation stops by issuing the...

View Article

Using sc_event_or_list to set static sensitivity of spawned processes

Hello,   To allow setting static sensitivity of dynamically spawned processes to an or'd list of sc_events, I expected to see a method like: void sc_spawn_options::set_sensitivity(const...

View Article

Channel vs port value update

Hello everybody, While working on a systemC project, I discovered that probably I have some confused ideas about signals and ports. Let's say I have something like this:   //cell.hpp SC_MODULE(Cell) {...

View Article


Systemc-2.3.1 installation issue.

I installed systemc-2.3.1 on Ubuntu 14.04.1. The installation appears to have gone well, "make check" passes all tests. When I try running the pipe example stand-alone I get the error listed below:...

View Article

Submodule synchronization

So, I am still working on this memory code, and I am still having troubles... The memory module has some submodules: a decoder, and a sc_vector containing mem_cell modules. The mem_cell has two input...

View Article


Memory initialisation

Hi All, I've been trying to have a memory module initialised in reset state.   I've got something like this: template< class address_bus, class data_bus, unsigned int depth> SC_MODULE(sp_memory){...

View Article

Static order of execution for the SystemC Scheduler

Hello to everyone,    I would like to ask if it is possible to give a static order for a number of processes in the SystemC Scheduler. Suppose we have 4 processes a,b,c and d. I would like for each...

View Article


Sensitivity list

In a SC_METHOD which is triggered by multiple signals in a sensitivity list, is it possible to find out automatically which signal among the list has asserted, i.e without polling for each signal's...

View Article

Parameterised module instantiation

Hi,      I have to instantiate a module multiple times. The Sample code is as below:   #define BUS_WIDTH1 32 #define BUS_WIDTH2 16   SC_MODULE( mymod ) {      sc_in<sc_bv<BUS_WIDTH1> >...

View Article

Writing / reading unsigned long long using double channel

I tried to write and read an unsigned long long value over a double channel, using a double value as starting point. Code snippet:       double d = 3.1415926535897931;     unsigned long long * ullp =...

View Article
Browsing all 595 articles
Browse latest View live