Is there any solution to generate a simscape model compatible with HDL coder? Or how to use basic simulink block to build a simscape simulation model, for example full bridge inverter or buck converter.
There is a shipped tool called Simscape HDL Workflow Advisor. Using this tool, you should be able to convert your Simscape model to HDL code. The following documentation page provides a good starting point: