Jump to content

coderoo

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi, I have a custom class that bundles a few primitive signals: class Bundled { bool block0_en; bool block1_en; sc_int<3> block0_data_in; sc_int<4> block1_data_in; //constructor //operator== //operator= //operator<< //sc_trace }; class Block0; // SC_MODULE class Block1; // SC_MODULE SC_MODULE(Top) { sc_in<Bundled> bundled_in; Block0 block0; Block1 block1; SC_CTOR(Top) : bundled_in("bundled_in") { block0.en(bundled_in.block0_en); // can't do this because block0_en is not a port! ... }
×
×
  • Create New...