The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 12th, 2024, 10:02am
Pages: 1
Send Topic Print
switch model (Read 11892 times)
morozmoroz
New Member
*
Offline

I need everything be
in behavior:)

Posts: 7
Ukraine, Kiev, Melexis
switch model
Jul 03rd, 2007, 8:10am
 
Hello, guys! Smiley
I have such problem:
I try to make instance of switch module in verilogA code like this:
switch #(.vth(0.5)) sw1 (in,out, cp,cn);

But when I run simulation Cadence just says me that parameter vth is not legal for swith. I have tried to
find description of this module but found only in veriaref.pdf that vth is legal.
So, could you help me with this - where I can find description of parameter for all possible basic includive
modules? (and if possible - where are they in standart Cadence hierarchy?).
Big thanks in advance, Denis.
Back to top
 
 

Look to the Root - The Flower of the Life if there Smiley
View Profile 304377506   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: switch model
Reply #1 - Jul 3rd, 2007, 10:59am
 
Hi Denis,
morozmoroz wrote on Jul 3rd, 2007, 8:10am:
I try to make instance of switch module in verilogA code like this:
switch #(.vth(0.5)) sw1 (in,out, cp,cn);

Which implementation of switch do you use?
For your code to work, it must have a parameter vth... analogLib.switch, for example, does not have vth, but vt1 & vt2 (cf. CDF parameters of the cell).

Hope this helps...
BOE
Back to top
 
 
View Profile   IP Logged
morozmoroz
New Member
*
Offline

I need everything be
in behavior:)

Posts: 7
Ukraine, Kiev, Melexis
Re: switch model
Reply #2 - Jul 4th, 2007, 12:25am
 
Yes, I have tried and vt1, vt2 parameters too, but the error is the same. that's why i began to think that this switch is not from analogLib, may be it is from some internal directory of VerilogA compiler. I made like this because I found it in Ken book (The deigners guide to VerilogAMS) about resistor. But I have not found resistor name in analogLib, but in sample lib. So, now I am absolutely confused.
Look forward to hear from anyone Smiley
Back to top
 
 

Look to the Root - The Flower of the Life if there Smiley
View Profile 304377506   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: switch model
Reply #3 - Jul 5th, 2007, 2:23am
 
Hi Denis,
The cell "analogLib switch" (used in a schematic) is netlisted as "relay", so if you use (say)
 relay #(.vt1(0.5), .vt2(1)) sw1 (in,out, cp, cn);
it simulates...
I haven't checked the result though...

BOE
Back to top
 
 
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: switch model
Reply #4 - Jul 5th, 2007, 5:24am
 
morozmoroz wrote on Jul 4th, 2007, 12:25am:
[...]
But I have not found resistor name in analogLib, but in sample lib. So, now I am absolutely confused.

"analogLib res"  is netlisted to a Spectre "resistor", as "analogLib switch" is mapped to a Spectre "relay"...
This is defined using CDF parameters.

BOE
Back to top
 
 
View Profile   IP Logged
morozmoroz
New Member
*
Offline

I need everything be
in behavior:)

Posts: 7
Ukraine, Kiev, Melexis
Re: switch model
Reply #5 - Jul 6th, 2007, 1:06am
 
Thanks a lot, especially to boe.
This forum is great Smiley
Back to top
 
 

Look to the Root - The Flower of the Life if there Smiley
View Profile 304377506   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.