- added makefiles for GHDL
git-svn-id: http://moon:8086/svn/vhdl/trunk@1389 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
NAME ?= tb_cpu
|
||||||
|
|
||||||
|
include core/jcpu_core.mk
|
||||||
|
|
||||||
|
tb_cpu_SRCS := tb_cpu_itest.vhd itest_irom.vhdl
|
||||||
|
tb_cpu_ENTITY_RUN := tb_cpu
|
||||||
|
|
||||||
|
tb_reti_issue_SRCS := tb_cpu_irq.vhd reti_issue_irom.vhdl
|
||||||
|
tb_reti_issue_ENTITY_RUN := tb_cpu
|
||||||
|
|
||||||
|
tb_cpu_embedded_SRCS := tb_cpu_embedded.vhd cpu_embedded.vhd itest_irom.vhdl
|
||||||
|
tb_cpu_embedded_ENTITY_RUN := tb_cpu_embedded
|
||||||
|
|
||||||
|
tb_mul8x8_SRCS := tb_cpu_embedded.vhd cpu_embedded.vhd mul8x8_irom.vhdl
|
||||||
|
tb_mul8x8_ENTITY_RUN := tb_cpu_embedded
|
||||||
|
|
||||||
|
|
||||||
|
SRCS := ../../../PCK_FIO-2002.7/PCK_FIO_1993.vhd ../../../PCK_FIO-2002.7/PCK_FIO_1993_BODY.vhd
|
||||||
|
SRCS += $(JCPU_CORE_SRCS) $($(NAME)_SRCS)
|
||||||
|
|
||||||
|
ENTITY_RUN = $($(NAME)_ENTITY_RUN)
|
||||||
|
|
||||||
|
BUILD_DIR := build
|
||||||
|
|
||||||
|
include ../../../../Common/make/ghdl.mk
|
||||||
|
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
_PKG_NAME := JCPU_CORE
|
||||||
|
|
||||||
|
_CURDIR = $(shell dirname $(lastword $(MAKEFILE_LIST)))
|
||||||
|
|
||||||
|
_SRC := cpu_pkg.vhd
|
||||||
|
_SRC += cpu.vhd
|
||||||
|
_SRC += alu.vhd
|
||||||
|
_SRC += chipram.vhd
|
||||||
|
_SRC += chipreg.vhd
|
||||||
|
_SRC += dpath_ctrl.vhd
|
||||||
|
_SRC += int_ctrl.vhd
|
||||||
|
_SRC += pc.vhd
|
||||||
|
_SRC += reg_dual.vhd
|
||||||
|
_SRC += stack_ctrl.vhd
|
||||||
|
|
||||||
|
$(_PKG_NAME)_SRCS := $(addprefix $(_CURDIR)/,$(_SRC))
|
||||||
|
|
||||||
|
undefine $(_SRC)
|
||||||
|
|
||||||
Reference in New Issue
Block a user