1 |
2 |
ZTEX |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2 |
|
|
<!--NewPage-->
|
3 |
|
|
<HTML>
|
4 |
|
|
<HEAD>
|
5 |
|
|
<!-- Generated by javadoc (build 1.6.0_18) on Wed Oct 30 21:18:13 CET 2013 -->
|
6 |
|
|
<TITLE>
|
7 |
|
|
ConfigData
|
8 |
|
|
</TITLE>
|
9 |
|
|
|
10 |
|
|
<META NAME="date" CONTENT="2013-10-30">
|
11 |
|
|
|
12 |
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
|
13 |
|
|
|
14 |
|
|
<SCRIPT type="text/javascript">
|
15 |
|
|
function windowTitle()
|
16 |
|
|
{
|
17 |
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
18 |
|
|
parent.document.title="ConfigData";
|
19 |
|
|
}
|
20 |
|
|
}
|
21 |
|
|
</SCRIPT>
|
22 |
|
|
<NOSCRIPT>
|
23 |
|
|
</NOSCRIPT>
|
24 |
|
|
|
25 |
|
|
</HEAD>
|
26 |
|
|
|
27 |
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
28 |
|
|
<HR>
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
32 |
|
|
<A NAME="navbar_top"><!-- --></A>
|
33 |
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
34 |
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
35 |
|
|
<TR>
|
36 |
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
37 |
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
38 |
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
39 |
|
|
<TR ALIGN="center" VALIGN="top">
|
40 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
41 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
42 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
43 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
44 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
45 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
46 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
47 |
|
|
</TR>
|
48 |
|
|
</TABLE>
|
49 |
|
|
</TD>
|
50 |
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
51 |
|
|
</EM>
|
52 |
|
|
</TD>
|
53 |
|
|
</TR>
|
54 |
|
|
|
55 |
|
|
<TR>
|
56 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
57 |
|
|
<A HREF="../ztex/CapabilityException.html" title="class in ztex"><B>PREV CLASS</B></A>
|
58 |
|
|
<A HREF="../ztex/DeviceLostException.html" title="class in ztex"><B>NEXT CLASS</B></A></FONT></TD>
|
59 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
60 |
|
|
<A HREF="../index.html?ztex/ConfigData.html" target="_top"><B>FRAMES</B></A>
|
61 |
|
|
<A HREF="ConfigData.html" target="_top"><B>NO FRAMES</B></A>
|
62 |
|
|
<SCRIPT type="text/javascript">
|
63 |
|
|
<!--
|
64 |
|
|
if(window==top) {
|
65 |
|
|
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
66 |
|
|
}
|
67 |
|
|
//-->
|
68 |
|
|
</SCRIPT>
|
69 |
|
|
<NOSCRIPT>
|
70 |
|
|
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
71 |
|
|
</NOSCRIPT>
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
</FONT></TD>
|
75 |
|
|
</TR>
|
76 |
|
|
<TR>
|
77 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
78 |
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
79 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
80 |
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
81 |
|
|
</TR>
|
82 |
|
|
</TABLE>
|
83 |
|
|
<A NAME="skip-navbar_top"></A>
|
84 |
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
85 |
|
|
|
86 |
|
|
<HR>
|
87 |
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
88 |
|
|
<H2>
|
89 |
|
|
<FONT SIZE="-1">
|
90 |
|
|
ztex</FONT>
|
91 |
|
|
<BR>
|
92 |
|
|
Class ConfigData</H2>
|
93 |
|
|
<PRE>
|
94 |
|
|
java.lang.Object
|
95 |
|
|
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>ztex.ConfigData</B>
|
96 |
|
|
</PRE>
|
97 |
|
|
<HR>
|
98 |
|
|
<DL>
|
99 |
|
|
<DT><PRE>public class <B>ConfigData</B><DT>extends java.lang.Object</DL>
|
100 |
|
|
</PRE>
|
101 |
|
|
|
102 |
|
|
<P>
|
103 |
|
|
This class represents the configuration data space of ZTEX FPGA Boards that support it.
|
104 |
|
|
The internal format is
|
105 |
|
|
<pre>
|
106 |
|
|
<Address> <Description>
|
107 |
|
|
0..2 Signature "CD0"
|
108 |
|
|
3 Kind of FPGA Board, see <A HREF="../ztex/ConfigData.html#boardNames"><CODE>boardNames</CODE></A>, e.g. 2 for "ZTEX USB-FPGA Module",
|
109 |
|
|
4 FPGA Board series, e.g. 2
|
110 |
|
|
5 FPGA Board number (number behind the dot), e.g. 16
|
111 |
|
|
6..7 FPGA Board variant (letter), e.g. "b"
|
112 |
|
|
8..9 FPGA, see <A HREF="../ztex/ConfigData.html#fpgas"><CODE>fpgas</CODE></A>, e.g. 12 for X7A200T
|
113 |
|
|
10 FPGA package, see <A HREF="../ztex/ConfigData.html#packages"><CODE>packages</CODE></A>, e.g. 3 for FBG484
|
114 |
|
|
11..13 Speed grade + temperature range, e.g. "2C"
|
115 |
|
|
14 RAM size, format is ( n & 0xf0 ) << ( (n & 0xf) + 16 ) bytes
|
116 |
|
|
15 RAM type, see <A HREF="../ztex/ConfigData.html#ramTypes"><CODE>ramTypes</CODE></A>
|
117 |
|
|
16..25 Serial number, overwrites SN_STRING of the ZTEX descriptor.
|
118 |
|
|
If it is equal to "0000000000" (default) it is replaced by the unique MAC address.
|
119 |
|
|
26..27 Actual size of Bitstream in 4K sectors; 0 means Bitstream disabled (default)
|
120 |
|
|
28..29 Maximum size of Bitstream in 4K sectors; 0 means that either no Flash
|
121 |
|
|
is present or that this information is stored in Flash (exchangeable media)
|
122 |
|
|
30..79 Reserved
|
123 |
|
|
80..127 48 bytes user space
|
124 |
|
|
</pre>
|
125 |
|
|
<P>
|
126 |
|
|
|
127 |
|
|
<P>
|
128 |
|
|
<HR>
|
129 |
|
|
|
130 |
|
|
<P>
|
131 |
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
132 |
|
|
|
133 |
|
|
<A NAME="field_summary"><!-- --></A>
|
134 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
135 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
136 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
137 |
|
|
<B>Field Summary</B></FONT></TH>
|
138 |
|
|
</TR>
|
139 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
140 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
141 |
|
|
<CODE>static java.lang.String[]</CODE></FONT></TD>
|
142 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#boardNames">boardNames</A></B></CODE>
|
143 |
|
|
|
144 |
|
|
<BR>
|
145 |
|
|
Kinds of FPGA Boards.</TD>
|
146 |
|
|
</TR>
|
147 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
148 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
149 |
|
|
<CODE>static java.lang.String[]</CODE></FONT></TD>
|
150 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#fpgas">fpgas</A></B></CODE>
|
151 |
|
|
|
152 |
|
|
<BR>
|
153 |
|
|
FPGA's used on ZTEX FPGA Boards.</TD>
|
154 |
|
|
</TR>
|
155 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
156 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
157 |
|
|
<CODE>static java.lang.String[]</CODE></FONT></TD>
|
158 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#packages">packages</A></B></CODE>
|
159 |
|
|
|
160 |
|
|
<BR>
|
161 |
|
|
FPGA packages used on ZTEX FPGA boards.</TD>
|
162 |
|
|
</TR>
|
163 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
164 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
165 |
|
|
<CODE>static java.lang.String[]</CODE></FONT></TD>
|
166 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#ramTypes">ramTypes</A></B></CODE>
|
167 |
|
|
|
168 |
|
|
<BR>
|
169 |
|
|
RAM types and speed used on ZTEX FPGA boards.</TD>
|
170 |
|
|
</TR>
|
171 |
|
|
</TABLE>
|
172 |
|
|
|
173 |
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
174 |
|
|
|
175 |
|
|
<A NAME="constructor_summary"><!-- --></A>
|
176 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
177 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
178 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
179 |
|
|
<B>Constructor Summary</B></FONT></TH>
|
180 |
|
|
</TR>
|
181 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
182 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#ConfigData()">ConfigData</A></B>()</CODE>
|
183 |
|
|
|
184 |
|
|
<BR>
|
185 |
|
|
Constructs an empty instance.</TD>
|
186 |
|
|
</TR>
|
187 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
188 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#ConfigData(ztex.Ztex1v1)">ConfigData</A></B>(<A HREF="../ztex/Ztex1v1.html" title="class in ztex">Ztex1v1</A> z)</CODE>
|
189 |
|
|
|
190 |
|
|
<BR>
|
191 |
|
|
Constructs an instance and connects it with z.</TD>
|
192 |
|
|
</TR>
|
193 |
|
|
</TABLE>
|
194 |
|
|
|
195 |
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
196 |
|
|
|
197 |
|
|
<A NAME="method_summary"><!-- --></A>
|
198 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
199 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
200 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
201 |
|
|
<B>Method Summary</B></FONT></TH>
|
202 |
|
|
</TR>
|
203 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
204 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
205 |
|
|
<CODE> boolean</CODE></FONT></TD>
|
206 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#connect(ztex.Ztex1v1)">connect</A></B>(<A HREF="../ztex/Ztex1v1.html" title="class in ztex">Ztex1v1</A> z)</CODE>
|
207 |
|
|
|
208 |
|
|
<BR>
|
209 |
|
|
Reads the configuration data (if existent) from a device and connects it to this instance.</TD>
|
210 |
|
|
</TR>
|
211 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
212 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
213 |
|
|
<CODE> byte[]</CODE></FONT></TD>
|
214 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#data()">data</A></B>()</CODE>
|
215 |
|
|
|
216 |
|
|
<BR>
|
217 |
|
|
Returns a copy of the configuration data array.</TD>
|
218 |
|
|
</TR>
|
219 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
220 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
221 |
|
|
<CODE> boolean</CODE></FONT></TD>
|
222 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#disconnect()">disconnect</A></B>()</CODE>
|
223 |
|
|
|
224 |
|
|
<BR>
|
225 |
|
|
Disconnects the currently connected device.</TD>
|
226 |
|
|
</TR>
|
227 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
228 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
229 |
|
|
<CODE> int</CODE></FONT></TD>
|
230 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#getBitstreamSize()">getBitstreamSize</A></B>()</CODE>
|
231 |
|
|
|
232 |
|
|
<BR>
|
233 |
|
|
Returns actual size of bitstream in bytes sectors.
|
234 |
|
|
|
235 |
|
|
</TR>
|
236 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
237 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
238 |
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
239 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#getFpga()">getFpga</A></B>()</CODE>
|
240 |
|
|
|
241 |
|
|
<BR>
|
242 |
|
|
Returns FPGA information.</TD>
|
243 |
|
|
</TR>
|
244 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
245 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
246 |
|
|
<CODE> int</CODE></FONT></TD>
|
247 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#getMaxBitstreamSize()">getMaxBitstreamSize</A></B>()</CODE>
|
248 |
|
|
|
249 |
|
|
<BR>
|
250 |
|
|
Returns maximum size of bitstream in bytes.</TD>
|
251 |
|
|
</TR>
|
252 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
253 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
254 |
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
255 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#getName()">getName</A></B>()</CODE>
|
256 |
|
|
|
257 |
|
|
<BR>
|
258 |
|
|
Returns the name of the FPGA Board.</TD>
|
259 |
|
|
</TR>
|
260 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
261 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
262 |
|
|
<CODE> int</CODE></FONT></TD>
|
263 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#getRamSize()">getRamSize</A></B>()</CODE>
|
264 |
|
|
|
265 |
|
|
<BR>
|
266 |
|
|
Returns RAM size in bytes.</TD>
|
267 |
|
|
</TR>
|
268 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
269 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
270 |
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
271 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#getRamType()">getRamType</A></B>()</CODE>
|
272 |
|
|
|
273 |
|
|
<BR>
|
274 |
|
|
Returns RAM type and speed.</TD>
|
275 |
|
|
</TR>
|
276 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
277 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
278 |
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
279 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#getSN()">getSN</A></B>()</CODE>
|
280 |
|
|
|
281 |
|
|
<BR>
|
282 |
|
|
Returns the serial number.</TD>
|
283 |
|
|
</TR>
|
284 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
285 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
286 |
|
|
<CODE> byte</CODE></FONT></TD>
|
287 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#getUserData(int)">getUserData</A></B>(int i)</CODE>
|
288 |
|
|
|
289 |
|
|
<BR>
|
290 |
|
|
Returns user data at index i.</TD>
|
291 |
|
|
</TR>
|
292 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
293 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
294 |
|
|
<CODE> boolean</CODE></FONT></TD>
|
295 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#sendtUserData()">sendtUserData</A></B>()</CODE>
|
296 |
|
|
|
297 |
|
|
<BR>
|
298 |
|
|
Sends the user data to the FPGA Board.</TD>
|
299 |
|
|
</TR>
|
300 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
301 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
302 |
|
|
<CODE> boolean</CODE></FONT></TD>
|
303 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#setBitstreamSize(int)">setBitstreamSize</A></B>(int size)</CODE>
|
304 |
|
|
|
305 |
|
|
<BR>
|
306 |
|
|
Sets the actual size of bitstream in bytes.</TD>
|
307 |
|
|
</TR>
|
308 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
309 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
310 |
|
|
<CODE> void</CODE></FONT></TD>
|
311 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#setFpga(java.lang.String, java.lang.String, java.lang.String)">setFpga</A></B>(java.lang.String name,
|
312 |
|
|
java.lang.String pckg,
|
313 |
|
|
java.lang.String sg)</CODE>
|
314 |
|
|
|
315 |
|
|
<BR>
|
316 |
|
|
Sets FPGA information.</TD>
|
317 |
|
|
</TR>
|
318 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
319 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
320 |
|
|
<CODE> void</CODE></FONT></TD>
|
321 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#setMaxBitstreamSize(int)">setMaxBitstreamSize</A></B>(int size4k)</CODE>
|
322 |
|
|
|
323 |
|
|
<BR>
|
324 |
|
|
Sets the maximum size of bitstream in 4 KByte sectors.</TD>
|
325 |
|
|
</TR>
|
326 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
327 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
328 |
|
|
<CODE> void</CODE></FONT></TD>
|
329 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#setName(java.lang.String, int, int, java.lang.String)">setName</A></B>(java.lang.String kind,
|
330 |
|
|
int series,
|
331 |
|
|
int number,
|
332 |
|
|
java.lang.String variant)</CODE>
|
333 |
|
|
|
334 |
|
|
<BR>
|
335 |
|
|
Sets the name of the FPGA Board.</TD>
|
336 |
|
|
</TR>
|
337 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
338 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
339 |
|
|
<CODE> void</CODE></FONT></TD>
|
340 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#setRam(int, java.lang.String)">setRam</A></B>(int size,
|
341 |
|
|
java.lang.String type)</CODE>
|
342 |
|
|
|
343 |
|
|
<BR>
|
344 |
|
|
Sets RAM information.</TD>
|
345 |
|
|
</TR>
|
346 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
347 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
348 |
|
|
<CODE> boolean</CODE></FONT></TD>
|
349 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#setSN(java.lang.String)">setSN</A></B>(java.lang.String sn)</CODE>
|
350 |
|
|
|
351 |
|
|
<BR>
|
352 |
|
|
Sets the serial number.</TD>
|
353 |
|
|
</TR>
|
354 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
355 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
356 |
|
|
<CODE> void</CODE></FONT></TD>
|
357 |
|
|
<TD><CODE><B><A HREF="../ztex/ConfigData.html#setUserData(int, byte)">setUserData</A></B>(int i,
|
358 |
|
|
byte v)</CODE>
|
359 |
|
|
|
360 |
|
|
<BR>
|
361 |
|
|
Sets user data at index i to value v.</TD>
|
362 |
|
|
</TR>
|
363 |
|
|
</TABLE>
|
364 |
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
365 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
366 |
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
367 |
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
368 |
|
|
</TR>
|
369 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
370 |
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
371 |
|
|
</TR>
|
372 |
|
|
</TABLE>
|
373 |
|
|
|
374 |
|
|
<P>
|
375 |
|
|
|
376 |
|
|
<!-- ============ FIELD DETAIL =========== -->
|
377 |
|
|
|
378 |
|
|
<A NAME="field_detail"><!-- --></A>
|
379 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
380 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
381 |
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
382 |
|
|
<B>Field Detail</B></FONT></TH>
|
383 |
|
|
</TR>
|
384 |
|
|
</TABLE>
|
385 |
|
|
|
386 |
|
|
<A NAME="boardNames"><!-- --></A><H3>
|
387 |
|
|
boardNames</H3>
|
388 |
|
|
<PRE>
|
389 |
|
|
public static final java.lang.String[] <B>boardNames</B></PRE>
|
390 |
|
|
<DL>
|
391 |
|
|
<DD>Kinds of FPGA Boards.
|
392 |
|
|
It's defined as
|
393 |
|
|
<pre><code>public static final String boardNames[] = {
|
394 |
|
|
"(unknown)" , // 0
|
395 |
|
|
"ZTEX FPGA Module" , // 1
|
396 |
|
|
"ZTEX USB-FPGA Module" // 2
|
397 |
|
|
};</code></pre>
|
398 |
|
|
<P>
|
399 |
|
|
<DL>
|
400 |
|
|
</DL>
|
401 |
|
|
</DL>
|
402 |
|
|
<HR>
|
403 |
|
|
|
404 |
|
|
<A NAME="fpgas"><!-- --></A><H3>
|
405 |
|
|
fpgas</H3>
|
406 |
|
|
<PRE>
|
407 |
|
|
public static final java.lang.String[] <B>fpgas</B></PRE>
|
408 |
|
|
<DL>
|
409 |
|
|
<DD>FPGA's used on ZTEX FPGA Boards.
|
410 |
|
|
It's defined as
|
411 |
|
|
<pre><code>public static final String fpgas[] = {
|
412 |
|
|
"(unknown)" , // 0
|
413 |
|
|
"XC6SLX9" , // 1
|
414 |
|
|
"XC6SLX16" , // 2
|
415 |
|
|
"XC6SLX25" , // 3
|
416 |
|
|
"XC6SLX45" , // 4
|
417 |
|
|
"XC6SLX75" , // 5
|
418 |
|
|
"XC6SLX100" , // 6
|
419 |
|
|
"XC6SLX150" , // 7
|
420 |
|
|
"XC7A35T", // 8
|
421 |
|
|
"XC7A50T", // 9
|
422 |
|
|
"XC7A75T", // 10
|
423 |
|
|
"XC7A100T", // 11
|
424 |
|
|
"XC7A200T", // 12
|
425 |
|
|
"Quad-XC6SLX150" // 13
|
426 |
|
|
};</code></pre>
|
427 |
|
|
<P>
|
428 |
|
|
<DL>
|
429 |
|
|
</DL>
|
430 |
|
|
</DL>
|
431 |
|
|
<HR>
|
432 |
|
|
|
433 |
|
|
<A NAME="packages"><!-- --></A><H3>
|
434 |
|
|
packages</H3>
|
435 |
|
|
<PRE>
|
436 |
|
|
public static final java.lang.String[] <B>packages</B></PRE>
|
437 |
|
|
<DL>
|
438 |
|
|
<DD>FPGA packages used on ZTEX FPGA boards.
|
439 |
|
|
It's defined as
|
440 |
|
|
<pre><code>public static final String packages[] = {
|
441 |
|
|
"(unknown)", // 0
|
442 |
|
|
"FTG256" , // 1 256 balls, 1.0mm
|
443 |
|
|
"CSG324" , // 2 324 balls, 0.8mm
|
444 |
|
|
"CSG484" , // 3 484 balls, 0.8mm
|
445 |
|
|
"FBG484" // 4 484 balls, 1.0mm
|
446 |
|
|
};</code></pre>
|
447 |
|
|
<P>
|
448 |
|
|
<DL>
|
449 |
|
|
</DL>
|
450 |
|
|
</DL>
|
451 |
|
|
<HR>
|
452 |
|
|
|
453 |
|
|
<A NAME="ramTypes"><!-- --></A><H3>
|
454 |
|
|
ramTypes</H3>
|
455 |
|
|
<PRE>
|
456 |
|
|
public static final java.lang.String[] <B>ramTypes</B></PRE>
|
457 |
|
|
<DL>
|
458 |
|
|
<DD>RAM types and speed used on ZTEX FPGA boards.
|
459 |
|
|
It's defined as
|
460 |
|
|
<pre><code>public static final String ramTypes[] = {
|
461 |
|
|
"(unknown)", // 0
|
462 |
|
|
"DDR-200 SDRAM", // 1
|
463 |
|
|
"DDR-266 SDRAM", // 2
|
464 |
|
|
"DDR-333 SDRAM", // 3
|
465 |
|
|
"DDR-400 SDRAM", // 4
|
466 |
|
|
"DDR2-400 SDRAM", // 5
|
467 |
|
|
"DDR2-533 SDRAM", // 6
|
468 |
|
|
"DDR2-667 SDRAM", // 7
|
469 |
|
|
"DDR2-800 SDRAM", // 8
|
470 |
|
|
"DDR2-1066 SDRAM" // 9
|
471 |
|
|
};</code></pre>
|
472 |
|
|
<P>
|
473 |
|
|
<DL>
|
474 |
|
|
</DL>
|
475 |
|
|
</DL>
|
476 |
|
|
|
477 |
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
478 |
|
|
|
479 |
|
|
<A NAME="constructor_detail"><!-- --></A>
|
480 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
481 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
482 |
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
483 |
|
|
<B>Constructor Detail</B></FONT></TH>
|
484 |
|
|
</TR>
|
485 |
|
|
</TABLE>
|
486 |
|
|
|
487 |
|
|
<A NAME="ConfigData()"><!-- --></A><H3>
|
488 |
|
|
ConfigData</H3>
|
489 |
|
|
<PRE>
|
490 |
|
|
public <B>ConfigData</B>()</PRE>
|
491 |
|
|
<DL>
|
492 |
|
|
<DD>Constructs an empty instance.
|
493 |
|
|
<P>
|
494 |
|
|
</DL>
|
495 |
|
|
<HR>
|
496 |
|
|
|
497 |
|
|
<A NAME="ConfigData(ztex.Ztex1v1)"><!-- --></A><H3>
|
498 |
|
|
ConfigData</H3>
|
499 |
|
|
<PRE>
|
500 |
|
|
public <B>ConfigData</B>(<A HREF="../ztex/Ztex1v1.html" title="class in ztex">Ztex1v1</A> z)
|
501 |
|
|
throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
|
502 |
|
|
<A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
|
503 |
|
|
<A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
|
504 |
|
|
<DL>
|
505 |
|
|
<DD>Constructs an instance and connects it with z. Also see <A HREF="../ztex/ConfigData.html#connect(ztex.Ztex1v1)"><CODE>connect(Ztex1v1)</CODE></A>.
|
506 |
|
|
<P>
|
507 |
|
|
<DL>
|
508 |
|
|
<DT><B>Parameters:</B><DD><CODE>z</CODE> - The ztex device to connect with.
|
509 |
|
|
<DT><B>Throws:</B>
|
510 |
|
|
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
|
511 |
|
|
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
|
512 |
|
|
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - If no MAC-EEPROM support is present.</DL>
|
513 |
|
|
</DL>
|
514 |
|
|
|
515 |
|
|
<!-- ============ METHOD DETAIL ========== -->
|
516 |
|
|
|
517 |
|
|
<A NAME="method_detail"><!-- --></A>
|
518 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
519 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
520 |
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
521 |
|
|
<B>Method Detail</B></FONT></TH>
|
522 |
|
|
</TR>
|
523 |
|
|
</TABLE>
|
524 |
|
|
|
525 |
|
|
<A NAME="connect(ztex.Ztex1v1)"><!-- --></A><H3>
|
526 |
|
|
connect</H3>
|
527 |
|
|
<PRE>
|
528 |
|
|
public boolean <B>connect</B>(<A HREF="../ztex/Ztex1v1.html" title="class in ztex">Ztex1v1</A> z)
|
529 |
|
|
throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
|
530 |
|
|
<A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
|
531 |
|
|
<A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
|
532 |
|
|
<DL>
|
533 |
|
|
<DD>Reads the configuration data (if existent) from a device and connects it to this instance.
|
534 |
|
|
After this user defined settings (e.g. serial number, bitstream size) are
|
535 |
|
|
stored on device immediately after they are altered.
|
536 |
|
|
<P>
|
537 |
|
|
<DD><DL>
|
538 |
|
|
<DT><B>Parameters:</B><DD><CODE>z</CODE> - The ztex device to connect with.
|
539 |
|
|
<DT><B>Returns:</B><DD>True if configuration data could be read.
|
540 |
|
|
<DT><B>Throws:</B>
|
541 |
|
|
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - If interface 1 is not supported.
|
542 |
|
|
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
|
543 |
|
|
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - If no MAC-EEPROM support is present.</DL>
|
544 |
|
|
</DD>
|
545 |
|
|
</DL>
|
546 |
|
|
<HR>
|
547 |
|
|
|
548 |
|
|
<A NAME="disconnect()"><!-- --></A><H3>
|
549 |
|
|
disconnect</H3>
|
550 |
|
|
<PRE>
|
551 |
|
|
public boolean <B>disconnect</B>()</PRE>
|
552 |
|
|
<DL>
|
553 |
|
|
<DD>Disconnects the currently connected device.
|
554 |
|
|
After this modified settings are not stored on device anymore.
|
555 |
|
|
<P>
|
556 |
|
|
<DD><DL>
|
557 |
|
|
|
558 |
|
|
<DT><B>Returns:</B><DD>True if a device was connected.</DL>
|
559 |
|
|
</DD>
|
560 |
|
|
</DL>
|
561 |
|
|
<HR>
|
562 |
|
|
|
563 |
|
|
<A NAME="data()"><!-- --></A><H3>
|
564 |
|
|
data</H3>
|
565 |
|
|
<PRE>
|
566 |
|
|
public byte[] <B>data</B>()</PRE>
|
567 |
|
|
<DL>
|
568 |
|
|
<DD>Returns a copy of the configuration data array.
|
569 |
|
|
<P>
|
570 |
|
|
<DD><DL>
|
571 |
|
|
|
572 |
|
|
<DT><B>Returns:</B><DD>A copy of the configuration data array.</DL>
|
573 |
|
|
</DD>
|
574 |
|
|
</DL>
|
575 |
|
|
<HR>
|
576 |
|
|
|
577 |
|
|
<A NAME="getName()"><!-- --></A><H3>
|
578 |
|
|
getName</H3>
|
579 |
|
|
<PRE>
|
580 |
|
|
public java.lang.String <B>getName</B>()</PRE>
|
581 |
|
|
<DL>
|
582 |
|
|
<DD>Returns the name of the FPGA Board.
|
583 |
|
|
<P>
|
584 |
|
|
<DD><DL>
|
585 |
|
|
|
586 |
|
|
<DT><B>Returns:</B><DD>The name of the FPGA Board.</DL>
|
587 |
|
|
</DD>
|
588 |
|
|
</DL>
|
589 |
|
|
<HR>
|
590 |
|
|
|
591 |
|
|
<A NAME="setName(java.lang.String, int, int, java.lang.String)"><!-- --></A><H3>
|
592 |
|
|
setName</H3>
|
593 |
|
|
<PRE>
|
594 |
|
|
public void <B>setName</B>(java.lang.String kind,
|
595 |
|
|
int series,
|
596 |
|
|
int number,
|
597 |
|
|
java.lang.String variant)</PRE>
|
598 |
|
|
<DL>
|
599 |
|
|
<DD>Sets the name of the FPGA Board.
|
600 |
|
|
Example: <pre>setName("ZTEX USB-FPGA Module", 2, 16, "b"); // denotes "ZTEX USB-FPGA Module 2.16b"</pre>
|
601 |
|
|
This setting is not transferred to the FPGA Board because is should not be altered by the user.
|
602 |
|
|
<P>
|
603 |
|
|
<DD><DL>
|
604 |
|
|
<DT><B>Parameters:</B><DD><CODE>kind</CODE> - Kind of FPGA Board, see <A HREF="../ztex/ConfigData.html#boardNames"><CODE>boardNames</CODE></A> for possible values, e.g. "ZTEX USB-FPGA Module"<DD><CODE>series</CODE> - FPGA Board series, e.g. 2<DD><CODE>number</CODE> - FPGA Board number (number behind the dot), e.g. 16<DD><CODE>variant</CODE> - FPGA Board variant (letter), e.g. "b"</DL>
|
605 |
|
|
</DD>
|
606 |
|
|
</DL>
|
607 |
|
|
<HR>
|
608 |
|
|
|
609 |
|
|
<A NAME="getFpga()"><!-- --></A><H3>
|
610 |
|
|
getFpga</H3>
|
611 |
|
|
<PRE>
|
612 |
|
|
public java.lang.String <B>getFpga</B>()</PRE>
|
613 |
|
|
<DL>
|
614 |
|
|
<DD>Returns FPGA information.
|
615 |
|
|
Notation of the result is <name>-<package>-<speed grade and temperature range>, e.g. XC7A200T-FBG484-2C.
|
616 |
|
|
<P>
|
617 |
|
|
<DD><DL>
|
618 |
|
|
|
619 |
|
|
<DT><B>Returns:</B><DD>FPGA Information.</DL>
|
620 |
|
|
</DD>
|
621 |
|
|
</DL>
|
622 |
|
|
<HR>
|
623 |
|
|
|
624 |
|
|
<A NAME="setFpga(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
625 |
|
|
setFpga</H3>
|
626 |
|
|
<PRE>
|
627 |
|
|
public void <B>setFpga</B>(java.lang.String name,
|
628 |
|
|
java.lang.String pckg,
|
629 |
|
|
java.lang.String sg)</PRE>
|
630 |
|
|
<DL>
|
631 |
|
|
<DD>Sets FPGA information.
|
632 |
|
|
Example: <pre>setFpga("XC7A200T", "FBG484", "2C"); // denotes Xilinx part number XC7A200T-2FBG484C</pre>
|
633 |
|
|
This setting is not transferred to the FPGA Board because is should not be altered by the user.
|
634 |
|
|
<P>
|
635 |
|
|
<DD><DL>
|
636 |
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the FPGA, see <A HREF="../ztex/ConfigData.html#fpgas"><CODE>fpgas</CODE></A> for possible values, e.g. "XC7A200T"<DD><CODE>pckg</CODE> - FPGA package, see <A HREF="../ztex/ConfigData.html#packages"><CODE>packages</CODE></A> for possible values, e.g. "FBG484"<DD><CODE>sg</CODE> - Speed grade and temperature range, e.g. "2C"</DL>
|
637 |
|
|
</DD>
|
638 |
|
|
</DL>
|
639 |
|
|
<HR>
|
640 |
|
|
|
641 |
|
|
<A NAME="getRamType()"><!-- --></A><H3>
|
642 |
|
|
getRamType</H3>
|
643 |
|
|
<PRE>
|
644 |
|
|
public java.lang.String <B>getRamType</B>()</PRE>
|
645 |
|
|
<DL>
|
646 |
|
|
<DD>Returns RAM type and speed.
|
647 |
|
|
<P>
|
648 |
|
|
<DD><DL>
|
649 |
|
|
|
650 |
|
|
<DT><B>Returns:</B><DD>FPGA Information.</DL>
|
651 |
|
|
</DD>
|
652 |
|
|
</DL>
|
653 |
|
|
<HR>
|
654 |
|
|
|
655 |
|
|
<A NAME="getRamSize()"><!-- --></A><H3>
|
656 |
|
|
getRamSize</H3>
|
657 |
|
|
<PRE>
|
658 |
|
|
public int <B>getRamSize</B>()</PRE>
|
659 |
|
|
<DL>
|
660 |
|
|
<DD>Returns RAM size in bytes.
|
661 |
|
|
<P>
|
662 |
|
|
<DD><DL>
|
663 |
|
|
|
664 |
|
|
<DT><B>Returns:</B><DD>RAM size in bytes.</DL>
|
665 |
|
|
</DD>
|
666 |
|
|
</DL>
|
667 |
|
|
<HR>
|
668 |
|
|
|
669 |
|
|
<A NAME="setRam(int, java.lang.String)"><!-- --></A><H3>
|
670 |
|
|
setRam</H3>
|
671 |
|
|
<PRE>
|
672 |
|
|
public void <B>setRam</B>(int size,
|
673 |
|
|
java.lang.String type)</PRE>
|
674 |
|
|
<DL>
|
675 |
|
|
<DD>Sets RAM information.
|
676 |
|
|
Example: <pre>setRam(128, "DDR2-800 SDRAM"); // sets RAM info to 128 MB DDR2-800 SDRAM</pre>
|
677 |
|
|
This setting is not transferred to the FPGA Board because is should not be altered by the user.
|
678 |
|
|
<P>
|
679 |
|
|
<DD><DL>
|
680 |
|
|
<DT><B>Parameters:</B><DD><CODE>size</CODE> - RAM size in MBytes, e.g. 128<DD><CODE>type</CODE> - RAM type and speed, see <A HREF="../ztex/ConfigData.html#ramTypes"><CODE>ramTypes</CODE></A> for possible values, e.g. "DDR2-800 SDRAM"</DL>
|
681 |
|
|
</DD>
|
682 |
|
|
</DL>
|
683 |
|
|
<HR>
|
684 |
|
|
|
685 |
|
|
<A NAME="getMaxBitstreamSize()"><!-- --></A><H3>
|
686 |
|
|
getMaxBitstreamSize</H3>
|
687 |
|
|
<PRE>
|
688 |
|
|
public int <B>getMaxBitstreamSize</B>()</PRE>
|
689 |
|
|
<DL>
|
690 |
|
|
<DD>Returns maximum size of bitstream in bytes.
|
691 |
|
|
This is the amount of flash which should be reserved for the bitstream.
|
692 |
|
|
<P>
|
693 |
|
|
<DD><DL>
|
694 |
|
|
|
695 |
|
|
<DT><B>Returns:</B><DD>Maximum size of bitstream in bytes sectors.</DL>
|
696 |
|
|
</DD>
|
697 |
|
|
</DL>
|
698 |
|
|
<HR>
|
699 |
|
|
|
700 |
|
|
<A NAME="setMaxBitstreamSize(int)"><!-- --></A><H3>
|
701 |
|
|
setMaxBitstreamSize</H3>
|
702 |
|
|
<PRE>
|
703 |
|
|
public void <B>setMaxBitstreamSize</B>(int size4k)</PRE>
|
704 |
|
|
<DL>
|
705 |
|
|
<DD>Sets the maximum size of bitstream in 4 KByte sectors.
|
706 |
|
|
This setting is not transferred to the FPGA Board because is should not be altered by the user.
|
707 |
|
|
<P>
|
708 |
|
|
<DD><DL>
|
709 |
|
|
<DT><B>Parameters:</B><DD><CODE>size4k</CODE> - Maximum size of bitstream in 4 KByte sectors. E.g. a value of 256 reserves 1 MByte for the bitstream.</DL>
|
710 |
|
|
</DD>
|
711 |
|
|
</DL>
|
712 |
|
|
<HR>
|
713 |
|
|
|
714 |
|
|
<A NAME="getBitstreamSize()"><!-- --></A><H3>
|
715 |
|
|
getBitstreamSize</H3>
|
716 |
|
|
<PRE>
|
717 |
|
|
public int <B>getBitstreamSize</B>()</PRE>
|
718 |
|
|
<DL>
|
719 |
|
|
<DD>Returns actual size of bitstream in bytes sectors.
|
720 |
|
|
|
721 |
|
|
<P>
|
722 |
|
|
<DD><DL>
|
723 |
|
|
|
724 |
|
|
<DT><B>Returns:</B><DD>Actual size of bitstream in byte sectors.</DL>
|
725 |
|
|
</DD>
|
726 |
|
|
</DL>
|
727 |
|
|
<HR>
|
728 |
|
|
|
729 |
|
|
<A NAME="setBitstreamSize(int)"><!-- --></A><H3>
|
730 |
|
|
setBitstreamSize</H3>
|
731 |
|
|
<PRE>
|
732 |
|
|
public boolean <B>setBitstreamSize</B>(int size)
|
733 |
|
|
throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
|
734 |
|
|
<A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
|
735 |
|
|
<A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
|
736 |
|
|
<DL>
|
737 |
|
|
<DD>Sets the actual size of bitstream in bytes. The value is rounded up to a multiple of 4096.
|
738 |
|
|
If a device is connected, this setting is transferred to the FPGA Board.
|
739 |
|
|
A warning is printed if bitstream size is larger then the reserved size (see <A HREF="../ztex/ConfigData.html#getMaxBitstreamSize()"><CODE>getMaxBitstreamSize()</CODE></A>).
|
740 |
|
|
<P>
|
741 |
|
|
<DD><DL>
|
742 |
|
|
<DT><B>Parameters:</B><DD><CODE>size</CODE> - Actual size of bitstream in bytes.
|
743 |
|
|
<DT><B>Returns:</B><DD>True if a device is connected and setting was send.
|
744 |
|
|
<DT><B>Throws:</B>
|
745 |
|
|
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - If interface 1 is not supported.
|
746 |
|
|
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
|
747 |
|
|
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - If no MAC-EEPROM support is present.</DL>
|
748 |
|
|
</DD>
|
749 |
|
|
</DL>
|
750 |
|
|
<HR>
|
751 |
|
|
|
752 |
|
|
<A NAME="getSN()"><!-- --></A><H3>
|
753 |
|
|
getSN</H3>
|
754 |
|
|
<PRE>
|
755 |
|
|
public java.lang.String <B>getSN</B>()</PRE>
|
756 |
|
|
<DL>
|
757 |
|
|
<DD>Returns the serial number. This is not necessarily the serial number
|
758 |
|
|
returned by the FPGA board according to the USB specification, see <A HREF="../ztex/ConfigData.html#setSN(java.lang.String)"><CODE>setSN(String)</CODE></A>
|
759 |
|
|
<P>
|
760 |
|
|
<DD><DL>
|
761 |
|
|
|
762 |
|
|
<DT><B>Returns:</B><DD>Serial number as stored in the configuration data space.</DL>
|
763 |
|
|
</DD>
|
764 |
|
|
</DL>
|
765 |
|
|
<HR>
|
766 |
|
|
|
767 |
|
|
<A NAME="setSN(java.lang.String)"><!-- --></A><H3>
|
768 |
|
|
setSN</H3>
|
769 |
|
|
<PRE>
|
770 |
|
|
public boolean <B>setSN</B>(java.lang.String sn)
|
771 |
|
|
throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
|
772 |
|
|
<A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
|
773 |
|
|
<A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
|
774 |
|
|
<DL>
|
775 |
|
|
<DD>Sets the serial number.
|
776 |
|
|
During startup the firmware overwrites SN_STRING from the ZTEX descriptor (see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>) by this value.
|
777 |
|
|
If it is equal to "0000000000" (default) it is replaced by the unique MAC address. <p>
|
778 |
|
|
This setting is transferred to the FPGA Board.
|
779 |
|
|
Change takes effect after the next restart of the firmware.
|
780 |
|
|
<P>
|
781 |
|
|
<DD><DL>
|
782 |
|
|
<DT><B>Parameters:</B><DD><CODE>sn</CODE> - Serial number string. Only the first 10 characters are considered.
|
783 |
|
|
<DT><B>Returns:</B><DD>True if a device is connected and setting was send.
|
784 |
|
|
<DT><B>Throws:</B>
|
785 |
|
|
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - If interface 1 is not supported.
|
786 |
|
|
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
|
787 |
|
|
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - If no MAC-EEPROM support is present.</DL>
|
788 |
|
|
</DD>
|
789 |
|
|
</DL>
|
790 |
|
|
<HR>
|
791 |
|
|
|
792 |
|
|
<A NAME="getUserData(int)"><!-- --></A><H3>
|
793 |
|
|
getUserData</H3>
|
794 |
|
|
<PRE>
|
795 |
|
|
public byte <B>getUserData</B>(int i)</PRE>
|
796 |
|
|
<DL>
|
797 |
|
|
<DD>Returns user data at index i.
|
798 |
|
|
<P>
|
799 |
|
|
<DD><DL>
|
800 |
|
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - the index. Valid values are 0 to 47.
|
801 |
|
|
<DT><B>Returns:</B><DD>User data.
|
802 |
|
|
<DT><B>Throws:</B>
|
803 |
|
|
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If i is smaller than 0 or greater than 47.</DL>
|
804 |
|
|
</DD>
|
805 |
|
|
</DL>
|
806 |
|
|
<HR>
|
807 |
|
|
|
808 |
|
|
<A NAME="setUserData(int, byte)"><!-- --></A><H3>
|
809 |
|
|
setUserData</H3>
|
810 |
|
|
<PRE>
|
811 |
|
|
public void <B>setUserData</B>(int i,
|
812 |
|
|
byte v)
|
813 |
|
|
throws java.lang.IndexOutOfBoundsException</PRE>
|
814 |
|
|
<DL>
|
815 |
|
|
<DD>Sets user data at index i to value v. Use the method <A HREF="../ztex/ConfigData.html#getMaxBitstreamSize()"><CODE>getMaxBitstreamSize()</CODE></A>
|
816 |
|
|
to transfer the data to the FPGA Board.
|
817 |
|
|
<P>
|
818 |
|
|
<DD><DL>
|
819 |
|
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - The index. Valid values are 0 to 47.<DD><CODE>v</CODE> - The value.
|
820 |
|
|
<DT><B>Throws:</B>
|
821 |
|
|
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If i is smaller than 0 or greater than 47.</DL>
|
822 |
|
|
</DD>
|
823 |
|
|
</DL>
|
824 |
|
|
<HR>
|
825 |
|
|
|
826 |
|
|
<A NAME="sendtUserData()"><!-- --></A><H3>
|
827 |
|
|
sendtUserData</H3>
|
828 |
|
|
<PRE>
|
829 |
|
|
public boolean <B>sendtUserData</B>()
|
830 |
|
|
throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
|
831 |
|
|
<A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
|
832 |
|
|
<A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
|
833 |
|
|
<DL>
|
834 |
|
|
<DD>Sends the user data to the FPGA Board.
|
835 |
|
|
<P>
|
836 |
|
|
<DD><DL>
|
837 |
|
|
|
838 |
|
|
<DT><B>Returns:</B><DD>True if a device is connected and data could be send.
|
839 |
|
|
<DT><B>Throws:</B>
|
840 |
|
|
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - If interface 1 is not supported.
|
841 |
|
|
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
|
842 |
|
|
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - If no MAC-EEPROM support is present.</DL>
|
843 |
|
|
</DD>
|
844 |
|
|
</DL>
|
845 |
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
846 |
|
|
<HR>
|
847 |
|
|
|
848 |
|
|
|
849 |
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
850 |
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
851 |
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
852 |
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
853 |
|
|
<TR>
|
854 |
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
855 |
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
856 |
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
857 |
|
|
<TR ALIGN="center" VALIGN="top">
|
858 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
859 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
860 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
861 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
862 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
863 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
864 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
865 |
|
|
</TR>
|
866 |
|
|
</TABLE>
|
867 |
|
|
</TD>
|
868 |
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
869 |
|
|
</EM>
|
870 |
|
|
</TD>
|
871 |
|
|
</TR>
|
872 |
|
|
|
873 |
|
|
<TR>
|
874 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
875 |
|
|
<A HREF="../ztex/CapabilityException.html" title="class in ztex"><B>PREV CLASS</B></A>
|
876 |
|
|
<A HREF="../ztex/DeviceLostException.html" title="class in ztex"><B>NEXT CLASS</B></A></FONT></TD>
|
877 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
878 |
|
|
<A HREF="../index.html?ztex/ConfigData.html" target="_top"><B>FRAMES</B></A>
|
879 |
|
|
<A HREF="ConfigData.html" target="_top"><B>NO FRAMES</B></A>
|
880 |
|
|
<SCRIPT type="text/javascript">
|
881 |
|
|
<!--
|
882 |
|
|
if(window==top) {
|
883 |
|
|
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
884 |
|
|
}
|
885 |
|
|
//-->
|
886 |
|
|
</SCRIPT>
|
887 |
|
|
<NOSCRIPT>
|
888 |
|
|
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
889 |
|
|
</NOSCRIPT>
|
890 |
|
|
|
891 |
|
|
|
892 |
|
|
</FONT></TD>
|
893 |
|
|
</TR>
|
894 |
|
|
<TR>
|
895 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
896 |
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
897 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
898 |
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
899 |
|
|
</TR>
|
900 |
|
|
</TABLE>
|
901 |
|
|
<A NAME="skip-navbar_bottom"></A>
|
902 |
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
903 |
|
|
|
904 |
|
|
<HR>
|
905 |
|
|
|
906 |
|
|
</BODY>
|
907 |
|
|
</HTML>
|