From: Bernhard Urban Date: Fri, 28 May 2010 10:53:08 +0000 (+0200) Subject: pc-com: dumpen bei zeichen 'A' -- geht mit minicom als auch mit cat X-Git-Tag: abgabe~2 X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=hwmod.git;a=commitdiff_plain;h=e4e2b0bac043701bdcdae029e87d7d1bb8dbb364 pc-com: dumpen bei zeichen 'A' -- geht mit minicom als auch mit cat --- diff --git a/src/pc_communication.vhd b/src/pc_communication.vhd index 290f1fd..88a5cf8 100644 --- a/src/pc_communication.vhd +++ b/src/pc_communication.vhd @@ -80,8 +80,9 @@ begin state_next <= state; case state is when IDLE => - --if (rx_new = '1' and rx_data = x"0a") or btn_a = '0' then - if (rx_new = '1' or btn_a = '0') and tx_done_i = '0' then + zeile_next <= 0; + spalte_next <= 1; + if ((rx_new = '1' and rx_data = x"41") or btn_a = '0') and tx_done_i = '0' then state_next <= PRINT_NO1; end if; @@ -198,8 +199,6 @@ begin end if; if zeile = HZEILE_MAX then state_next <= IDLE; - zeile_next <= 0; - spalte_next <= 1; end if; end case; end process;