Use the $readmemb and $readmemh system tasks to
initialize block memories.
- Use
$readmembfor binary representation. - Use
$readmemhfor hexadecimal representation. - Use index parameters to avoid behavioral conflicts between Vivado synthesis and the simulator.
$readmemb("rams_20c.data",ram, 0, 7);