git-svn-id: http://moon:8086/svn/vhdl/trunk@1476 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2021-03-23 08:18:35 +00:00
parent fa2e213d8f
commit 16c9996524
5 changed files with 88 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# -----------------------------------------------------------
PKG_NAME := FIFO_ASYNC
ROOT_PATH := ../../..
LIB_PATH := $(ROOT_PATH)/lib
CUR_PATH := $(shell dirname $(lastword $(MAKEFILE_LIST)))
# -----------------------------------------------------------
SRCS := $(LIB_PATH)/rams/dpram_1w1r2c_ra_sim.vhd
SRCS += $(LIB_PATH)/FIFO/src/fifo_ctrl_pkg.vhd
SRCS += $(LIB_PATH)/FIFO/src/gray_counter.vhd
SRCS += $(LIB_PATH)/FIFO/src/fifo_async_ctrl.vhd
SRCS += $(LIB_PATH)/FIFO/src/fifo_async.vhd
# -----------------------------------------------------------
$(PKG_NAME)_SRCS := $(addprefix $(CUR_PATH)/,$(SRCS))
SRCS :=
CUR_PATH :=
ROOT_PATH :=
LIB_PATH :=
+20
View File
@@ -0,0 +1,20 @@
# -----------------------------------------------------------
PKG_NAME := FIFO_SYNC
ROOT_PATH := ../../..
LIB_PATH := $(ROOT_PATH)/lib
CUR_PATH := $(shell dirname $(lastword $(MAKEFILE_LIST)))
# -----------------------------------------------------------
SRCS := $(LIB_PATH)/rams/dpram_1w1r2c_ra_sim.vhd
SRCS += $(LIB_PATH)/FIFO/src/fifo_ctrl_pkg.vhd
SRCS += $(LIB_PATH)/FIFO/src/fifo_sync_ctrl.vhd
SRCS += $(LIB_PATH)/FIFO/src/fifo_sync.vhd
# -----------------------------------------------------------
$(PKG_NAME)_SRCS := $(addprefix $(CUR_PATH)/,$(SRCS))
SRCS :=
CUR_PATH :=
ROOT_PATH :=
LIB_PATH :=
+16
View File
@@ -0,0 +1,16 @@
include fifo_async.inc
ROOT_PATH := ../../..
LIB_PATH := $(ROOT_PATH)/lib
SRCS += $(FIFO_ASYNC_SRCS)
SRCS += $(LIB_PATH)/FIFO/src/tb_fifo_async.vhd
# Compile
TARGET := tb_fifo_async
ENTITY := tb_fifo_async
WITH_VCD := y
RUN_TIME := 5us
include $(ROOT_PATH)/Common/make/ghdl.mk
+16
View File
@@ -0,0 +1,16 @@
include fifo_sync.inc
ROOT_PATH := ../../..
LIB_PATH := $(ROOT_PATH)/lib
SRCS += $(FIFO_SYNC_SRCS)
SRCS += $(LIB_PATH)/FIFO/src/tb_fifo_sync.vhd
# Compile
TARGET := tb_fifo_sync
ENTITY := tb_fifo_sync
WITH_VCD := y
RUN_TIME := 5us
include $(ROOT_PATH)/Common/make/ghdl.mk
+15
View File
@@ -0,0 +1,15 @@
ROOT_PATH := ../../..
LIB_PATH := $(ROOT_PATH)/lib
SRCS += $(LIB_PATH)/FIFO/src/fifo_ctrl_pkg.vhd
SRCS += $(LIB_PATH)/FIFO/src/gray_counter.vhd
SRCS += $(LIB_PATH)/FIFO/src/tb_gray_counter.vhd
# Compile
TARGET := tb_gray_counter
ENTITY := tb_gray_counter
WITH_VCD := y
RUN_TIME := 1us
include $(ROOT_PATH)/Common/make/ghdl.mk