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;
24 use work.UtilityPkg.
all;
25 use work.BoardInfoPkg.
all;
26 use work.AvalonPkg.
all;
29 use work.MemoryMappedPkg.
all;
30 use work.SubSystemPkg.
all;
32 --------------------------------------------------------------------------------
34 --------------------------------------------------------------------------------
42 --------------------------------------------------------------------------------
44 --------------------------------------------------------------------------------
49 --------------------------------------------------------------------------------
51 --------------------------------------------------------------------------------
54 --------------------------------------------------------------------------------
56 --------------------------------------------------------------------------------
59 --------------------------------------------------------------------------------
61 --------------------------------------------------------------------------------
64 --------------------------------------------------------------------------------
66 --------------------------------------------------------------------------------
69 --------------------------------------------------------------------------------
71 --------------------------------------------------------------------------------
107 dataIn : in AvalonSTSourceToSinkIntfArray;
117 --------------------------------------------------------------------------------
119 --------------------------------------------------------------------------------
121 --------------------------------------------------------------------------------
123 --------------------------------------------------------------------------------
130 --------------------------------------------------------------------------------
132 --------------------------------------------------------------------------------
136 --------------------------------------------------------------------------------
138 --------------------------------------------------------------------------------
141 --------------------------------------------------------------------------------
143 --------------------------------------------------------------------------------
145 --------------------------------------------
147 --------------------------------------------
155 --------------------------------------------
157 --------------------------------------------
163 DIRECT_DMA_READERS => 0,
164 DIRECT_DMA_WRITERS => 0,
165 DMA_CONTROLLER_INFO => init(1024, 128, BOTH),
166 SLAVE_WINDOW_INFO => init(init(false, 1, 0)) );
168 --------------------------------------------
170 --------------------------------------------
177 ---------------------------
179 ---------------------------
181 -- synthesis translate_off
188 constant FILE_NAME : FileName := init( "project_config.xml" );
189 variable xml_file : CFILE;
191 xml_file := fopen(FILE_NAME, "a");
193 if( xml_file = 0 ) then
194 report "ERROR: ExampleSubSystem.vhd - Cannot Open XML File " & FILE_NAME
198 fprintf(xml_file, "<ComponentInfo type=%s name=%s>\n", addQuotes("ExampleSubSystem"), addQuotes(NAME) );
199 fprintf(xml_file, "%s", getXML("slave_out_info", SLAVE_OUT_INFO));
201 fprintf(xml_file, "%s", getXML("data_in_info", ii, DATA_IN_INFO(ii)));
204 fprintf(xml_file, "%s", getXML("data_out_info", ii, DATA_OUT_INFO(ii)));
206 fprintf(xml_file, "%s", getXML("example_sub_system_info.num_dma_engines", EXAMPLE_SUB_SYSTEM_INFO.NUM_DMA_ENGINES));
207 fprintf(xml_file, "</ComponentInfo>\n");
215 -- synthesis translate_on
217 --------------------------------------------------------------------------------
219 --------------------------------------------------------------------------------
255 --------------------------------------------------------------------------------
257 --------------------------------------------------------------------------------