Download GEZEL User Manual

Transcript
April 21, 2005 10:39 am
data_2 value
data_2 value
data_2 value
data_2 value
etc ...
is
is
is
is
0
1
3
6
The creation of SystemC cosimulations is discussed in Section 7.0 on page 68.
A.6 JAVA Cosimulator
The GEZELkernel is also accessible to JAVA applications through a set of three JAVA
classes. You can download a JAVA developer kit from SUN (http://java.sun.com) or IBM
(//http://www-106.ibm.com/developerworks/java/jdk/linux140/) if it is not available in the
machine you are working on.
The location of the javac and javah tools (which are used to compile the JAVA-gezel link)
must be set in the Makefile.am under the java subdirectory of the GEZEL distribution.
You have to make this modification before running configure. The default values on
this line are:
JAVAC=/opt/IBMJava2-142/bin/javac
JAVAH=/opt/IBMJava2-142/bin/javah
After confirming the paths are properly configured, run automake to regenerate the
Makefiles.
Next, compile the java-GEZEL classes as well as the shared library that links them to the
GEZEL kernel, by running configure using the --enable-java flag:
> ./configure --enable-java
> make
> make install
To confirm that the JAVA class library works, try one of the examples under test/java.
Also here, the path the javac and javah must be provided. This is done in test/
java/Makefile.rules.
> cd test/java/counter1
> make
/opt/IBMJava2-142/bin/javac -classpath ../../../java counter1.java
> make sim
export LD_LIBRARY_PATH=../../../build/lib; /opt/IBMJava2-142/bin/
java -classpath ../../../build/share:. counter1
counter = 0/1
counter = 1/2
counter = 2/3
counter = 3/4
Schaumont, Ching
GEZEL User Manual
104