+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Newbie level 1
    Points: 48, Level: 1

    Join Date
    Sep 2019
    Posts
    5
    Helped
    0 / 0
    Points
    48
    Level
    1

    How to get phase of par equations in HSPICE

    Hi i am using HSPICE and CosmosScope to simulate the circuit and to plot the data.
    I have a question how to plot the phase of par('equation')

    For example, the magnitude ' i(R1)+i(R2) ' can be obtained from the below line.
    .print itotal = par ( ' i(R1)+i(R2) ' )

    But, I don't know how to obtain the phase of ' i(R1)+i(R2) ' Please help me.

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 17,003, Level: 31
    pancho_hideboo's Avatar
    Join Date
    Oct 2006
    Location
    Real Homeless
    Posts
    2,613
    Helped
    701 / 701
    Points
    17,003
    Level
    31

    Re: How to get phase of par equations in HSPICE

    par('atan( (ii(R1)+ii(R2))/(ir(R1)+ir(R2)) )')


    1 members found this post helpful.

--[[ ]]--