2 use ieee.std_logic_1164.all;
3 use ieee.numeric_std.all;
8 sys_clk : in std_logic;
9 sys_res_n : in std_logic;
14 s_take : in std_logic;
15 s_done : out std_logic;
16 s_backspace : in std_logic;
18 d_new_eingabe : out std_logic;
19 d_new_result : out std_logic;
21 d_spalte : in hspalte;
23 d_done : out std_logic;
30 architecture beh of history is
31 type HISTORY_STATE is (SIDLE);
32 signal state_int, state_next : HISTORY_STATE;
33 signal s_done_int, s_done_next : std_logic;
34 signal d_new_eingabe_int, d_new_eingabe_next : std_logic;
35 signal d_new_result_int, d_new_result_next : std_logic;
36 signal d_done_int, d_done_next : std_logic;
37 signal d_char_int, d_char_next : hbyte;
40 d_new_eingabe <= d_new_eingabe_int;
41 d_new_result <= d_new_result_int;
45 process(sys_clk, sys_res_n)
47 if sys_res_n = '0' then
52 d_new_result_int <= '0';
53 d_new_eingabe_int <= '0';
55 d_char_int <= (others => '0');
56 elsif rising_edge(sys_clk) then
58 state_int <= state_next;
60 s_done_int <= s_done_next;
61 d_new_result_int <= d_new_result_next;
62 d_new_eingabe_int <= d_new_eingabe_next;
63 d_done_int <= d_done_next;
64 d_char_int <= d_char_next;
71 state_next <= state_int;