cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
Return to the generic documentation of cloudFPGA
memory_utils.hpp
Go to the documentation of this file.
1
17
// *
18
// * cloudFPGA
19
// * =============================================
20
// * Created: Aug 2019
21
// * Authors: FAB, WEI, NGL
22
// *
23
// * Description:
24
// * This file contains memory types and functions that are shared accross HLS cores.
25
// *
26
// *
27
28
#ifndef _CF_MEMORY_UTILS_
29
#define _CF_MEMORY_UTILS_
30
31
#include <stdio.h>
32
#include <stdint.h>
33
34
#include "ap_int.h"
35
36
using namespace
hls;
37
38
39
42
class
DmCmd
43
{
44
public
:
45
ap_uint<23>
bbt
;
// Bytes To Transfer
46
ap_uint<1>
type
;
// Type of AXI4 access (0=FIXED, 1=INCR)
47
ap_uint<6>
dsa
;
// DRE Stream Alignment
48
ap_uint<1>
eof
;
// End of Frame
49
ap_uint<1>
drr
;
// DRE ReAlignment Request
50
ap_uint<40>
saddr
;
// Start Address
51
ap_uint<4>
tag
;
// Command Tag
52
ap_uint<4>
rsvd
;
// Reserved
53
DmCmd
() {}
54
DmCmd
(ap_uint<40> addr, ap_uint<16> len) :
55
bbt(len),
type
(1), dsa(0), eof(1), drr(1), saddr(addr), tag(0), rsvd(0) {}
56
};
57
58
struct
mmCmd
59
{
60
ap_uint<23>
bbt
;
61
ap_uint<1>
type
;
62
ap_uint<6>
dsa
;
63
ap_uint<1>
eof
;
64
ap_uint<1>
drr
;
65
ap_uint<40>
saddr
;
66
ap_uint<4>
tag
;
67
ap_uint<4>
rsvd
;
68
mmCmd
() {}
69
mmCmd
(ap_uint<40> addr, ap_uint<16> len) :
70
bbt(len),
type
(1), dsa(0), eof(1), drr(1), saddr(addr), tag(0), rsvd(0) {}
71
72
};
73
74
77
class
DmSts
78
{
79
public
:
80
ap_uint<4>
tag
;
81
ap_uint<1>
interr
;
82
ap_uint<1>
decerr
;
83
ap_uint<1>
slverr
;
84
ap_uint<1>
okay
;
85
DmSts
() {}
86
};
87
88
struct
mmStatus
89
{
90
ap_uint<4>
tag
;
91
ap_uint<1>
interr
;
92
ap_uint<1>
decerr
;
93
ap_uint<1>
slverr
;
94
ap_uint<1>
okay
;
95
};
96
97
struct
mm_ibtt_status
98
{
99
ap_uint<4>
tag
;
100
ap_uint<1>
interr
;
101
ap_uint<1>
decerr
;
102
ap_uint<1>
slverr
;
103
ap_uint<1>
okay
;
104
ap_uint<22>
brc_vd
;
105
ap_uint<1>
eop
;
106
};
107
108
109
#endif
110
DmCmd
Definition:
memory_utils.hpp:43
DmCmd::saddr
ap_uint< 40 > saddr
Definition:
memory_utils.hpp:50
DmCmd::DmCmd
DmCmd(ap_uint< 40 > addr, ap_uint< 16 > len)
Definition:
memory_utils.hpp:54
DmCmd::drr
ap_uint< 1 > drr
Definition:
memory_utils.hpp:49
DmCmd::eof
ap_uint< 1 > eof
Definition:
memory_utils.hpp:48
DmCmd::bbt
ap_uint< 23 > bbt
Definition:
memory_utils.hpp:45
DmCmd::tag
ap_uint< 4 > tag
Definition:
memory_utils.hpp:51
DmCmd::dsa
ap_uint< 6 > dsa
Definition:
memory_utils.hpp:47
DmCmd::rsvd
ap_uint< 4 > rsvd
Definition:
memory_utils.hpp:52
DmCmd::DmCmd
DmCmd()
Definition:
memory_utils.hpp:53
DmCmd::type
ap_uint< 1 > type
Definition:
memory_utils.hpp:46
DmSts
Definition:
memory_utils.hpp:78
DmSts::okay
ap_uint< 1 > okay
Definition:
memory_utils.hpp:84
DmSts::decerr
ap_uint< 1 > decerr
Definition:
memory_utils.hpp:82
DmSts::slverr
ap_uint< 1 > slverr
Definition:
memory_utils.hpp:83
DmSts::tag
ap_uint< 4 > tag
Definition:
memory_utils.hpp:80
DmSts::DmSts
DmSts()
Definition:
memory_utils.hpp:85
DmSts::interr
ap_uint< 1 > interr
Definition:
memory_utils.hpp:81
tc_TcpEcho.type
type
Definition:
tc_TcpEcho.py:310
mmCmd
Definition:
memory_utils.hpp:59
mmCmd::bbt
ap_uint< 23 > bbt
Definition:
memory_utils.hpp:60
mmCmd::rsvd
ap_uint< 4 > rsvd
Definition:
memory_utils.hpp:67
mmCmd::tag
ap_uint< 4 > tag
Definition:
memory_utils.hpp:66
mmCmd::eof
ap_uint< 1 > eof
Definition:
memory_utils.hpp:63
mmCmd::dsa
ap_uint< 6 > dsa
Definition:
memory_utils.hpp:62
mmCmd::mmCmd
mmCmd()
Definition:
memory_utils.hpp:68
mmCmd::mmCmd
mmCmd(ap_uint< 40 > addr, ap_uint< 16 > len)
Definition:
memory_utils.hpp:69
mmCmd::saddr
ap_uint< 40 > saddr
Definition:
memory_utils.hpp:65
mmCmd::drr
ap_uint< 1 > drr
Definition:
memory_utils.hpp:64
mmCmd::type
ap_uint< 1 > type
Definition:
memory_utils.hpp:61
mmStatus
Definition:
memory_utils.hpp:89
mmStatus::okay
ap_uint< 1 > okay
Definition:
memory_utils.hpp:94
mmStatus::slverr
ap_uint< 1 > slverr
Definition:
memory_utils.hpp:93
mmStatus::interr
ap_uint< 1 > interr
Definition:
memory_utils.hpp:91
mmStatus::tag
ap_uint< 4 > tag
Definition:
memory_utils.hpp:90
mmStatus::decerr
ap_uint< 1 > decerr
Definition:
memory_utils.hpp:92
mm_ibtt_status
Definition:
memory_utils.hpp:98
mm_ibtt_status::brc_vd
ap_uint< 22 > brc_vd
Definition:
memory_utils.hpp:104
mm_ibtt_status::slverr
ap_uint< 1 > slverr
Definition:
memory_utils.hpp:102
mm_ibtt_status::decerr
ap_uint< 1 > decerr
Definition:
memory_utils.hpp:101
mm_ibtt_status::okay
ap_uint< 1 > okay
Definition:
memory_utils.hpp:103
mm_ibtt_status::eop
ap_uint< 1 > eop
Definition:
memory_utils.hpp:105
mm_ibtt_status::interr
ap_uint< 1 > interr
Definition:
memory_utils.hpp:100
mm_ibtt_status::tag
ap_uint< 4 > tag
Definition:
memory_utils.hpp:99
repos_for_Dox
cFDK
SRA
LIB
hls
memory_utils.hpp
Generated on Sat Jul 15 2023 05:02:57 for cloudFPGA (cF) API by
1.9.1