Jump to content

wasim6691

Members
  • Content count

    16
  • Joined

  • Last visited

  1. Hi In TLM, I am connecting two modules with the Initiator socket and target socket. My question is that "Is that possible to have also signal based connection between the modules as well as the Socket based connection " ? Can we have communication in both ways in SystemC ? Thanks
  2. Memory Allocation In SystemC

    2nd Question: I am using reinterpret_cast <char*> to read the HEX data from the binary file. Now I have studied that reinterpret_cast is not supported for Synthesis purpose in SystemC. Now What alternative should I use for reinterpret_cast command in SystemC? Thanks
  3. Memory Allocation In SystemC

    Hi Maehne But If I am defining Memory as SC_MODULE and using 4KB Memory Alignment for my data storage as I am reading the data from binary files. As I have to read from and store the respective output data in the Memory Module. Like I am confused How do i define the Memory Module using static allocation. Can You give me or refer to some example. That would be so nice of You. Thanks
  4. SystemC for Hardware Design

    Hi David But for Example I have to Define Memory block for my Data and I have allocate Memory by using New command(C++)/( Cant use MALLOC in System C ?). So How do I allocate memory for my Data in System C ?. if command like New and Delete are not Synthesizeable. ?Thanks
  5. Memory Allocation In SystemC

    Hi, I have to Allocate Memory for my data in SystemC. We Use malloc in C Language and New in C++ to dynamically Allocate Memory. But today I have read that we cannot use New and Delete Operators in System C as they are not synthesizeable. Which command should I use for Memory Allocation in System C. Thanks.
  6. SystemC for Hardware Design

    Hi, We use SystemC to define specific Hardware Blocks like Memory, Caches and Bus etc. We define Header and CPP files and Include processes to define the functionalities being done by each module. BUT let's say Now we have to define the general settings of the Whole Network (like NEURAL NETWORKS AND DEEP LEARNING NETWORKS) which include Two or three STRUCTS about configuration and we make additional Header and CPP file for this. WILL THAT BE CONSIDER AS A FURTHER HARDWARE IN THE SYSTEM C Design. Is that allowed or not ? This is a general question? Please explain me this in detail? Thanks
  7. Passing Arguments in the process in SystemC

    I am using Visual Studio for Desktop 2013 Version Which I think do not support GCC compiler. C++11 I think cannot be installed on Windows version. I have to use sc_spawn to register the process now. Can You please give me some good tutorial about how to use sc_spawn for registering the process. I am searching on web but did not got the good tutorial so far. Thanks
  8. void Wcache0::getAddrForSingleWeight(const channel_t co, kernel_t kernel_1, const weightaddr_t ci_offset, PEID_t &PEID, blockID_t &blockID, rowID_t &rowID, weightID_t &weightID) Hi, Can we pass arguments inside the process in SystemC. If Yes then how we have to register the process in the constructor? Thanks . Below is the MODULE Wcache0 and I am trying to write getAddrForSingleWeight process which will be called inside another process which is register as SC_THREAD.
  9. Hi, Can we pass arguments inside the process in SystemC. If Yes then how we have to register the process in the constructor? Thanks . Below is the MODULE Wcache0 and I am trying to write getAddrForSingleWeight process which will be called inside another process which is register as SC_THREAD. void Wcache0::getAddrForSingleWeight(const channel_t co, kernel_t kernel_1, const weightaddr_t ci_offset, PEID_t &PEID, blockID_t &blockID, rowID_t &rowID, weightID_t &weightID)
  10. DEFINING GLOBAL IN SYSTEMC and Member Function

    I am Using the inp_image in the Process as well as inside the member function. But I am also using the send_pixel member function inside another MODULE. That's why I was using it as global. What else can I do to make the inp_image array to be accessible inside another MODULE if I do not make it global?. Thanks
  11. DEFINING GLOBAL IN SYSTEMC and Member Function

    In my code the code lines above the SC_MODULE are not synthesizeable ? I have to synthesize the code so which changes would You suggest me in the code. Thanks
  12. Hi I have written a sample code in SystemC. I am defining some typedefs and global variable outside SC_MODULE. Is that fine? and plus I am also defining the member function as static. Please correct my code. Thanks
  13. Reading a binary File

    Hello I wand to read the binary file in System C. Can I use the malloc() function as we used in C to store the content of the file in some buffer. Thanks. The fread() command is used in System C or there is some other command in System C.
  14. BlockDiagram to be Converted to SystemC Modules

    I have the filter data and Input Image data in binary format and I ┬┤have to make a hardware Architecture for the Convolutional Neural Network. Based on the description on the third Image I am trying to make the basic Hardware blocks in System C and then I have to load image and filter binary to perform CNN layer by layer. I am working on Zynqnet Hardware Architecture(which is based on squeezenet) and It includes 27 Convolutional Layers for CNN and I have to convert that Architecture into a System C.
×