下面以一个简单的加法器为例:顶层文件jia.v
testbench文件 jia_tb.v
下面用quartus13.0进行modelsim仿真的设置
Assignments---settings...---EDA Tool settings---simulation--选compile test bench:
点击旁边的testbench...---new..----输入test bench name : jia_tb.v
选end simulation at:1us
找到jia_tb.v文件的路径,点击add----ok
ok---apply即可
设置完成后,点击综合。。
Tools--run EDA simulation tool---EDA_RTL simulation,
modelsim就自动打开了!!!
仿真结果:
如果modelsim没有自动打开,出现以下错误
Can't launch the ModelSim-Altera software -- the path to the location of the executables for the ModelSim-Altera software were not specified or the executables were not found at specified path.
解决方法:
Tools -> Options -> General -> EDA Tool Options
把方框的内容后加一个斜杠!!!!!
本文以一个简单的加法器为例,详细介绍了如何在Quartus13.0中设置和使用Modelsim进行testbench仿真。首先创建顶层文件jia.v和testbench文件jia_tb.v,接着在Assignments设置中指定编译testbench,选择仿真时间为1us。确保添加了jia_tb.v路径并应用设置。完成综合后通过EDA工具运行仿真。如果Modelsim未自动打开,可能是因为路径问题,可以在Options中添加斜杠修正。
549

被折叠的 条评论
为什么被折叠?



