Here is a slight improvement on your own answer. You don't need to convert to strings, as the sc_lv
types can be concatenated with the ()
operator.
So you can simplify your function like this:
sc_lv<64> to64bit() { return (blk1, blk2, blk3, blk4, blk5, blk6, blk7); };
I imagine there is a way to make the simple assignment work by overloading some operator for typ_block
, but I'm not sure what it is.