Jump to content

Arjun_07

Members
  • Content Count

    3
  • Joined

  • Last visited

About Arjun_07

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello Everyone, I am trying to open text file, file is opening but when i am trying to read data in C[MEM_DEPTH] buffer, nothing is copied from the file, when i am printing the C[MEM_DEPTH] only initialize value =0 is printing. The task is to read data from file into the buff_1[MEM_DEPTH], then this will be send to source file for writing into the memory. i am attaching my testbench and text file . please let me know where i am making a mistake. Thanks and Regards Arjun memory_testbench.cpp TEXT.txt
  2. Hello everyone, I am trying to design memory in systemC , first i tried with regular array it worked perfectly. sc_uint<32> mem[MEMORY_DEPTH]; bur storing higher no of bytes, regular array is not working. thats why i tried with dynamic allocation of memory by new keyword. int *mem= new int [MEMORY_DEPTH]; but it produces following errors, can anyone please help me, how to solve this problem. error: 'new' cannot appear in a constant-expression error: ISO C++ forbids initialization of member 'mem' [-fpermissive] error: making 'mem' static [-fpermis
  3. hello everyone, I need your support, i was searching for practical examples on systemc, but i unable to find out, how to get examples of systemC for practice purpose. and please tell me how to get training online, for systemC. Thanks and regards Arjun
×
×
  • Create New...