283 questions
Score of 0
0 answers
52 views
Pausing (and resuming) payloads on the backward path in TLM
I have a problem with the backward path in TLM. It may be due to my inexperience (I am new to TLM) but I can't see anyway an initiator can use the backward path to signal to the target to resume ...
Score of 3
1 answer
80 views
compilation issues with sc_dt::sc_biguint data types (systemc)
I'm facing an compilation issues with sc_dt::sc_biguint data types. I tried to reproduce the issue with a simple example below
#include<iostream>
#include<systemc.h>
using namespace std;
...
Score of 1
1 answer
266 views
Driving sc_signal using sc_in, sc_out using sc_signal
Given a wrapper module with some exports (sc_in, sc_out)
I would like to drive multiple core module sc_in signals and allow multiple core modules to drive sc_out signals of the wrapper (one driver per ...
Score of 2
1 answer
57 views
SystemC-AMS: Initialization for tracing of: v_supercap failed set wave to 0
I receive the error in the title when I simulate my supercapacitor class with systemC. More precisely, the whole error message is as follows:
Warning: SystemC-AMS: Initialization for tracing of: ...
Score of 1
1 answer
545 views
SystemC Error with wait() in SC_THREAD: "wait() is only allowed in SC_THREADs and SC_CTHREADs"
I'm working on a convolutional neural network simulation using SystemC for a school homework. My code includes a module Conv2d with an SC_THREAD for the forward pass of a convolutional layer, which ...
Score of 1
1 answer
124 views
systemc: how to detect two events happen at the same time
I am using systemc to model a packet-based network. There are two parallel threads, which process random size packet. After each packet, I'd like to check whether the other thread happens to be in the ...
Score of 0
1 answer
201 views
How to define `sc_fixed` variables that have word/integer lengths that are based off (but not the same size as!) those of a template parameter
Let's say I want to write a generic SystemC module which does some algorithm processing on fixed point data of various representations, so I implement it as as module template where the fixed point ...
Score of 0
0 answers
42 views
error: declaration of 'class T' template <class T> class FIFO_READ_HS: public sc_module, public sc_fifo_in_if<T>
Coming accross declaration of 'class T' error.
I have this code:
#include "systemc.h"
template <class T> class FIFO_READ_HS: public sc_module, public sc_fifo_in_if<T>
{
...
Score of -1
1 answer
419 views
SystemC on MAC m1 with Vscode: Undefined symbols for architecture arm64
I am building systemC environment in Mac m1. I finished the whole process of systemC build and check and installation. All example cases passed in command line.
However, when I tried to integrate the ...
Score of -1
1 answer
117 views
I'm trying to simulate 3 LED's with 2 switches using systemc
With 2 switches s1,s2 and 3 Lights l1 l2 l3. pressing s1 or s2 should switch on l1. Next step if I press s1, l1(off) and l2(on) or if I press s2, l1(off) and l3(on). Final state is on press of any ...
Score of 4
2 answers
1436 views
makefile.in not found while installing systemC
I'm trying to install SystemC on mac (x86, macOs 13.0.1). I followed the steps described in the docs:
$ cd path/to/systemc-2.3.3
$ mkdir objdir
$ cd objdir
$ export CXX=g++
$ ../configure
But when I ...
Score of -1
1 answer
142 views
How to determine which port has invoked an sc_thread if the thread is sensitive to multiple ports in SystemC?
I have a thread which is sensitive to an array of ports.
In this thread I want to find out which port had triggered this thread so that i can read the value of that port?
Is there a way to determine ...
Score of 1
2 answers
210 views
Makefile:77: *** missing separator. Stop
Hi I am trying to install systemC on WSL2, when I run sudo make I seem to be getting this error
Making all in src
make[1]: Entering directory '/home/ryans/systemc-2.3.4/src'
Makefile:77: *** missing ...
Score of 2
2 answers
382 views
what the meaning of (a&b)>>c in this systemc code? [duplicate]
when I read SYSTEMC code,I find a function return int like this:
static inline int rp_get_busaccess_response(struct rp_pkt *pkt)
{
return (pkt->busaccess_ext_base.attributes & ...
Score of -1
1 answer
166 views
How to simulate output delay using sc_method but without using next_trigger() in SystemC?
SC_MODULE(example) {
sc_in < int > a, b;
sc_in < int > out
Void process() {
// Output delay implement here
}
SC_CTOR(example) {
SC_METHOD(process);
...