Simulation guidelines
UM0453
4 Simulation
guidelines
4.1 Launching
a
simulation
The run_ncsim file (located in the main directory) is an example of the script used to launch
a simulation using a Cadence NC-SIM simulator. This script compiles and elaborates the
VHDL model file and the stimuli files contained into the
stim
directory.
4.2 Simulation
timings
lists program and erase times in the VHDL simulation model.
4.3
memory_file file format
To simplify the testing of the memory array behavior and of the model functionality, the
memory array must be loaded with specific data at power-up.
The format of the memory_file, located in the
sim
subdirectory, must be:
hex_first_address/hex_data
For example: 07FFFF/7FFF.
The file name must be written to the entity file (this filename path cannot be empty):
generic(memoryfile: string := path/filename)
.
If the initialization file is not provided, all the memory bits are set to'1', and the whole array is
erased.
Similarly, the
CFImemory_file
file loads the model CFI area of the M29W128GH/L. All
these files are located in the
sim
subdirectory.
Not all sectors are protected. To protect one group, the Boolean value of the relative index
group in the Protection Group Init array in file
NVMP_file
must be modified.
Table 1.
Simulation timings
Timing
Real time
Simulation time
Unit
Block erase
0.5
500*10
-6
s
Chip erase
40
400*10
-6
s
Word program
16
16
µs
Program suspend latency
5
5
µs
Erase suspend latency
50
50
µs