ADSElectromagnetic

Polymorphism / Dynamic Model Selection (12)

Polymorphism / Dynamic Model Selection (12)

Previous: ADS Tutorial (XI) Resolving Differences in Ideal & Library Component Results


In this section, let’s take a look at Polymorphism / Dynamic Model Selection.

Polymorphism is often used in circuit simulation and model selection. During the simulation process, the same model interface can call different model implementations according to different conditions. This method allows designers to flexibly select and use the most appropriate model without changing the circuit schematic, so as to perform different levels of simulation and optimization at different design stages.

Dynamic Model Selection refers to the automatic selection and switching of the model that best suits the current simulation requirements according to specific conditions or requirements during the simulation process. This approach allows the model to be dynamically adjusted during the simulation to improve simulation accuracy and efficiency.

In previous experiments, we designed using ideal components, vendor-supplied components, and components with Q factors taken into account. When simulating different situations, we disabled unused sub-designs.

Polymorphism / Dynamic Model Selection (12)

But in fact, we can use the Polymorphism method to improve our simulation efficiency.

We can default to Design1 (using ideal components) as the main unit, and we name its schematic “schematic_ideal”. Then we copy the schematics in Design_Murata and Design_withQ to Design1 (right-click on the schematic and select “Copy View”), naming them “schematic_Murata” and “schematic_withQ” respectively.

Polymorphism / Dynamic Model Selection (12)

At this point, there are three schematic views in Design1:

Polymorphism / Dynamic Model Selection (12)

It can be seen from this that when we are actually designing, there is no need to create a new Cell for each design. We can just create multiple views in one Cell.

Now, back in TestBench, we delete the two subunits we added:

Polymorphism / Dynamic Model Selection (12)

At this point, we select and then left-click the Symbol of Design1 to set the view used during simulation:

Polymorphism / Dynamic Model Selection (12)

We can manually select or set some hierarchical structures to specify which view to select under what conditions. We first select “schematic_ideal”, then click “OK” and perform the simulation:

Polymorphism / Dynamic Model Selection (12)

Now we open History. Then select another view, such as “schematic_withQ”, and then simulate again:

Polymorphism / Dynamic Model Selection (12)

It can be seen that the Q factor has been considered. Similarly, we switch the view again and simulate, and we can get:

This approach can make the TestBench and Cell directories neater and easier to carry out more complex designs.


Next: Touchstone / S-Parameter files in ADS (13)

Related Articles

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker