From 922ade83b794409e2fe77c5b130271887e503fab Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 6 Dec 2009 15:22:01 +0000 Subject: [PATCH] - added states of pins clk and data to status register Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@693 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/ps2_port/src/ps2_wb.vhd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ps2_port/src/ps2_wb.vhd b/lib/ps2_port/src/ps2_wb.vhd index 0a933ad..34f0cbb 100644 --- a/lib/ps2_port/src/ps2_wb.vhd +++ b/lib/ps2_port/src/ps2_wb.vhd @@ -46,6 +46,8 @@ ARCHITECTURE behavior OF ps2_wb IS signal tx_empty : std_logic; signal rx_err_flag : std_logic; signal rx_err_par : std_logic; + signal stat_clk : std_logic; + signal stat_data : std_logic; begin @@ -108,6 +110,8 @@ irq_register: INT_O <= irq_rx or irq_tx; irq_tx <= tx_empty and tx_int_en; irq_rx <= rx_data_present and rx_int_en; + stat_clk <= clk_rx; + stat_data <= data_rx; end if; end process; @@ -134,6 +138,6 @@ inst_ps2_core: entity work.ps2_core ps2_data_tx => data_tx ); - ps2_status_port <= rx_err_flag & "000" & rx_err_par & '0' & irq_rx & irq_tx & '0' & rx_int_en & tx_int_en & '0' & '0' & rx_data_present & '0' & tx_empty; + ps2_status_port <= rx_err_flag & "000" & rx_err_par & '0' & irq_rx & irq_tx & '0' & rx_int_en & tx_int_en & stat_data & stat_clk & rx_data_present & '0' & tx_empty; end behavior;