📄 simulate.do
字号:
# ******************************************************************* #
# Copyright (c) 1999-2001 Evatronix SA
# ******************************************************************* #
# Please review the terms of the license agreement before using
# this file. If you are not an authorized user, please destroy this
# source code file and notify Evatronix SA immediately that you
# inadvertently received an unauthorized copy.
# ******************************************************************* #
# ------------------------------------------------------------------- #
# Project name : C8051
# Project description : C8051 Microcontroller Unit
#
# File name : SIMULATE.DO
# File contents : Sample macro for MTI ModelSim EE
# Purpose : C8051 core functional simulation
# Design Engineer : M.B.
# Quality Engineer : M.B.
# Version : 3.01
# Last modification : 2001-10-01
# ------------------------------------------------------------------- #
transcript off
# ------------------------------------------------------------------- #
# Directories location
# ------------------------------------------------------------------- #
set work_dir tools/mti/ee_lib
set report_dir tools/mti/ee_reports
# ------------------------------------------------------------------- #
# Maping destination directory
# ------------------------------------------------------------------- #
vmap C8051_LIB $work_dir
transcript on
# ------------------------------------------------------------------- #
# Loading the Test Bench
# ------------------------------------------------------------------- #
transcript off
vsim -t ns -lib C8051_LIB typical_c8051_extram_extrom
transcript on
# ------------------------------------------------------------------- #
# Adding signals to the 'Wave' window
# ------------------------------------------------------------------- #
transcript off
add wave -logic /tb_c8051/u_chip_c8051/u_c8051/clk
add wave -logic /tb_c8051/u_chip_c8051/u_c8051/reset
add wave -logic /tb_c8051/u_chip_c8051/u_c8051/ale
add wave -logic /tb_c8051/u_chip_c8051/u_c8051/ea
add wave -logic /tb_c8051/u_chip_c8051/u_c8051/psen
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/p0i
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/p1i
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/p2i
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/p3i
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/p0o
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/p1o
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/p2o
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/p3o
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/romdatai
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/romaddr
add wave -logic /tb_c8051/u_chip_c8051/u_c8051/romoe
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/ramdatai
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/ramdatao
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/ramaddr
add wave -logic /tb_c8051/u_chip_c8051/u_c8051/ramwe
add wave -logic /tb_c8051/u_chip_c8051/u_c8051/ramoe
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/sfrdatai
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/sfrdatao
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/sfraddr
add wave -logic /tb_c8051/u_chip_c8051/u_c8051/sfrwe
add wave -logic /tb_c8051/u_chip_c8051/u_c8051/sfroe
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/debugreq
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/debugstep
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/debugprog
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/debugack
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/flush
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/fetch
add wave -logic -hexadecimal /tb_c8051/u_chip_c8051/u_c8051/acc
transcript on
# ------------------------------------------------------------------- #
# Adding signals to the 'List' window
# ------------------------------------------------------------------- #
transcript off
add list -width 3 /reset
add list -width 3 /ale
add list -width 4 /psen
add list -width 2 /ea
add list -width 8 /p0
add list -width 8 /p1
add list -width 8 /p2
add list -width 8 /p3
transcript on
# ------------------------------------------------------------------- #
# Writing report
# ------------------------------------------------------------------- #
transcript off
write report $report_dir/simulate.rep
transcript on
# ******************************************************************* #
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -