SystemModeler: a block to generate a boolean constant on detecting a pulse

I need to create a block that generates a boolean constant for a given time on detecting an instantaneous boolean pulse. I have no idea where to start. Pease help.

Thanks.

Take a look at the components used in BooleanNetwork, this might help you.