summaryrefslogtreecommitdiffstats
path: root/host/usrp_e_utils
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2011-01-26 15:55:44 -0800
committerPhilip Balister <philip@opensdr.com>2011-01-26 15:55:44 -0800
commitc926cf77bb9b132172b0e900cea960abd6c5a43e (patch)
treeca7b3b2ecb670672956211d3da8d35b4189a8470 /host/usrp_e_utils
parent867240ac5d9298fe971e9c7b9ba0bc02ac1dcfe4 (diff)
downloaduhd-c926cf77bb9b132172b0e900cea960abd6c5a43e.tar.gz
uhd-c926cf77bb9b132172b0e900cea960abd6c5a43e.tar.bz2
uhd-c926cf77bb9b132172b0e900cea960abd6c5a43e.zip
Local changes for wishbone tests, PLease review carefully.
Diffstat (limited to 'host/usrp_e_utils')
-rw-r--r--host/usrp_e_utils/usrp-e-wb-test.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/host/usrp_e_utils/usrp-e-wb-test.cpp b/host/usrp_e_utils/usrp-e-wb-test.cpp
index 871cc46cc..3d6a8d101 100644
--- a/host/usrp_e_utils/usrp-e-wb-test.cpp
+++ b/host/usrp_e_utils/usrp-e-wb-test.cpp
@@ -26,7 +26,7 @@
#include <linux/usrp_e.h>
#include "usrp_e100_regs.hpp"
-static const size_t num_test_iters = 432;
+static const size_t num_test_iters = 10000000;
static int fp;
@@ -81,6 +81,10 @@ int main(int, char *[]){
size_t num_pass = 0, num_fail = 0;
for (size_t i = 0; i < num_test_iters; i++){
+ if(i%1000000 == 0) {
+ std::cout << "num pass: " << num_pass;
+ std::cout << "\tnum fail: " << num_fail << std::endl;
+ }
//make random values
int random_test32 = ::random();
int random_test16 = ::random() & 0xffff;
@@ -98,7 +102,7 @@ int main(int, char *[]){
(peek16(UE_REG_MISC_TEST) == random_test16) and
(peek32(UE_REG_RB_MISC_TEST32) == random_test32) and
(peek32(UE_REG_RB_TIME_NOW_SECS) == random_secs) and
- (peek32(UE_REG_RB_TIME_NOW_TICKS) < 1000000) and
+// (peek32(UE_REG_RB_TIME_NOW_TICKS) < 1000000) and
true) num_pass++;
else num_fail++;
}