24e5d842d5bbe7de2650c872adf41f2c0b2cdb0d
Stefan Schuermans initial firmware and testbed

Stefan Schuermans authored 12 years ago

1) LIBRARY ieee;
2) USE ieee.std_logic_1164.all;
3) USE ieee.numeric_std.all;
4) USE std.textio.all;
Stefan Schuermans implemented LCD peripheral

Stefan Schuermans authored 12 years ago

5) USE work.io_lcd_pins.all;
Stefan Schuermans implemented switches

Stefan Schuermans authored 12 years ago

6) USE work.io_switches_pins.all;
Stefan Schuermans initial firmware and testbed

Stefan Schuermans authored 12 years ago

7) 
8) ENTITY e_testbed IS
9) END ENTITY e_testbed;
10) 
11) ARCHITECTURE a_testbed OF e_testbed IS
12) 
13)     COMPONENT e_system IS
14)         PORT (
Stefan Schuermans implemented switches

Stefan Schuermans authored 12 years ago

15)             clk:            IN  std_logic;
16)             pin_o_leds:     OUT std_logic_vector(7 DOWNTO 0);
17)             pin_o_lcd:      OUT t_io_lcd_pins;
Stefan Schuermans implemented TX part of UART...

Stefan Schuermans authored 12 years ago

18)             pin_i_switches: IN  t_io_switches_pins;
Stefan Schuermans implemented RX part of UART...

Stefan Schuermans authored 12 years ago

19)             pin_i_uart_rx:  IN  std_logic;
Stefan Schuermans implemented TX part of UART...

Stefan Schuermans authored 12 years ago

20)             pin_o_uart_tx:  OUT std_logic
Stefan Schuermans initial firmware and testbed

Stefan Schuermans authored 12 years ago

21)         );
22)     END COMPONENT e_system;
23) 
Stefan Schuermans implemented RX part of UART...

Stefan Schuermans authored 12 years ago

24)     SIGNAL s_clk:             std_logic;
25)     SIGNAL pin_leds:          std_logic_vector(7 DOWNTO 0);
26)     SIGNAL pin_lcd:           t_io_lcd_pins;
27)     SIGNAL pin_uart_loopback: std_logic;
Stefan Schuermans initial firmware and testbed

Stefan Schuermans authored 12 years ago

28) 
29) BEGIN
30) 
31)     system: e_system
32)         PORT MAP (
Stefan Schuermans implemented switches

Stefan Schuermans authored 12 years ago

33)             clk            => s_clk,
34)             pin_o_leds     => pin_leds,
35)             pin_o_lcd      => pin_lcd,
Stefan Schuermans implemented TX part of UART...

Stefan Schuermans authored 12 years ago

36)             pin_i_switches => (sw => (OTHERS => '0'), OTHERS => '0'),
Stefan Schuermans implemented RX part of UART...

Stefan Schuermans authored 12 years ago

37)             pin_i_uart_rx  => pin_uart_loopback,
38)             pin_o_uart_tx  => pin_uart_loopback