2 use ieee.std_logic_1164.all;
3 use ieee.numeric_std.all;
5 use work.textmode_vga_component_pkg.all;
6 use work.textmode_vga_pkg.all;
7 use work.textmode_vga_platform_dependent_pkg.all;
8 use work.ps2_keyboard_controller_pkg.all;
12 CLK_50MHZ : in std_logic;
13 sys_res : in std_logic;
19 vsync_n : out std_logic;
20 hsync_n : out std_logic;
21 r : out std_logic_vector(RED_BITS - 1 downto 0);
22 g : out std_logic_vector(GREEN_BITS - 1 downto 0);
23 b : out std_logic_vector(BLUE_BITS - 1 downto 0);
25 ps2_clk : inout std_logic;
26 ps2_data : inout std_logic;
33 architecture top of calc is
35 signal sys_res_n : std_logic;
37 signal new_data : std_logic;
38 signal data : std_logic_vector(7 downto 0);
40 signal vga_clk, free : std_logic;
42 signal command : std_logic_vector(COMMAND_SIZE - 1 downto 0);
43 signal command_data : std_logic_vector(3 * COLOR_SIZE + CHAR_SIZE -1 downto 0);
45 signal d_new_eingabe, d_new_result, d_new_bs : std_logic;
46 signal d_zeile : hzeile;
47 signal d_spalte : hspalte;
48 signal d_get, d_done : std_logic;
49 signal d_char : hbyte;
51 signal s_char : hbyte;
52 signal s_take, s_done, s_backspace : std_logic;
54 -- tmp: history<>scanner
55 signal do_it, finished : std_logic;
59 sys_res_n <= not sys_res;
62 textmode_vga_inst : entity work.textmode_vga(struct)
64 VGA_CLK_FREQ => 25000000,
65 BLINK_INTERVAL_MS => 500,
70 sys_res_n => sys_res_n,
72 command_data => command_data,
75 vga_res_n => sys_res_n,
84 clk_vga_s3e_inst : entity work.clk_vga_s3e(beh)
91 display_inst : entity work.display(beh)
94 sys_res_n => sys_res_n,
96 d_new_eingabe => d_new_eingabe,
97 d_new_result => d_new_result,
100 d_spalte => d_spalte,
106 command_data => command_data,
111 history_inst : entity work.history(beh)
113 sys_clk => CLK_50MHZ,
114 sys_res_n => sys_res_n,
119 s_backspace => s_backspace,
121 d_new_eingabe => d_new_eingabe,
122 d_new_result => d_new_result,
123 d_new_bs => d_new_bs,
125 d_spalte => d_spalte,
135 scanner_inst : entity work.scanner(beh)
137 sys_clk => CLK_50MHZ,
138 sys_res_n => sys_res_n,
140 new_data => new_data,
146 s_backspace => s_backspace,
147 -- TODO: parser. temporaer mit history verbunden
153 ps2_inst : entity work.ps2_keyboard_controller(beh)
155 CLK_FREQ => 50000000,
159 sys_clk => CLK_50MHZ,
160 sys_res_n => sys_res_n,
162 new_data => new_data,
167 end architecture top;