Jump to content

inspire

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by inspire

  1. Hi, is it possible to add sc_modules with template arguments to a sc_vector where the template argument is dynamic? What I mean is this: sc_vector<Shift_register_nBit<?, ?>> shift; SC_HAS_PROCESS(myModule); myModule(sc_module_name) : shift("shift") { for (int i = 0; i < 5; ++i) shift.add(Shift_register_nBit<i, 2>); } I also tried to use sc_vector<Shift_register_nBit*> shift; but this didn't work. Do you have an idea? Thanks! inspire
×
×
  • Create New...