diff --git a/lib/uart/ghdl/tb_uart_sim.gtkw b/lib/uart/ghdl/tb_uart_sim.gtkw new file mode 100644 index 0000000..35339af --- /dev/null +++ b/lib/uart/ghdl/tb_uart_sim.gtkw @@ -0,0 +1,27 @@ +[*] +[*] GTKWave Analyzer v3.3.104 (w)1999-2020 BSI +[*] Sat Apr 3 13:13:23 2021 +[*] +[dumpfile] "/home/jens/work/vhdl/trunk/lib/uart/ghdl/build/tb_uart_sim/tb_uart_sim.fst" +[dumpfile_mtime] "Sat Apr 3 13:11:53 2021" +[dumpfile_size] 984 +[savefile] "/home/jens/work/vhdl/trunk/lib/uart/ghdl/build/tb_uart_sim/tb_uart_sim.gtkw" +[timestart] 0 +[size] 1581 824 +[pos] -1 -1 +*-32.127811 11470000000 -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] 204 +[sst_expanded] 1 +[sst_vpaned_height] 222 +@28 +clk +@22 +data_rx[7:0] +data_tx[7:0] +@28 +tx_ser +@29 +tx_we +[pattern_trace] 1 +[pattern_trace] 0 diff --git a/lib/uart/ghdl/tb_uart_sim.make b/lib/uart/ghdl/tb_uart_sim.make new file mode 100644 index 0000000..a5b4bf4 --- /dev/null +++ b/lib/uart/ghdl/tb_uart_sim.make @@ -0,0 +1,20 @@ +# ----------------------------------------------------------- +include $(VHDL_HOME)/make/defs.mk +# ----------------------------------------------------------- +include $(VHDL_HOME)/lib/uart/ghdl/uart_sim.inc + +# ----------------------------------------------------------- +MOD_PATH := $(LIB_PATH)/uart/src + +SRCS := $(UART_SIM_SRCS) +SRCS += $(MOD_PATH)/tb_uart.vhd + +# ----------------------------------------------------------- +# Compile +TARGET := tb_uart_sim +ENTITY := tb_uart +RUN_TIME := 880us + +include $(VHDL_HOME)/make/ghdl.mk +# ----------------------------------------------------------- + diff --git a/lib/uart/ghdl/uart_sim.inc b/lib/uart/ghdl/uart_sim.inc new file mode 100644 index 0000000..0ca72b2 --- /dev/null +++ b/lib/uart/ghdl/uart_sim.inc @@ -0,0 +1,13 @@ +# ----------------------------------------------------------- +include $(VHDL_HOME)/make/defs.mk +# ----------------------------------------------------------- +PKG_NAME := UART_SIM + +# ----------------------------------------------------------- +MOD_PATH := $(LIB_PATH)/uart/src + +$(PKG_NAME)_SRCS += $(MOD_PATH)/uart_types.vhd +$(PKG_NAME)_SRCS += $(MOD_PATH)/sim/uart.vhd + +# ----------------------------------------------------------- +