8#ifndef MLIR_AIE_ENUMS_H
9#define MLIR_AIE_ENUMS_H
11#include "mlir/IR/BuiltinTypes.h"
12#include "mlir/IR/Dialect.h"
14#include "aie/Dialect/AIE/IR/AIEEnums.h.inc"
19inline bool isMM2S(DMAChannelDir dir) {
20 return dir == DMAChannelDir::MM2S || dir == DMAChannelDir::ControlMM2S;
24inline bool isS2MM(DMAChannelDir dir) {
25 return dir == DMAChannelDir::S2MM || dir == DMAChannelDir::TraceS2MM;
31 case DMAChannelDir::S2MM:
32 case DMAChannelDir::MM2S:
34 case DMAChannelDir::ControlMM2S:
35 return WireBundle::DMAControl;
36 case DMAChannelDir::TraceS2MM:
37 return WireBundle::DMATrace;
39 return WireBundle::DMA;
bool isS2MM(DMAChannelDir dir)
True if dir moves data from a stream into memory (S2MM, TraceS2MM).
bool isMM2S(DMAChannelDir dir)
True if dir moves data out of memory onto a stream (MM2S, ControlMM2S).
WireBundle getDMAChannelBundle(DMAChannelDir dir)
The stream-switch bundle the channels of dir use.