Commit 25a0100b authored by Maciej Lipinski's avatar Maciej Lipinski Committed by Adam Wujek

[tb/wrpc] added "null" test when test_num=0 (no test specified)

for some simulations, we just need link-up, so wrpc to initialize
and then loop endlessly, this should be the default behaviour
parent b73b27f8
...@@ -35,9 +35,11 @@ ...@@ -35,9 +35,11 @@
#define TESTBENCH_MAGIC 0x4d433ebc #define TESTBENCH_MAGIC 0x4d433ebc
#define TESTBENCH_VERSION 1 #define TESTBENCH_VERSION 1
#define TESTBENCH_RET_NO_TEST 0
#define TESTBENCH_RET_OK 1 #define TESTBENCH_RET_OK 1
#define TESTBENCH_RET_ERROR 2 #define TESTBENCH_RET_ERROR 2
/* /*
* This is a structure to pass information from the testbench to lm32's * This is a structure to pass information from the testbench to lm32's
* software. hdl_testbench structure is meant to be set by testbench through * software. hdl_testbench structure is meant to be set by testbench through
...@@ -193,6 +195,11 @@ void main(void) ...@@ -193,6 +195,11 @@ void main(void)
; ;
} }
switch (hdl_testbench.test_num) { switch (hdl_testbench.test_num) {
case 0:
/* for simulations that just need link-up */
hdl_testbench.return_val = TESTBENCH_RET_NO_TEST;
while (1)
;
case 1: case 1:
wrpc_test_1(); wrpc_test_1();
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment