powerpoint presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · title:...

18
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU VLSI Design Lab0 - Setup Working Environment Advisor : Prof.An-Yeu Wu Speaker : 王奕權 2003/10/8 ACCESS IC LAB

Upload: others

Post on 23-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

VLSI Design Lab0 -Setup Working

EnvironmentAdvisor : Prof.An-Yeu Wu

Speaker : 王奕權

2003/10/8

ACCESS IC LAB

Page 2: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

What’s Workstation• Multiple User• Stable Operation• High throughput

rate• Popular OS- UnixUSER

Root

USER USER

limitations

Page 3: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Abstraction of Unix• Shell

- Command Interpreter- Language : “Shell Script”- Noted Symbol : % (C-Shell)- path=/usr/bin (.cshrc)

Hardware

Kernel

Shell

Application

解釋指令

應用程式

Page 4: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Rule• License

A. 申請帳號 - WS ManagerB. 開/關機 - WS Manager (no way for users)

• Basic instruction1. 更改密碼 : passwd2. 登 出 : logout (not shut down power)3. 查看程序: ps (process) to check process ID (PID)4. 刪除程序: kill –9 PID

Page 5: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Getting Start• 申請一個rm231的帳號

• 至rm231拿申請單,填寫完畢交回rm231• 下載x-window

• http://www.starnet.com/products/ (試用版)• http://www2.ee.ntu.edu.tw/~r1943082/

• 安裝x-window• MS-Windows 本身並不提供遠距離的圖形或視窗交換。需要另外安裝一個 MS-Windows 環境中的 X 伺服軟體

Page 6: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

X-Window setup(I)• 開啟 X-config,按下 Add...

Page 7: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

• step(2):填入 Session name (可隨意命名), connecting using 選擇 XDMCP

X-Window setup(II)

Page 8: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

X-Window setup(III)• step(3):XDMCP欄選Query, Hostname填入cadXX.ee.ntu.edu.tw,(xx=16~39),按下save

Page 9: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Open X-window• 開啟 X-Win32 ,隨即就會常駐在螢幕右下方

Page 10: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Use Workstation from PC • Connecting from your PC

• Step1.Open the X-Window software in your pc.• Step2.Right click the little icon,choose “sessions”.• Step3.Login with your account and password• Step4.Execute below command in the prompt.

• setenv DISPLAY your_PC_IP:0• e.g setenv DISPLAY 140.112.xxx.xxx:0

Page 11: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Use Workstations in R231(I)• Login

• Key in your username• Key in your password• You can choose CDE mode

(actually, OpenWindowenvironment is more like to MS-Windows environment. You can try it by yourself.)

• Open a terminal

Page 12: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Use Workstations in R231(II)• If you want to login another WS (ex: cad27)

• xhost +• telnet cad27.ee.ntu.edu.tw• setenv DISPLAY your_PC_IP:0

Page 13: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Use Workstations in R231(III)• Logout

• We recommend you that• PC environment is more friendly than WS. E.g., for program

editing, you can use PC to edit, and then ftp to the WS to run the program.

• Check the Lab 231 homepage: URL: http://cad.ee.ntu.edu.twfor more updated information

Page 14: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Useful UNIX Commands(I)• man: manual page• ls: List a directory’s contents

• ls –a: list the hidden files• ls –aux: list all files with detailed information• cp: Copy files from one directory to another

• e.g., % cp filename1 filename2• mkdir: Make a new directory• . period denotes current directory• $HOME denote your home directory

Page 15: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Useful UNIX Commands(II)• cd: Change directory• ps: Display process status by process identification

number and name• kill –9 process_number: Terminate a running process

• e.g kill -9 1234• rm –r: delete files• rmdir: remove directory• quota –v: show disk space. If space is not enough,

you cannot do homework.• tar: compress files (-cvf for creating compressed file,

-xvf for extracting compressed file. Good for packing all your homepages after this class is over.

• mv: move file

Page 16: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Edit your cshell file• The shell is an interface between unix

operating system and users.• %cp /home/cad28_1/public/.cshrc .• %textedit & ,check those sources and

alias’• You can also link to

http://cad.ee.ntu.edu.tw to find more info

Page 17: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Summary• 開/關機 : WS Manager• 使用完畢,利用ps指令來查看process• 不使用或暫時離開請logout• 不可存無關研究資料在WS 上• 請勿使用中文檔名

Page 18: PowerPoint Presentationaccess.ee.ntu.edu.tw/course/vlsi_design_92first/ppt/lab0.pdf · Title: PowerPoint Presentation Author: Guest Created Date: 10/16/2003 6:18:45 AM

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

Assignment• 1.申請一個工作站的帳號

• 2.灌好x-window,確定可連上工作站

• 3.設定.cshrc