14–12
Chapter 14: Using Jam STAPL for ISP via an Embedded Processor
Software Development
Table 14–3 shows data size constants for MAX II devices that support the Jam
language for ISP.
Table 14–3. Data Constants
Typical Jam STAPL Byte-Code Data Size (Kbytes)
Device
Compressed
12.4 (2)
11.4
Uncompressed (1)
EPM240
EPM570
EPM1270
EPM2210
12.4 (2)
19.6
16.9
31.9
24.7
49.3
Notes to Table 14–3:
(1) For more information about how to generate JBC files with uncompressed programming data, contact Altera
Applications.
(2) There is a minimum limit of 64K bits for compressed arrays with the JBC compiler. Programming data arrays
smaller than 64K bits (8K bytes) are not compressed. The EPM240 programming data array is below the limit,
which means the JBC files are always uncompressed. The reason for this limit is that a memory buffer is needed
for decompression, and for small embedded systems it is more efficient to use small uncompressed arrays directly
rather than to uncompress the arrays.
After estimating the JBC file size, estimate the Jam Player size using the information in
Table 14–4.
Table 14–4. Jam STAPL Byte-Code Player Binary Sizes
Build
Description
Size (Kbytes)
16-bit
Pentium/486 using the MasterBlaster or ByteBlasterMVdownload
cables
80
32-bit
Pentium/486 using the MasterBlaster or ByteBlasterMVdownload
cables
85
Estimating Dynamic Memory Usage
Use the following equation to estimate the maximum amount of DRAM required by
the Jam Player:
Equation 14–3.
N
RAM Size = JBC File Size +
Data (Uncompressed Data Size)k
∑
k = 1
The JBC file size is determined by a single- or multi-device equation (see “Estimating
ROM Usage” on page 14–11).
The amount of RAM used by the Jam Player is the size of the JBC file plus the sum of
the data required for each device that is targeted. If the JBC file is generated using
compressed data, some RAM is used by the Player to uncompress the data and
temporarily store it. The uncompressed data sizes are provided in Table 14–3. If an
uncompressed JBC file is used, use the following equation:
Equation 14–4.
RAM Size = JBC File Size
MAX II Device Handbook
© October 2008 Altera Corporation