-
Posts
353 -
Joined
-
Last visited
-
Days Won
47
Roman Popov last won the day on October 19 2023
Roman Popov had the most liked content!
Profile Information
-
Location
.Hillsboro, Oregon
Roman Popov's Achievements
![Rank: Advanced Member (2/2) Advanced Member](http://content.invisioncic.com/r164598/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png)
Advanced Member (2/2)
79
Reputation
-
dzw1208 started following Roman Popov
-
Michael-Lehn reacted to a post in a topic: Why Accellera does not offer SystemC to Verilog converter?
-
Michael-Lehn reacted to a post in a topic: Why Accellera does not offer SystemC to Verilog converter?
-
Michael-Lehn reacted to a post in a topic: Why Accellera does not offer SystemC to Verilog converter?
-
amedoc started following Roman Popov
-
prafulhy started following Roman Popov
-
LaoShaw reacted to a post in a topic: SystemC Simulation Semantics and Scheduler Steps
-
karthickg started following Roman Popov
-
Shashank V M reacted to a post in a topic: how to implement delay in systemC?
-
amal reacted to a post in a topic: 2d array data passing through generic payload
-
anna started following Roman Popov
-
OMark reacted to a post in a topic: sc_port sc_export binding issue
-
Nitin_S started following Roman Popov
-
tymonx reacted to a post in a topic: New UVM Reference Implementation Now Available
-
Runtime error for sc_module_name on msvc
Roman Popov replied to Navaneet kumar's topic in SystemC Language
Do you have SystemC compiled as DLL? Otherwise you have same issue as described here : https://forums.accellera.org/topic/6540-inserting-existing-software-into-tlm-frame/ -
Gurmeet Singh Taank started following Roman Popov
-
Many commercial SystemC tools have SystemC-specific profilers measuring runtimes of SC processes. On Windows I usually use Visual Studio built-in profiler. I don't have experience with profiling on Linux.
-
In general, you can use profiler tool to understand where hotspots are. Your code snippet is incomplete, so it is impossible to say anything.
-
Inserting existing software into TLM frame
Roman Popov replied to Liyuan's topic in SystemC TLM (Transaction-level Modeling)
Each shared library or executable has its own copy of static variables. So, if part of your application links SystemC dynamically, and other part links SystemC statically, the result is that you have 2 conflicting SystemC kernels in your application. So you have two options: - Use shared SystemC library everywhere - Use static linking everywhere -
1849:14: error: friend declaration of ‘int compare_unsigned
Roman Popov replied to aqib's topic in SystemC Language
Well, compiler error is self-explanatory. I see this particular issue is fixed even in SystemC 2.3.0 -
1849:14: error: friend declaration of ‘int compare_unsigned
Roman Popov replied to aqib's topic in SystemC Language
SystemC 2.2 is quite old, may be incompatible with modern compilers. Why not to use SystemC 2.3.3 ? -
Roman Popov reacted to a post in a topic: How to trace std::list<int> with sc_trace? [solved]
-
SiGa reacted to a post in a topic: How to trace std::list<int> with sc_trace? [solved]
-
How to trace std::list<int> with sc_trace? [solved]
Roman Popov replied to SiGa's topic in SystemC Language
I see at least 1 bug in code sample: for (auto val : var.read()) here you create copies of vector elements on a stack of your function. And then pass references to them into SystemC kernel. So those will be dangling references one you return from your sc_trace overload. Change to: for (auto & val : var.read()) -
Compiler already shown you where is the error and how to fix it. SystemC is a C++ library, you will need to learn C++ and get comfortable with g++ compiler before digging into SystemC.
-
rainer reacted to a post in a topic: How to trace std::list<int> with sc_trace? [solved]
-
VCS invokes g++ automatically. But this is correct, sc_main is missing.
-
How to trace std::list<int> with sc_trace? [solved]
Roman Popov replied to SiGa's topic in SystemC Language
This is correct, you cannot trace dynamic data structure. This is not even a SystemC limitation, but limitation of VCD waveform dump in general. VCD does not allow to add/remove signals to waveform dynamically. So usually you have two options : 1) If maximum capacity is known in advance and is small, you can create your own "list" that utilizes statically sized array as a storage: template<typename T> struct my_list_item { bool has_value = false; T value; } template<typename T, size_t MAX_SIZE> class my_list { std::array<my_list_item, MAX_SIZE> storage; // ... } 2) If maximum size is large or unknown, but it is sufficient for you to trace only head and tail of the list, you can have a copy of tail and head that is updated on every push and pop: class my_list { std::list<T> storage; my_list_item head_copy; my_list_item tail_copy; //... custom push pop } -
How to pass a sc_event as parameter without pointers?
Roman Popov replied to SiGa's topic in SystemC Language
Looks like XY problem to me. If you need pointer to event, use pointer. -
Warnings of SystemC with pedantic CMake
Roman Popov replied to Hadrian2002's topic in SystemC Language
Interesting, I'm not an expert in CMake, but even with existing CMakeLists.txt when I build my application SystemC include directory is recognized automatically as system headers: And as a result I don't receive any warnings about issues in SystemC headers. -
You forgot ";" here: using namespace std;
-
Then I have no idea. Set breakpoint on this report and analyze why it gets there. From my perspective your code sample should work without Warnings.
-
I've reproduced the issue on Centos7. Preliminary it looks like a misuse of mprotect on memory allocated with new. So as a workaround commenting out stack protection section should work. Since I don't have enough linux system programming expertise I will bring it to accellera wg discussion before submitting a fix to systemc repo. Thanks a lot for reporting this and spending your time on investigation!