cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
test_iptx.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 #ifndef _TEST_IPTX_H_
31 #define _TEST_IPTX_H_
32 
33 #include "../src/iptx.hpp"
34 #include "../../../NTS/nts_types.hpp"
35 #include "../../../NTS/nts_utils.hpp"
36 #include "../../../NTS/SimNtsUtils.hpp"
37 #include "../../../NTS/SimEthFrame.hpp"
38 #include "../../../NTS/SimIp4Packet.hpp"
39 
40 //---------------------------------------------------------
41 //-- TESTBENCH GLOBAL DEFINES
42 // 'STARTUP_DELAY' is used to delay the start of the [TB] functions.
43 //---------------------------------------------------------
44 #define TB_MAX_SIM_CYCLES 25000
45 #define TB_STARTUP_DELAY 0
46 #define TB_GRACE_TIME 500 // Adds some cycles to drain the DUT before exiting
47 
48 //---------------------------------------------------------
49 //-- TESTBENCH GLOBAL VARIABLES
50 //-- These variables might be updated/overwritten by the
51 //-- content of a test-vector file.
52 //---------------------------------------------------------
55 unsigned int gSimCycCnt;
56 unsigned int gMaxSimCycles;
57 
58 #endif
59 
unsigned int gMaxSimCycles
Definition: test_iptx.hpp:56
unsigned int gSimCycCnt
Definition: test_iptx.hpp:55
bool gTraceEvent
Definition: test_iptx.hpp:53
bool gFatalError
Definition: test_iptx.hpp:54