解决办法:
首先需要将.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.

Modelsim-altera 仿真 顶层原理图的解决办法的更多相关文章

  1. Modelsim-altera 仿真 顶层原理图设计的FPGA

    我的原理图采用的是bdf的顶层原理图的设计,仿真工具用的是modelsim-altera,调用仿真后的错误提示: # ** Error: (vsim-3033) C:/Users/lenovo/Des ...

  2. IE8下网页中的视频会遮挡住顶层DIV的解决办法

    在IE8浏览器下,发现网页中的视频会遮挡住本来固定在最顶层的DIV.即便使用z-index也无法解决.但是其他浏览器是正常的. 解决的办法很简单,就是在调用flash视频播放器的时候,加上一个参数“o ...

  3. modelsim 仿真时出现无限迭代(iteration reach limitation)的原因及其解决办法

    modelsim 仿真时出现无限迭代(iteration reach limitation) 出现这种故障的原因:  一般都是代码里出现的组合逻辑无限循环或者组合逻辑A产生signal_A,signa ...

  4. 关于Quartus+Modelsim 门级仿真 Warning (vopt-2216) Cannot find instance 'NA' specified in sdf.的解决办法

    本文操作环境:Win 7 32位系统, Quartus II 11.1 ,Modelsim SE 10.1a 在Quartus II中调用Modelsim SE做Gate Level Simulait ...

  5. modelsim使用常见问题及解决办法集锦③

    四.You selected Modelsim-Altera as Simulation Software in EDA Tool Settings,however…… You selected Mo ...

  6. Modelsim SE 仿真 ALTERA FPGA IP

    Modelsim SE 仿真 ALTERA FPGA IP 最近,有几个朋友问过我是不是有新版本的Modelsim altera,其原因是 Qii 升级为新版本的,但是没配套的modelsim,没办法 ...

  7. Altium Designer 编译原理图出现has no driving source警告解决办法

    版权声明:本文为博主原创文章,遵循CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明. 作者:struct_mooc 博客地址:https://www.cnblogs.com/stru ...

  8. Qt拖拽界面 (*.ui) 缩放问题及解决办法(在最顶层放一个Layout)

    问题 使用Qt Designer 设计的界面,在缩放的时候不能随着主窗口一起缩放. 解决办法 之前遇到这个问题的时候,都是直接重写resizeEvent接口来实现的,在自动生成的Ui_Widget或U ...

  9. modelsim 独立仿真vivado的IP核及仿真脚本

    Modelsim独立仿真vivado的IP 最近一直在做local dimming项目的FPGA硬件实现,算法的其中一步就是直方图统计,即数字图像的某一灰度级的像素数,这个直方图的源码找了半天才搞到, ...

随机推荐

  1. 第五章 搭建S3C6410开发板测试环境

    开发板是开发和学习嵌入式技术的主要设备.在这章中介绍了S3C6410开发板,它是三星公司推出的一款低功耗.高性价比的RISC处理器.安装串口调试工具:minicom.它的安装步骤:第1步:检测当前系统 ...

  2. oracle执行计划之-表连接方式

    转载自:http://blog.csdn.net/tianlesoftware/article/details/5826546 在多表联合查询的时候,如果我们查看它的执行计划,就会发现里面有多表之间的 ...

  3. 自己瞎捣腾的Win7下Linux安装之路-----图例篇

    写在前面 网上很多这方面的教程,我也是参考他们的文章和一些书籍才弄成功.没啥创新性,只为记录下来,以供自已理解和以后复习. 所谓工欲善其事,必先利其器.俺想学习Linux,当然是要先装一个Linux( ...

  4. operating system

    一.对于子进程,系统调用fork()的返回值为0:而对于父进程,返回值为子进程的进程标识符

  5. (转)如何进行Monkey Test

    如何进行Monkey Test   目录 一 简介 二 测试准备 三 基本命令格式 四 测试Log获取 五 Monkey命令参数介绍 六 保存monkey log以及手机log到sdcard(新增) ...

  6. python整理之(字符串、元组、列表、字典)

    一.关于字符串的整理总结 对于字符串的操作常用的有这些: 字符串的操作通过dir()函数可以查看 我们先整理没有下划线的用法,有下划线的暂时不去考虑. 1.capitalize 功能:使字符串的首字母 ...

  7. linq group by子句

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...

  8. C# 多线程详解 Part.02(UI 线程和子线程的互动、ProgressBar 的异步调用)

           我们先来看一段运行时会抛出 InvalidOperationException 异常的代码段: private void btnThreadA_Click(object sender, ...

  9. 怎么使用CDR中排列对象功能

    通过将对象发送到其他对象的前面或者后面,可以更改图层或页面上对象的堆叠顺序,还可以将对象按堆叠顺序精确定位,并且可以反转多个对象的堆叠顺序.本教程将详解CorelDRAW中排列对象各按钮功能. 1. ...

  10. flask在windows上用mod_wsgi部署

    flask在windows上用mod_wsgi部署也是折腾了不少时间,下面就总结下. 首先下载Apache httpd,我认为Apache Hans比较好: 一般这种情况下,你的python环境已经安 ...