Or1ksim Test Suite
|
Or1ksim Test Suite
|
==================
|
==================
|
|
|
This is the Or1ksim test suite, which is now integrated with the main Or1ksim
|
This is the Or1ksim test suite, which is now integrated with the main Or1ksim
|
development package. It operates using a standard DejaGNU framework within the
|
development package. It operates using a standard DejaGNU framework within the
|
GNU autoconf/automake/libtool structure.
|
GNU autoconf/automake/libtool structure.
|
|
|
A separate configuration file is needed for the OpenRISC programs used in
|
A separate configuration file is needed for the OpenRISC programs used in
|
testing, since these use the OR1K tool chain, rather than the host tool
|
testing, since these use the OR1K tool chain, rather than the host tool
|
chain. This can be found in the "test-code-or1k" directory.
|
chain. This can be found in the "test-code-or1k" directory.
|
|
|
Tests are provided for the standalone simulator (or1ksim) and for the library
|
Tests are provided for the standalone simulator (or1ksim) and for the library
|
(libsim.a).
|
(libsim.a).
|
|
|
At the time of writing a total of 1,261 tests compile, run and pass. That
|
At the time of writing a total of 1,450 tests compile, run and pass. That
|
figure is broken down into 997 tests of the standalone simulator and 264 tests
|
figure is broken down into 1,186 tests of the standalone simulator and 264
|
of the library
|
tests of the library
|
|
|
Configuration and make files are provided for further test programs. These
|
Configuration and make files are provided for further test programs. These
|
come in three categories.
|
come in three categories.
|
- Tests which compile correctly, but will not run to completion.
|
- Tests which compile correctly, but will not run to completion.
|
- Tests which compile, but will not run at all.
|
- Tests which compile, but will not run at all.
|
- Tests which will not compile correctly.
|
- Tests which will not compile correctly.
|
|
|
File Organization
|
File Organization
|
=================
|
=================
|
|
|
Each test program has its own directory under test-code (for native tests,
|
Each test program has its own directory under test-code (for native tests,
|
typically of the library) or test-code-or1k (for OpenRISC code, which must use
|
typically of the library) or test-code-or1k (for OpenRISC code, which must use
|
the OpenRISC tool chain). This builds the test program. If necessary it copies
|
the OpenRISC tool chain). This builds the test program. If necessary it copies
|
data files to the main build/testsuite directory.
|
data files to the main build/testsuite directory.
|
|
|
Each test then has a DejaGNU expect script in or1ksim.tests (for standalone
|
Each test then has a DejaGNU expect script in or1ksim.tests (for standalone
|
tests) and libsim.tests (for library tests), which loads and runs the
|
tests) and libsim.tests (for library tests), which loads and runs the
|
test. Support script procedures are in lib/or1ksim.exp and lib/libsim.exp.
|
test. Support script procedures are in lib/or1ksim.exp and lib/libsim.exp.
|
|
|
Libraries
|
Libraries
|
=========
|
=========
|
|
|
Within the test-code there are several libraries:
|
Within the test-code there are several libraries:
|
|
|
support: A minimal C library.
|
support: A minimal C library.
|
except: Exception handling and startup code.
|
except: Exception handling and startup code.
|
mc-common: A library to support the memory controller tests.
|
mc-common: A library to support the memory controller tests.
|
|
|
Working tests
|
Working tests
|
=============
|
=============
|
|
|
A total of 997 tests of standalone Or1ksim:
|
A total of 1,186 tests of standalone Or1ksim:
|
|
|
basic: 8 tests of a wide range of instructions and registers.
|
basic: 8 tests of a wide range of instructions and registers.
|
cache: 5 tests of the Or1ksim cache modeling
|
cache: 5 tests of the Or1ksim cache modeling
|
cbasic: 19 tests of minimal C functionality
|
cbasic: 19 tests of minimal C functionality
|
cfg: 12 tests of the OR1K configuration register
|
cfg: 12 tests of the OR1K configuration register
|
dhry: 1 Dhrystone 2.1 benchmark using Or1ksim's timing facility.
|
dhry: 1 Dhrystone 2.1 benchmark using Or1ksim's timing facility.
|
dmatest: 3 tests of DMA.
|
dmatest: 3 tests of DMA.
|
eth: 12 tests of the Ethernet interface.
|
eth: 12 tests of the Ethernet interface.
|
except-test: 7 tests of OR1K exception handling
|
except-test: 7 tests of OR1K exception handling
|
exit: 1 test that C program exits correctly
|
exit: 1 test that C program exits correctly
|
ext: 104 tests of the sign extension (l.ext) instructions.
|
ext: 104 tests of the sign extension (l.ext) instructions.
|
fbtest: 1 test of the frame buffer.
|
fbtest: 1 test of the frame buffer.
|
fp 337 tests of floating point functionality (Feature 413).
|
fp 337 tests of floating point functionality (Feature 413).
|
functest: 11 tests of the C function calling interface.
|
functest: 11 tests of the C function calling interface.
|
flag: 1 test of Supervision Register (SR) flag bits.
|
flag: 1 test of Supervision Register (SR) flag bits.
|
int-test: 86 tests of the programmable interrupt controller.
|
int-test: 86 tests of the programmable interrupt controller.
|
kbdtest: 26 tests of the PS2 keyboard interface.
|
kbdtest: 26 tests of the PS2 keyboard interface.
|
local-global: 1 test of C local and global variables.
|
local-global: 1 test of C local and global variables.
|
inst-set-test: A collection of tests of individual instructions
|
inst-set-test: A collection of tests of individual instructions
|
is-add-test 180 tests of the l.add* instructions (Bugs 1771, 1776)
|
is-add-test 180 tests of the l.add* instructions (Bugs 1771, 1776)
|
is-div-test: 4 tests of the l.div and l.divu instructions (Bug 1770).
|
is-div-test: 4 tests of the l.div and l.divu instructions (Bug 1770).
|
is-find-test: 14 tests of the l.ff1 and l.fl1 instructions (Bug 1772).
|
is-find-test: 14 tests of the l.ff1 and l.fl1 instructions (Bug 1772).
|
is-lws-test: 13 tests of the l.lws instruction (Bug 1767).
|
is-lws-test: 13 tests of the l.lws instruction (Bug 1767).
|
|
is-mac-test: 189 tests of the MAC instructions (Bug 1773).
|
mem-test: 16 tests of simple memory access.
|
mem-test: 16 tests of simple memory access.
|
mmu: 110 tests of the MMU.
|
mmu: 110 tests of the MMU.
|
mul: 5 tests of the multiply functionality.
|
mul: 5 tests of the multiply functionality.
|
mycompress: 1 test using a compression program.
|
mycompress: 1 test using a compression program.
|
tick: 19 tests of the OR1K tick timer.
|
tick: 19 tests of the OR1K tick timer.
|
|
|
A total of 264 tests of the libsim library:
|
A total of 264 tests of the libsim library:
|
|
|
int-edge: 6 tests of edge triggered interrupts.
|
int-edge: 6 tests of edge triggered interrupts.
|
int-level: 5 tests of level triggered interrupts.
|
int-level: 5 tests of level triggered interrupts.
|
lib-iftest: 1 test of the basic library interface functions.
|
lib-iftest: 1 test of the basic library interface functions.
|
jtag-basic: 17 tests of JTAG reset and instruction selection
|
jtag-basic: 17 tests of JTAG reset and instruction selection
|
jtag-go-command-read: 60 tests of JTAG GO_COMMAND for reading
|
jtag-go-command-read: 60 tests of JTAG GO_COMMAND for reading
|
jtag-go-command-write: 54 tests of JTAG GO_COMMAND for writing
|
jtag-go-command-write: 54 tests of JTAG GO_COMMAND for writing
|
jtag-read-command: 18 tests of JTAG READ_COMMAND
|
jtag-read-command: 18 tests of JTAG READ_COMMAND
|
jtag-read-control: 8 tests of JTAG READ_CONTROL
|
jtag-read-control: 8 tests of JTAG READ_CONTROL
|
jtag-select-module: 20 tests of JTAG module selection
|
jtag-select-module: 20 tests of JTAG module selection
|
jtag-write-command: 58 tests of JTAG WRITE_COMMAND
|
jtag-write-command: 58 tests of JTAG WRITE_COMMAND
|
jtag-write-control: 13 tests of JTAG WRITE_CONTROL
|
jtag-write-control: 13 tests of JTAG WRITE_CONTROL
|
upcalls: 2 tests of the upcall interface.
|
upcalls: 2 tests of the upcall interface.
|
|
|
Tests which build, but do not run to completion
|
Tests which build, but do not run to completion
|
===============================================
|
===============================================
|
|
|
The following tests of standalone Or1ksim rely on VAPI in Or1ksim, so need a
|
The following tests of standalone Or1ksim rely on VAPI in Or1ksim, so need a
|
client to provide test data over TCP/IP.
|
client to provide test data over TCP/IP.
|
|
|
acv-gpio: a test of the GPIO.
|
acv-gpio: a test of the GPIO.
|
acv-uart: a test of the UART
|
acv-uart: a test of the UART
|
|
|
Tests which build, but do not run at all
|
Tests which build, but do not run at all
|
========================================
|
========================================
|
|
|
These tests of standalone Or1ksim (which are built by the make file), do not
|
These tests of standalone Or1ksim (which are built by the make file), do not
|
appear to run at all. The problem is in the linker script and/or the
|
appear to run at all. The problem is in the linker script and/or the
|
configuration for Or1ksim.
|
configuration for Or1ksim.
|
|
|
mc-async: a test of the memory controller with asynchronous memory.
|
mc-async: a test of the memory controller with asynchronous memory.
|
mc-dram: a test of the memory controller with DRAM.
|
mc-dram: a test of the memory controller with DRAM.
|
mc-ssram: a test of the memory controller with SSRAM.
|
mc-ssram: a test of the memory controller with SSRAM.
|
mc-sync: a test of the memory controller with synchronous memory.
|
mc-sync: a test of the memory controller with synchronous memory.
|
uOS: a microKernel.
|
uOS: a microKernel.
|
|
|
Tests which do not build
|
Tests which do not build
|
========================
|
========================
|
|
|
The following test of standalone Or1ksim builds with a myriad of warnings.
|
The following test of standalone Or1ksim builds with a myriad of warnings.
|
|
|
inst-set-test: a comprehensive test of the instruction set using C.
|
inst-set-test: a comprehensive test of the instruction set using C.
|
|
|
|
|
Updated by Jeremy Bennett (jeremy@jeremybennett.com)
|
Updated by Jeremy Bennett (jeremy@jeremybennett.com)
|
3 June 2010
|
3 June 2010
|
|
|