DOURNAC.ORG
Français  English
Home
Astronomy
Sciences
Philosophy
Coding
Cv

Coding > Programming the 32 bits CRAPS/SPARC processor on Xilinx Spartan-6 FPGA board (Nexys 3)


The implementation of CRAPS processor on Nexys 3 FPGA Board is done firstly by synthesizing on Xilinx ISE sofware the VHDL sources modeling its operating. You can find here these sources and the "User Constraint File" (UCF) (specific to the Nexys 3 Board) :

  • vhdl_craps.tar

  • nexys3_craps.ucf

Once the synthesizing is completed, we get a binary file (.bit for volatile memory or .mcs for EEPROM) that we load on FPGA Board. Here is the .mcs file for Nexys 3 :

  • Craps_Nexys3.mcs

Now we use a monitor written in Java which allows to interact in real time with the CRAPS processor. This program is using native functions in C++ (see JNI), itself calling the low-level functions of the Dcputil library. This monitor can be downloaded here :

  • CrapsMon4.6.jar

To run this application on Windows, we need the following dll :

  • usbComm1.3.dll

To run it on Linux (tested on x86_64 Debian 6.0), we need this dynamic library :

  • libusbComm1.3.so

this latter library is got via JNI with these files :

  • usbComm1.3.cpp

  • org_jcb_shdl_CommThread.h

For generating the .so library on 64 bits Linux, here are the compilation commands to execute :

\$ g++ -c -fPIC -I /usr/lib/jvm/java-6-sun/include/ -I /usr/lib/jvm/java-6-sun/include/linux/ -I /usr/local/include/digilent/adept/
-L /usr/local/lib64 /digilent/adept/ -ldepp -ldmgr usbComm1.3.cpp -o usbComm1.3.o
\$ g++ -shared -o libusbComm1.3.so /usr/local/lib64/digilent/adept/lib* usbComm1.3.o

Then, we have to copy it in /usr/lib to launch the .jar file.

Below a video showing the interaction between the CRAPS processor on the Nexys 3 Board and the PC by using the Java monitor :


Video not playing? Download file instead.




















ps : join like me the Cosmology@Home project whose aim is to refine the model that best describes our Universe

    Home | Astronomy | Sciences | Philosophy | Coding | Cv    
- dournac.org © 2003 by fab -

Back to Top