
In addition to the areas, the range is treated as an adjustable parameter. seven-to-one.Īnother way to tackle this problem with the MacSpice optimizer would be to treat it as a two-parameter optimization. The best value of the varied parameter p corresponds to a ratio of areas for the “N” and “1X” transistors of (1+ p )/(1− p ) = 7.08, i.e. The results are as follows: MacSpice 1 -> source Sauer:diffpair-optim.srcCircuit: diffpair ckt - offset differential pairOptimize begins:Plotname: optim1Method: Nelder-Mead SimplexCost function: Sauer:diffpair-cost.srcParameter(s): pStop when: ( Nevals > 100 ) or ( ÄCost This invokes the optimizer, and plots a sweep corresponding to the best value found. The plot created by the DC sweep is destroyed before returning, in order to conserve memory.ģ. It sets the cost to the value of the sweep variable at this point, and negates the optimizer minimizes cost, but we want the largest range. Starting at the zero-input gain, the procedure works along the sweep until the it finds the point where the variation in the gain is just within the specification set by the variable $ripple, 2dB in this case. It calculates the 'gain' of the amplifier from the derivative with respect to the sweep. If so, it alters the transistor areas, keeping the total area constant, and performs a DC sweep. This checks that the value of the parameter p, set by the optimizer, lies in an appropriate range. The cost function procedure 'diffpair-cost.src' If you do not allow these cookies, you will experience reduced relevant content.The spreadsheet seemed to be a generic tool, so I've used a guessed model for the transistors, and named it 'generic'.Ģ. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. They may be used by Analog Devices to build a profile of your interests and show you relevant content on our site. Targeting Cookies: These cookies may be set through our site by Analog Devices and our service providers. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance. All information these cookies collect is aggregated and therefore anonymous.

They help us to know which pages are the most and least popular and see how visitors move around the site. Performance Cookies: These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. If you do not allow these cookies then some or all of these services may not function properly. They may be set by us or by third party providers whose services we have added to our pages. Functional Cookies: These cookies enable the website to provide enhanced functionality and personalization. These cookies do not store any personally identifiable information.

You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. Strictly Necessary Cookies: (Always Active) These cookies are necessary for the website to function and cannot be switched off in our systems. After we finish updating our website, you will be able to set your cookie preferences. Analog Devices is in the process of updating our website.
