Hi, ankitgarg0312~
I am so happy that finally someone answers me!!!
Thank you so much for helping me! It works now~ I am so happy now~
Actually, I also simulate the subckt by itself, just connect it to Vin, gnd, .etc. Although it can give me the right answer, it's a inconvenient way. Your way is smarter~~~Thank you again!
happystar
Added after 21 minutes:
Oh, btw, I have another question.
Actually r1 is not a parameter but an element. Its value is defined as 'max(0.001, prbot)', where "prbot" is a parameter.
I found that if I directly use
.print par('max(0.001, XMIMCAP.prbot)')
It would generate the right answer.
But if I define a parameter named r1 first, then print, it won't work.
.param r1='max(0.001, XMIMCAP.prbot)'
.print r1
What's wrong with my second version?
I will really appreciate if you can solve my second question. Thanks!!!