Loading Memory Contents With File I/O Tasks - Loading Memory Contents With File I/O Tasks - 2022.1 English - UG901

Vivado Design Suite User Guide: Synthesis (UG901)

Document_ID
UG901
Release_Date
2022-06-06
Version
2022.1 English

Use the $readmemb and $readmemh system tasks to initialize block memories.

•Use $readmemb for binary representation.

•Use $readmemh for hexadecimal representation.

•Use index parameters to avoid behavioral conflicts between Vivado synthesis and the simulator.

$readmemb("rams_20c.data",ram, 0, 7);