The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 21st, 2024, 8:27am
Pages: 1
Send Topic Print
Spice model (Read 5649 times)
Michele Marino
Guest




Spice model
Nov 21st, 2005, 12:38am
 
Hello, I´m a problem with Spice library´s conversion. I must convert the THS3202 library and my problem is on this piece of netlist:

.SUBCKT cswil 1 2 3 4  
+ PARAMS:
+ IL = 800u ;
v1  1 2 0
Gout 3 4 value={limit(I(v1),IL,-IL)} ;
.ENDS cswil

Can you help me?

Thanks, Michele.
Back to top
 
 
  IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Spice model
Reply #1 - Nov 22nd, 2005, 4:56am
 
What are you trying to convert it to?  Spectre's VCCS has min and max parameters that should deal with what you have.

I'm a little confused by the subckt, though: a G element is a VCCS (voltage-controlled current source), but it is sensing a current I(v1),
which makes it look like it should be a current-controlled source.
Is it a CCCS or a CCVS??
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Michele Marino
Guest




Re: Spice model
Reply #2 - Nov 22nd, 2005, 5:17am
 
This is the original model from Texas Inst. site:

.SUBCKT cswil 1 2 3 4  
+ PARAMS:
+ IL = 800u ;
v1  1 2 0
Gout 3 4 value={limit(I(v1),IL,-IL)} ;
.ENDS cswil
It seem that Gout is controlled by current and not by voltage. Please help me.

Michele.
Back to top
 
 
  IP Logged
mmelectronics
New Member
*
Offline



Posts: 2

Re: Spice model
Reply #3 - Nov 22nd, 2005, 5:26am
 
So this is the calling to the subckt:

X_U5         VCC A VCC HIZ CSWIL PARAMS:  IL=3000U
Back to top
 
 
View Profile   IP Logged
mmelectronics
New Member
*
Offline



Posts: 2

Re: Spice model
Reply #4 - Nov 22nd, 2005, 8:44am
 
How I can explain the current that flow in a component with spectre syntax?

Thanks, Michele.
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Spice model
Reply #5 - Nov 30th, 2005, 12:47pm
 
subckt CSWIL (1 2 3 4)
 parameters IL = 800u
CCS (3 4 1 2) cccs gain=1 min=-IL max=IL
ends CSWIL

This should do it. The subckt you had shorted terminals 1 and 2 (through v1), measured this current, clamped it between +/- IL, and output that current.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
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.