From 19f258f35147c3d1836b6b74af2787fde2c74261 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sat, 7 Nov 2009 11:59:48 +0000 Subject: [PATCH] - added error flags 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@630 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/ps2_port/src/ps2_wb.vhd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ps2_port/src/ps2_wb.vhd b/lib/ps2_port/src/ps2_wb.vhd index 3d5d2bb..0a933ad 100644 --- a/lib/ps2_port/src/ps2_wb.vhd +++ b/lib/ps2_port/src/ps2_wb.vhd @@ -44,6 +44,8 @@ ARCHITECTURE behavior OF ps2_wb IS signal irq_rx : std_logic; signal irq_tx : std_logic; signal tx_empty : std_logic; + signal rx_err_flag : std_logic; + signal rx_err_par : std_logic; begin @@ -122,6 +124,8 @@ inst_ps2_core: entity work.ps2_core dout => reg_ps2_rx, tx_empty => tx_empty, rx_present => rx_data_present, + rx_err_flag => rx_err_flag, + rx_err_par => rx_err_par, din_vld => reg_we_ps2_tx, read_en => reg_re_ps2_rx, ps2_clk_rx => clk_rx, @@ -130,7 +134,6 @@ inst_ps2_core: entity work.ps2_core ps2_data_tx => data_tx ); - ps2_status_port <= "000000" & irq_rx & irq_tx & '0' & rx_int_en & tx_int_en & '0' & '0' & rx_data_present & '0' & tx_empty; --- INT_O <= irq_rx or irq_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; end behavior;