AXI Manager over PCIe Example

6 views (last 30 days)
Hello,
I am trying to understand how to set up the MathWorks PCIe AXI Manager IP for Xilinx FPGAs. I read all related articles in the MathWorks website and I was able to create a Vivado project and add the IP to this project using the function "setupAXIManagerForVivado" in Matlab. I was looking at the example provided in the following article that uses a KCU116 Evaluation Kit:
However, I am not able to find the example anywhere. I tried to create it following the instructions provided in the article, but there is a file that does not exist "pcieAXIMcreateproject.tcl". I thought this was part of the HDL coder and verifier support packages, but I could not find it in my local installation, so I just want to know if this example is available anywhere as I want to undrerstand better how to set up this IP.
I am using Vivado 2022.1 and Matlab R2023b
Thank you,
  1 Comment
Andrea
Andrea on 26 Mar 2024
This is the code I used following the example:
% This script creates the pcieaximaster project (Matlab example)
%Adds Vivado 2022.1 as a HDL tool for Matlab
hdlsetuptoolpath('ToolName','Xilinx Vivado','ToolPath','C:\RW_APPS\Xilinx\Vivado\2022.1\bin\vivado.bat');
% Creates a Vivado project for this example
system('vivado -mode batch -source pcieAXIMcreateproject.tcl');
%Adds the AXI manager IP folder to the path where Vivado project is located
setupAXIManagerForVivado pcieaximaster.xpr
This is the error I get:

Sign in to comment.

Accepted Answer

Abhishek Kumar Singh
Abhishek Kumar Singh on 5 Apr 2024
Hello Andrea,
It seems like the issue you're encountering revolves around accessing the specific example and the associated pcieAXIMcreateproject.tcl file within the MATLAB environment.
To directly open the example you're referring to, you can utilize the MATLAB command window. This method ensures you're navigating to the correct example with all necessary files, including the TCL script, readily available. Please follow these steps:
1. To Open the Example in MATLAB: You can easily open the example by copying and running the following command in the MATLAB Command Window:
openExample('xilinxfpgaboards/AccessFPGAExternalMemoryUsingMATLABAsAXIMOverPCIExpressExample')
Or you can click on the "Copy Command" at the top right, paste it in the command window, and execute to access the project.
Alternatively, if you prefer to navigate to the example's directory manually to view all the files, including the TCL script:
2. To Manually Navigate to the Example Folder: The example and all related files are located in a specific directory within the MATLAB installation. You can find this directory by navigating to: Examples\R2023b\xilinxfpgaboards\PCIeAM\ from the MATLAB startup folder.
3. To Locate the TCL File Specifically: If your primary goal is to locate the pcieAXIMcreateproject.tcl file, it resides in the data subdirectory within the Xilinx examples. You can navigate to this directory using the following MATLAB commands:
folderPath = fullfile(matlabroot, 'examples', 'xilinxfpgaboards', 'data');
cd(folderPath)
These steps will guide you to the example project and the necessary TCL file, assuming all related software and packages are correctly installed and set up.

More Answers (0)

Categories

Find more on Signal Integrity Kits for Industry Standards in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!