AutoSim Toolsets Installation Guide

 
  1: Download:

Linux:

Asproject.tar This tar file contains the simple scalar simulators for Arm and PISA architecture, and also the cross compilers for Arm and PISA architecture. All are statically built binaries, which are ready to use. It also get two Perl scripts one is to help the automated installation, which normal user don't need to pay attention to, and the other is the scripts which does the automated benchmarking.
Makefile This is a GNU make file, you can download this file and modify a couple of attributes to helps you install all tools automatically.

2: How to run the automated installation?

We recommend the user to use the automated installation unless you got a good reason not to. In the Makefile you can download from last section, there are three attributes you need to pay attention to. They are:

BIN_DIR This attributes must be assigned with the absolute path to the directory, in which you would like to access the cross compiler executables eg. arm-linux-gcc.
INSTALL_DIR This attributes must be assigned the absolute path, in which you want to install the cross compiler and simple scalar toolsets.
PROFILE This attributes must be assigned with the absolute path to access the user's .profile or the file which will be run during the initialisation of shell or terminal to set up the PATH variable. If user failed to provide this file or didn't provide this file, the user must manually update the PATH variable to allow the system to locate the cross compiler, simple scalar toolsets as well as the Automated scripts.

An example of working Makefile is looks like:

.......
BIN_DIR = /usr/xun/local/bin
INSTALL_DIR = /usr/xun/local/pkg
PROFILE = /usr/xd101/.profile
........

With these three attributes the user would got enough flexibility to avoid manual installation. But if you do want to manually install it or didn't got the GNU make installed please read the next section. 

A message "Installation completed" will show on the screen to indicate successful installation. After that you can compile a small program with the cross compiler and then run it executable against the simulator to verify the installation.

3: How to manually install the AutoSim Toolsets?

This time you only need to download the asproject.tar file. Then extract the content by issuing :

tar xvf asproject.tar

then you will find 6 files appeared in the current directory. Ignore the install.pl. Move the AutoSim.pl into a directory you wish, you also must update the PATH variable to allow the system to locate the scripts when needed. Then same thing will apply when you install the cross compiler and simple scalar toolsets.

There are four compressed files:   gcc-arm-2.95.2.tar.gz, linux-gcc-pisa.tar.gz, simplescalar-arm-4.0.tar.gz and simplesim-pisa-3.0d. The first two are cross compilers, the last two are simple scalar toolsets. As mentioned before they are all statically built binaries. The procedure to install them are identical. First you have to extract the content in the compressed file by executing :

tar xvzf  xxxx.tar.gz

Then copy the files to where you want, and finally update the PATH variable.

 

 
 

Created by Xun Dong 13/09/205
University of York