From 03d6b84ac7ddc4762509ce694f12b4b20a7e8119 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 22 Mar 2021 18:31:14 +0000 Subject: [PATCH] - added nco_cordic git-svn-id: http://moon:8086/svn/vhdl/trunk@1458 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/radio/nco/ghdl/nco_cordic.Makefile | 36 ++++++++++++++++++++++++ lib/radio/nco/ghdl/nco_cordic.gtkw.templ | 28 ++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 lib/radio/nco/ghdl/nco_cordic.Makefile create mode 100644 lib/radio/nco/ghdl/nco_cordic.gtkw.templ diff --git a/lib/radio/nco/ghdl/nco_cordic.Makefile b/lib/radio/nco/ghdl/nco_cordic.Makefile new file mode 100644 index 0000000..795a5c6 --- /dev/null +++ b/lib/radio/nco/ghdl/nco_cordic.Makefile @@ -0,0 +1,36 @@ +# ------------------------------------------------- +# Global options +# ------------------------------------------------- +LANG_STD := 93c +IEEE_STD := standard +WORK_LIB := work + +# ------------------------------------------------- +# Target options +# ------------------------------------------------- +LIB_PATH := ../../../../lib + +SRCS := $(LIB_PATH)/fixed/ieee_proposed/fixed_util_pkg.vhd +SRCS += $(LIB_PATH)/PCK_FIO-2002.7/PCK_FIO_1993.vhd +SRCS += $(LIB_PATH)/PCK_FIO-2002.7/PCK_FIO_1993_BODY.vhd +SRCS += $(LIB_PATH)/radio/cordic/src/cordic_pkg.vhd +SRCS += $(LIB_PATH)/radio/cordic/src/cordic_pipe_stage.vhd +SRCS += $(LIB_PATH)/radio/cordic/src/cordic_pipe_pre.vhd +SRCS += $(LIB_PATH)/radio/cordic/src/cordic_pipe_post.vhd +SRCS += $(LIB_PATH)/radio/cordic/src/cordic_pipe_top.vhd +SRCS += $(LIB_PATH)/radio/nco/src/mix_cordic.vhd +SRCS += $(LIB_PATH)/radio/nco/src/tb_nco_cordic.vhd + +# ------------------------------------------------- +# Compile +TARGET := nco_cordic +ENTITY := tb_nco +WITH_VCD := y +RUN_TIME := 250us + +GHDL_OPTS := -P$(LIB_PATH)/fixed/ieee_proposed/build/fixed_pkg/ieee_proposed + +include ../../../../Common/make/ghdl.mk +# ------------------------------------------------- + + diff --git a/lib/radio/nco/ghdl/nco_cordic.gtkw.templ b/lib/radio/nco/ghdl/nco_cordic.gtkw.templ new file mode 100644 index 0000000..fa02b6e --- /dev/null +++ b/lib/radio/nco/ghdl/nco_cordic.gtkw.templ @@ -0,0 +1,28 @@ +[*] +[*] GTKWave Analyzer v3.3.104 (w)1999-2020 BSI +[*] Mon Mar 22 18:30:07 2021 +[*] +[dumpfile] "/home/jens/work/vhdl/trunk/lib/radio/nco/ghdl/build/nco_cordic/nco_cordic.vcd" +[dumpfile_mtime] "Mon Mar 22 18:30:01 2021" +[dumpfile_size] 13953033 +[savefile] "/home/jens/work/vhdl/trunk/lib/radio/nco/ghdl/build/nco_cordic/nco_cordic.gtkw" +[timestart] 0 +[size] 1856 1136 +[pos] -2 -2 +*-35.048588 148700000000 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 +[sst_width] 233 +[signals_width] 166 +[sst_expanded] 1 +[sst_vpaned_height] 331 +@28 +tb_nco.clk +tb_nco.srst +@22 +tb_nco.mix_din_i[2:-13] +tb_nco.mix_din_q[2:-13] +@8421 +tb_nco.mix_dout_i[2:-13] +@8420 +tb_nco.mix_dout_q[2:-13] +[pattern_trace] 1 +[pattern_trace] 0