IMPORTANT NOTICE: Please be advised that the Verification Academy Forums will be offline for scheduled maintenance on Sunday, November 9th at 1:00 AM US/Pacific.
logic [31:0] addr = randomize(); // the address is randomized from 0 to 2^32-1
logic [7:0] data = 'h12;
uint32 id = addr / 1024; // uint32 is already typedef in the svh file
m_mem[id].mem_data[0] = data;