Let's assume your top level is called 'system', which is the default
EDK produce the simulation files, along with another file calle
'system_init.[v/vhd]'. That last file contain the initialization fo the memory
You need to initialize the memory with that file
Depending on if you are making verilog or vhdl target, the procedur
may be different. I don't know about VHDL, I use Verilog. Fo Verilog, you need to start simulation of 'system' (in system.v) an 'system_conf' (the main module in system_init.v) at the same time both as top-level. 'system' must be top-level in simulation too s if you have a testbench, it must run in parallel with 'system module
You do this by specifying multiple modules to the 'vsim' command i
ModelSim
Ex
vsim -t ns system_conf system testbench glb
In your testbench, you connect to 'system' as follo
--
module testbench() //top-level 'testbench' only serve to connect t
top-level 'system' module
test test1(.clk(system.clk), .a(system.a), .b(system.b)
.y(system.y)
endmodul
module test(clk,a,b,y) //Put your stimulus her
reg
reg
reg cl
wire
.
endmodul