• 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. Custom IC Design
  3. Switching from voltage source to high impedance port in...

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 129
  • Views 3612
  • 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

Switching from voltage source to high impedance port in VerilogA: Convergence problem

mohthi3
mohthi3 over 1 year ago

For my VerilogA testbench, I need a port that can act as both a voltage source, and as a high impedance.
As far as I know, there are two ways to implement a high impedance, either by assigning a 0 (or very close to 0) current to the port, or using a very high resistor value. (ex: V(port,n)<+I(port,n)*R_big  ).

Given that there is no way to use a transition while switching between current and voltage source, I went for the second way.
The problem is that when switching from a current source to high impedance, I have convergence issues. My code looks something like this:



if(write=0) begin
temp=I(port,n)*R_big;
end

else begin
temp=A_Value;
end

V(port,n)<+transition(temp,0,1n);

For more context, my ultimate goal is to be able to both charge a capacitor and sense it's voltage, through a transmission gate.
Trying the same approach with different simpler circuits, and it doesn't seem to give a problem.
I tried adding resistors to help in converging, doesn't seem to help much.

Any help would be appreciated.
Thank you.

  • Cancel

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