
UM0453
VHDL behavioral model
3
VHDL behavioral model
The M29W128G VHDL behavioral model v1.1 is located in the
M29W128G.vhd
file of the
code
subdirectory. The following two VHDL generic parameters in the
code/m29w128g.vhd
file decide which device is used:
●
select_dev = 1 for M29W128GH
●
select_dev = 0 for M29W128GL
The behavioral model includes a set of libraries that implement all the device functions listed
in the device datasheets. See
for the description of the libraries.
This model was validated using a Cadence NC-SIM 5.4 simulator. The use of this model
with other simulators is not guaranteed.
3.1 Model
libraries
The
code/M29W128G.vhd
VHDL file and libraries code files must be compiled in the same
order as listed in this section, and specified in the
run_ncsim
file.
1.
string_util.vhd
This library contains the utilities used for string management.
2.
generic_data.vhd
This library contains generic constants.
3.
utility_pack.vhd
This library contains some generic procedures.
4.
protection_group.vhd
This library contains functions for protection group management.
5.
extended_memory.vhd
This library contains generic constants for extended memory management.
6.
timing_data.vhd
This library contains the definition of constants related to the timing constraints of the
device.
7.
block_data.vhd
This library contains generic constants and functions for blocks management
3.2
Testbench and stimuli files
The
top
subdirectory of the VHDL model delivery package contains a testbench file,
TestBench.vhd
.
Stimuli files in VHDL format are available in the
stim
subdirectory. These files cover many
operational conditions of the device, in particular, the CUI (command user interface)
commands.
The testbench and the stimuli files are written using the standard VHDL version.