To build tests, you need to have
gnu m4
andcpp
in your path. You also need to have set up your environment. The entire picoJava VTS takes about 137MB of disk space.The steps to build tests in picoJava source distribution are:
- cd $PICOJAVAHOME/$PROJECT/sim/test/pico_vts
- For each test suite under this directory, type:
gunzip <test-suite>tar.gz
or uncompress <test-suite>.tar.Z
Then type: tar -xvf <test-suite>.tar- type 'make' in every subdirectory under
pico_vts
If you need to write additional tests for picoJava-II, refer to Chapter 3 of the picoJava-II Verification Guide.
You can run tests on the RTL model either standalone or in cosimulation mode. Before running any tests on the RTL model, you must have built
pj2vcs
orpj2vlog
present in your path. If you don't have either one of these, see Build RTL on how to build the model.If you want to run simulations in cosimulation mode, you need to have IAS in your path. A version of ias for Sparc/Solaris platforms is provided with the distribution. If you would like to build your own version of ias, refer to Building IAS.
steam
is the script used to run simulations in the picoJava-II environment.
You can use it to run a single test, a suite of tests, or the entire picoJavaVTS
.See steam guide, for a simple guide on how to use
steam
.
See Chapter 4 of the picoJava-II Verification Guide for detailed information.Note:
steam
is aperl
script. You must haveperl
in your path to be able to runsteam
.
There are two types of tests in picoJavaTM-II verification environment: RC tests and RT tests. For more information on these types of tests, see Chapter 3 of the picoJava-II Verification Guide.
To run a
RT
type test, compile the test code into a class file and copy the class file toreset.class
.For example, the steps to run
test/pico_vts/basic/arithm_int
withpj2vcs
are:
- cd $PICOJAVAHOME/$PROJECT/sim/test/pico_vts/basic
- make
- mkdir arithm_int_output
- cp class/arithm_int.class
- cd arithm_int_output
- pj2vcs +cosim+ias
To run a
RC
type test, compile the test code into a class file and verify that the filereset.class
is present in the directory$DSVHOME/class
.For example, the steps to run
test/pico_vts/basic_java/allinst
withpj2vlog
are:
- cd $PICOJAVAHOME/$PROJECT/sim/test/pico_vts/basic_java
- make
- mkdir allinst_output
- cp class/allinst.class allinst_output/allinst.class
- cd allinst_output
- pj2vlog +cosim+ias +class+allinst.class -f $VFILES_PATH
You can run all the tests in the picoJava-IIVTS
with the following commands:
- cd $PICOJAVAHOME/$PROJECT/sim/test/pico_vts
- steam .
Note that it takes a long time to sequentially run all the tests in the VTS. You may prefer to dispatch different test runs in parallel to a server pool using load sharing software.
Copyright © 1999 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303-4900 USA. All rights reserved.
Last modified 24-March-1999