|
|
|
You can generate a CAM, RAM, or ROM function (e.g., altcam
, lpm_ram_dq
, lpm_ram_io
, lpm_rom
,scfifo
, dcfifo
, altdpram
, and csdpram
) from the MegaWizard® Plug-In Manager and specify Verilog HDL as the type of output file to generate. If you are using a Hexadecimal (Intel-Format) File (.hex), you must convert that file into a format that can be used with the Model Technology ModelSim® software by using the convert_hex2ver utility.
(For PCs) If you are using ModelSim OEM version 5.5b software, you can omit this step. If you are using the ModelSim non-OEM version 5.5b software, to specify the convert_hex2ver utility, which is located in the \quartus\eda\mentor directory:
Modify the modelsim.ini file, located in the ModelSim system directory, by adding the following line in the
|
(For UNIX and Linux workstations) To convert Verilog HDL CAM, RAM, or ROM designs into a format that can be used with the ModelSim software:
Copy the convert_hex2ver.c and convert_hex2ver_lib.c files from the /<Quartus® II system directory>/eda/mentor/modelsim directory to the project directory.
Type the following commands at a command prompt:
gcc -c -I /
<ModelSim system directory>/include convert_hex2ver.c convert_hex2ver_lib.c
ld -G -B symbolic -o convert_hex2ver.so convert_hex2ver.o convert_hex2ver_lib.o
If you receive a warning from ld about undefined symbols, you can ignore it. |
Modify the modelsim.ini file, which is located in the ModelSim system directory to add the following line in the [vsim]
section:
Veriuser = \
<so directory>\convert_hex2ver.so
A compiled version of the convert_hex2ver.so library is available in the /<Quartus II system directory>/eda/mentor/modelsim directory. You can use this library only if you are using ModelSim EE version 5.2e or later software.
- PLDWorld - |
|
Created by chm2web html help conversion utility. |