The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 20th, 2024, 9:22pm
Pages: 1
Send Topic Print
switch-capacitor simulation problem (Read 3671 times)
senyou78
New Member
*
Offline



Posts: 9
germany
switch-capacitor simulation problem
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]
Back to top
 

DT_mod1.jpg
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: switch-capacitor simulation problem
Reply #1 - 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.
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.