Caution: The project of JavaRock, a high-level synthesis language has already been closed. It has moved to its successor, which is called Synthesijer. BC::labs puts weight on the project of Stnthesijer and frequently update the new project.
Please consider this page and JavaRock related articles as reference.
JavaRock is a high-level synthesis language, which generates HDL from Java language. This article shows how to set up the basic working environment for JavaRock.
The newest compiled JavaRock is javarock_20130708.jar, and the latest sample code set of JavaRock is samples_20130707.tar,gz. Please download them from the URL shown below.
URL>
Install Ubuntu 12.04 (32bit version) and add the package listed below.
Code>
Set PATH, which defines the location of javarock_20130708.jar is placed, to the environment variable of JavaRock, JAVAROCK.
Code>
Compile samples/pong. Assume that the directory of samples is /home/beat/JavaRock/samples. If comile_fpga.sh does not have the executable permission, give it, and execute it.
Code> After the compile process is completed, please check that class files and vhd file are generated.
JavaRock can be compiled on Mac OS X Mavericks (10.9.3) if JDK7 is installed to Mac OS X.
The default Java on Mac OS X Mavericks is Java 1.6, but JavaRock cannot be compiled with Java 1.6. Java 1.7 is the requirement.
Code>
Download Oracle JDK from the URL below. After the download of jdk-7u55-maxosx-x64.dmg is completed, the execute the file. As the installer screen shows up, please follow its instructions to install JDK. After the installation is completed, please check its version of JDK.
Code>
Confirming that JDK7 is installed, set PATH, which defines the location of javarock_20130708.jar is placed, to the environment variable of JavaRock, JAVAROCK. This is the same way as having done to Ubuntu.
Code> Setting PATH to the environment variable, execute samples/test/test.sh.
Code>
Code> If the class file and vhd file exist, this file, test.sh, is executed correctly, If test.sh is executed without updating the version of Java, these errors will occur. The details are shown below.
Error Code>
The contents of expanded samples_201310707.tar.gz are organized as they are shown below. In the following directories, kc705 indicates this directory for Xilinx Kintex-7 FPGA KC705. test directory is for Virtex-6 FPGA ML605 Evaluation Kit. microboard is the directory for Avnet Spartan-6 LX9 MicroBoard. Zedboard is the test directory for Xulinx ZedBoard ZedBoard.
Directory>
URL>
URL>