[How to] Assign integer value to unpacked array slice

In reply to Fipser@VA:

We cannot understand what your intent is. Are you looking for

tcode_tx[7] == tc_counter[5] &&
tcode_tx[6] == tc_counter[4] &&
tcode_tx[5] == tc_counter[3] &&
tcode_tx[4] == tc_counter[2] &&
tcode_tx[3] == tc_counter[1] &&
tcode_tx[2] == tc_counter[0]

Can you make code_tx a packed array? Then you could do

tcode_tx[7:2] == tc_counter;