MLIR-AIE
AIEGenerateColumnControlOverlay.h
Go to the documentation of this file.
1//===- AIEGenerateColumnControlOverlay.h ------------------------*- C++ -*-===//
2//
3// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7// (c) Copyright 2024 Advanced Micro Devices Inc.
8//
9//===----------------------------------------------------------------------===//
10
11#ifndef AIE_ASSIGN_BUFFER_DESCRIPTOR_IDS_H
12#define AIE_ASSIGN_BUFFER_DESCRIPTOR_IDS_H
13
15
16using namespace mlir;
17using namespace xilinx::AIE;
18
19// Populate column control streaming interconnect overlay
20void populateAIEColumnControlOverlay(DeviceOp &device);
21
22// AIE arch-specific row id to shim dma mm2s channel mapping. All shim mm2s
23// channels were assumed to be available for control packet flow routing (i.e.
24// not reserved by any aie.flow circuit-switched routing).
25DenseMap<int, int> getRowToShimChanMap(const AIETargetModel &targetModel,
26 WireBundle bundle);
27
28// AIE arch-specific tile id to controller id mapping. Users can use those
29// packet ids for design but run into risk of deadlocking control packet flows.
30DenseMap<TileID, int>
31getTileToControllerIdMap(bool clColumnWiseUniqueIDs,
32 const AIETargetModel &targetModel);
33
34#endif
DenseMap< int, int > getRowToShimChanMap(const AIETargetModel &targetModel, WireBundle bundle)
void populateAIEColumnControlOverlay(DeviceOp &device)
DenseMap< TileID, int > getTileToControllerIdMap(bool clColumnWiseUniqueIDs, const AIETargetModel &targetModel)
Include the generated interface declarations.