-
Notifications
You must be signed in to change notification settings - Fork 0
/
PCIeConstants.vhd
46 lines (42 loc) · 1.58 KB
/
PCIeConstants.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
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 15:30:37 10/30/2011
-- Design Name:
-- Module Name: PCIeConstants - Behavioral
-- Project Name:
-- Target Devices:
-- Tool versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
--use IEEE.NUMERIC_STD.ALL;
-- Uncomment the following library declaration if instantiating
-- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
package pcie_constants is
--Formatos
constant PCIeFMT_3DW : std_logic_vector(1 downto 0) := "00";
constant PCIeFMT_4DW : std_logic_vector(1 downto 0) := "01";
constant PCIeFMT_3DWD: std_logic_vector(1 downto 0) := "10";
constant PCIeFMT_4DWD : std_logic_vector(1 downto 0) := "11";
constant PCIeCplFMT_NOD : std_logic_vector(1 downto 0) := "00";
constant PCIeCplFMT_WITHD : std_logic_vector(1 downto 0) := "10";
--Tipos
constant PCIeType_MRd : std_logic_vector(4 downto 0) := "00000";
constant PCIeType_MWr : std_logic_vector(4 downto 0) := "00000";
constant PCIeType_Cpl : std_logic_vector(4 downto 0) := "01010";
constant PCIeType_CplD : std_logic_vector(4 downto 0) := "01010";
end pcie_constants;