cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
test_rlb.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2016 -- 2021 IBM Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
30 #include "../src/rlb.hpp"
31 #include "../../../NTS/nts_utils.hpp"
32 #include "../../../NTS/SimNtsUtils.hpp"
33 
34 //---------------------------------------------------------
35 //-- TESTBENCH GLOBAL DEFINES
36 // 'STARTUP_DELAY' is used to delay the start of the [TB] functions.
37 //---------------------------------------------------------
38 #define TB_MAX_SIM_CYCLES 100
39 #define TB_STARTUP_DELAY 0
40 #define TB_GRACE_TIME 0 // Adds some cycles to drain the DUT before exiting
41 
42 //---------------------------------------------------------
43 //-- TESTBENCH GLOBAL VARIABLES
44 //-- These variables might be updated/overwritten by the
45 //-- content of a test-vector file.
46 //---------------------------------------------------------
47 bool gTraceEvent = false;
48 bool gFatalError = false;
49 unsigned int gSimCycCnt = 0;
51 
#define TB_STARTUP_DELAY
Definition: test_rlb.hpp:39
#define TB_MAX_SIM_CYCLES
Definition: test_rlb.hpp:38
unsigned int gMaxSimCycles
Definition: test_rlb.hpp:50
unsigned int gSimCycCnt
Definition: test_rlb.hpp:49
bool gTraceEvent
Definition: test_rlb.hpp:47
bool gFatalError
Definition: test_rlb.hpp:48