Also you have to adapt the rise time of the input ...
# magic
t
Also you have to adapt the rise time of the input to be realistic with what you get at the output of your gate.