Hi, recently I tried to simulate d-flip flop in HSPICE. I follow steps from this website (https://wenku.baidu.com/view/7843ef0bbb68a98271fefac4). I try to implement it in my netlist and it worked except for hold rise. I cant figure what's the problem, is it my code or the d-flip flop is acting weird.
The problem is the setup time. I use pushout 1% during simulation of setup time, then when I used back value I get to calculate hold time the output will be same as the picture.
So I ran the simulation again without any pushout, means the max time for setup time. Used that value for hold time which gave me the stable output. :-D