my_struct = {>>byte{my_array_of_bytes}};
But my simulator complained that my_array_of_bytes was bigger than the destination (my_struct). It took me longer to figure out than I'd like to admit that I just needed to do this:
bit extra_bit;
{my_struct, extra_bit} = {>>byte{my_array_of_bytes}};
That did the trick.
No comments:
Post a Comment