Array of Ports
Hi all, I have a following design: I have created a the following Module (in SystemC) Task Module: (Thread) This module gets the load of each task, calculate the remaining time, stores the...
View Articlesystemc softwares features
Hi i study about softwares that suport systemc in simuation or synthesis. for example c to silicon compiler from cadene. but when i study datasheet of these softwares ,i cant understand some of the...
View ArticleInstantiating array of submodules using sc_vector when submodule constructor...
Hello, I've been trying to instantiate (if I'm not mistaken) an array of submodules that were created using sc_vector. So far, I've followed the recommendations for using custom creator functions,...
View Articleusing tagged socket
Hello all, i am using tlm socket and declared as following tlm_utils::simple_initiator_socket_tagged<current_model> initiator_socket[2]; // in construcot initiator_socket[0] =...
View ArticleShared Variables in SC_THREAD
Hi all If I have something like follows: SC_MODULE(Test) { ... int t1; // Want this variable to be shared void tesst() { t1 = t1 +2; } SC_CTOR(Test) { SC_THREAD(tesst) } And then I...
View Articlesc_report_info
I use SystemC models in a UVM environment, and am recently updating the reporting for the SysC model from cout -> SC_REPORT_INFO(MSGID,str); Simple question: how do I use this to return a value...
View ArticleHow to optimise this code?
Hello, I've recently completed a design but I'm not convinced that it is an optimal one. How would you modify this to give optimal speed? EDIT: I've attached it in a file. Attached Files...
View Articlewait() - performance Bottleneck
Hi all I have a project where I create SystemC threads and they perform co operatively with wait(event) statement in two places of the algorithm. The algorithm works fine. But, the problem is...
View ArticleUnable to install SystemC library on my system
Hello.I have a Windows 7 32-bit system.I have been trying to install the SystemC library on "Visual Studio C++ 2010 Express" but am getting the error shown in the images I uploaded.Why is the vcproj...
View Articlehow to model registers
Hi, I have an assignment in which I should model an adc. This adc has some 32 bit registers that must be accessed from a header file in order to write or read data from the adc. I have tried doing this...
View ArticleSystemC threads stack overflow?
My top-level is a NoC consists of a Network-On-Chip with a grid of 15*15 nodes (Router+PE). Been trying to simulate it in different machines/configurations but kept stopping at different times of the...
View ArticleBuilding A Third Party Application which uses TLM 2.0
Hi, I am trying to build 32-bit application which uses SystemC in it on my 64-bit Ubuntu. When running the make file it gives an error because it cannot find "lib-linux/libsystemc.a" And that is...
View ArticleHow should I design multiple writers?
I am trying to design a simple system in SystemC. Its just for educational purposes. Basically, I have a module Random, that generates random numbers, and a module Square, that takes a number and...
View Articlememory definition
Hi is this memory definition is true? SC_MODULE(mem16) { sc_in <sc_lv <16> > in1; sc_out <sc_lv <16> > out1; sc_in <sc_lv <12> > addr; sc_in <bool> ld;...
View Articlea problem with systemc VCD veiw
Hi i write this sample code in this code i connect two register i want to trace bus_out signal that is between two register with VCD view but in VCD view the value of bus_out signal is xxxx while...
View ArticleInstallation (configure) problem
Hi!, I'm trying to install SystemC by following the INSTALL doc instructions. > mkdir objdir > cd objdir > setenv CXX g++ > ../configure ../configure: Command not found. > There is...
View Articleflow of the signals
Hi i want to manage the flow of the out put ports of the main controller (see figure) for this goal i design a counter and connect it to the decoder the out put of the decoder is T[0] to T[15] for...
View ArticleSystemC queue
Hi, Does SystemC support queue like SystemVerilog? I want to create dynamic array in SystemC TLM2.0, can any one suggest a better way to do it? Thanks Zubin
View ArticlePreventing a method from triggering more than once in a given cycle
I'm developing a performance simulator for a hardware unit. The hardware runs at 1GHz and therefore I define a clock cycle as: sc_time clk(1, SC_NS) In a specific module requests arrive to the input...
View Article