1 -- ************************************************************************** --
2 -- ************* BittWare Incorporated ************* --
3 -- ************* 9 Hills Ave, Concord, NH
03301 ************* --
4 -- ************************************************************************** --
6 -- Copyright (c) 2011 BittWare, Inc. --
7 -- The user is hereby granted a non-exclusive license to use and or --
8 -- modify this code provided that it runs on BittWare hardware. --
9 -- Usage of this code on non-BittWare hardware without the express --
10 -- written permission of BittWare is strictly prohibited. --
12 -- E-mail: support@bittware.com Tel: 603-226-0404 --
13 -- ************************************************************************** --
15 --------------------------------------------------------------------------------
17 --------------------------------------------------------------------------------
20 use ieee.std_logic_1164.
all;
21 use ieee.numeric_std.
all;
23 use work.UtilityPkg.
all;
24 use work.BoardInfoPkg.
all;
25 use work.AvalonPkg.
all;
28 --------------------------------------------------------------------------------
30 --------------------------------------------------------------------------------
34 --------------------------------------------------------------------------------
36 --------------------------------------------------------------------------------
39 --------------------------------------------------------------------------------
41 --------------------------------------------------------------------------------
44 --------------------------------------------------------------------------------
46 --------------------------------------------------------------------------------
49 --------------------------------------------------------------------------------
51 --------------------------------------------------------------------------------
54 --------------------------------------------------------------------------------
56 --------------------------------------------------------------------------------
59 --------------------------------------------------------------------------------
61 --------------------------------------------------------------------------------
63 ------------------------------------------------------------------------------
65 ------------------------------------------------------------------------------
67 ---------------------------
68 -- Constant Declarations
69 ---------------------------
78 ---------------------------
80 ---------------------------
86 type MyType is array ( range <>) of ;
103 ---------------------------
104 -- Function Declarations
105 ---------------------------
120 ---------------------------
121 -- Component Declaration
122 ---------------------------
126 -- Board Specific Args
128 -- Streaming Input Interface Parameters
130 -- Streaming Output Interface Parameters.
137 slaveIRQ :
out AvalonIRQSenderIntfArray(
2 downto 0);
138 slaveIn :
in AvalonMMFabricToSlaveIntf;
140 -- Streaming Clock/Reset
143 -- Streaming Input Interface
144 dataIn :
in AvalonSTSourceToSinkIntf;
145 dataInRsp :
out AvalonSTSinkToSourceIntf;
146 -- Streaming Output Interface
147 dataOut :
out AvalonSTSourceToSinkIntf;
152 ------------------------------------------------------------------------------
154 ------------------------------------------------------------------------------
162 NUM_DMA_ENGINES : range 1 to DMA_MAX_ENGINES/2;
177 ---------------------------
178 -- Component Declaration
179 ---------------------------
190 -- Memory Mapped Slave Control/Status Interface
194 slaveIn :
in AvalonMMFabricToSlaveIntf;
196 -- Memory Mapped Slave Output Interface
199 slaveOut :
out AvalonMMFabricToSlaveIntf;
201 -- Streaming Data Clock/Reset Interface
204 -- Streaming Data Input Interface
205 dataIn :
in AvalonSTSourceToSinkIntfArray;
206 dataInRsp :
out AvalonSTSinkToSourceIntfArray;
207 -- Streaming Data Output Interface
208 dataOut :
out AvalonSTSourceToSinkIntfArray;
213 --------------------------------------------------------------------------------
215 --------------------------------------------------------------------------------
217 --------------------------------------------------------------------------------
218 -- BRIEF DESCRIPTION:
219 --------------------------------------------------------------------------------
223 --------------------------------------------------------------------------------
225 --------------------------------------------------------------------------------
227 ------------------------------------------------------------------------------
228 ------------------------------------------------------------------------------
230 variable r : MyType(0 to 1);
235 ------------------------------------------------------------------------------
236 ------------------------------------------------------------------------------
238 variable r :
MyType(7 downto 0);
244 -- Do some other stuff...
248 ------------------------------------------------------------------------------
249 ------------------------------------------------------------------------------
250 .
function init( num_dma : := DEFAULT_EXAMPLE_SUB_SYSTEM_INFONUM_DMA_ENGINES )
254 r.NUM_DMA_ENGINES := num_dma;
257 ------------------------------------------------------------------------------
258 ------------------------------------------------------------------------------
263 r :=
(others => info
);
266 ------------------------------------------------------------------------------
267 ------------------------------------------------------------------------------
269 --------------------------------------------------------------------------------
271 --------------------------------------------------------------------------------