• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. RF Design
  3. Complex-constant multiplier in VerilogA

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 64
  • Views 18043
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Complex-constant multiplier in VerilogA

RFStuff
RFStuff over 11 years ago

 Dear All,

I am doing a PSS+PNOISE simulation of a circuit in Spectre.

I need to multiply the output voltage of certain terminals with Complex Constant ( exp(j*pi/4)=0.707+0.707i).

This I don't want for post-processing ( which can be easily done using Ocean Script).

I want it on the fly of simulation.

Is there any ways of achieving this in VerilogA.

Kind Regards,

  • Cancel
Parents
  • J S Mason
    J S Mason over 9 years ago

    Hi Andrew,

     I am using the ac simulation just to work with ac values so as you say there are no dc components involved. The outputs are two sinusoidal waveforms, one having a phase shift relative to the other, when you multiply these together then there will be a dc component  in additional to the ac component.

    Using the calculator to do the multiplication should allow this fixed component to measured if the multiplication was actually being done on the two ac inputs as complex variables, eg you were multiplying together Asin(wt) and Bsin(wt-theta) where these represent the multiplier inputs in1 and in2. In the calculator I am doing the multiplication on the signal by using VF("/in1")*VF("/in2") and I am wondering whether this takes into account the complex nature of the two signals fully. 

     In one of your previous appends you mentioned a complex function and I wondered whether I should be referencing the output signals of the simulation ( in1 and in2 ) in a different way to get a correct multiplication of these complex variables. If this was happening correctly then I think just taking the real component of the output should provide this dc component.

    Thanks, James

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • J S Mason
    J S Mason over 9 years ago

    Hi Andrew,

     I am using the ac simulation just to work with ac values so as you say there are no dc components involved. The outputs are two sinusoidal waveforms, one having a phase shift relative to the other, when you multiply these together then there will be a dc component  in additional to the ac component.

    Using the calculator to do the multiplication should allow this fixed component to measured if the multiplication was actually being done on the two ac inputs as complex variables, eg you were multiplying together Asin(wt) and Bsin(wt-theta) where these represent the multiplier inputs in1 and in2. In the calculator I am doing the multiplication on the signal by using VF("/in1")*VF("/in2") and I am wondering whether this takes into account the complex nature of the two signals fully. 

     In one of your previous appends you mentioned a complex function and I wondered whether I should be referencing the output signals of the simulation ( in1 and in2 ) in a different way to get a correct multiplication of these complex variables. If this was happening correctly then I think just taking the real component of the output should provide this dc component.

    Thanks, James

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information