码迷,mamicode.com
首页 > 其他好文 > 详细

Questa Sim之Command

时间:2015-03-20 18:20:54      阅读:318      评论:0      收藏:0      [点我收藏+]

标签:

公司里用Questa Sim做仿真,其实跟ModelSim差不多,总结常用的命令如下。

1  启动

vsim -gui

2  编译 -- VCOM

vcom  
 [-2008 | -2002 | -93 | -87]  Choose VHDL 2008, 2002, 1993, or 1987
 [-explicit]             Resolve ambiguous overloads
 [-work <libname>]         Specify work library
 <filename(s)>             VHDL file(s) to be compiled

 

3  仿真 -- VSIM

vsim
 [-t [<mult>]<unit>]   Time resolution

 

4 Example

# Clear former sim
quit  -sim

# Make library directory structure
if {[file exits work] == 0}
{
    vlib work
    vmap work work   
}

# Compile files
set srcpath ../hdl

vcom -93 -explicit -work work $srcpath/spi_master.vhd

# Simulation commands
vsim -t 1ps tb_spi

add wave -noupdate -radix hex -group mut mut:*
configure wave -timelineunits ms
configure wave -namecolwidth 170
configure wave -valuecolwidth 75
configure wave -signalnamewidth 1

run 1 ms
wave zoom full

 

Questa Sim之Command

标签:

原文地址:http://www.cnblogs.com/mengdie/p/4352641.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!