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);
}
};