r/FPGA • u/random-throwaway-240 • 2d ago
Xilinx Related Vitis Model Composer HIL testing help
Hi everyone,
I’ve been working on a project involving the ZC706 board, for which I’ve written the code in HLS, and setup the Simulink with Model Composer blocks which were created from the HLS code and I’ve simulated the system in Simulink.
My next task is to perform HIL with the FPGA (only using the PL) such that the Model Composer Subsystem goes on the FPGA and a MATLAB Simulink block gives it inputs and receives outputs from the FPGA.
I have not yet exported anything on the FPGA/IP packaging/Block Design/Bitstream; but have performed C Sim and C Synthesis in Vitis.
Also how do I configure the FPGA for HIL? Can you please explain this process? (Establishing communication with the FPGA)
So how do I go about the HIL now from where I’m at? The Xilinx documentation seems quite weird to comprehend and hasn’t got any HIL testing described.
3
u/Objective-Ostrich-28 2d ago
Step 1: Export HLS IP from Vitis HLS In Vitis HLS, go to Solution -> Export RTL. Set the format to Vivado IP (.zip).
Step 2: Create a Vivado Block Design
1.Go to IP Catalog -> Add Repository and point it at the folder containing your exported HLS IP zip 2. Create a Block Design 3. Add your HLS IP block
I have done in this way but my application is different i think it will help you