forked from Xilinx/XRT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CR-1132341 - Update to aie_pl_test to support aie2 on v70 (Xilinx#7164)
* Update to aie_pl_test to support aie2 on v70 Signed-off-by: Jeff Lin <[email protected]> * Updated according to PR comments Signed-off-by: Jeff Lin <[email protected]> * Changes to use boost filesystem Signed-off-by: Jeff Lin <[email protected]> * Update related to PR comments Signed-off-by: Jeff Lin <[email protected]> * Updates related to latest PR comments Updated xbutil validate so it works for both vck5000 and v70 Signed-off-by: Jeff Lin <[email protected]> * Update error message when aie pl test files are not found Signed-off-by: Jeff Lin <[email protected]> * Updated copyright year for SubCmdValidate.cpp Signed-off-by: Jeff Lin <[email protected]> * Updated xbutil validate command Signed-off-by: Jeff Lin <[email protected]> * Modified checking for aie-pl test existance to check for json file instead of xclbin Signed-off-by: Jeff Lin <[email protected]> Signed-off-by: Jeff Lin <[email protected]> Co-authored-by: Jeff Lin <[email protected]>
- Loading branch information
1 parent
21bcfe2
commit 94bcc5d
Showing
9 changed files
with
885 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,92 @@ | ||
/** | ||
* Copyright (C) 2019-2022 Xilinx, Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may | ||
* not use this file except in compliance with the License. A copy of the | ||
* License is located at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/* | ||
* Copyright 2022-2023 Xilinx, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#ifndef _XF_PLCTRLAIE_ENUMS_HPP_ | ||
#define _XF_PLCTRLAIE_ENUMS_HPP_ | ||
namespace xf { | ||
namespace plctrl { | ||
namespace enums { | ||
enum class aie_cmd | ||
|
||
// re-use this code from "./core/edge/common/aie_parser.h" | ||
struct tile_type | ||
{ | ||
ADF_GRAPH_RUN = 0, | ||
ADF_GRAPH_WAIT = 1, | ||
ADF_GRAPH_RTP_UPDATE = 2, | ||
ADF_GRAPH_RTP_READ = 3, | ||
WAIT_FOR_DMA_IDLE = 4, | ||
SET_DMA_BD_LENGTH = 5, | ||
ENQUEUE_DMA_BD = 6, | ||
LOAD_AIE_PM = 7, | ||
SLEEP = 8, | ||
HALT = 9, | ||
SET_AIE_ITERATION = 10, | ||
ENABLE_AIE_CORES = 11, | ||
DISABLE_AIE_CORES = 12, | ||
SYNC = 13, | ||
LOOP_BEGIN = 14, | ||
LOOP_END = 15, | ||
SET_DMA_BD = 16, | ||
UPDATE_AIE_RTP = 17 | ||
uint16_t row; | ||
uint16_t col; | ||
uint16_t itr_mem_row; | ||
uint16_t itr_mem_col; | ||
uint64_t itr_mem_addr; | ||
|
||
bool is_trigger; | ||
}; | ||
} // end of namespace enums | ||
using namespace enums; | ||
struct rtp_type | ||
{ | ||
std::string name; | ||
|
||
uint16_t selector_row; | ||
uint16_t selector_col; | ||
uint16_t selector_lock_id; | ||
uint64_t selector_addr; | ||
|
||
uint16_t ping_row; | ||
uint16_t ping_col; | ||
uint16_t ping_lock_id; | ||
uint64_t ping_addr; | ||
|
||
uint16_t pong_row; | ||
uint16_t pong_col; | ||
uint16_t pong_lock_id; | ||
uint64_t pong_addr; | ||
|
||
bool is_plrtp; | ||
bool is_input; | ||
bool is_async; | ||
bool is_connected; | ||
bool require_lock; | ||
}; | ||
struct buffer_type | ||
{ | ||
uint16_t row; | ||
uint16_t col; | ||
uint16_t ch_num; | ||
uint16_t lock_id; | ||
uint16_t bd_num; | ||
bool s2mm; | ||
}; | ||
|
||
enum CMD_TYPE { | ||
ADF_GRAPH_RUN = 0, | ||
ADF_GRAPH_WAIT = 1, | ||
ADF_GRAPH_RTP_UPDATE = 2, | ||
ADF_GRAPH_RTP_READ = 3, | ||
WAIT_FOR_DMA_IDLE = 4, | ||
SET_DMA_BD_LENGTH = 5, | ||
ENQUEUE_DMA_BD = 6, | ||
LOAD_AIE_PM = 7, | ||
SLEEP = 8, | ||
HALT = 9, | ||
SET_AIE_ITERATION = 10, | ||
ENABLE_AIE_CORES = 11, | ||
DISABLE_AIE_CORES = 12, | ||
SYNC = 13, | ||
LOOP_BEGIN = 14, | ||
LOOP_END = 15, | ||
SET_DMA_BD = 16, | ||
UPDATE_AIE_RTP = 17, | ||
WRITE = 18, | ||
}; | ||
|
||
} // end of namespace plctrl | ||
|
||
} // end of pl | ||
#endif |
Oops, something went wrong.