Altera Quartus17.1 Modelsim 库编译与仿真

1 关联Modelsim配置

2 器件库编译

复制代码
Info: Start compiling process
Info: Args:  -tool modelsim -language verilog -tool_path D:/modeltech64_2020.4/win64 -directory D:/modeltech64_2020.4/altera_simlib -log modelsim_verilog_no_rtl -rtl_only
Info: *******************************************************************
Info: Running Quartus Prime Shell
    Info: Version 17.1.0 Build 590 10/25/2017 SJ Standard Edition
    Info: Copyright (C) 2017  Intel Corporation. All rights reserved.
    Info: Your use of Intel Corporation's design tools, logic functions 
    Info: and other software and tools, and its AMPP partner logic 
    Info: functions, and any output files from any of the foregoing 
    Info: (including device programming or simulation files), and any 
    Info: associated documentation or information are expressly subject 
    Info: to the terms and conditions of the Intel Program License 
    Info: Subscription Agreement, the Intel Quartus Prime License Agreement,
    Info: the Intel FPGA IP License Agreement, or other applicable license
    Info: agreement, including, without limitation, that your use is for
    Info: the sole purpose of programming logic devices manufactured by
    Info: Intel and sold by Intel or its authorized distributors.  Please
    Info: refer to the applicable agreement for further details.
    Info: Processing started: Thu Sep 04 09:27:46 2025
Info: Command: quartus_sh --simlib_comp -tool modelsim -language verilog -tool_path D:/modeltech64_2020.4/win64 -directory D:/modeltech64_2020.4/altera_simlib -log modelsim_verilog_no_rtl -rtl_only
Info: Quartus(args): -tool modelsim -language verilog -tool_path D:/modeltech64_2020.4/win64 -directory D:/modeltech64_2020.4/altera_simlib -log modelsim_verilog_no_rtl -rtl_only
Info: Changing the current directory to output directory D:/modeltech64_2020.4/altera_simlib ..
Info: Using Path D:/modeltech64_2020.4/win64 that was set in EDA Simulation Library Compiler Options
Info: Generating commands to compile library altera_ver ...
Info: Generating commands to compile library lpm_ver ...
Info: Generating commands to compile library sgate_ver ...
Info: Generating commands to compile library altera_mf_ver ...
Info: Generating commands to compile library altera_lnsim_ver ...
Info: Executing command file containing library compilation commands
Info: Reading pref.tcl
Info: # 2020.4
Info: # do temp_simlib_comp.tmp
Info: # Model Technology ModelSim SE-64 vlog 2020.4 Compiler 2020.10 Oct 13 2020
Info: # Start time: 09:27:48 on Sep 04,2025
Info: # vlog -work altera_ver -vlog01compat d:/intelfpga/17.1/quartus/eda/sim_lib/altera_primitives.v 
Info: # -- Compiling module global
Info: # -- Compiling module carry
Info: # -- Compiling module cascade

...............
...............
...............


Info: # -- Loading package cycloneiv_pllpack
Info: # -- Loading entity cycloneiv_mn_cntr
Info: # -- Loading entity cycloneiv_scale_cntr
Info: # -- Loading entity cycloneiv_dffe
Info: # -- Loading entity cycloneiv_pll_reg
Info: # -- Compiling entity cycloneiv_pll
Info: # -- Compiling architecture vital_pll of cycloneiv_pll
Info: # End time: 09:28:21 on Sep 04,2025, Elapsed time: 0:00:00
Info: # Errors: 0, Warnings: 1
Info: # Model Technology ModelSim SE-64 vcom 2020.4 Compiler 2020.10 Oct 13 2020
Info: # Start time: 09:28:21 on Sep 04,2025
Info: # vcom -work cycloneiv -93 d:/intelfpga/17.1/quartus/eda/sim_lib/cycloneiv_components.vhd 
Info: # -- Loading package STANDARD
Info: # -- Loading package TEXTIO
Info: # -- Loading package std_logic_1164
Info: # -- Loading package VITAL_Timing
Info: # -- Loading package VITAL_Primitives
Info: # -- Loading package cycloneiv_atom_pack
Info: # -- Compiling package cycloneiv_components
Info: # End time: 09:28:21 on Sep 04,2025, Elapsed time: 0:00:00
Info: # Errors: 0, Warnings: 0
Info: Successfully compiled the libraries
Info: Compilation was successful. 0 errors, 5 warnings

3 关联库

