sutapanaki
Advanced Member level 4
Hi,
I have a circuit that basically produces pulses with a pulse width depending on a control voltage. I use spectre to simulate it. I need to simulate the variation of the pulse width w.r.t. power supply variations. My idea was (and I may be wrong here) to perform pss-pac simulation having an ac voltage at the supply. For that I created a veriloga block which I included in the circuit. That block measures the pulse-width and outputs that value as an output voltage. The problem is that if I use last_crossing in combination with @ cross for better accuracy, pss doesn't like it and says there are hidden states. If I use only last_crossing then simulation goes through but the pulse-width the pss extracts is wrong.
I would appreciate if someone can suggest a way to perform that pulse-width measurement.
Thank you in advance.
I have a circuit that basically produces pulses with a pulse width depending on a control voltage. I use spectre to simulate it. I need to simulate the variation of the pulse width w.r.t. power supply variations. My idea was (and I may be wrong here) to perform pss-pac simulation having an ac voltage at the supply. For that I created a veriloga block which I included in the circuit. That block measures the pulse-width and outputs that value as an output voltage. The problem is that if I use last_crossing in combination with @ cross for better accuracy, pss doesn't like it and says there are hidden states. If I use only last_crossing then simulation goes through but the pulse-width the pss extracts is wrong.
I would appreciate if someone can suggest a way to perform that pulse-width measurement.
Thank you in advance.