The question about truncation with 32 bits and 8 bits in systemverilog

In reply to zz8318:

You need to specify the size of your dynamic arrays with the ‘new’ constructor.