41 #include <hls_stream.h>
45 #define FSM_WR_PAT_CMD 1
46 #define FSM_WR_PAT_DATA 2
47 #define FSM_WR_PAT_STS 3
48 #define FSM_RD_PAT_CMD 4
49 #define FSM_RD_PAT_DATA 5
50 #define FSM_RD_PAT_STS 6
51 #define FSM_WR_ANTI_CMD 7
52 #define FSM_WR_ANTI_DATA 8
53 #define FSM_WR_ANTI_STS 9
54 #define FSM_RD_ANTI_CMD 10
55 #define FSM_RD_ANTI_DATA 11
56 #define FSM_RD_ANTI_STS 12
61 #define PHASE_RAMP_WRITE 1
62 #define PHASE_RAMP_READ 2
63 #define PHASE_STRESS 3
66 #define MEM_START_ADDR 0x000000000
78 #include "dynamic.hpp"
80 #define CHECK_CHUNK_SIZE 0x1000
81 #define BYTE_PER_MEM_WORD 64
82 #define TRANSFERS_PER_CHUNK (CHECK_CHUNK_SIZE/BYTE_PER_MEM_WORD)
86 #define CYCLES_UNTIL_TIMEOUT 0x1000
94 ap_uint<(D+7)/8>
tkeep;
113 DmCmd(ap_uint<40> addr, ap_uint<16> len) :
132 ap_uint<1> sys_reset,
134 ap_uint<2> DIAG_CTRL_IN,
135 ap_uint<2> *DIAG_STAT_OUT,
137 ap_uint<16> *debug_out,
143 hls::stream<DmCmd> &soMemRdCmdP0,
144 hls::stream<DmSts> &siMemRdStsP0,
147 hls::stream<DmCmd> &soMemWrCmdP0,
148 hls::stream<DmSts> &siMemWrStsP0,
void mem_test_flash_main(ap_uint< 1 > sys_reset, ap_uint< 2 > DIAG_CTRL_IN, ap_uint< 2 > *DIAG_STAT_OUT, ap_uint< 16 > *debug_out, stream< DmCmd > &soMemRdCmdP0, stream< DmSts > &siMemRdStsP0, stream< Axis< 512 > > &siMemReadP0, stream< DmCmd > &soMemWrCmdP0, stream< DmSts > &siMemWrStsP0, stream< Axis< 512 > > &soMemWriteP0)
DmCmd(ap_uint< 40 > addr, ap_uint< 16 > len)
Axis(ap_uint< D > single_data)