Quantcast
Channel: SystemC Language Forum RSS Feed
Browsing all 595 articles
Browse latest View live

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 Article


Where 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 Article


Accessing 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 Article

Type 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 Article

Pass 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 Article


compiling 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 Article

Equivalence 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 Article

destruct 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 Article


Image may be NSFW.
Clik here to view.

sc_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 Article


xor 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 Article

Error: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 Article

UNKNOWN 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 Article

help 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 Article


Bit 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 Article

How 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 Article


Looking 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 Article

how 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 Article


Custom 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 Article

Type 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 Article

data 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
Browsing all 595 articles
Browse latest View live