282 questions
3
votes
1
answer
69
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;
...
1
vote
1
answer
215
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 ...
2
votes
1
answer
51
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: ...
1
vote
1
answer
519
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 ...
1
vote
1
answer
111
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 ...
0
votes
1
answer
181
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 ...
0
votes
0
answers
40
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>
{
...
-1
votes
1
answer
404
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 ...
-1
votes
1
answer
112
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 ...
4
votes
2
answers
1k
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 ...
-1
votes
1
answer
139
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 ...
1
vote
2
answers
201
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 ...
2
votes
2
answers
359
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 & ...
-1
votes
1
answer
161
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);
...
1
vote
0
answers
422
views
What API to use for a Verilator test harness?
Verilator can output SystemC or C++ classes. There is a 'Verilator' API and I can find the headers, but they are just raw classes with no documentation. Some code looks like classes that are used ...