Bruno8124
Newbie level 4
Hi,
I am trying to create a simulation of a power stage of a boost converter in ModelSim to further create a PID controller on FPGA. I have written differential equations that describe a boost converter and created a testbench for simulation. Unfortunately output signals (inductor current and output voltage) does not match those from adequate model from Simulink, for example inductor current reaches large negative values. Can you help me find mistakes in my files? I manually set simulation time in ModelSim (typically 50ms). Below I attach screens from ModelSim and Simulink (inductor current) and simulation files. Thanks in advance.
I am trying to create a simulation of a power stage of a boost converter in ModelSim to further create a PID controller on FPGA. I have written differential equations that describe a boost converter and created a testbench for simulation. Unfortunately output signals (inductor current and output voltage) does not match those from adequate model from Simulink, for example inductor current reaches large negative values. Can you help me find mistakes in my files? I manually set simulation time in ModelSim (typically 50ms). Below I attach screens from ModelSim and Simulink (inductor current) and simulation files. Thanks in advance.