JHDL 0.2

| JHDL Doc Home Page | User's Manual Home Page | << | < | > | >>


General Java Issues

General Java Issues

This section will contain information about general considerations regarding JHDL and it's interaction with the Java language.

Large JHDL Designs

If one is trying to simulate or netlist a large design in JHDL, a typical java error message is:
java.lang.OutOfMemoryError
       at java.lang. . . .
       <long stack trace>

This does NOT mean that your machine has a lack of available memory. Java has a default maximum heap size and if the process exceeds that default maximum heap size, the above error will be seen by the user and the process will be terminated. To avoid this terminating error, when building, simulating or netlisting large designs the user can specify both a larger maximum heap size as well as specify the size of the initial heap.

The command line arguments to set the initial and maximum heap are platform dependant but here are some examples that work for hpux, linux and Windows NT:

The following example sets the maximum heap size to 50 megabytes:

java -mx50M tb_BigCircuit

The following example sets the initial heap size to 25 megabytes and the maximum to 100 megabytes:
java -ms25M -mx100M tb_BigCircuit

More command line options can be found by simply typing "java" on the command line. For other platforms that may not use these conventions, see your JDK documentation for the equivalent command line arguments.


| JHDL Doc Home Page | User's Manual Home Page | << | < | > | >>

Copyright (c) 1998-1999 Brigham Young University. All rights reserved.
Reproduction in whole or in part in any form or medium without express permission of Brigham Young University is prohibited.