close Warning: Can't synchronize with repository "(default)" (/common/SVN/crkit does not appear to be a Subversion repository.). Look in the Trac log for more information.

Version 59 (modified by khanhle, 12 years ago) ( diff )


Environment Setup

This section describes how to prepare the PC environment for building the CRKit framework using either shell scripts or Simulink.

To build the CRKit framework, we would need the following tools :

  1. Modelsim
  2. Xilinx ISE Design Suite 10.1
  3. MATLAB R2008a
  4. Cygwin (Optional only. If Xilinx EDK tools have been installed then you may use the EDK shell instead. However, the shell terminal is only required if you are planning to run scripts to simulate/build the CRKit platform. If using MATLAB/Simulink environment only then omit this step. Cygwin is known to have interoperability issues with older version of Xilinx EDK shell, therefore it is recommended to use ISE/EDK 10.1 or higher)

In our reference environment, we are using two drive partitions : C:\ partition for OS and software applications, and D:\ for data files. If you are not using the same drive partitions or directory structures, then you will need to modify the links to the appropriate folders/files according to your particular environment. In the following, we have assumed that all the above software have been installed successfully on your machine.

C: Partition

In C:\ , do the following steps :

  1. Create hw folder, and hw\xlib subfolder e.g c:\hw and c:\hw\xlib. xlib contains the Xilinx precompiled libraries for Modelsim. Those libraries are used only for simulation purposes.
  2. Compile Xilinx ISE and EDK libraries into c:\hw\xlib\ise10.1 and c:\hw\xlib\edk10.1, respectively. Each time Xilinx ISE or Modelsim version has been updated then the libraries will need to be recompiled. How to compile Xilinx libraries.

D: Partition

In D:\ , do the following steps :

  1. Create crkit_svn folder e.g. d:\crkit_svn, this is the location for CRKit svn folder. How to synchronize with CRKit SVN.
  2. Create hw folder e.g. d:\hw
  3. Create hw\cr_build subfolder e.g. d:\hw\cr_build. Location for Xilinx ISE place/route project files will be located
  4. Create hw\simulink subfolder e.g. d:\hw\simulink. Location for the MATLAB/Simulink generated files
  5. Create hw\host subfolder e.g. d:\hw\host. Location for Visual Studio host software


Create Modelsim work folder under d:\hw . How to setup Modelsim work folder.

Windows Environment Variable

Add following Windows environment variables (for MATLAB/Simulink) :

  2. XILINX_ISE_MODELS = c:\hw\xlib\ise10.1


This step is only required if you plan to build CRKit framework using shell scripts. If using MATLAB/Simulink environment then skip this step. Perform following steps :

  1. Copy .bash_profile from d:\crkit_svn\design\trunk\setup to c:\Documents and Settings\YOUR_USER_ACCOUNT . The shell will pick up the

variables each time the shell is started.

  1. If not using the same directory structures as described above, then edit .bash_profile to link to the appropriate folder locations.

The .bash_profile assumes that the following folders are available for linking

  1. CRKit svn folder
  2. Modelsim work folder
  3. Xilinx precompiled libraries for Modelsim


After following all of the above steps, we should have the following folder structure :

c:\hw\xlib\ise10.1 # xilinx ise libraries for modelsim
c:\hw\xlib\edk10.1 # xilinx edk libraries for modelsim
d:\crkit_svn       # crkit framework svn folder 
d:\hw\cr_build     # xilinx ise project folder for synthesis and place/route 
d:\hw\simulink     # matlab/simulink project folder
d:\hw\host         # visual studio project folder 
d:\hw\work         # modelsim work folder


Note: See TracWiki for help on using the wiki.