vaah
Member level 3
Hello guys,
I want to use sort of special function in a subcircuit. Let assume we have a subcircuit as specified below
.subckt res X Y param: ro=10K
R1 X Y ro
if (((X)-V(Y))>=1) .param ro= 5K
endif
.ends
It gives two errors as,
+ Syntax error in expression IF ( ( V ( X )-V(Y ) ) > 1) .PARAM RO = 5K
+ Error: signe < or > expected at IF ( ( V ( X )-V(Y ) ) > 1)
I was expecting to see these errors bu I wonder how I can do that if I don't want to use a Verilog-A model?
I appreciate your help
I want to use sort of special function in a subcircuit. Let assume we have a subcircuit as specified below
.subckt res X Y param: ro=10K
R1 X Y ro
if (((X)-V(Y))>=1) .param ro= 5K
endif
.ends
It gives two errors as,
+ Syntax error in expression IF ( ( V ( X )-V(Y ) ) > 1) .PARAM RO = 5K
+ Error: signe < or > expected at IF ( ( V ( X )-V(Y ) ) > 1)
I was expecting to see these errors bu I wonder how I can do that if I don't want to use a Verilog-A model?
I appreciate your help
Last edited: