Your question has ambiguity. If you are asking about mppt loop then it depends on what type of mppt you want to implement. For example in voltage based perturb and observe method, P&O is used to generate Maximum power point voltage reference which is further regulated by PI controller to regulate the output voltage of the PV according to the MPPT desired power level.
But if you are asking about how to further generate pwm signal then the output of your PI should be compared to a sawtooth signal. In simulink you can just input the output of PI to the DC-DC PWM block and feed the output to the switch of boost/buck converter.
If you still have questions follow these papers for details.
Article An Advanced Two-Stage Grid Connected PV System: A Fractional...
Conference Paper Particle Swarm Optimization Based DC-Link Voltage Control fo...