MLIR-AIE
Classes | Functions
xrt_test_wrapper.h File Reference
#include "cxxopts.hpp"
#include "test_utils.h"
#include "xrt/xrt_bo.h"
#include "xrt/xrt_device.h"
#include "xrt/xrt_hw_context.h"
#include "xrt/xrt_kernel.h"
#include <fstream>
#include <iostream>
#include <sstream>
+ Include dependency graph for xrt_test_wrapper.h:

Go to the source code of this file.

Classes

struct  args
 

Functions

struct args parse_args (int argc, const char *argv[])
 
uint32_t getParity (uint32_t n)
 
uint32_t create_ctrl_pkt (int operation, int beats, int addr, int ctrl_pkt_read_id=28)
 
template<typename T1 , typename T2 , typename T3 , void(*)(T1 *, int) init_bufIn1, void(*)(T2 *, int) init_bufIn2, void(*)(T3 *, int) init_bufOut, int(*)(T1 *, T2 *, T3 *, int, int) verify_results>
int setup_and_run_aie (int IN1_VOLUME, int IN2_VOLUME, int OUT_VOLUME, struct args myargs, bool enable_ctrl_pkts=false)
 
template<typename T1 , typename T3 , void(*)(T1 *, int) init_bufIn1, void(*)(T3 *, int) init_bufOut, int(*)(T1 *, T3 *, int, int) verify_results>
int setup_and_run_aie (int IN1_VOLUME, int OUT_VOLUME, struct args myargs, bool enable_ctrl_pkts=false)
 

Function Documentation

◆ create_ctrl_pkt()

uint32_t create_ctrl_pkt ( int  operation,
int  beats,
int  addr,
int  ctrl_pkt_read_id = 28 
)

Definition at line 60 of file xrt_test_wrapper.h.

References getParity().

Referenced by setup_and_run_aie(), and setup_and_run_aie().

◆ getParity()

uint32_t getParity ( uint32_t  n)

Definition at line 49 of file xrt_test_wrapper.h.

Referenced by create_ctrl_pkt().

◆ parse_args()

struct args parse_args ( int  argc,
const char *  argv[] 
)

◆ setup_and_run_aie() [1/2]

template<typename T1 , typename T2 , typename T3 , void(*)(T1 *, int) init_bufIn1, void(*)(T2 *, int) init_bufIn2, void(*)(T3 *, int) init_bufOut, int(*)(T1 *, T2 *, T3 *, int, int) verify_results>
int setup_and_run_aie ( int  IN1_VOLUME,
int  IN2_VOLUME,
int  OUT_VOLUME,
struct args  myargs,
bool  enable_ctrl_pkts = false 
)

◆ setup_and_run_aie() [2/2]

template<typename T1 , typename T3 , void(*)(T1 *, int) init_bufIn1, void(*)(T3 *, int) init_bufOut, int(*)(T1 *, T3 *, int, int) verify_results>
int setup_and_run_aie ( int  IN1_VOLUME,
int  OUT_VOLUME,
struct args  myargs,
bool  enable_ctrl_pkts = false 
)