Hi,
So I have a submodule having an array of boolean input ports.
Now in the top module, I define an sc_vector of the submodule type. Also, I define an array of sc_vector signals to be bound to.
Questions:
Can I use an array of sc_vectors? Any conventions on using them?
eg: can I write
sc_vector < sc_signal <bool> > operand_vec[max_operands];
If no, then is there any work around for this?
Also, I now need to assemble and bind these ports:
The code below doesn't seem to work.
Both the stack_cnt_vec and operand_vec are initialized properly.
for(int i=0;i<max_operands;i++){
operand_vec[i].init(10);
}
for(int i=0; i<10; i++) {
sc_assemble_vector( stack_cnt_vec, &StackController::operands[i]).bind( operand_vec[i] );
}
Thanks a lot for your time.