I think u can not write a transfer function for a PWM block. But u can create one easily. Create a counter which runs perpetually. (In the diagram i have not limited it's output but it is essential or u will get very large pulse width ;) )Then compare it's output with incoming signal thats all!