array inside class
Can I declare and allocate memory to an array in class as given below: class hci_test { public: unsigned char* host_hci_pkt_arr; host_hci_pkt_arr = new(nothrow) unsigned char [2]; host_hci_pkt_arr[0]...
View ArticleWhere can I download SystemC Master-Slave communication library?
Where can I download SystemC Master-Slave communication library? Thanks in advanced. benny.mao.sh@gmail.com
View ArticleAccessing unique process_id of a systemC process
Hi, I want to access the unique process id of a SystemC process P inside process P. Can I do that? If yes, what is the API for that? The base class for all sc_process is class sc_process_b....
View ArticleType casting and concatenation
Hello, I faced problem in concatenation. I am able to concatenate sc_bv<8> type arguements, but not int type ?? a = (b,c); //where b and c are of sc_bv<8> type I tried following...
View ArticlePass Parameter
Hello, In comments there are questions, answer please...Actually I have to pass parameter from the top. #define test testcase_001 //have to pass parameter, is this right way? #include...
View Articlecompiling systemc-uvm cosim test bench with irun
Hello, I'm getting the following compilation error and not quite sure the reason behind this. I would really appreciate any input on this....
View ArticleEquivalence of bit duplication from Verilog in SystemC
Hi all, I am a user of Verilog all the while, and I am currently looking into raising abstraction level of digital system design. To start off with, I am trying to convert a project written...
View Articledestruct objects
Hello, I have to reset the fifo, I was doing like that cmd_fifo.nb_read(Flush), currently need to read each location to reset the whole fifo, So I want to know is there any method like...
View Articlesc_semaphore problem
Hi all, I was asked to "Write five SystemC SC_MODULE master modules that connect to an sc_semaphore." in my project yet I found no example of doing such things. All the examples are about using...
View Articlexor operation
Hello, I have to perform xor operation between two following numbers Numbers unsigned int a; unsigned int b; Result a xor_reduce b; Is it possible as in above or some other way?...
View ArticleError:Array initialization in constructor
Hello i have declared array as below, have to initialize as below in constructor. struct hci_top : sc_module { unsigned int const_matrix_arr[16]; ------ ------ Constructor...
View ArticleUNKNOWN EXCEPTION at the end of spawned process
Hi, I encounter a problem when using the sc_spawn primitive. THE SCENARIO is the following: I call sc_spawn each time a new request arrives on my component. Then, the request is handled by its...
View Articlehelp me with this error
hi, this is a simple example for fifo in which i did some experiments the codes are as follows: main file: #include "systemc.h" #include "initiator.h" #include "target.h" using namespace std; int...
View ArticleBit slicing for fixed point types? in systemC
hello, i have jus started working with the systemC implementations for high level synthesis I need to implement the bit slicing paradigm in systemC which i tried with the variable.range() method...
View ArticleHow SC_FORK and SC_JOIN implemented ?
Hi All, How sc_fork and sc_join is internally implemented? in below code control will not come to end of file. SC_MODULE(top) { void run() { cout " run: before fork/join"...
View ArticleLooking for solution
Hello , well i am working on a systemC model of an serial protocol IP ... My problem is : in this model i have to wait for some particular reg to be set ...then start the control logic ...then update...
View Articlehow to link bool port with sc_int
I am a beginner of systemC recently I did a practice it require using two full-adders to make a 2-bit-adder the code of full-adder is below //-------------------------------#include...
View ArticleCustom channel based on a sc_fifo
Hi all, I'm a SystemC newbie and I'm trying to build a channel having the same properties as a sc_fifo channel with some parameters integrated like ID (integer value). I tried to define new interfaces...
View ArticleType casting && Floating point nos.
hello, Iam a beginner to systemC language.. 1.In systemC ,is there any data type to represent strings ...not a c++ datatypes (char) 2.How to convert a float datatype to bit vector (or) logic...
View Articledata type : sc_int v/s int
Hello , I have a confusion related to systemc data types particularly what is the difference between sc_int and int(c++) ....the difference i found out was that sc_int is 64bit and int is 2byte or 4...
View Article