Jump to content

kid123

Members
  • Content Count

    12
  • Joined

  • Last visited

  • Days Won

    1

kid123 last won the day on February 25 2016

kid123 had the most liked content!

About kid123

  • Rank
    Member
  • Birthday 05/22/1994

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

422 profile views
  1. thanks Alan very much. Can you tell me how to combine a RTL and TLM style code in a design, please? I was pretty vague about it
  2. Hi all, Help me a problem, please. I'm working with example on site https://www.doulos.com/knowhow/systemc/tlm2/tutorial__3/ , I have tried generating a vcd file but it's error 1>------ Build started: Project: routing, Configuration: Debug Win32 ------ 1>Build started 06-Mar-16 16:10:45. 1>InitializeBuildStatus: 1> Touching "Debug\routing.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1>c:\users\giahuy\dropbox\tlm\example\routing\routing\routing\main.cpp(1): warning C4005: 'SC_INCLUDE_DYNAMIC_PROCESSES' : macro redefinition 1> command-line arguments : see
  3. Hi all, I just have started with TLM 2.0. I'm trying complete doulos's example but it's fails. I have 2 modules: Initiator and Memory. I want to transmit "data" from Initiator throught Memory, but "trans.get_data_ptr" is fails. I have printed "&data" and "ptr" into monitor but ptr is nothing. #define SC_INCLUDE_DYNAMIC_PROCESSES #include "systemc" using namespace sc_core; using namespace sc_dt; using namespace std; #include "tlm.h" #include "tlm_utils/simple_initiator_socket.h" #include "tlm_utils/simple_target_socket.h" #include "Initiator.h" #include "Memory.h" SC_MODULE(Top) {
  4. thanks Alan for help me, my problem is converted "char" type at *ptr argument into "bool" type at d argument for my vcd file I'll try thank you very much
  5. I have solved some errors. I have done function "do_and" in Initiator but I have not transmited the value of "c" from Initiator through Memory. Help me, please
  6. Hi Alan, I want to transmit the value of 'c' in Initiator through Memory, but the attributes of payload transaction only have "set_data_ptr", I don't know what to do, can you help me, please? I sorry because I'm a beginer
  7. Hi Alan, I have bound the socket in sc_main: initiator.socket(memory.socket); #define SC_INCLUDE_DYNAMIC_PROCESSES #include "systemc" using namespace sc_core; using namespace sc_dt; using namespace std; #include "tlm.h" #include "tlm_utils/simple_initiator_socket.h" #include "tlm_utils/simple_target_socket.h" #include "Initiator.h" #include "Memory.h" int sc_main(int argc, char* argv[]) { Initiator initiator("initiator"); Memory memory("memory"); sc_time t(100, SC_PS); sc_signal<bool> a,b,c,d; initiator.socket(memory.socket); initiator.a(a); initiator.b(; initia
  8. Hi Alan, I very happy when I receive your feedback. I had fixed it, but it is run improperly. It does not perform the fuction "and" in Initiator and does not transmit result from Initiator throught Memory #define SC_INCLUDE_DYNAMIC_PROCESSES #include "systemc" using namespace sc_core; using namespace sc_dt; using namespace std; #include "tlm.h" #include "tlm_utils/simple_initiator_socket.h" #include "tlm_utils/simple_target_socket.h" #include "Initiator.h" #include "Memory.h" int sc_main(int argc, char* argv[]) { Initiator initiator("initiator"); Memory memory("memory"); sc_tim
  9. thank Alan for your interest, I've fixed it but it still fails Error: (E100) port specified outside of module: port 'simple_initiator_socket_0' (sc_port_base) In file: ..\..\src\sysc\communication\sc_port.cpp:231 And if I remove these lines of code: tlm_utils::simple_initiator_socket<Initiator> socket1; tlm_utils::simple_target_socket<Memory> socket2; initiator.socket(socket1); memory.socket(socket2); It is an error: Error: (E109) complete binding failed: port not bound: port 'top.memory.port_0' (sc_out) In file: ..\..\src\sysc\communication\sc_port.cpp:231 #define SC_IN
  10. Hi all, I just working with TLM systemC, I'm trying to complete a simple example, but I got a error: Error: (E100) port specified outside of module: port 'simple_target_socket_0_port_0' (sc_port_base) In file: ..\..\src\sysc\communication\sc_port.cpp:231 Help me in the shortest time, please. My codes is attached below . Thansk all and sorry because my english is not good Initiator.txt Memory.txt main.txt
×
×
  • Create New...