Frontend Exec Steps VLSI lab 7th Sem (Mentor Graphics)

2
7 th Sem, VLSI Lab Manual STEPS IN LINUX TERMINAL 2011-12 Dept. of E&C, CEC 1 SKLN, RCVK Esc Insert or I Insert Mode --Insert-- Menu Mode :wproj1.v Vi editor Linux Terminal Steps: Username: student01 Password: student01 1. Open Terminal from Desktop i.e. Right Click in the center of plane Desktop and use “Open Terminal” 2. Start the License Server 3. Check the License Manager Status 4. Create Directory with Student USN as Directory Name 5. Inside Student USN Directory Create Workspace directory 6. Copy Library files (i.e. tsmc018_typ.syn and adk.v) from /home/student01/libraries/ 7. Here are some Commands in Steps 1 8. Follow the below Steps 2 to execute front end programs Note: $ Linux prompt Just like C:\> MS DOS prompt Linux is Case sensitive Always use only Small Letters/Alphabets Space Character/Symbol/Space bar Carriage Return/Enter key Symbol/Enter key Steps 1: $ source.cshrc$ Lmstat$ mkdir1ce01ec001$ cd1ce01ec001/1ce01ec001$ vlibwork/1ce01ec001$ cp/home/student01/libraries/*./1ce01ec001$ viinverter.v/1ce01ec001$ vloginverter.vinverter_test.v/1ce01ec001$ vloginverter_net.vinverter_gatetest.vadk.vRest of the commands please follow STEPS 2 /1ce01ec001$ vsim–cinverter_test–novopt/1ce01ec001$ vsiminverter_test–novopt/1ce01ec001$ spectrum/1ce01ec001$ ls/1ce01ec001$ cd..$ pwd$ cd\$ pwd--help$ vi--help$ exitVi editors basic commands :q Quit VI. If there have been changes made, the editor will issue a warning message. :q! Quit VI without saving changes. :viproj1.vStarts editing a new file. If changes have not been saved, the editor will give you awarning. :w Write out the current file. :wproj2.v Write the buffer to the filename specified. :wq Write the buffer and quit. :wq! Write the buffer and force quit.

description

VLSI Lab 7th Sem E&C Frontend Verilog Execution Steps

Transcript of Frontend Exec Steps VLSI lab 7th Sem (Mentor Graphics)

Page 1: Frontend Exec Steps VLSI lab 7th Sem (Mentor Graphics)

7th Sem, VLSI Lab Manual STEPS IN LINUX TERMINAL 2011-12

Dept. of E&C, CEC 1 SKLN, RCVK

Esc

Insert

or

I

Insert Mode

--Insert--

Menu Mode

:wproj1.v

Vi editor

Linux Terminal Steps: Username: student01 Password: student01

1. Open Terminal from Desktop i.e. Right Click in the center of plane Desktop and use “Open Terminal” 2. Start the License Server 3. Check the License Manager Status 4. Create Directory with Student USN as Directory Name 5. Inside Student USN Directory Create Workspace directory 6. Copy Library files (i.e. tsmc018_typ.syn and adk.v) from

/home/student01/libraries/ 7. Here are some Commands in Steps 1 8. Follow the below Steps 2 to execute front end programs Note: $ Linux prompt Just like C:\> MS DOS prompt Linux is Case sensitive Always use only Small Letters/Alphabets

␢ Space Character/Symbol/Space bar

↵ Carriage Return/Enter key Symbol/Enter key Steps 1:

$ source␢.cshrc↵

$ Lmstat↵

$ mkdir␢1ce01ec001↵

$ cd␢1ce01ec001↵

/1ce01ec001$ vlib␢work↵

/1ce01ec001$ cp␢/home/student01/libraries/*␢.↵

/1ce01ec001$ vi␢inverter.v↵

/1ce01ec001$ vlog␢inverter.v␢inverter_test.v↵

/1ce01ec001$ vlog␢inverter_net.v␢inverter_gatetest.v␢adk.v↵ Rest of the commands please follow STEPS 2

/1ce01ec001$ vsim␢–c␢inverter_test␢–novopt↵

/1ce01ec001$ vsim␢inverter_test␢–novopt↵ /1ce01ec001$ spectrum↵

/1ce01ec001$ ls↵

/1ce01ec001$ cd␢..↵

$ pwd↵

$ cd␢\↵

$ pwd␢--help↵ $ vi␢--help↵ $ exit↵ Vi editors basic commands

:q Quit VI. If there have been changes made, the editor will issue a warning message. :q! Quit VI without saving changes.

:vi␢proj1.vStarts editing a new file. If changes have not been saved, the editor will give you awarning. :w Write out the current file.

:w␢proj2.v Write the buffer to the filename specified. :wq Write the buffer and quit. :wq! Write the buffer and force quit.

Page 2: Frontend Exec Steps VLSI lab 7th Sem (Mentor Graphics)

7th Sem, VLSI Lab Manual STEPS IN LINUX TERMINAL 2011-12

Dept. of E&C, CEC 2 SKLN, RCVK

Steps 2: 1. Create Mainmodule Verilog

$ vi␢sync_counter.v↵ 2. Check Syntax error of Only Mainmodule Verilog

$ vlog␢sync_counter.v↵ 3. Create Testbench to test Mainmodule Verilog

$ vi␢sync_counter_testbench.v↵ 4. Check Syntax error of Only Testbench

$ vlog␢sync_counter_testbench.v↵ 5. Check compatibility of both Top/Mainmodule and Testbench together to obtain Top-module name

$ vlog␢sync_counter.v␢sync_counter_testbench.v↵ 6. Simulate Testbench in Text mode using

Top-module name in Vsim

$ vsim␢–c␢sync_counter_testbench␢–novopt↵

VSIM1> run␢-all↵ 7. Simulate Testbench in GUI/Graphical mode in Modelsim

$ vsim␢sync_counter_testbench␢–novopt↵ 8. Generate SDF and Netlist file from Spectrum using constraints provided

$ spectrum↵

<leonardo 1> load_library␢tsmc018_typ.syn↵

<leonardo 2> read␢-format␢verilog␢sync_counter.v↵

<leonardo 3> set␢input2register␢ 2.00↵

<leonardo 4> set␢input2output ␢ 3.00↵

<leonardo 5> set␢register2output ␢ 3.00↵

<leonardo 6> set␢register2register␢ 3.20↵

<leonardo 7> clock_cycle␢3.2␢clock↵

<leonardo 8> set_attribute␢-name␢ARRIVAL_TIME␢-value␢"0.4"␢-port␢reset↵

<leonardo 9> set_attribute␢-name␢ARRIVAL_TIME␢-value␢"0.4"␢-port␢down↵

<leonardo 10> set_attribute␢-name␢ARRIVAL_TIME␢-value␢"0.4"␢-port␢up↵

<leonardo 11> optimize↵

<leonardo 12> write␢-format␢verilog␢sync_counter_netlist.v↵

<leonardo 13> write␢-format␢sdf␢sync_counter.sdf↵

<leonardo 14> report_delay␢ >␢delay.rpt↵

<leonardo 15> report_area␢>␢area.rpt↵

<leonardo 16> exit↵ 9. Create Gatelevel Testbench to test Mainmodule Verilog using 180 nm Technology

$ vi␢sync_counter_gatetestbench.v↵ 10. Check Syntax error of Only Gatelevel Testbench

$ vlog␢sync_counter_gatetestbench.v↵ 11. Check compatibility of Netlistfile, Gatelevel Testbench and adk.v library together to obtain Top-module name w.r.t. 180 nm

Technology

$ vlog␢sync_counter_netlist.v␢sync_counter_gatetestbench.v␢adk.v↵ 12. Simulate Gatelevel Testbench in Text mode using

Top-module name in Vsim

$ vsim␢–c␢sync_counter_gatetestbench␢–novopt↵

run␢-all↵ 13. Simulate Gatelevel Testbench in GUI/Graphical mode in Modelsim using Top-module name

$ vsim␢sync_counter_gatetestbench␢–novopt↵ 14. To Exit the Linux Terminal

$ exit↵