OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [README] - Diff between revs 97 and 195

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 97 Rev 195
Line 34... Line 34...
End Time   = 22701
End Time   = 22701
OR1K at 200 MHz
OR1K at 200 MHz
Microseconds for one run through Dhrystone: 110 us / 20 runs
Microseconds for one run through Dhrystone: 110 us / 20 runs
Dhrystones per Second:                      181
Dhrystones per Second:                      181
 
 
 
test0: a test for all instructions and all GPRs. If everything is ok, RESULT == 0xdeadead.
 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 
Simulation:
 
# ./sim testbench/test0/test0.or32
 
(sim) run 1000000000 hush
 
UART 0 RX EOF detected. Shutting down to prevent endless loop.
 
MTSPR(0x1234, ffff0012);
 
MTSPR(0x1234, 12352af7);
 
MTSPR(0x1234, 7ffffffe);
 
MTSPR(0x1234, ffffa5a7);
 
MTSPR(0x1234, fffff);
 
MTSPR(0x1234, 2800);
 
MTSPR(0x1234, a);
 
MTSPR(0x1234, deaddead);
 
syscall exit(0)
 
(sim)
 
 
 
Standard output:
 
RESULT: deaddead
 
 
 
 
test1: a test for "all" instructions and their combinations. If everything is ok, RESULT == 0xdeadead.
test1: a test for "all" instructions and their combinations. If everything is ok, RESULT == 0xdeadead.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
Simulation:
Simulation:
Line 66... Line 87...
(sim)
(sim)
 
 
Standard output:
Standard output:
RESULT: deaddead
RESULT: deaddead
 
 
 
test2: a test for PIC and TICK timer. All three modes of TICK timer are tested and interrupt is enabled and disabled in PIC. If everything is ok, RESULT == 0xdeadead.
 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 
Simulation:
 
# ./sim testbench/test2/test2.or32
 
(sim) run 100000000 hush
 
...
 
...
 
...
 
MTSPR(0x1234, 178);
 
MTSPR(0x1234, 178);
 
MTSPR(0x1234, deaddead);
 
syscall exit(0)
 
(sim)
 
 
 
Standard output:
 
RESULT: deaddead
 
 
 
test3: a test of l.sys instruction. Checks all the delay slot issues ind other things. If everything is ok, RESULT == 0xdeadead.
 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 
Simulation:
 
# ./sim testbench/test3/test3.or32
 
(sim) run 1000000 hush
 
UART 0 RX EOF detected. Shutting down to prevent endless loop.
 
Exception 0xc00 (System Call): Iqueue[0].insn_addr: 0xc74  Eff ADDR: 0x0
 
  pc: 0xc74  pcnext: 0xc78
 
MTSPR(0x1234, 1);
 
MTSPR(0x1234, 1);
 
MTSPR(0x1234, 1c);
 
MTSPR(0x1234, 1);
 
MTSPR(0x1234, 3);
 
MTSPR(0x1234, deaddead);
 
syscall exit(0)
 
(sim)
 
 
 
Standard output:
 
RESULT: deaddead
 
 
 
test4: a test of SPRs (SPR_VR, SPR_CPUCFGR, SPR_DMMUCFGR, SPR_IMMUCFGR, SPR_DCCFGR, SPR_ICCFGR, SPR_DCFGR, SPR_PCCFGR). If everything is ok, RESULT == 0xdeadead.
 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 
Simulation:
 
# ./sim testbench/test4/test4.or32
 
(sim) run 1000000 hush
 
MTSPR(0x1234, 0);
 
MTSPR(0x1234, e83f);
 
MTSPR(0x1234, 0);
 
MTSPR(0x1234, 5);
 
MTSPR(0x1234, 20);
 
MTSPR(0x1234, 1d);
 
MTSPR(0x1234, 1d);
 
MTSPR(0x1234, 1d);
 
MTSPR(0x1234, 1d);
 
MTSPR(0x1234, 8);
 
MTSPR(0x1234, 1);
 
MTSPR(0x1234, deaddead);
 
syscall exit(0)
 
(sim)
 
 
 
Standard output:
 
RESULT: deaddead
 
 
compress: UNIX compressed modified not to use libc calls. Should finish with exit(0).
compress: UNIX compressed modified not to use libc calls. Should finish with exit(0).
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
Simulation:
Simulation:
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.