📄 cardbus_5632_modelsim_post.do
字号:
#------------------------------------------------------------------------------
#
# File : pci5632_280modelsim_post.do
# Last Modification: May/17/2002
#
# Created In SpDE Version: SpDE 8.22
# Author : Richard Yuan, QuickLogic Corporation
# Copyright (C) 2001, Licensed customers of QuickLogic may copy and modify
# this file for use in designing with QuickLogic devices only.
#
# Description :
# This script runs QL5632-33 vhdl reference design postlayout simulation
# in ModelSim.
#
# History:
# Date Author Version
# 06/26/01 Richard Yuan 1.0
# - Header added to conform to coding standard.
# May/17/2002 Bernhard Andretzky 1.1
# - modified for 5632
# 11/18/02 Claire Pian Tu 1.2
# - Added cmd_monitor test bench and wave signals
#
#------------------------------------------------------------------------------
# before running this script you should change your current directory
# in ModelSim to where the simulation files are by using the "cd" command
# cd c:/pasic/design/reference/pci5632_280/vhdl
cd d:/project/CardBus/Source/vhdl
# create work library
vlib work
# create the qlprims library to store the primitives
vlib qlprims
# compile QuickLogic post-layout primitives
# you might need to add the drive letter to make it look like {c:/pasic/spde/...}
vcom -87 -work qlprims {d:/pasic/spde/data/qlvtl95.vhd}
# compile the postlayout netlist
vcom -93 -work work cardbus_5632.vhq
# compile test bench files
vcom -93 -work work utils_pkg.tb
vcom -93 -work work pci_pack.tb
vcom -93 -work work clk_gen.tb
vcom -93 -work work idt_fifo.tb
vcom -93 -work work pci_access.tb
vcom -93 -work work pci_arb.tb
vcom -93 -work work pci_mast.tb
vcom -93 -work work pci_tar.tb
vcom -93 -work work proto_chk.tb
vcom -93 -work work byte_enable_test.tb
vcom -93 -work work pci_cmd_test.tb
vcom -93 -work work pci_comp_5632.tb
vcom -93 -work work cmd_monitor.tb
vcom -93 -work work CIS.tb
vcom -93 -work work cardbus_wrapper_test.tb
#vcom -93 -work work cardbus_wrapper.tb
vcom -93 -work work cardbus_5632.tb
# start simulation with worst-case timing and 100ps resolution
vsim -t 100ps -sdfmax /cardbus_5632_1=cardbus_5632.sdf work.t -wlf cardbus_5632post.wlf
# open a waveform window
view wave
# add PCI signals
add wave /t/perrn
add wave /t/serrn
add wave /t/par
add wave /t/reqn
add wave /t/gntn
add wave /t/rstn
add wave /t/clk
add wave /t/idsel
add wave -format Literal -radix hexadecimal /t/ad(31:0)
add wave -format Literal -radix hexadecimal /t/cben(3:0)
add wave /t/framen
add wave /t/irdyn
add wave /t/devseln
add wave /t/trdyn
add wave /t/stopn
# add command Monitor signals
add wave /t/cmd_mon_1/pci_cmd
add wave /t/cmd_mon_1/pci_cmd_l
add wave /t/cmd_mon_1/config_add
add wave -format Literal -radix hexadecimal /t/cmd_mon_1/mem_address
# run simulation till end
onbreak resume
run -all
#write transcript pci5632_280post.doc
#quit -f
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -