首页 AMS_Designer

AMS_Designer

举报
开通vip

AMS_Designer AMS Designer User Guide: PLL Modeling IEE 5644 Mixed-Signal IC Design and Laboratory National Chiao-Tung University Department of Electronics Engineering ...

AMS_Designer
AMS Designer User Guide: PLL Modeling IEE 5644 Mixed-Signal IC Design and Laboratory National Chiao-Tung University Department of Electronics Engineering Chi-Wei Fan 1 1. Getting Start z Copy the file need for Demo % cp ~msic/Tools_Course/AMS_DEMO.tar z Extract the archive % tar xvf AMS_DEMO.tar z Change the directory to working directory % cd AMS_DEMO z Start the AMS environment % icms& Chi-Wei Fan 2 2. Files Required for Simulation z Environment Definition file The hdl.var file sets options and switches used by the simulator. Typical hdl.var file looks like : SOFTINCLUDE /home/user/eda/solaris/cadence_2003/LDV/LDV40/tools.sun4v/inca/file/hdl.var # include default setup DEFINE ncuse5x # set library structure for 5.X. The 5.X format is a Cadence library standard directory structure, # where each cell is reference by library.cell:view . DEFINE cdslib ./cds.lib # include libraries Define NCVLOGOPTS -linedebug –messages # tell ncvlog to compile the code in a manner that allows setting breakpoint in the analog and # digital code in the Cadence AMS Simulator Windows Define NCVHDLOPTS -V93 -linedebug –messages # tell ncvhdl to compile the code in a manner that allows setting breakpoint in the analog and # digital code in the Cadence AMS Simulator Windows DEFINE WORK PLL_examples # setting current working library DEFINE MODELPATH ./model/logs353va.scs(tt) # include models need for transistor level simulation z Analog Primitive Table files Cadence Verilog-AMS use an Analog Primitive Table file to identify which devices are analog primitives or subcircuits rather than Verilog modules. Use genalgprim command to create a primitive table from an existing Spectre model file. % cd model % genalgprim logs353va.scs (or ./gen_apt instead) z Connect module Connect module connect analog and digital blocks to translate one domain to the other. Connect module include a D-to-A converter (logic2elect.v), a A-to-D converter (elect2logic.v) and a connecting rule definition module (crules.v). Use ncvlog to compile these files. Chi-Wei Fan 3 % ncvlog -ams -use5x ./connect_lib/crules.v % ncvlog -ams -use5x ./connect_lib/elect2logic.v % ncvlog -ams -use5x ./connect_lib/logic2elect.v (or ./ compileConnect instead) Chi-Wei Fan 4 3. Binding Cells for Simulation In DFII window, create a new cell (File>new>cell view), as shown in Fig. 2. Fig.1 DFII window Choose the Tool to Hierarchy-Editor and fill in the Cell Name blank with PLL. Fig.2 Create a config view cell Chi-Wei Fan 5 Click Browse button in New Configuration window Fig. 3 New Configuration window Select PLL>schematic Fig. 4 Select a cell for simulation Chi-Wei Fan 6 Click Use Template button in New Configuration, select Name as AMS as shown in Fig. 5. Fig. 5 Use Template window Right click the View Found, and select each cell with the cell view shown in Fig. 6. The View to Use is the view used during simulation. Fig. 6 Hierarchy-Editor Chi-Wei Fan 7 Fig. 7 Update the settings Click on the update icon to save the settings. Chi-Wei Fan 8 4. Running AMS Designer In the Hierarchy-Editor window, click on Plug ins > ams. The AMS toolbar menu will now appear towards the left on the menu bar as shown in Fig. 8. Fig. 8 Hierarchy-Editor Click on the AMS menu> Run Directory… Chi-Wei Fan 9 Fig. 9 AMS run directory A default run directory appear as $AMS_DEMO/ PLL_run, then click on OK. Run directory will receive: z simulation output files z log files produced during simulation flow z environment files related to form settings z waveform data z simulation control files z SimVision script files Chi-Wei Fan 10 Pull down AMS>Options>Complier in Hierarchy-Editor window. Use the Browse button under hdl.var file, select the hdl.var under AMS_DEMO directory. Fig. 10 AMS Options window Click on Elaborator in AMS Option window, and modify it to 100ps/100ps. Fig. 11 Setting timescale Chi-Wei Fan 11 Click on Simulator>Analog Solver>Tran Analysis, enter 1u in the Stop time field. Fig. 12 Setting simulation time Click on Analog Solver>Tran Analysis>Convergence/Accuracy Modify Maxstep to 100p. Fig. 13 Accuracy setting Chi-Wei Fan 12 Execute AMS>Design Prep in Hierarchy-Editor window, enable Netlist - All and Compile – All and then click Run. Fig. 14 AMS design Prep window Fig. 15 AMS design Prep summary When compiling completed, the Design Prep Summary message box appears. Chi-Wei Fan 13 Click on AMS>Run Simulation in Hierarchy-Editor window fill the blanks as show in Fig. 16. Fig. 16 AMS run simulation Chi-Wei Fan 14 When the Elaborator is finished, the Cadence AMS simulator window appears. Click on the Navigator icon to open the Navigator window. Fig. 17 AMS simulator window Chi-Wei Fan 15 Fig. 18 Navigator window Select signals you want to observe and click on the Waveform View icon, then SimVision window appears. Fig. 19 SimVision window Chi-Wei Fan 16 Click on the Run button to start the simulation as show in Fig. 20. Fig. 20 Start simulation Fig. 21 Simulation complete When simulation is completed, check the simulation time in the bottom of the AMS simulation window. Chi-Wei Fan 17 Back to Hierarchy Editor, and change PD, cp, VCO, div_4 to schematic view, Run direction to PLL_run2 and repeat these steps. Compare the simulation time difference. Click on File>Open Databas in SimVision window and change the folder to PLL_run/waves.shm/waves.trn as show in Fig. 22. Fig. 22 SimVision design browser Compare the waveform difference between two different simulations. Chi-Wei Fan 18
本文档为【AMS_Designer】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_253903
暂无简介~
格式:pdf
大小:373KB
软件:PDF阅读器
页数:0
分类:
上传时间:2010-06-05
浏览量:15