Quantcast
Channel: Cadence RF Design Forum
Viewing all articles
Browse latest Browse all 956

How to configure the simulation (netlist) to run multiple SP analysis by only one simulation call (for LNA for instance)?

$
0
0

Hi Guys,

I have a LNA design including inductors L1, L2, L3 and MOSFETs M1, M2, and a Voltage bias, Vb1.

I want to generate a very big netlist that includes 100 combinations of my device parameters, and 100 SP and SP-noise analysis should be set accordingly.

This is different from the sweep analysis which takes variables, like, Vb1, from a certain voltage to another voltage, like 300mV to 1V with a linear step size for example.

The 100 combinations of parameters are discrete values that are generated by my script.

Simply put, I want to have 100 LNA designs prepared (e.g., in the netlist 'input.scs') and only call one simulation command (e.g., 'Spectre input.scs'), and let 100 SP analysis running by one simulation call.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

1. Actually I reached my purpose for dc, ac, transit analysis, but I do not know how to do the configuration it for SP analysis.

For ac, I define 100 sub-circuits and use one ac simulation configuration: "ac ac start=1 stop=5G annotate=status"

For one exampliar SP analysis configured as follows, I had one LNA subcircuit1 with Port: In: PORTA_1 Out: PORTB_2. I tried to give another LNA design as a "subcircuit2" and add "PORTA_2" "PORTB_2" for my second LNA design in the sp configuration between the "[" "]" . I do not know if this is good or not. But I got no error and simulation is actually successful. In addition, I do not know how to get the simulation results for each subcircuit in terms of Gain, NF, S11, S22. (Extracting the simulation results for each different LNA design is another problem by referring to point 2)

"sp sp ports=[PORTA_1 PORTB_1] start=1G stop=10G step=0.05G donoise=yes oprobe=PORT1 iprobe=PORT0 annotate=status"

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2. For extracting simulation result for dc, ac, and transit, I just define100 subcircuits with their own design parameters in the netlist. Like using different design name and net name to distinguish design_1, design_2, ... design_100. Then I could extract the result for the 100 different Gain for my 100 Op-amp designs for example:

DC Gain1=value(dB20(-(VF("Vout_1") / (VF("Vin+_1") - VF("Vin-_1")))) 1 ), Gain2 = value(dB20(-(VF("Vout_2") / (VF("Vin+_2") - VF("Vin-_2")))) 1 ),....and so on for Gain100.

For LNA , the Gain expression = value(db(sp(2 1 ?result "sp")) 5G), it does not involve any net name or sub-circuit name. Hence, I cannot specify Gain1, Gain 2, ...Gain100 by using different net name.

The reason for doing this is to avoid some extra time including checking license, loading the environment, etc. I did save a lot of time for my previous practice.

Anyone knows how to configure this for SP analysis? Or Is it possible for SP analysis, which is my greatest doubt? (I guess SP is very different from all other analysis which does not save the SP information for each net/subcircuit, it only have one result ( one group of S11,S22,S12,S21) regardless of the number of subcircuit involved.)

Thank you for any reply.

Alex


Viewing all articles
Browse latest Browse all 956

Trending Articles