0
\$\begingroup\$

So far I measured CMRR by first obtaining the open loop gain and exporting the wave, and then doing the same with the AC source in common mode, but this adds the need for additional software, and make the process difficult automatize.

I don't think there's any easy way, since the two test circuits are different (basically with the AC source connected as common or differential input), but I wondered if there is any HSPICE trick to make it work.

\$\endgroup\$
3
  • 1
    \$\begingroup\$ A trick like this? electro-tech-online.com/threads/cmrr-in-lt-spice.141348 \$\endgroup\$
    – Voltage Spike
    Commented Dec 28, 2016 at 17:50
  • \$\begingroup\$ Yes, it's quite easier to do two copies of the circuit and operate than trying to set up complex algorithms. Maybe add it as an answer so I can accept and upvote? \$\endgroup\$
    – Ironil
    Commented Dec 28, 2016 at 22:12
  • \$\begingroup\$ You can set the AC magnitudes to parameters and then rerun the simulation with .ALTER and .PARAM statements or the .STIM command. Two copies of the same circuit is undesirable for monte-carlo simulations, also it is more work and a source of human error. \$\endgroup\$
    – HKOB
    Commented Mar 23, 2018 at 22:01

1 Answer 1

1
\$\begingroup\$

I'm not very familiar with HSPICE (mainly LTSpice), but I think this can be done with .MEAS and .STEP commands, which I believe are common to both environments.

Basically, design a step command such that one run will configure the sources so as to measure differential performance, and the second run will configure them as common-mode.

Then, use a measure command to measure the output amplitudes of each run, and a second measure command to find the ratio of these two.

\$\endgroup\$
1
  • \$\begingroup\$ LTSpice has an example called LoopGain (and LoopGain2) which uses parametric sweep to enable AC sources and uses the @ operator to select outputs at various sweeps. Maybe this is also applicable in HSPICE. \$\endgroup\$
    – Mike
    Commented Dec 30, 2017 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.