Jump to content

HTP

Members
  • Posts

    2
  • Joined

  • Last visited

HTP's Achievements

Member

Member (1/2)

0

Reputation

  1. Thanks for your response. out_fifo is actually sc_fifo_out as shown below. So cant we pass custom struct to sc_fifo in our out? Also looks like the issue is not limited to myselector.out_fifo, it is with both ports of mytx as well. #include "systemc.h" enum mod {BPSK, QPSK, _8PSK, _16QAM, _32QAM, _64QAM} ; typedef struct { sc_uint<15> fl_bit; sc_uint<10> in_byte; mod mod_order; } myStruct_t; SC_MODULE (selector) { sc_fifo_out <myStruct_t> out_fifo ; void random_process(); SC_CTOR(selector) { SC_METHOD(random_process); } };
  2. Hello, I am getting the error in the title when trying to connect two of my modules in my tb. related SystemC code is as below. #ifndef TB_H #define TB_H #include "systemc.h" #include <tx.h> #include <selector.h> SC_MODULE (tb) { tx mytx; selector myselector; myStruct_t ctrl_frame; sc_lv<6> temp_sig; SC_CTOR(tb) : mytx("mytx"), myselector("myselector") { mytx.i_ctrl ( ctrl_frame); mytx.o_data ( temp_sig ); myselector.out_fifo (ctrl_frame); } }; #endif Can you please let me know what is the problem? Thanks, Hadi
×
×
  • Create New...