From 98f2150ec750f227fba9d67dc8b2568eaf254507 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Tue, 23 Mar 2021 15:00:54 +0000 Subject: [PATCH] - added DDC git-svn-id: http://moon:8086/svn/vhdl/trunk@1494 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/radio/ddc/ghdl/tb_ddc.gtkw | 38 ++++++++++++++++++++++++++++++++++ lib/radio/ddc/ghdl/tb_ddc.make | 29 ++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 lib/radio/ddc/ghdl/tb_ddc.gtkw create mode 100644 lib/radio/ddc/ghdl/tb_ddc.make diff --git a/lib/radio/ddc/ghdl/tb_ddc.gtkw b/lib/radio/ddc/ghdl/tb_ddc.gtkw new file mode 100644 index 0000000..ca6c928 --- /dev/null +++ b/lib/radio/ddc/ghdl/tb_ddc.gtkw @@ -0,0 +1,38 @@ +[*] +[*] GTKWave Analyzer v3.3.104 (w)1999-2020 BSI +[*] Tue Mar 23 14:59:44 2021 +[*] +[dumpfile] "/home/jens/work/vhdl/trunk/lib/radio/ddc/ghdl/build/tb_ddc/tb_ddc.vcd" +[dumpfile_mtime] "Tue Mar 23 14:58:26 2021" +[dumpfile_size] 60188033 +[savefile] "/home/jens/work/vhdl/trunk/lib/radio/ddc/ghdl/build/tb_ddc/tb_ddc.gtkw" +[timestart] 0 +[size] 1856 1136 +[pos] -51 -51 +*-33.734886 71120000000 -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] 174 +[sst_expanded] 1 +[sst_vpaned_height] 331 +@28 +tb_ddc.clk +@8421 +tb_ddc.ddc_dec_i[2:-29] +tb_ddc.ddc_dec_q[2:-29] +tb_ddc.ddc_din_i[2:-13] +tb_ddc.ddc_din_q[2:-13] +@28 +tb_ddc.ddc_din_vld +@8420 +tb_ddc.ddc_dout_i[2:-29] +tb_ddc.ddc_dout_q[2:-29] +@28 +tb_ddc.ddc_dout_vld +@22 +tb_ddc.ddc_freq_in[23:0] +@28 +tb_ddc.ddc_i_out_f +@22 +tb_ddc.ddc_phase_in[23:0] +[pattern_trace] 1 +[pattern_trace] 0 diff --git a/lib/radio/ddc/ghdl/tb_ddc.make b/lib/radio/ddc/ghdl/tb_ddc.make new file mode 100644 index 0000000..ace659f --- /dev/null +++ b/lib/radio/ddc/ghdl/tb_ddc.make @@ -0,0 +1,29 @@ +include ../../../../lib/FIFO/ghdl/fifo_sync.inc +include ../../../../lib/filter/ghdl/fir_semi_parallel.inc +include ../../../../lib/radio/nco/ghdl/mix_cordic_pipe.inc + +ROOT_PATH := ../../../.. +LIB_PATH := $(ROOT_PATH)/lib + +SRCS += $(LIB_PATH)/misc/utils_pkg.vhd +SRCS += $(FIFO_SYNC_SRCS) +SRCS += $(FIR_SEMI_PARALLEL_SRCS) +SRCS += $(MIX_CORDIC_PIPE_SRCS) +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/decimator/CIC/src/cic_i_pipe.vhd +SRCS += $(LIB_PATH)/radio/decimator/CIC/src/cic_c_pipe.vhd +SRCS += $(LIB_PATH)/radio/decimator/CIC/src/cic_decim_pipe.vhd +SRCS += $(LIB_PATH)/radio/ddc/src/ddc.vhd +SRCS += $(LIB_PATH)/radio/ddc/src/tb_ddc.vhd + +# Compile +TARGET := tb_ddc +ENTITY := tb_ddc +WITH_VCD := y +RUN_TIME := 100us + +GHDL_OPTS := -P$(LIB_PATH)/fixed/ieee_proposed/build/fixed_pkg/ieee_proposed + +include $(ROOT_PATH)/Common/make/ghdl.mk +