Unformatted text preview:

Homework III: HSPICE Circuit SimulationGeorgia Institute of TechnologyJADEE 4420 Homework 3Digital Integrated Circuits Assigned: March 9, 2007SPRING 2007 Due: March 16, 2007Homework III: HSPICE Circuit SimulationNote that the reading is appendix A in your textbook will also serve as a guide to help with general SPICE commands.[3-0] Setting up your accountYou will need to activate your ECE account. If you have not already done this you will need to see the UA in Klaus 1440. If you are at a remote location you will need to call Peter Huynh (404-894-7346) to have your account setup.[3-1] Logging on If you are at Georgia Tech, you can access the HSPICE tools in the SUN lab in Klaus 1448. If you are accessing from a remote location, you will need to log on to yamsrv1.ece.gatech.edu, yamsrv2.ece.gatech.edu, yamsrv3.ece.gatech.edu, or yamsrv4.ece.gatech.edu. For remote login you will need a piece of software called SecureCRT. As a Georgia Tech student, you can downloadfrom:http://www.oit.gatech.edu/software/overview.cfmThe following link will tell you how to setup this software: http://www.ece-help.gatech.edu/software/SecureCRTsetup.htmlOnce you run this software (or open up a terminal window on a Mac), you must type ONE of the following commands at the prompt.ssh [email protected] [email protected] [email protected] [email protected] username is your ECE account that you activated in [3-0].[3-2] Typing in HSPICE codeYou need to use a text editor. I would suggest vi (although you can also use a program called pico). You can find documentation on each on the web. I would suggest the following linkhttp://locutus.kingwoodcable.com/jfd/vi.htmlBasic “quick-start” information:- You might have to type the following if you are having trouble getting vi to workset term = vt100stty erase ^hOR if you are using the terminal application in a Mac type the following:stty erase ‘^?’- At command prompt type the following:vi filename.sp- BEFORE you can start to insert text, you must hit the ‘i’ key.- After you finish typing, you will need to hit the ‘esc’ key. This puts you back in the command mode where you can use the arrow keys (or ‘h’, ‘j’,’k’, or ‘l’ keys) to move around.- To search for text you must be in the command mode (i.e. hit ‘esc’ key). Then type the ‘/’ key and type the text that you are searching for. Hit the ‘n’ key to find the next occurance.- To exit AND save your file from the command mode, type this next text followed by hitting the ‘return’ key.:x [3-3] Basic UNIX commandsI would suggest the following link to get starting using unix.http://www.ee.surrey.ac.uk/Teaching/Unix/Basic “quick-start” information:- Typing ‘ls’ at the command prompt lists all the files in your directory.- Typing ‘mkdir directory_name’ will create a directory (i.e. folder) in your current directory.- Typing ‘cd directory_name’ will allow you to change your current directory to ‘directory_name’.- Typing ‘cd ..’ moves you to the next higher directory.- Typing ‘exit’ allows you to logoff.[3-4] Running HSPICEThe first thing that you must do is make the following file in your home directory using vi. Type the following EXACTLY at the command prompt:vi .my-cshrcOnce in vi hit the ‘i’ key and type:source /tools/solsoft/hspice/X-2005.09-SP1/hspice/bin/cshrc.metaExit vi with a save (i.e. use the ‘:x’ command). Then log out and then log back in. To log out of your account type the following:exitNote that a complete HSPICE manual can be downloaded from the following URL:http://users.ece.gatech.edu/rincon-mora/classes/star-man.pdfAt the prompt type ‘vi testspice.sp’ and then type in the following basic HSPICE code using vi. Example File1 -- The first line is always a comment.option post *comments can be written after the asterisk *This defines a time varying voltage sourceVinput 1 0 pulse (0 1 0 30p 30p 10n 20n) * All resistors definitions must start with RR1 1 2 1200 * All capacitor definitions must start with C and ‘p’ is defined as picoC1 2 0 1p .tran 1p 20n.print tran V(2).endAfter you exit with a save (remember ‘:x’), at the command prompt type the followinghspice testspice.sp > logHopefully you should get the result that HSPICE concluded. If not, vi the log file and look for errors. If it DID complete successfully you can find the results in the log file. You can ftp this back to you PC/Mac at plot this information in excel. To do this, open up another terminal on your computer and type:sftp [email protected] logbyeIF you have a high speed connection and can successfully port graphics using an xterm utility then you can also use the application called ‘awaves’. You can also use this type of application in the SUN lab in the KLAUS building. To launch this application type the followingawaves testspice &This is a GUI interface so you can explore it yourself to figure out all the functions. You can start by double-clickingon the text that says “Example File 1: -- The first line is always a comment.” You should then be able to double-clickon voltages to have them plotted as a function of time.[3-5] Run sample DC and TRANSIENT HSPICE files.You must run these sample files and turn in plots of the DC analysis and the TRANSIENT analysis for this homework. You will do this by plotting the output of the .print command. Please use excel or some equivalent graphing program to make clear plots.First thing that you must do is to put in the HSPICE transistor models. I would suggest making a directory (i.e. folder) called ECE4420. You can do this by typing in the followingmkdir ECE4420Please note that UNIX is case-sensitive; therefore, if you use caps make sure you want them!Now change to this directory using the following commandcd ECE4420If you use the ‘ls’ command you will see that there is nothing in your directory. I would like for you to put the following text into a file called ‘mos.lib’ in this directory that has the following information.You can make this file on your PC/Mac and ftp it to your unix account. To do this type the following while at loggedin on YOUR local computer:sftp [email protected] ECE4420put mos.lib*Because this is a library file you must have the following commands*around the text that you would like to have included in the*main file.LIB NMOS130nm.MODEL n NMOS (


View Full Document

GT ECE 4420 - Homework 3 ECE 4420

Download Homework 3 ECE 4420
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Homework 3 ECE 4420 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Homework 3 ECE 4420 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?