复制代码
altera_ver = D:/modeltech64_2020.4/altera_simlib/verilog_libs/altera_ver
lpm_ver = D:/modeltech64_2020.4/altera_simlib/verilog_libs/lpm_ver
sgate_ver = D:/modeltech64_2020.4/altera_simlib/verilog_libs/sgate_ver
altera_mf_ver = D:/modeltech64_2020.4/altera_simlib/verilog_libs/altera_mf_ver
altera_lnsim_ver = D:/modeltech64_2020.4/altera_simlib/verilog_libs/altera_lnsim_ver
cyclone10lp_ver = D:/modeltech64_2020.4/altera_simlib/verilog_libs/cyclone10lp_ver
cycloneive_ver = D:/modeltech64_2020.4/altera_simlib/verilog_libs/cycloneive_ver
cycloneiv_hssi_ver = D:/modeltech64_2020.4/altera_simlib/verilog_libs/cycloneiv_hssi_ver
cycloneiv_pcie_hip_ver = D:/modeltech64_2020.4/altera_simlib/verilog_libs/cycloneiv_pcie_hip_ver
cycloneiv_ver = D:/modeltech64_2020.4/altera_simlib/verilog_libs/cycloneiv_ver
altera = D:/modeltech64_2020.4/altera_simlib/vhdl_libs/altera
lpm = D:/modeltech64_2020.4/altera_simlib/vhdl_libs/lpm
sgate = D:/modeltech64_2020.4/altera_simlib/vhdl_libs/sgate
altera_mf = D:/modeltech64_2020.4/altera_simlib/vhdl_libs/altera_mf
altera_lnsim = D:/modeltech64_2020.4/altera_simlib/vhdl_libs/altera_lnsim
cyclone10lp = D:/modeltech64_2020.4/altera_simlib/vhdl_libs/cyclone10lp
cycloneive = D:/modeltech64_2020.4/altera_simlib/vhdl_libs/cycloneive
cycloneiv_hssi = D:/modeltech64_2020.4/altera_simlib/vhdl_libs/cycloneiv_hssi
cycloneiv_pcie_hip = D:/modeltech64_2020.4/altera_simlib/vhdl_libs/cycloneiv_pcie_hip
cycloneiv = D:/modeltech64_2020.4/altera_simlib/vhdl_libs/cycloneiv

将上述库信息,更新到安装目录下的modelsim.ini文件,重启modelsim,可看到库文件已经映射到工具中。

4 仿真运行

复制代码
vlib work 

vlog "../src/sim_demo.v"   
vlog "tb_demo.v"  
vsim -voptargs="+acc" -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L altera_lnsim_ver -L cyclone10lp_ver -L cycloneive_ver -L cycloneiv_hssi_ver -L cycloneiv_pcie_hip_ver -L cycloneiv_ver -gui work.tb_demo
log -r /*
相关推荐
ehiway1 小时前
国际先进!中科亿海微国产嵌入式FPGA IP核及EDA系统设计技术通过科技成果评价
网络协议·tcp/ip·fpga开发
北城笑笑1 小时前
FPGA 49 ,Xilinx Vivado 软件术语解析(Vivado 界面常用英文字段详解,以及实际应用场景和注意事项 )
fpga开发·fpga
XINVRY-FPGA5 小时前
XCAU10P-2SBVB484I Xilinx Artix UltraScale+ FPGA
嵌入式硬件·fpga开发·云计算·硬件工程·dsp开发·射频工程·fpga
bnsarocket6 小时前
Verilog和FPGA的自学笔记7——流水灯与时序约束(XDC文件的编写)
笔记·fpga开发
ARM+FPGA+AI工业主板定制专家18 小时前
基于ZYNQ的目标检测算法硬件加速器优化设计
人工智能·目标检测·计算机视觉·fpga开发·自动驾驶
cycf18 小时前
时钟特性约束(四)
fpga开发
江苏学蠡信息科技有限公司1 天前
STM32中硬件I2C的时钟占空比
stm32·单片机·fpga开发
OliverH-yishuihan1 天前
FPGA 入门 3 个月学习计划表
学习·fpga开发
FPGA狂飙1 天前
传统FPGA开发流程的9大步骤是哪些?
fpga开发·verilog·fpga·vivado·xilinx
我爱C编程1 天前
【硬件片内测试】基于FPGA的完整DQPSK链路测试,含频偏锁定,帧同步,定时点,Viterbi译码,信道,误码统计
fpga开发·帧同步·viterbi译码·dqpsk·频偏锁定·定时点