Jump to content

Loki5000

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Yes, I did. Following the compiler (g++) errors descriptions I came to this: template<> template<unsigned DA_WIDTH> class scv_extensions<item_c<DA_WIDTH> > : public scv_extensions_base<item_c<DA_WIDTH> > { public: scv_extensions<op_t> op; scv_extensions<sc_uint<DA_WIDTH> > addr; scv_extensions<unsigned> delay; item_c<DA_WIDTH>* _instance; void _set_instance(item_c<DA_WIDTH>* p) { _instance = p; _set_instance_core_wrap(p); } item_c<DA_WIDTH>* _get_instance() const { return _instance; }
  2. I'm faced with the same question. But my sequence item is parameterized via template as follow: template<unsigned DA_WIDTH> class item_c: public uvm::uvm_sequence_item { public: sc_uint<DA_WIDTH> addr; ... I'm trying to use SCV_EXTENSIONS and scv_smart_ptr like Akhila do, but my scv_extensions class becomes not fully specialized in my case: template<unsigned DA_WIDTH> class scv_extensions<item_c<DA_WIDTH> > : public scv_extensions_base<item_c<DA_WIDTH> > { public: scv_extensions<sc_uint<DA_WIDTH> > addr; ... If under
×
×
  • Create New...