Services - tools - models - for embedded software development
Embecosm divider strip
Prev  Next

3.3.  Test Bench Modeling of Peripherals

None of the peripherals are modeled—all external ports are tied off to appropriate values.

The behavior of ORPSoC is tracked through use of the OpenRISC 1000 l.nop instruction. These are incorporated in the test applications as shown in Table 3.2

Opcode

Action

l.nop 1

End simulation, with the value in GPR 3 as return code.

l.nop 2

Report the value in GPR 3.

l.nop 4

Print the value in GPR 3 as a character

Table 3.2.  l.nop usage with the example ORPSoC platform


All other l.nop argument values are ignored.

The test bench implements a monitor function to detect a new l.nop instruction. It implements the appropriate functionality.

Embecosm divider strip