Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to do a power sweep (in W or dBm) for HSPICE?

Status
Not open for further replies.

robertbagundol

Newbie level 4
Joined
Aug 13, 2018
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
54
Hello. I'm very confused as to how to do the input power sweep for our rectifier. We want to know the PCE (Power Conversion Efficiency), and it shows that the X-axis is in terms of power. Our professor told us that we use a power source for this, since in analogy, if we have a voltage source then we can sweep in terms of voltage. With this logic, if we have a power source, we can sweep in terms of power. But we find it very difficult to do.
 

Surely read document of HSPICE.

Simply use Power Source.

If Power Source is not available in your environment, use Voltage Source with amplitude defined by power.
Code:
.PARAM ZC = 50
.PARAM F = 800MEG
.PARAM PIN = -35   $ [DBM]
.PARAM AMTR = '2 * SQRT(10 ** (PIN / 10) * ZC * 2.0E-3)'    $ PEAK VALUE
.PARAM AMAC = '2 * SQRT(10 ** (PIN / 10) * ZC * 1.0E-3)'    $ RMS VALUE
VIN  1  0   SIN(0 AMTR F 0)    AC = AMAC
RG   1  2   ZC
RL   2  0   ZC
 

Attachments

  • 180829-193350.png
    180829-193350.png
    104.1 KB · Views: 131

If your simulator lacks a "power" source then you could just
sweep V or I and -measure- the input as well as output
power, and choose the Pin result as your X-axis for plots,
pick off Pout as a compound .measure (use cross() to find
the Vsweep point for a spec Pin value, then measure Pout \
at the found Vsweep).
 

Thank you very much for this sir. But may I ask how do I put the values of Pin in my X-axis? What kind of analysis would I use for this? (.DC, .AC, or .TRAN)

Can you give me a sample code for this sir? Just a simple example sir just to get the idea.
 

If you can plot Pin then in Cadence, just right-click the X
axis and choose that vector instead of "time" or "frequency"
(whatever your simulation goal prefers).

HSpice, I know nothing. But I'd bet you can "printvs to file"
(or display, copy, paste) somehow. In another tool I just go
to the output file, copy/paste to a .txt file and import to
Excel in the usual way.


Or export Pin and Pout vectors and use some other tool
(Excel?) to plot.
 

If I have a power source, what kind of analysis would I use (.DC, .AC, or .TRAN) for me to sweep it in terms of power?
 

Surely read document of HSPICE.

If you read document of HSPICE, your questions are resolved since your questions are all very easy things.
 

Attachments

  • 180831-182125.png
    180831-182125.png
    93.5 KB · Views: 133

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top