📄 compile.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
#
# File name : COMPILE.DO
# File contents : Sample macro for MTI ModelSim EE
# Purpose : C8051 core compilation
# C8051 environment compilation
# C8051 test bench compilation
# Design Engineer : M.B.
# Quality Engineer : M.B.
# Version : 3.01
# Last modification : 2001-10-01
# ------------------------------------------------------------------- #
transcript off
# ------------------------------------------------------------------- #
# Directories location
# ------------------------------------------------------------------- #
set source_dir src/core
set chip_dir src/tb/chip
set env_dir src/tb/env
set tb_dir src/tb
set work_dir tools/mti/ee_lib
# ------------------------------------------------------------------- #
# Maping destination directory for core of model
# ------------------------------------------------------------------- #
vlib $work_dir
vmap C8051_LIB $work_dir
transcript on
# ------------------------------------------------------------------- #
# Compiling utility packages
# ------------------------------------------------------------------- #
transcript off
vcom -87 -work C8051_LIB $source_dir/utility.vhd
transcript on
# ------------------------------------------------------------------- #
# Compiling components of core
# ------------------------------------------------------------------- #
transcript off
vcom -87 -work C8051_LIB $source_dir/alu.vhd
vcom -87 -work C8051_LIB $source_dir/clkctrl.vhd
vcom -87 -work C8051_LIB $source_dir/cpu.vhd
vcom -87 -work C8051_LIB $source_dir/isr.vhd
vcom -87 -work C8051_LIB $source_dir/memctrl.vhd
vcom -87 -work C8051_LIB $source_dir/oci.vhd
vcom -87 -work C8051_LIB $source_dir/ports.vhd
vcom -87 -work C8051_LIB $source_dir/ramsfrctrl.vhd
vcom -87 -work C8051_LIB $source_dir/serial.vhd
vcom -87 -work C8051_LIB $source_dir/timer.vhd
transcript on
# ------------------------------------------------------------------- #
# Compiling core
# ------------------------------------------------------------------- #
transcript off
vcom -87 -work C8051_LIB $source_dir/c8051.vhd
vcom -87 -work C8051_LIB $source_dir/c8051_cfg.vhd
transcript on
# ------------------------------------------------------------------- #
# Compiling components of sample unit
# ------------------------------------------------------------------- #
transcript off
vcom -87 -work C8051_LIB $chip_dir/chipoci.vhd
vcom -87 -work C8051_LIB $chip_dir/chippad.vhd
vcom -87 -work C8051_LIB $chip_dir/chipram.vhd
vcom -87 -work C8051_LIB $chip_dir/chiprom.vhd
vcom -87 -work C8051_LIB $chip_dir/chipsfr.vhd
transcript on
# ------------------------------------------------------------------- #
# Compiling sample unit
# ------------------------------------------------------------------- #
transcript off
vcom -87 -work C8051_LIB $chip_dir/chip8051.vhd
transcript on
# ------------------------------------------------------------------- #
# Compiling components of Test Bench
# ------------------------------------------------------------------- #
transcript off
vcom -87 -work C8051_LIB $env_dir/extacs.vhd
vcom -87 -work C8051_LIB $env_dir/extclock.vhd
vcom -87 -work C8051_LIB $env_dir/extcomp.vhd
vcom -87 -work C8051_LIB $env_dir/extlatch.vhd
vcom -87 -work C8051_LIB $env_dir/extram.vhd
vcom -87 -work C8051_LIB $env_dir/extrom.vhd
vcom -87 -work C8051_LIB $env_dir/extshift.vhd
vcom -87 -work C8051_LIB $env_dir/extstim.vhd
transcript on
# ------------------------------------------------------------------- #
# Compiling Test Bench
# ------------------------------------------------------------------- #
transcript off
vcom -87 -work C8051_LIB $tb_dir/tb.vhd
transcript on
# ******************************************************************* #
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -