3.3.4. Setting up the testcode

There is one testcode provided as part of the ARM Cortex-M0 DesignStart FPGA Prototyping Kit, designtest_m0. The testcode includes both C source code and the relevant makefile.

The ARM Cortex-M0 DesignStart FPGA Prototyping Kit has more makefiles that allow the FPGA testbench to compile and run the majority of the testcodes provided as part of the RTL simulation.

These makefiles use the /CMSIS directory within the RTL testbench structure in the ARM Cortex-M0 DesignStart Design Kit. If you use a different directory structure in your simulation environment, for each of the testcode directories, in the appropriate makefile you must change the following line:

#============================================================
# EDIT the following to point to the CMSIS directory location
# downloaded as part of the DesignStart core
#============================================================
DS_RTL_TESTBENCH  = ../../../../../../cortexm0_designstart/
#============================================================
Copyright © 2015-2016 ARM. All rights reserved.ARM DUI 0934B
Non-ConfidentialID062017