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;
end if;
if zeile = HZEILE_MAX then
state_next <= IDLE;
- zeile_next <= 0;
- spalte_next <= 1;
end if;
end case;
end process;