Installation (Linux)
System Configuration
TaskMapper is developed in Java, and needs the java runtime (version 5 or above). TaskMapper can be used with Unix or Windows system.
The design software suite from altera, has to be installed, ie Quartus II, SoPC Builder and Nios2 IDE (version 6.1 was used while designing TaskMapper), with the correct licences.
In order to communicate with the Altera DE2 card, the softwares have to be configured.
The file run.sh
The file run.sh allows to configure the environment, particulary the PATH variable, before running TaskMapper. Indeed, the whole Altera suite has to be accessible. So the paths to the binaries has to be added in the PATH variable. The file run.bat can be found in the root directory of TaskMapper. It has to be edited if the paths are not correct.
NB : it is possible to change the java's path.
List of variables :
- QUARTUS_ROOTDIR : quartus path
- SOPC_KIT_NIOS2 : nios2 path
- SOPC_BUILDER_PATH : components path (default : ${SOPC_KIT_NIOS2})
- LM_LICENSE_FILE : quartus licence file (${QUARTUS_ROOTDIR}/License.dat)
List of binaries :
- quartus_cmd : ${QUARTUS_ROOTDIR}/bin
- sopc_builder : ${SOPC_BUILDER_PATH}/bin
- nios2-create-application-project : ${SOPC_KIT_NIOS2}/bin
(and nios2-build-project, nios2-delete-project, nios2-configure-sof, nios2-download, nios2-terminal) - nios2-elf-objcopy : ${SOPC_KIT_NIOS2}/bin/nios2-gnutools/H-i686-pc-linux-gnu/bin
JTAG Configuration
Then the access to the Altera DE2 card has to be configured. The card is accessed using a JTAG serveur. The client status is consultable with the jtagconfig. The JTAG parameters can be found by clicking on the "Hardware Setup" button in the programmer.
jtagconfig
In this example, the card is on the PORQUEROLLES' USB port. It is in the first position, so the Card Number value in TaskMapper has to be set to 1.
Remote access to DE2 card
It is possible to remote access to a DE2 card (to configure it and run applications). To get there you have to start Quartus II, then the "program", then:
- Click on Hardware Setup
- Select JTAG settings tab
- Click on Add Server...
- Enter the server address and password
- The list show the new line with status OK
Setup TaskMapper
Once the system is OK, then TaskMapper can be installed.
Taskmapper can be downloaded in a .tar.bz2 archive. The first step is to decompress the archive .tar.bz2, using the tar command :
Then, TaskMapper can be ran by lauching the script run.sh (make sure it has been correctly edited) :