Hello,
I faced problem in concatenation. I am able to concatenate sc_bv<8> type arguements, but not int type ??
a = (b,c); //where b and c are of sc_bv<8> type
I tried following also, compilation errors are there
cmd_opcode.write( concat(cmd_op_msb.read().range(7,0), cmd_op_lsb.read().range(7,0)) );
cmd_opcode = concat(a, ab);
Next I tried to typecast sc_bv<8> into int type, i tried in following ways, but its not happening, showing compilation errors??
cmd_opcode = (int) cmd_opc; //where cmd_opc is of sc_bv type
cmd_opcode.write(static_cast(cmd_opc.read()));
cmd_opcode.write(cmd_opc.read().to_int());
Please throw some light on these !!
Regards
cam