The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 30th, 2024, 10:30am
Pages: 1
Send Topic Print
sdf delays with AMS Designer (Read 1627 times)
Cri Azzolini
Community Member
***
Offline



Posts: 48
University of Parma, Italy
sdf delays with AMS Designer
Aug 29th, 2006, 2:05am
 
Hi all,
I would like to perform mixed/mode simulations (using AMS-Designer through the Hirachy-Editor->AMS-Plugin environment) including post-layout SDF delays for verilog digital modules.
From the AMS Environment User Guide, I read that it is necessary to fill the field "AMS-Plugin->AMS Options->Elaborator->SDF annotation -> Use SDF command file" but it seems to me it is not enough since the SDF delays are not considered and all the digital gates keep their original indicative delay time (e.g. 1ns as default).
I filled the field above either with the absolute path to the SDF delay file or with a file containing only the following verilog expression:

initial $sdf_annotate("sdf_delayfile.sdf", name_top_module)

I am not sure if this file can be considered a "SDF command file" but I tried anyway Wink
In both cases the sdf delays are ignored!
I also reduced the default timescale for verilog modules in order to avoid any "delay rounding" but still it does not work.

Does anybody of you experimented such behaviour? Do you have any idea?

Thanks in advance and bye!
Cri
Back to top
 
 
View Profile WWW cri.azzolini   IP Logged
ACWWong
Community Fellow
*****
Offline



Posts: 539
Oxford, UK
Re: sdf delays with AMS Designer
Reply #1 - Aug 29th, 2006, 4:39am
 
in the SDF file inspect the code and make sure the forward slash is not escaped by a back slash first.

e.g.
Instance1\/Instance2\/ etc.

should be

Instance1/Instance2

doing a search and replace \/ with / worked for us... but i'm no expert on SDF files, so maybe yours is written ok....
Back to top
 
 
View Profile   IP Logged
Cri Azzolini
Community Member
***
Offline



Posts: 48
University of Parma, Italy
Re: sdf delays with AMS Designer
Reply #2 - Aug 29th, 2006, 7:17am
 
Hi ACWWong,
thanks for the answer but I found out that some steps are needed before to attach an SDF file to the simulation:

1) compile the SDF delay file with "ncsdfc filename.sdf" obtaining a compiled "filename.sdf.X"
2) create a SDF command file similar to the following:

// SDF command file

COMPILED_SDF_FILE = "filename.sdf.X",
SCOPE = :istance
MTM_CONTROL = "TYPICAL",

// END OF FILE

where SCOPE should be the name of the instance, to whom the SDF file is hierarchically referred to, as it appears in the top testbech file.
3) run "ncelab" with the options "-sdf_cmd_file" and "-sdf_verbose"
4) check the effectiveness of the previous step reading the logfile "sdf_annotation.log"

Unfortunately I am not able to complete this procedure beacuse I cannot find out the correct istance name for the SCOPE variable in step 2). I tried several ways but the ncelab returns to me the warning W,SDFSNF (meaning, I guess, wrong SCOPE).

Does it exist a more straightforward way to perform SDF annotation with AMS-Designer?
Did anybody make a further step?

Thanks, bye!
Cri
Back to top
 
 
View Profile WWW cri.azzolini   IP Logged
ACWWong
Community Fellow
*****
Offline



Posts: 539
Oxford, UK
Re: sdf delays with AMS Designer
Reply #3 - Aug 29th, 2006, 8:56am
 
Hi Cri,

Please read my comments to your points:

1) Yes its fine to compile the SDF file yourself, but the elaborator will compile it for you automatically if can't find a compiled version.

2) Specifying the scope depends on whether you are using verilog or vhdl. If you don't specify the scope, it means you will annotate the delays on the top level... which is probably not where your digital code is....

so for verilog, assuming Instance3 is the Instance name of the digital cell:

SCOPE = Instance1.Instance2.Instance3

for vhdl

SCOPE = :Intstance1:Instance2:Instance3

You can use the hierarchy editor in "tree" view rather than "table view" to enable you to find the correct instance path for your SCOPE command.


Anyway if you
nchelp ncelab SDFSNF you will see the warning is indeed because your instance path you specified in SCOPE did not match anything in your design heirarchy. If you make them match then it should work fine.

Cheers
aw


Back to top
 
 
View Profile   IP Logged
Cri Azzolini
Community Member
***
Offline



Posts: 48
University of Parma, Italy
Re: sdf delays with AMS Designer
Reply #4 - Aug 29th, 2006, 10:05am
 
Hi AW,

thanks again for the reply!
It seems to work! Smiley

Bye,
Cri
Back to top
 
 
View Profile WWW cri.azzolini   IP Logged
qlmei
New Member
*
Offline



Posts: 5

Re: sdf delays with AMS Designer
Reply #5 - Jan 17th, 2007, 7:05pm
 
Cri Azzolini wrote on Aug 29th, 2006, 2:05am:
Hi all,
I would like to perform mixed/mode simulations (using AMS-Designer through the Hirachy-Editor->AMS-Plugin environment) including post-layout SDF delays for verilog digital modules.
From the AMS Environment User Guide, I read that it is necessary to fill the field "AMS-Plugin->AMS Options->Elaborator->SDF annotation -> Use SDF command file"
Cri



Hi, Cri

i tried as you said, clicking Tools/Hirachy-Editor in Virtuoso Schematic Editing, but there is no AMS-Plugin windows poping out. Could you tell me more details about that? Thanks a lot
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

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

Posts: 1742
Bracknell, UK
Re: sdf delays with AMS Designer
Reply #6 - Jan 17th, 2007, 10:55pm
 
Well, you need to have an installation with AMS Designer simulator in it in your UNIX path - you'll need <IUSinstDir>/tools/bin in the path, where IUSinstDir is an installation of an IUS stream (IUS583 is the current version).

Also, you'll need a license for the AMS Environment (as well as the AMS Simulator). Alternatively, you can simulate within ADE, using "ams" as the simulator choice.

It's probably worth reading the documentation and working through the tutorial (mentioned in the documentation) if you're not familiar with AMS Designer.

Regards,

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.