User guide

9-18
Using the Old Command Line Interface (CLI)
CPU 0 releases bus on arb0
Line break at time 2050 breakpoint #3 break at memsys1.vr:69
cli_6 >show mailboxes
mailbox id: 1 data available: 1
data: -->1
blocked threads: NONE
cli_7 > quit
$finish at simulation time 2050
V C S S i m u l a t i o n R e p o r t
Using the CLI, Example 2
Example 9-3 is a testbench containing semaphores. It is in the file
memsys0.vr, which is a part of the Native Testbench tutorial example
in your VCS installation under $VCS_HOME/doc/examples/
nativetestbench/tutorial.
Example 9-3 Testbench Containing Semaphores
#define OUTPUT_EDGE PHOLD
#define OUTPUT_SKEW #1
#define INPUT_SKEW #-1
#define INPUT_EDGE PSAMPLE
#include <vera_defines.vrh>
#include “memsys.if.vrh”
#include “port_bind.vr”
#include “cpu.vr”
program memsys_test
{ // Start of memsys_test
cpu cpu0 = new (arb0, 0);
cpu cpu1 = new (arb1, 1);
init_ports();
reset_sequence();
check_all() ;