Jump to content

bad63r

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. Hello everyone, so I'm feeding lut module with data via generator module. When I'm done, I'm sending to last address(that is location where my start is stored) value 1, and then after 20 ns value 0. So basically, I want to set start "signal" to be length of one clock period. When I detect that start is 1, I'm starting my calculation in lut.cpp module. If i change wait to 10 ns on line 1575 in generator.cpp it is fine, but when I put it to 20, I get segmentation fault. I should mention that in both cases code is compiling without errors. If anyone can explain to me why this error
  2. Thanks @Eyck, that did the trick. For future reference, I will put here my whole solution for LT TLM2.0 for writing and reading floating values. Normal TLM2.0 transport - write : // Normal TLM transport interface. for (unsigned int i = 0; i != 24; ++i) { unsigned int data_length = 4; unsigned int addr = rand() % 200; tlm_command cmd = i < 20 ? TLM_WRITE_COMMAND : TLM_READ_COMMAND; std::string msg = cmd == TLM_WRITE_COMMAND ? "Write " : "Read "; //OK, so whene you you want to write with regular mode into array, you should know that float value is 4 byte //and un
  3. Hello everyone, so I'm learning systemC and currently I'm researching tlm2.0. I know how to send int values with tlm2.0 but I really can't send any float value (e.g. 12.53) and read it back. I'm using generator module and memory module, where generator module is generating transactions and memory module is receiving them. I focused on just how to insert float values inside unsigned char array. As I tested my solution with simple test.cpp to insert float value inside unsigned char array and read it back, I tried to implement that without success inside systemc tlm2.0. I tried wit
×
×
  • Create New...