Using digital control for implementing buck converter in PSIM

Hello, I would like to ask, the implementation of digital control buck through psim, the simulation can be completed, but the code is not implemented on the physical circuit.
The situation is that input is equal to output.
How to solve it?
Thanks.