Visible to Intel only — GUID: cpm1654721343695
Ixiasoft
1. Three-phase Boost Bidirectional AC/DC Converter for Electric Vehicle (EV) Charging Design Example Overview
2. Downloading and Installing the Design Example
3. Model Description
4. FPGA Resource Use Comparison
5. Locating Top-level VHDL Wrapper
6. Generating HDL Code with MATLAB and HDL Coder
7. Simulink Simulation Results
8. Document Revision History for AN 973: Three-phase Boost Bidirectional AC/DC Converter for EV Charging
Visible to Intel only — GUID: cpm1654721343695
Ixiasoft
6.2. Generating HDL and QPF Using MATLAB GUI Tools
This section provides instructions to generate an Intel® Quartus® Prime software project and VHDL code for the fixed-point model described in the bidir_rectifier.slx file.
Follow these steps:
- Launch the MATLAB model in the matlab/Simulink/bidir_rectifier.slx directory. The MATLAB and Simulink window launches.
- In the MATLAB interface, select the parameters.m file and click Run. This sets some necessary variables to synthesize the model.
Figure 20. Setting Up Model Variables
- Launch the Simulink window where you can see the model that is synthesized and used to generate an Intel® Quartus® Prime software project and VHDL code (bidir_rectifier_fixed).
- In the Simulink window, navigate to the HDL CODE tab and click Workflow Advisor. A warning of a missing ./top.vhd appears. Ignore the warning.
Figure 21. Workflow Advisor and Simulink GUI
- Expand the HDL Workflow Advisor tasks menu in the left-hand pane.
- Select 1.1 Set Target Device and Synthesis Tool to configure the target FPGA device and perform one of the following:
- For Intel® MAX® 10 FPGA Development Kit: Select the value for Family as MAX 10 and Device as 10M50DAF484C6GES.
- For Cyclone® V SoC Development Kit: Select the value for Family as Cyclone V and Device as 5CSXFC6D6F31C6.
- Change the Project folder to a desired project location and name.
- In the left-hand pane, select 4.1 Create Project.
Figure 22. Running Tasks in HDL Workflow Advisor
- For Additional source files, select one of the following:
- For Intel® MAX® 10 FPGA Development Kit: <local_path>/M10/top.vhd
- For Cyclone® V SoC Development Kit: <local_path>/C5/top.vhd
- For Additional project creation Tcl files, select one of the following:
- For Intel® MAX® 10 FPGA Development Kit: <local>/matlab/Simulink/m10/add_to_project.tcl
- For Cyclone® V SoC Development Kit: <local>/matlab/Simulink/c5/add_to_project.tcl
- Run tasks 1, 2, 3, and 4.1 by clicking Run This Task.
- Navigate to the project folder that you selected in step 7. The newly created Intel® Quartus® Prime software project is located in the quartus_prj directory and the generated VHDL code for the Simulink model is located in the hdlsrc directory.
- Navigate to the quartus_prj directory and open the bidir_rectifier_fixed_quartus.qpf file with the Intel® Quartus® Prime software.
- Compile the design, generate a SOF file, and program your board as described in Downloading and Installing the Design. Use Signal Tap logic analyzer to view the waveforms created by the generated VHDL code programmed in your board.