I am running Ultrasim on hspice control file. I have following syntax in the hspice and Ultraspice does not like "?" . Error message says that "Unexpected ternary operator "?" .
My hspice deck is
.measure tran v_out find V(out) at=5n
.measure result param='(V_out > 0.4)?1:0'
Please let me know if you know how to resolve this issue.
I am trying to validate that whether V(out) is greater than 0.4V at 5ns , if yes then declare 1. I have 10 bit to 1024 decoder and I am trying to make sure that circuit is deoding properly .
If Ultrasim has similar function/syntax then it will be a great help.