The input g is a Simulink control input. It is not possible to connect a resistor (physical block) to Simulink connections. If you need to model the gate driver I suggest to use the Simscape technology. Check the N-Channel IGBT block which has an electrical gate terminal:
I hope this helps.