summaryrefslogtreecommitdiffstats
path: root/sbe/test/testPutGetRegGpr.py
diff options
context:
space:
mode:
Diffstat (limited to 'sbe/test/testPutGetRegGpr.py')
-rwxr-xr-xsbe/test/testPutGetRegGpr.py58
1 files changed, 0 insertions, 58 deletions
diff --git a/sbe/test/testPutGetRegGpr.py b/sbe/test/testPutGetRegGpr.py
deleted file mode 100755
index ce5891e7..00000000
--- a/sbe/test/testPutGetRegGpr.py
+++ /dev/null
@@ -1,58 +0,0 @@
-import sys
-sys.path.append("targets/p9_nimbus/sbeTest" )
-import testUtil
-err = False
-
-PUTREG_TESTDATA = [0,0,0,9,
- 0,0,0xA5,0x02,
- 0x00,0x20,0x00,0x02, # two gpr registers
- 0,0,0x0,0x07,
- 0,0,0x0,0x0,
- 0,0,0x0,0x1,
- 0,0,0x0,0x08,
- 0,0,0x0,0x0,
- 0,0,0x0,0x2 ]
-
-PUTREG_EXPDATA = [0xc0,0xde,0xa5,0x02,
- 0x0,0x0,0x0,0x0,
- 0x00,0x0,0x0,0x03];
-
-GETREG_TESTDATA = [0,0,0,5,
- 0,0,0xA5,0x01,
- 0x00,0x20,0x00,0x02, # two gpr registers
- 0,0,0x0,0x07,
- 0,0,0x0,0x08 ]
-
-GETREG_EXPDATA = [0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x01,
- 0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x02,
- 0xc0,0xde,0xa5,0x01,
- 0x0,0x0,0x0,0x0,
- 0x00,0x0,0x0,0x03];
-
-# MAIN Test Run Starts Here...
-#-------------------------------------------------
-def main( ):
- testUtil.runCycles( 10000000 )
- testUtil.writeUsFifo( PUTREG_TESTDATA )
- testUtil.writeEot( )
- testUtil.readDsFifo( PUTREG_EXPDATA )
- testUtil.readEot( )
- testUtil.writeUsFifo( GETREG_TESTDATA )
- testUtil.writeEot( )
- testUtil.readDsFifo( GETREG_EXPDATA )
- testUtil.readEot( )
-
-#-------------------------------------------------
-# Calling all test code
-#-------------------------------------------------
-main()
-
-if err:
- print ("\nTest Suite completed with error(s)")
- #sys.exit(1)
-else:
- print ("\nTest Suite completed with no errors")
- #sys.exit(0);
-
OpenPOWER on IntegriCloud