-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.vhd
50 lines (41 loc) · 1.54 KB
/
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
-------------------------------------------------------------------------------
--
-- Title Modular VHDL peripheral
-- https://github.com/the-moog/vhdl_modular_blocks
-- File utils.vhd
-- Author Jason Morgan
--
-- Copyright © Jason Morgan 2018
-- License This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.
-- CC-BY-ND, see LICENSE.TXT
--
-------------------------------------------------------------------------------
--
-- Date 17/7/2018
-- Version 2
--
-- ChangeLog
-- =========
-- Version By Date Change
--
-- 1 J A Morgan 2009 Initial version
-- 2 J A Morgan 17/7/18 Updated to VHDL2008
--
-------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.all;
use IEEE.STD_LOGIC_ARITH.all;
--! @brief Globally used type definitions
package types is
subtype bus8 is std_logic_vector(7 downto 0);
subtype bus16 is std_logic_vector(15 downto 0);
subtype bus32 is std_logic_vector(31 downto 0);
subtype bus25 is std_logic_vector(24 downto 0);
type memory8 is array (natural range <>) of bus8;
type memory16 is array (natural range <>) of bus16;
type memory32 is array (natural range <>) of bus32;
type logic_vector_array is array (natural range <>) of std_logic_vector;
type txt is array (natural range <>) of character;
end package;
package body types is
end package body;