The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> switch-capacitor simulation problem
https://designers-guide.org/forum/YaBB.pl?num=1177054990

Message started by senyou78 on Apr 20th, 2007, 12:43am

Title: switch-capacitor simulation problem
Post by senyou78 on Apr 20th, 2007, 12:43am

hi,
I am trying to simulate Discrete time 1st order delta_sigma Modulator using switch-capacitor(circuit from the book of RICHARD SCHREIER<Understanding Delta-Sigma Data Converter>),
I used this switch code(verilog-A):
include "constants.vams"
`include "disciplines.vams"

module swir(pc,nc,p,c);
 input pc , nc;
 inout p, c ;
 electrical pc,nc,p,c;
  branch (p, c) zei , zev;

 parameter real vth =0.6;
 parameter real dir = +1  from [-1:1] exclude 0;
 analog begin

   @(cross(V(pc,nc)-vth, dir)); // for timestep control

   if(V(pc,nc) > vth)  
    V(zev) <+ 0;
   else
    I(zei) <+ 0;
 end
endmodule
the schematic of my design is below
and when I simulate the circuit I get this error:
   only one connection to nde`I124.net014''
Fatal error found by spectre during topology check.
   the following branches form a loop of rigrid branches(shorts) when added to  
      th e circuit:
      V5:p (from net 0156 to 0)
      V4:p (from net 0156 to Vref-)
      V0:p (from U+ to net  0107)
       I186:zerov_flow (from Vref- to net87)
       I188:zerov_flow (from net0123 to net0151)
       I189:zerov_flow (from net0123 tonet0167)


I connect the control of the switch one pin to the ground and the oder to phi (Vpulse voltage)!
I wanted also to simulate just one switch connected to the capacitor ,I had also an error--> branches form a loop of rigrid branches(shorts)when added the circuit:
V0:p (from _net0 to 0)


so I dont know how to solve this problem ?--> switch connected to the  capacitor
can somebody help me to solve this problem?
thanks
best regards
senyou78
[/img][/img][/img]

Title: Re: switch-capacitor simulation problem
Post by Andrew Beckett on Apr 20th, 2007, 1:47am

A loop of rigid branches indicates you have a loop made up of voltage sources. I suggest you look at all the instances listed in the loop (it's hard to figure out what they are from your picture), and try to figure out where the loop is - and if this results in a loop of voltage sources (obviously you can't have ideal voltage sources in parallel).

Andrew.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.