1 |
5 |
specular |
//=======================================================================
|
2 |
|
|
// Project Monophony
|
3 |
|
|
// Wire-Frame 3D Graphics Accelerator IP Core
|
4 |
|
|
//
|
5 |
|
|
// File:
|
6 |
|
|
// polyphony_axi_def.v
|
7 |
|
|
//
|
8 |
|
|
// Abstract:
|
9 |
|
|
// AXI parameters
|
10 |
|
|
//
|
11 |
|
|
// Author:
|
12 |
9 |
specular |
// Kenji Ishimaru (info.info.wf3d@gmail.com)
|
13 |
5 |
specular |
//
|
14 |
|
|
//======================================================================
|
15 |
|
|
//
|
16 |
|
|
// Copyright (c) 2016, Kenji Ishimaru
|
17 |
|
|
// All rights reserved.
|
18 |
|
|
//
|
19 |
|
|
// Redistribution and use in source and binary forms, with or without
|
20 |
|
|
// modification, are permitted provided that the following conditions are met:
|
21 |
|
|
//
|
22 |
|
|
// -Redistributions of source code must retain the above copyright notice,
|
23 |
|
|
// this list of conditions and the following disclaimer.
|
24 |
|
|
// -Redistributions in binary form must reproduce the above copyright notice,
|
25 |
|
|
// this list of conditions and the following disclaimer in the documentation
|
26 |
|
|
// and/or other materials provided with the distribution.
|
27 |
|
|
//
|
28 |
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
29 |
|
|
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
30 |
|
|
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
31 |
|
|
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
32 |
|
|
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
33 |
|
|
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
34 |
|
|
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
35 |
|
|
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
36 |
|
|
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
37 |
|
|
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
38 |
|
|
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
39 |
|
|
//
|
40 |
|
|
// Revision History
|
41 |
|
|
|
42 |
|
|
`include "polyphony_params.v"
|
43 |
|
|
// AXI Slave
|
44 |
|
|
parameter P_AXI_S_AWID = 4; // Write address ID
|
45 |
|
|
parameter P_AXI_S_AWADDR = 32; // Write address
|
46 |
|
|
parameter P_AXI_S_AWLEN = 4; // Burst Length
|
47 |
|
|
parameter P_AXI_S_AWSIZE = 3; // Burst size
|
48 |
|
|
parameter P_AXI_S_AWBURST = 2; // Burst type
|
49 |
|
|
parameter P_AXI_S_AWLOCK = 2; // Lock type
|
50 |
|
|
parameter P_AXI_S_AWCACHE = 4; // Cache type
|
51 |
|
|
parameter P_AXI_S_AWPROT = 3; // Protection type
|
52 |
|
|
parameter P_AXI_S_WID = 4; // Write ID tag
|
53 |
|
|
parameter P_AXI_S_WDATA = 32; // Write data
|
54 |
|
|
parameter P_AXI_S_WSTRB = 4; // Write strobe
|
55 |
|
|
parameter P_AXI_S_BID = 4; // Response ID
|
56 |
|
|
parameter P_AXI_S_BRESP = 2; // Write response
|
57 |
|
|
parameter P_AXI_S_ARID = 4; // Read address ID
|
58 |
|
|
parameter P_AXI_S_ARADDR = 32; // Read address
|
59 |
|
|
parameter P_AXI_S_ARLEN = 4; // Burst length
|
60 |
|
|
parameter P_AXI_S_ARSIZE = 3; // Burst size
|
61 |
|
|
parameter P_AXI_S_ARBURST = 2; // Burst type
|
62 |
|
|
parameter P_AXI_S_ARLOCK = 2; // Lock type
|
63 |
|
|
parameter P_AXI_S_ARCACHE = 4; // Cache type
|
64 |
|
|
parameter P_AXI_S_ARPROT = 3; // Protection type
|
65 |
|
|
parameter P_AXI_S_RID = 4; // Read ID tag
|
66 |
|
|
parameter P_AXI_S_RDATA = 32; // Read data
|
67 |
|
|
parameter P_AXI_S_RRESP = 2; // Read response
|
68 |
|
|
// AXI Master
|
69 |
|
|
parameter P_AXI_M_AWID = 4; // Write address ID
|
70 |
|
|
parameter P_AXI_M_AWADDR = 32; // Write address
|
71 |
|
|
parameter P_AXI_M_AWLEN = 5; // Burst Length
|
72 |
|
|
parameter P_AXI_M_AWSIZE = 3; // Burst size
|
73 |
|
|
parameter P_AXI_M_AWBURST = 2; // Burst type
|
74 |
|
|
parameter P_AXI_M_AWLOCK = 2; // Lock type
|
75 |
|
|
parameter P_AXI_M_AWCACHE = 4; // Cache type
|
76 |
|
|
parameter P_AXI_M_AWUSER = 5;
|
77 |
|
|
parameter P_AXI_M_AWPROT = 3; // Protection type
|
78 |
|
|
parameter P_AXI_M_WID = 4; // Write ID tag
|
79 |
|
|
parameter P_AXI_M_WDATA = P_IB_DATA_WIDTH; // Write data
|
80 |
|
|
parameter P_AXI_M_WSTRB = P_IB_BE_WIDTH; // Write strobe
|
81 |
|
|
parameter P_AXI_M_BID = 4; // Response ID
|
82 |
|
|
parameter P_AXI_M_BRESP = 2; // Write response
|
83 |
|
|
parameter P_AXI_M_ARID = 4; // Read address ID
|
84 |
|
|
parameter P_AXI_M_ARADDR = 32; // Read address
|
85 |
|
|
parameter P_AXI_M_ARLEN = 5; // Burst length
|
86 |
|
|
parameter P_AXI_M_ARSIZE = 3; // Burst size
|
87 |
|
|
parameter P_AXI_M_ARBURST = 2; // Burst type
|
88 |
|
|
parameter P_AXI_M_ARLOCK = 2; // Lock type
|
89 |
|
|
parameter P_AXI_M_ARCACHE = 4; // Cache type
|
90 |
|
|
parameter P_AXI_M_ARUSER = 5;
|
91 |
|
|
parameter P_AXI_M_ARPROT = 3; // Protection type
|
92 |
|
|
parameter P_AXI_M_RID = 4; // Read ID tag
|
93 |
|
|
parameter P_AXI_M_RDATA = P_IB_DATA_WIDTH; // Read data
|
94 |
|
|
parameter P_AXI_M_RRESP = 2; // Read response
|