AN 425: Using the Command-Line Jam STAPL Solution for Device Programming

ID 683089
Date 12/09/2016
Public
Document Table of Contents

1.7.3.3. Example of Calculating DRAM Required by Jam STAPL Byte-Code Player

To determine memory usage, first determine the amount of ROM required and then estimate the RAM usage.

This example uses a 16-bit Motorola 68000 processor to program EPM7128AE and EPM7064AE devices in an IEEE Std. 1149.1 JTAG chain using a compressed .jbc.

  1. Use the multi-device equation to estimate the .jbc size.
    Figure 15. Multi-Device Equation to Estimate .jbc Size


    • Because the .jbc file contains compressed data, use the compressed data file size constants to determine the data size. Refer to the related information.
    • In this example, Alg is 21 KB and Data is the sum of EPM7064AE and EPM7128AE data sizes (8 KB + 4 KB = 12 KB).
    • The the .jbc file size is 33 KB.
  2. Estimate the Jam STAPL Byte-Code Player size—this example uses a Jam STAPL Byte-Code Player size of 62 KB because the Motorola 68000 processor is a 16 bit processor. Use the following equation to determine the amount of ROM required. In this example, the ROM size is 95 KB.
    Figure 16. Equation to Estimate the Maximum Required ROM Size


  3. Estimate the RAM usage using the following equation. In this example, the .jbc size is 33 KB.
    Figure 17. Equation to Estimate Maximum Required DRAM


    • Because the .jbc uses compressed data, add up the uncompressed data size for each device to find the total amount of RAM usage. Refer to the related information.
    • The uncompressed data size constants for EPM7064AE and EPM7128AE are 8 KB and 12 KB, respectively.
    • The total DRAM usage in this example is calculated as RAM Size = 33 KB + (8 KB + 12 KB) = 53 KB.
In general, .jam files use more RAM than ROM. This characteristic is desirable because RAM is cheaper. In addition, the overhead associated with easy upgrades becomes less of a factor when programming a large number of devices. In most applications, the importance of easy upgrades outweigh memory costs.