Executable Usage - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
  • Work Directory(Step 1)

The steps for library download and environment setup can be found in l1_vitis_motorcontrol. For getting the design,

cd L1/tests/IP_PWM_GEN
  • Run and Build IP(Step 2)

Run the following make command to build your IP targeting a specific device. Please be noticed that this process will take a long time, maybe couple of minutes.

make run CSIM=1 CSYNTH=1 COSIM=1 XPART=xc7z010-clg400-1
make run VIVADO_SYN=1 VIVADO_IMPL=1 XPART=xc7z010-clg400-1

Note: Default arguments are set in run_hls.tcl

  • Example output(Step 2)
SIM_SVPWM: --------------------------------------------------------------------------------------------------------------------------------------------------------
SIM_SVPWM: Item:  | Vcmd_a    High% Low% Dead%  High   Low  Dead  | Vcmd_b    High% Low% Dead%  High   Low  Dead  | Vcmd_c    High% Low% Dead%  High   Low  Dead
SIM_SVPWM: --------------------------------------------------------------------------------------------------------------------------------------------------------
SIM_SVPWM:    0   | 0.0 (V)    49%   49%    0%  2499  2491    10  | 0.0 (V)    49%   49%    0%  2499  2491    10  | 0.0 (V)    49%   49%    0%  2499  2491    10
SIM_SVPWM:    1   | 7.4 (V)    74%   24%    0%  3742  1248    10  | -14.1(V)   25%   74%    0%  1257  3733    10  | 6.6 (V)    72%   26%    0%  3644  1346    10
SIM_SVPWM:    2   | 14.0(V)    74%   24%    0%  3747  1243    10  | -7.6(V)    25%   74%    0%  1252  3738    10  | -6.5(V)    27%   72%    0%  1382  3608    10
SIM_SVPWM:    3   | 8.2 (V)    75%   24%    0%  3785  1205    10  | 5.6 (V)    69%   30%    0%  3481  1509    10  | -14.0(V)   24%   75%    0%  1214  3776    10
SIM_SVPWM:    4   | -8.0(V)    24%   75%    0%  1230  3760    10  | 14.0(V)    75%   24%    0%  3769  1221    10  | -6.1(V)    28%   70%    0%  1447  3543    10
SIM_SVPWM:    5   | -14.1(V)   25%   74%    0%  1268  3722    10  | 6.7 (V)    73%   26%    0%  3666  1324    10  | 7.2 (V)    74%   25%    0%  3731  1259    10
SIM_SVPWM:    6   | -7.3(V)    25%   74%    0%  1268  3722    10  | -6.8(V)    26%   73%    0%  1333  3657    10  | 14.0(V)    74%   25%    0%  3731  1259    10
SIM_SVPWM:    7   | 6.2 (V)    71%   28%    0%  3579  1411    10  | -14.1(V)   24%   75%    0%  1235  3755    10  | 7.8 (V)    75%   24%    0%  3764  1226    10
SIM_SVPWM:    8   | 24.0(V)    49%   49%    0%  2499  2491    10  | 24.0(V)    49%   49%    0%  2499  2491    10  | 24.0(V)    49%   49%    0%  2499  2491    10
SIM_SVPWM:    9   | -24.0(V)   49%   49%    0%  2499  2491    10  | -24.0(V)   49%   49%    0%  2499  2491    10  | -24.0(V)   49%   49%    0%  2499  2491    10


SIM_SVPWM: **************************************     Global Const Parameters    ****************************************************
SIM_SVPWM: ** NAME              Type         Hex Value        Physic Value   Unit           ValueFormat      Command-line
SIM_SVPWM: ** TESTNUMBER        const        0x       a                 10                     long
SIM_SVPWM: ** clock_freq.       const        0x 5f5e100                100   MHz                int
SIM_SVPWM: **************************************************************************************************************************

SIM_SVPWM: **************************************************************************************************************************
SIM_SVPWM: ---------------------------------------------    PWM_GEN SECTION   ---------------------------------------------------------
SIM_SVPWM: ******************************************      AXI-lite Parameter    ******************************************************
SIM_SVPWM: ** stt_pwm_cycle     Read         0x    1388               5000   cycle of clk_fq    int
SIM_SVPWM: ** args_pwm_freq     Write        0x    4e20              20000   Hz                 int          [-pwm_fq <pwm frequency>]
SIM_SVPWM: ** args_dead_cycles  Write        0x       a                 10   cycle of clk_fq    int          [-dead <dead cycles>]
SIM_SVPWM: ** args_phase_shift  Write        0x       0         SHIFT_ZERO                                   [-shift_0/-shift_120]
SIM_SVPWM: ** args_sample_ii    Write        0x    1388               5000                      int          [-ii <sampling II>]
SIM_SVPWM: ** args_sample_ii    IMPORTANT NOTICE for value setting:
SIM_SVPWM: **                   for CSIM      = 1
SIM_SVPWM: **                   for COSIM     default value is 1.
SIM_SVPWM: **                   for HW run    '1' is better to avoid backpressure to upstream ADC
SIM_SVPWM: ---------------------------------------------      PWM_GEN END   ---------------------------------------------------------
SIM_SVPWM: **************************************************************************************************************************
SIM_SVPWM: All 10 commands' waveform data can be found in file wave_all10
SIM_SVPWM: csim.exe [-shift_0/-shift_120] | [-dc_adc/-dc_ref] | [-pwm_fq <pwm frequency>] | [-dead <dead cycles>] [-ii <sampling II>]
SIM_SVPWM:          [-v0/-v1/-v2] #for selecting different test vector

INFO [HLS SIM]: The maximum depth reached by any hls::stream() instance in the design is 50000
INFO: [SIM 1] CSim done with 0 errors.
INFO: [SIM 3] *************** CSIM finish ***************