-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_types.vhd
56 lines (51 loc) · 2.44 KB
/
data_types.vhd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_ARITH.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
USE STD.TEXTIO.ALL;
package data_types is
-- CPU -->> PL
type CONTROL_REGISTERS is
record
--LEDS
ext_led_00 : std_logic_vector(31 downto 0);
ext_led_01 : std_logic_vector(31 downto 0);
ext_led_02 : std_logic_vector(31 downto 0);
ext_led_03 : std_logic_vector(31 downto 0);
ext_led_04 : std_logic_vector(31 downto 0);
ext_led_05 : std_logic_vector(31 downto 0);
ext_led_06 : std_logic_vector(31 downto 0);
ext_led_07 : std_logic_vector(31 downto 0);
ext_led_08 : std_logic_vector(31 downto 0);
ext_led_09 : std_logic_vector(31 downto 0);
ext_led_10 : std_logic_vector(31 downto 0);
ext_led_11 : std_logic_vector(31 downto 0);
ext_led_12 : std_logic_vector(31 downto 0);
ext_led_13 : std_logic_vector(31 downto 0);
ext_led_14 : std_logic_vector(31 downto 0);
ext_led_15 : std_logic_vector(31 downto 0);
end record;
-- PL -->> CPU
type STAT_REGISTERS is
record
--SWITCHES
ext_sw_00 : std_logic_vector(31 downto 0);
ext_sw_01 : std_logic_vector(31 downto 0);
ext_sw_02 : std_logic_vector(31 downto 0);
ext_sw_03 : std_logic_vector(31 downto 0);
ext_sw_04 : std_logic_vector(31 downto 0);
ext_sw_05 : std_logic_vector(31 downto 0);
ext_sw_06 : std_logic_vector(31 downto 0);
ext_sw_07 : std_logic_vector(31 downto 0);
ext_sw_08 : std_logic_vector(31 downto 0);
ext_sw_09 : std_logic_vector(31 downto 0);
ext_sw_10 : std_logic_vector(31 downto 0);
ext_sw_11 : std_logic_vector(31 downto 0);
ext_sw_12 : std_logic_vector(31 downto 0);
ext_sw_13 : std_logic_vector(31 downto 0);
ext_sw_14 : std_logic_vector(31 downto 0);
ext_sw_15 : std_logic_vector(31 downto 0);
end record;
end data_types;
package body data_types is
end data_types;