📄 makefile.usb
字号:
################################################################################# Makefile for LIBRARY 'CACHE' - can reference multiple entity/architecture pairs#################################################################################################################################################################ifndef TOOLSETUSAGE: @echo 'USAGE: gmake -f <makefile> TOOLSET=<toolset>' @echo ' <toolset> from one of the following:' @echo ' cadence - Leapfrog, Cadence Design Systems' @echo ' ikos - Voyager, Ikos Systems' @echo ' mtech - V-System, Model Technology' @echo ' qvhdl - QuickVHDL, Mentor Graphics' @echo ' synopsys - VSS, Synopsys' @echo ' vantage - Optium, Vantage Analysis Systems'endififeq (${TOOLSET}, cadence) COMPILER = cv -messages ${DEBUG} ${LIBS} $< DEBUG = LIBS = -work xilinxendififeq (${TOOLSET}, ikos) COMPILER = analyze ${DEBUG} ${LIBS} $< DEBUG = LIBS = -l xilinxendififeq (${TOOLSET}, mtech) COMPILER = vcom ${DEBUG} ${LIBS} -source $< DEBUG = LIBS = -work ${LIB_OBJ}endififeq (${TOOLSET}, qvhdl) COMPILER = qvcom ${DEBUG} ${LIBS} -source $< DEBUG = LIBS = -work ${LIB_OBJ}endififeq (${TOOLSET}, qhdl) COMPILER = qvhcom ${DEBUG} ${LIBS} -93 -source $< DEBUG = LIBS = -work ${LIB_OBJ}endififeq (${TOOLSET}, synopsys) COMPILER = vhdlan ${DEBUG} ${LIBS} $< DEBUG = LIBS = -w XILINXendififeq (${TOOLSET}, vantage) COMPILER = analyze ${DEBUG} ${LIBS} -src $< DEBUG = LIBS = -lib ${LIB_OBJ} -lib ${EIA_OBJ} -libieee -lib ${UTILITIES_OBJ}endif################################################################################################################################################################# This is the dummy directory for the timestampsTS = tsTOUCH = touch $@LIB_SRC = ./usbLIB_OBJ = ../obj/${TOOLSET}/usb################################################################################################################################################################all: \ usbpkg hub endpoint root usb_components tb_a tb_busbpkg: \ ${LIB_OBJ}/${TS}/usbpkg.vhd usb_components: \ ${LIB_OBJ}/${TS}/usb_components.vhd hub: \ ${LIB_OBJ}/${TS}/hub.vhd \ ${LIB_OBJ}/${TS}/hub_a.vhd endpoint: \ ${LIB_OBJ}/${TS}/endpoint.vhd \ ${LIB_OBJ}/${TS}/endpoint_a.vhd root: \ ${LIB_OBJ}/${TS}/root.vhd \ ${LIB_OBJ}/${TS}/root_a.vhd tb_a: \ ${LIB_OBJ}/${TS}/tb_a.vhd tb_b: \ ${LIB_OBJ}/${TS}/tb_b.vhd ################################################################################# THE UPDATE RULES#################################################################################-------------------------------------------------------------------------------# ENTITY usbpkg${LIB_OBJ}/${TS}/usbpkg.vhd: ${LIB_SRC}/usbpkg.vhd ${COMPILER} ${TOUCH}#-------------------------------------------------------------------------------#-------------------------------------------------------------------------------# ENTITY usb_components${LIB_OBJ}/${TS}/usb_components.vhd: ${LIB_SRC}/usb_components.vhd ${LIB_OBJ}/ts/root.vhd ${LIB_OBJ}/ts/endpoint.vhd ${LIB_OBJ}/ts/hub.vhd ${COMPILER} ${TOUCH}#-------------------------------------------------------------------------------#-------------------------------------------------------------------------------# ENTITY hub${LIB_OBJ}/${TS}/hub.vhd: ${LIB_SRC}/hub.vhd ${LIB_OBJ}/ts/usbpkg.vhd ${COMPILER} ${TOUCH}#-------------------------------------------------------------------------------#-------------------------------------------------------------------------------# ENTITY hub_a${LIB_OBJ}/${TS}/hub_a.vhd: ${LIB_SRC}/hub_a.vhd ${LIB_OBJ}/ts/usbpkg.vhd ${COMPILER} ${TOUCH}#-------------------------------------------------------------------------------#-------------------------------------------------------------------------------# ENTITY endpoint${LIB_OBJ}/${TS}/endpoint.vhd: ${LIB_SRC}/endpoint.vhd ${LIB_OBJ}/ts/usbpkg.vhd ${COMPILER} ${TOUCH}#-------------------------------------------------------------------------------#-------------------------------------------------------------------------------# ENTITY endpoint_a${LIB_OBJ}/${TS}/endpoint_a.vhd: ${LIB_SRC}/endpoint_a.vhd ${LIB_OBJ}/ts/usbpkg.vhd ${COMPILER} ${TOUCH}#-------------------------------------------------------------------------------#-------------------------------------------------------------------------------# ENTITY root${LIB_OBJ}/${TS}/root.vhd: ${LIB_SRC}/root.vhd ${LIB_OBJ}/ts/usbpkg.vhd ${COMPILER} ${TOUCH}#-------------------------------------------------------------------------------#-------------------------------------------------------------------------------# ENTITY root_a${LIB_OBJ}/${TS}/root_a.vhd: ${LIB_SRC}/root_a.vhd ${LIB_OBJ}/ts/usbpkg.vhd ${COMPILER} ${TOUCH}#-------------------------------------------------------------------------------## NOTE dependency of 'tb' on usb_components#-------------------------------------------------------------------------------# ENTITY tb_a${LIB_OBJ}/${TS}/tb_a.vhd: ${LIB_SRC}/tb_a.vhd ${LIB_OBJ}/ts/usb_components.vhd ${COMPILER} ${TOUCH}#-------------------------------------------------------------------------------## NOTE dependency of 'tb' on usb_components#-------------------------------------------------------------------------------# ENTITY tb_b${LIB_OBJ}/${TS}/tb_b.vhd: ${LIB_SRC}/tb_b.vhd ${LIB_OBJ}/ts/usb_components.vhd ${COMPILER} ${TOUCH}#-------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -