5 | | |
| 6 | To build the CRKit framework, we would need the following tools : |
| 7 | |
| 8 | 1. Modelsim |
| 9 | 2. Xilinx ISE |
| 10 | 3. Xilinx EDK (optional for now) |
| 11 | 3. [http://www.cygwin.com/ Cygwin] (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) |
| 12 | |
| 13 | First, we will setup the .bash_profile (this file should be located in "c:\Documents and Settings\YOUR_USER_ACCOUNT") |
| 14 | The .bash_profile environment variables will be loaded into cygwin shell when started. Add following to the .bash_profile |
| 15 | |
| 16 | {{{ |
| 17 | export SDR_HDL_HOME="YOUR_PATH_TO_CRKIT_SVN_FOLDER/design/trunk" #example : export SDR_HDL_HOME="d:/mystuff/crkit_svn/design/trunk" |
| 18 | export CYG_SDR_HDL_HOME="CYGWIN_PATH_TO_CRKIT_SVN_FOLDER/design/trunk #example : export CYG_SDR_HDL_HOME="/cygdrive/d/mystuff/crkit_svn/design/trunk" |
| 19 | export MODELSIM_WORK_HOME="YOUR_PATH_TO_MODELSIM_WORK_FOLDER" #example : export MODELSIM_WORK_HOME="d:/mystuff/hw" |
| 20 | export XILINX_ISE_MODELS="YOUR_PATH_XILINX_ISE_PRECOMPILED_LIBRARIES" #example : export XILINX_ISE_MODELS="d:/mystuff/hw/xlib/ise10.1" |
| 21 | export XILINX_EDK_MODELS="YOUR_PATH_XILINX_EDK_PRECOMPILED_LIBRARIES" #example : export XILINX_EDK_MODELS="d:/mystuff/hw/xlib/edk10.1" |
| 22 | export MODELSIM="$SDR_HDL_HOME/setup/modelsim.ini" |
| 23 | export MODEL_TECH="YOUR_PATH_TO_MODELSIM_FOLDER" #example : export MODEL_TECH="c:/Modeltech_6.4c" |
| 24 | export CYG_MODEL_TECH="CYGWIN_PATH_TO_MODELSIM_FOLDER" #example : export CYG_MODEL_TECH="/cygdrive/c/Modeltech_6.4c" |
| 25 | export PATH=$CYG_HDL_HOME/setup:$CYG_MODEL_TECH/win32:$PATH |
| 26 | |
| 27 | unset autologout |
| 28 | |
| 29 | cd $CYG_SDR_HDL_HOME/setup |
| 30 | }}} |
| 31 | |
| 32 | The .bash_profile assumes that the following folders are available for linking |
| 33 | 1. [wiki:Software/Firmware/Framework/tutorial/build/env/svn CRKit svn folder] |
| 34 | 2. [wiki:Software/Firmware/Framework/tutorial/build/env/modelsim Modelsim work folder] |
| 35 | 3. [wiki:Software/Firmware/Framework/tutorial/build/env/ise_lib Xilinx ISE precompiled libraries] |
| 36 | 4. [wiki:Software/Firmware/Framework/tutorial/build/env/edk_lib Xilinx EDK precompiled libraries] (optional for now) |
| 37 | |
| 38 | It is a good strategy to combine the modelsim, ise and edk subfolders in a top folder such as [[BR]] |
| 39 | ./hw/work[[BR]] |
| 40 | ./hw/xlib/ise10.1[[BR]] |
| 41 | ./hw/xlib/edk10.1[[BR]] |
| 42 | |
| 43 | Those files should be kept outside off the CRKit svn folder environment. |
| 44 | |
| 45 | |