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;