From 13488ae71ef24c21cefdb2c4c8e14b885c1106b4 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Wed, 27 May 2015 15:59:43 +0000 Subject: [PATCH] [UART] - ctrl is input git-svn-id: http://moon:8086/svn/vhdl/trunk@1241 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/uart/uart_jtag.vhd | 4 ++-- lib/uart/uart_sim.vhd | 3 ++- lib/uart/uart_wb.vhd | 2 +- lib/uart/uart_xil.vhd | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/uart/uart_jtag.vhd b/lib/uart/uart_jtag.vhd index 53b7347..c3ea12d 100644 --- a/lib/uart/uart_jtag.vhd +++ b/lib/uart/uart_jtag.vhd @@ -23,9 +23,9 @@ ENTITY uart IS re : in STD_LOGIC; din : in unsigned(7 downto 0); dout : out unsigned(7 downto 0); - ser_rx : in std_logic; + ser_rx : in std_logic; ser_tx : out std_logic; - ctrl : out ctrl_t; + ctrl : in ctrl_t; status : out status_t ); END uart; diff --git a/lib/uart/uart_sim.vhd b/lib/uart/uart_sim.vhd index 18578d2..a90fa2f 100644 --- a/lib/uart/uart_sim.vhd +++ b/lib/uart/uart_sim.vhd @@ -19,7 +19,7 @@ ENTITY uart IS dout : out unsigned(7 downto 0); ser_rx : in std_logic; ser_tx : out std_logic; - ctrl : out ctrl_t; + ctrl : in ctrl_t; status : out status_t ); END uart; @@ -35,6 +35,7 @@ status.rx_present <= '0'; ser_tx <= '1'; status.tx_complete <= '1'; status.tx_empty <= '1'; +status.tx_full <= '0'; proc_tx: process(clk) diff --git a/lib/uart/uart_wb.vhd b/lib/uart/uart_wb.vhd index 4725e98..00b9fdd 100644 --- a/lib/uart/uart_wb.vhd +++ b/lib/uart/uart_wb.vhd @@ -39,7 +39,7 @@ ARCHITECTURE rtl OF uart_wb IS dout : out unsigned(7 downto 0); ser_rx : in std_logic; ser_tx : out std_logic; - ctrl : out ctrl_t; + ctrl : in ctrl_t; status : out status_t ); END COMPONENT; diff --git a/lib/uart/uart_xil.vhd b/lib/uart/uart_xil.vhd index ccb9368..d221502 100644 --- a/lib/uart/uart_xil.vhd +++ b/lib/uart/uart_xil.vhd @@ -15,9 +15,9 @@ ENTITY uart IS re : in STD_LOGIC; din : in unsigned(7 downto 0); dout : out unsigned(7 downto 0); - ser_rx : in std_logic; + ser_rx : in std_logic; ser_tx : out std_logic; - ctrl : out ctrl_t; + ctrl : in ctrl_t; status : out status_t ); END uart;