display/history: unnoetiges weg, kthx
[hwmod.git] / src / display.vhd
index 55d07fca8a743d85b2985f0bcf14852f9e262649..ed8cac9a8e755afa053b2438b4a9e77982778b28 100644 (file)
@@ -26,7 +26,7 @@ entity display is
 end entity display;
 
 architecture beh of display is
-       type DISPLAY_STATE is (S_INIT, SIDLE, S_NEW_RESULT, S_NEW_INPUT, S_COUNTUP, S_GETCH,
+       type DISPLAY_STATE is (SIDLE, S_NEW_RESULT, S_NEW_INPUT, S_COUNTUP, S_GETCH,
        S_CR1, S_NL1, S_PUTCH1, S_PUTCH2, S_WAIT, S_NOP1);
        signal state_int, state_next : DISPLAY_STATE;
        signal d_zeile_int, d_zeile_next : hzeile;
@@ -46,7 +46,7 @@ begin
        begin
                if sys_res_n = '0' then
                        -- internal
-                       state_int <= S_INIT;
+                       state_int <= SIDLE;
                        istate_int <= (others => '0');
                        -- out
                        d_zeile_int <= (others => '0');
@@ -75,9 +75,8 @@ begin
                istate_next <= istate_int;
 
                case state_int is
-                       when S_INIT =>
-                               state_next <= SIDLE;
                        when SIDLE =>
+                               istate_next <= b"111"; -- default: immer wieder ins SIDLE;
                                if d_new_eingabe = '1' then
                                        state_next <= S_NEW_INPUT;
                                end if;
@@ -96,7 +95,7 @@ begin
                        when S_NL1 =>
                                if free = '0' then
                                        state_next <= S_WAIT;
-                                       istate_next <= b"111";
+                                       istate_next <= b"111"; -- => wieder nach SIDLE
                                end if;
                        when S_COUNTUP =>
                                state_next <= S_GETCH;
@@ -109,7 +108,6 @@ begin
                        when S_PUTCH2 =>
                                if free = '0' or (free = '1' and d_char = x"00") then
                                        state_next <= S_WAIT;
-                                       istate_next <= b"111";
                                end if;
                        when S_WAIT =>
                                if free = '1' and d_done = '0' then
@@ -136,9 +134,6 @@ begin
                command_data_next <= command_data_int;
 
                case state_int is
-                       when S_INIT =>
-                               d_spalte_next <= (others => '0');
-                               d_zeile_next <= (others => '0');
                        when SIDLE =>
                                null;
                        when S_NEW_INPUT =>