cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
Return to the generic documentation of cloudFPGA
test_iprx.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_IPRX_H_
31
#define _TEST_IPRX_H_
32
33
#include <cerrno>
34
35
#include "../src/iprx.hpp"
36
#include "../../../NTS/nts_types.hpp"
37
#include "../../../NTS/nts_utils.hpp"
38
#include "../../../NTS/SimNtsUtils.hpp"
39
#include "../../../NTS/SimEthFrame.hpp"
40
#include "../../../NTS/SimUdpDatagram.hpp"
41
#include "../../../NTS/SimIp4Packet.hpp"
42
43
//---------------------------------------------------------
44
//-- TESTBENCH GLOBAL DEFINES
45
// 'STARTUP_DELAY' is used to delay the start of the [TB] functions.
46
//---------------------------------------------------------
47
#define TB_MAX_SIM_CYCLES 250000
48
#define TB_STARTUP_DELAY 0
49
#define TB_GRACE_TIME 5000
// Adds some cycles to drain the DUT before exiting
50
51
//---------------------------------------------------------
52
//-- TESTBENCH GLOBAL VARIABLES
53
//-- These variables might be updated/overwritten by the
54
//-- content of a test-vector file.
55
//---------------------------------------------------------
56
bool
gTraceEvent
;
57
bool
gFatalError
;
58
unsigned
int
gSimCycCnt
;
59
unsigned
int
gMaxSimCycles
;
60
61
#endif
62
gMaxSimCycles
unsigned int gMaxSimCycles
Definition:
test_iprx.hpp:59
gSimCycCnt
unsigned int gSimCycCnt
Definition:
test_iprx.hpp:58
gTraceEvent
bool gTraceEvent
Definition:
test_iprx.hpp:56
gFatalError
bool gFatalError
Definition:
test_iprx.hpp:57
repos_for_Dox
cFDK
SRA
LIB
SHELL
LIB
hls
NTS
iprx
test
test_iprx.hpp
Generated on Sat Jul 15 2023 05:02:58 for cloudFPGA (cF) API by
1.9.1