title: Is there a way to enforce the simulation step to be smaller than a compile-time constant in simulink?
body: <p><strong>Question</strong></p>
  
  <p>Is there a way to enforce the simulation step to be smaller than a compile-time constant in a simulink model? </p>
  
  <hr>
  
  <p><strong>Context</strong></p>
  
  <p>I'm trying to build a PWM block on simulink. As it is now, I have to make sure that the user chooses a step size responsibly (smaller than half the period chosen by him), otherwise the block behaves abnormally. The only way I came up was to stop the simulation if the step size is not small enough, but I find that very annoying (as a user). If possible, I'd like for the user to not worry about this at all.</p>