Answers Database
2.1i COREGEN, C_IP3: Distributed Memory module only allows default initialization values of "0" using the MIF file
Record #7896
Product Family: Software
Product Line: LogiCore
Product Part: Coregen IP Modules
Problem Title:
2.1i COREGEN, C_IP3: Distributed Memory module only allows default initialization values of
"0" using the MIF file
Problem Description:
Urgency: standard
General Description:
How to specify initialization values other than "0" using the MIF file.
The Distributed Memory module v1_0 in C_IP3 currently only allows the user
to define a default initialization value of 0 for all memory locations.
Memory initialization values are normally defined in the MIF file (Memory Initialization File). Thi
s
file is created when you generate the memory if you check off the "Write
MIF" option under the "Initial Contents" button in the Distributed Memory GUI.
The data in the MIF file is used during HDL behavioral simulation to initialize
the memory. A user-edited MIF file can also be used as an input to the Distributed
Memory module if you check off the "Read MIF" option in the "Initial Contents" GUI.
When the MIF is read in as an input, the initialization values are also used to define
the initialization values in the EDIF implementation netlist.
Solution 1:
To specify initial values other than 0 for the memory locations, you can
perform the following steps:
1. Generate the core with the 0 default value MIF file (you will need to check the "Write MIF"
option),
2. Edit the MIF file and change the 0 values to the values desired for each memory location,
3. Call up the Distributed Memory GUI again, check off the Read MIF option and specify the
edited MIF file as input, then regenerate the core.
Note that each line of the MIF
file defines the value of a single memory word location starting at address 0.
End of Record #7896 - Last Modified: 10/20/99 12:08 |