The obtained FPGA (Hardware-in-the-loop) output waveform is inconsistent with Simulink simulation results.

3 views (last 30 days)
We combined Xilinx Zynq-7000 ZC702 Evaluation Kit and SImulink for HIL (Hardware-in-the-loop) simulation. The specific process is as follows: 1. Transform the power electronic model built in Simulink into a state-space model. 2. Run the state space model through HDL workflow to generate bit flow, and select IPcore mode. 3. Download the bitstream to the development board. Finally run and find the obtained FPGA output waveform is inconsistent with Simulink simulation results.

Accepted Answer

Kiran Kintali
Kiran Kintali on 17 Sep 2023
Edited: Kiran Kintali on 25 Sep 2023
Using Simulink / Simscape for modeling and targeting a State space model to FPGA hardware is well established HDL Coder workflow. Please find the attached examples.
Can you please reach out to tech support for additional debugging on this issue?
  3 Comments
ZhiHao
ZhiHao on 13 Oct 2023
Also, the version of Vivado I'm using is 2018.3 and the version of matlab is R2019b, it seems that these two versions are not matching, will this have any effect on the simulation results? If there is an effect, which Vivado version should I use?
Kiran Kintali
Kiran Kintali on 13 Oct 2023
Those are really old versions than the latest MATLAB R2023b release. You can check the tested tool versions here and reach out to tech support.
https://www.mathworks.com/help/releases/R2023a/hdlcoder/gs/language-and-tool-version-support.html

Sign in to comment.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!