解决办法:
首先需要将.bdf原理图文件转换为Verilog HDL等第三方EDA工具所支持的标准描述文件。在Quartus下,保持*.bdf为活动窗口状态,运行[File]/[Create/Update]/[Create HDL Design File for Current File]命令,在弹出窗口选择文件类型为Verilog HDL,即可输出*.v顶层文件。

下面从:http://www.wlu.ca/science/physcomp/nznotinas/altera_reference/Quartus_ModelSim_schematic.shtml 查询的一个具体的解决办法:

Quartus II and ModelSim-Altera - using schematic design

Manually Forcing Inputs in ModelSim-Altera

Reference: Quartus® II Introduction Using Schematic Designs [pdf, 41pp, 2012]
Note:
 I strongly recommend that every Quartus project have its own directory.

On your home system, installing Quartus II Web Edition will also install ModelSim®-Altera® Starter Edition .

  1. Use schematic entry to enter the logic diagram.

    • Use File | New Project Wizard to set up the working directory, project name, top level design entity (should be same as project name) and select a device to program (select any MAX7000S or Cyclone or Cyclone II device).
    • Use File | New to open a new file. From the Device Design Files window select Block Diagram/Schematic File. Remember to use File Save As to rename the project from Block1.bdf (default name) to the project name.
    • Use symbols from the primitives library. After drawing your schematic, remember to add input and output symbols and assign names to the pins.
  2. Compile the circuit for a functional simulation by selecting Processing | Start | Start Analysis & Elaboration from the menu. Fix any errors.
  3. [Optional] You can see the minimized circuit structure by selecting Tools | Netlist Viewers | RTL Viewer.
  4. To configure Quartus II (the design and programming package) to work with ModelSim-Altera (the simulation package):
  • Configure Quartus II to work with ModelSim-Altera in native link mode:

    • NOTE: this step is DONE ONCE (persistent).

      • On the Tools menu, click Options. The Options dialog box appears.
      • In the Category list, select EDA Tool Options.
      • For ModelSim-Altera, type the path or browse to the directory containing ModelSim-Altera. The directory should be located under the Altera directory, e.g. C:/altera/12.0/modelsim_ase/win32aloem
      • Select OK.
  • Configure NativeLink settings:
    • NOTE: This is DONE ONCE PER PROJECT and the information is stored with the project information.
    • Select Assignments | Settings. The Settings dialog box appears.
    • In the Category list, select EDA Tool Settings | Simulation . The Simulation page appears.
    • In the Tool name list, select ModelSim-Altera. [Do not turn on Run gate-level simulation automatically after compilation.]
    • Format for output netlist should default to VHDL and the output directory to simulation/modelsim. [Select/enter if necessary.]
    • Select More EDA Netlist Writer Settings and change the following options:
      • Turn ON Generate netlist for functional simulation only.
      • Select OK.
  • Convert the schematic diagram into VHDL code for simulation.
    • ModelSim requires that the system be specified in an HDL (Hardware Definition Language); we will be using VHDL
    • Have the schematic open and then select File | Create/Update | Create HDL Design File from Current File.
    • In the pop-up window, select file type as VHDL and the file name will show the name and path of the file. The VHDL file and the BDF file have the same name but different extensions (for example, if your BDF file is example.bdf, the VHDL file created is example.vhd).
  • Add the VHDL file to the project and compile for simulation.
    • Open the VHDL file using File | Open. Then add it to the project using Project | Add Current File to Project.

      • Note: The VHDL file has three parts:

        1. the library definitions including work where your project will be stored,
        2. the entity definition which is a wrapper that defines the inputs and outputs to the design component, and
        3. the architecture which defines what your component does.
    • Remove the BDF file from the project (system can't handle two source files for the same circuit) by selecting Project | Add/Remove Files in Project and then selecting the BDF file and Remove. Note that this does not delete the file (and we do not want to delete the file).
    • Compile the circuit for a functional simulation by selecting Processing | Start | Start Analysis & Elaboration.
  • Launch the ModelSim simulator.
    • Select Tools | Run EDA Simulation Tool | EDA RTL Simulation. ModelSim will display splash screen. ModelSim will load libraries and compile the project. The transcript pane at the bottom of the screen indicates the scripts that have been run (or are running).
    • Select Simulate | Start Simulation to put ModelSim in simulator mode. The Start Simulation Window opens.
    • The Start Simulation window contains many tabs. The Design tab lists the designs available for simulation; most are system libraries. At the top of list will be work (default name for the library containing your program), expand work by selecting the '+'. All components in your design will be listed, select the component (or the top component in a hierarchical design). If appropriate, turn off optimization. Select OK.
    • Then the left hand side of the screen should now contain a sim tab that displays the design units in your circuit and the supporting libraries. When a design unit is selected in the sim tab, the corresponding signals are shown in the objects window on the right hand side of the screen. Signals that are preceded with a plus (+) sign indicate a bus (a group of wires with common function).
  • Open waveform window and add signals to be simulated.
    • For each signal that you want to add to the simulation, right click on the signal name in the Objects window and select Add | To Wave | Selected Signal. Typically, you would want to add all inputs and outputs. A waveform window will appear in the work area.
    • Alternatively, you can add a range of signals at once by selecting the 1st signal and then, while holding down the <shift>, select the last signal in the range. Then right click in the selected signal region and select Add | To Wave | Selected Signals. A waveform window will appear in the work area.
    • When all signals are selected, expand the Wave window.
    • If the Wave window is not floating above the ModelSim main screen, use the top left icon in the wave window to undock the window. Expand the detached window.
  • Enter signal values using force.
    • To enter a signal value on a step by step basis, select an input signal and right click on the pop-up; select Force and for value enter either 0 or 1. [Kind should be freezedelay should be 0cancel after should be blank.] Do this for all input signals.
    • In the tool icons, find the window that contains the period of the signal, e.g. 100ns. Immediately to the right of that window will be the run simulation icon (looks like a page with a blue down arrow beside it). Select run simulation. You should see the inputs that you entered and the outputs from your system on the waveform. The period of the run will correspond to the time in the period window. All signals should be green. If any signals are red, then one or more of the inputs was not specified.
    • Change one of the input signals. Select an input signal and right click on the pop-up; select Force and for value change the 0/1 to 1/0. Select run simulation.
    • Repeat until all combinations have been tested.
    • Immediately to the left of the signal period window is the restart simulation icon. Selecting restart will erase all signal values entered.

转载于:https://www.cnblogs.com/quxiaoxia/p/3922314.html

Modelsim-altera 仿真 顶层原理图的解决办法相关推荐

  1. 关于STLink在Keil无法烧录仿真的问题及解决办法总结。

    关于STLink在Keil无法烧录仿真的问题及解决办法总结. 报错:STLink USB communicate error,STLink驱动重装出现错误. 已解决! 原因分析:固件版本不匹配. 参考 ...

  2. TruckSim搭仿真车跑偏解决办法

    TruckSim搭仿真场景车跑偏解决办法 速度上干货 纵向控制 方法一步骤一 方法一步骤二 方法一步骤三 方法二 速度上干货 纵向控制 方法一步骤一 做纵向控制是:我们一般的操作流程就是在trucks ...

  3. modelsim仿真ROM IP数据输出为0的解决办法

    解决办法:把mif文件放在根目录下,和文件夹db同一级,File name就会直接显示这个文件名字 总结主要问题应该还是出在文件路径 主要参考这篇博客 FPGA的ROM-IP核配置问题 https:/ ...

  4. Modelsim仿真时不能编译`include文件解决办法

    问题描述: 只要用到include,编译就出错,抱怨Cannot open `include file "params.v",但是在使用params.v文件中定义的参数时,已经在调 ...

  5. modelsim仿真quartus软件IP核错误及解决办法

    本人作为萌新.在这个寒假第一次接触FPGA,并且在仿真的过程中遇到了很多问题,并且通过互联网发现csdn上有许多大佬分享的心得与资料.虽然很多大佬的思路给了我启发,但是实现过程不够细致,导致仿真过程出 ...

  6. FPGA篇(六)关于Modelsim仿真时不能编译`include文件解决办法【Verilog】【Modelsim】(转)

    问题描述: 只要用到include,编译就出错,抱怨Cannot open `include file "params.v",但是在使用params.v文件中定义的参数时,已经在调 ...

  7. ISE联合Modelsim仿真失败的解决办法

    问题: ISE联合Modelsim进行功能仿真,但是Moldelsim唤起失败,显示错误为:编译库的路径未包含.如下: 解决: 由报错信息,错误原因为:编译库的路径未包含.需要添加编译库路径: 点击P ...

  8. ModelSim中Altera仿真库的添加(转)

    原文链接:http://www.cnblogs.com/asus119/archive/2011/04/01/2001774.html 最近,做一个IP核的调试,但是里面调用了Altera的syncr ...

  9. Altium designer原理图导入word文档模糊——终极解决办法

    硬件相关专业的小伙伴在写毕业论文的时候可能会遇到AD原理图导入word后变模糊的情况,经过多方摸索,终于找到一个可行的方法. (1)前情回顾 网上常用的AD原理图导入word方法总结如下: 1. 直接 ...

最新文章

  1. 算法设计与分析 4 估计递归函数复杂度所提及算法
  2. ReLu(Rectified Linear Units)激活函数
  3. java中策略设计模式_Java中的设计模式(五):策略模式
  4. 响应式框架Bootstrap栅格系统
  5. 修改dts后重编译_「正点原子FPGA连载」第二十章另一种方式编译ZYNQ镜像
  6. 信息学奥赛一本通(2057:【例3.9 】星期几)
  7. 程序员的算法课(13)-分治法
  8. 全球AI挑战-场景分类的比赛源码(多模型融合)
  9. 单机 docker 部署fastfds_云服务器使用docker可视化一键部署Wrodpress个人博客,操作简单,适合小白...
  10. pcb文件转成原理图_初学PCB设计,到底该学习哪款软件?
  11. 如何用vs2013开发人员命令提示工具执行一个方法(一个简单的demo)
  12. 2014程序化购买元年-芒果移动广告-王江
  13. EMV(二)交易流程
  14. win7底部任务栏还原方法
  15. 原生JS javascript解除绑定事件 JS删除绑定事件
  16. 计算广告概述【计算广告】
  17. matlab仿真的窄带带通滤波算法移植单片机没有达到仿真效果-总结
  18. vulnhub——Bulldog2
  19. 我看“暴风影音”事件
  20. 计算机 实验室安全准入制度,实验室安全准入制度

热门文章

  1. [Ext JS]5.1.1 分组标题的表格(Grouped Header Grid)与使用技巧
  2. Java 实现HTML 页面转成image 图片
  3. JavaScript 之arguments、caller 和 callee 介绍
  4. mysql 主从复制 博客园_mysql主从复制
  5. P1502 窗口的星星(扫描线入门第一题)
  6. html li占用两行,谁帮我解决一下LI上下两行错位的BUG。_html/css_WEB-ITnose
  7. oracle序列修改语句
  8. log4j使用方法--视频地址: http://www.letv.com/ptv/pplay/11475
  9. IPLAT62--新增
  10. 没有MsVCp140如何安装MysQl,win10中msvcp140.dll文件如何安装_win10电脑缺少msvcp140.dll文件的安装教程...