Home / Learn Verilog / Memory Initialisation
Memory Initialisation
Preload ROM and RAM.
Quick summaryPreload ROM and RAM.
How to think about this
What it is
Memories can be initialised by a loop, an initial block or a file.
Why it matters
Programs and look-up tables must exist at power-up.
Mechanically speaking
FPGAs load $readmemh at configuration.
Shows up in
- Everyday RTL design
- FPGA and ASIC projects
- Testbenches and debugging
Try it
Init by loopVerilog: edit and run
Same effect as a 16-line hex file.
Check yourself
1. FPGA memory init comes from...
Loaded with the design.