Académique Documents
Professionnel Documents
Culture Documents
Name:
Reg. No.:
Branch:
Class: Section:
1|Page
2|Page
CERTIFICATE
LAB Incharge
3|Page
4|Page
Table of Contents
1 Introduction ........................................................................................................................................... 9
1.1 LIST OF EXPERTIMENTS ......................................................................................................... 9
1.1.1 ECAD Programs ................................................................................................................... 9
1.1.2 VLSI Programs ..................................................................................................................... 9
2 Xilinx DSI Manual .............................................................................................................................. 11
3 Altera Quartus II Programming Manual ............................................................................................. 20
4 Cadence User Manual (IC613) ........................................................................................................... 27
4.1 General Notes.............................................................................................................................. 27
4.2 Tutorial1: Inverter ....................................................................................................................... 29
4.2.1 Schematic Entry .................................................................................................................. 31
4.2.2 Symbol Creation ................................................................................................................. 35
4.2.3 Building the Inverter Design ............................................................................................... 37
4.2.4 Analog Simulation using Spectre ........................................................................................ 39
4.2.5 Parametric analysis ............................................................................................................. 44
4.2.6 Creating Layout................................................................................................................... 47
4.2.7 Physical Verification ........................................................................................................... 48
4.2.8 Creating the Configuration View ........................................................................................ 52
4.3 Generating Stream Data .............................................................................................................. 57
4.4 Streaming In the Design.............................................................................................................. 57
4.5 Tutorial 2: DIFFERENTIAL AMPLIFIER ................................................................................ 58
4.5.1 Schematic Entry .................................................................................................................. 59
4.5.2 Symbol Creation ................................................................................................................. 60
4.5.3 Building the Diff_amplifier_test Design ............................................................................. 61
4.5.4 Analog Simulation with Spectre ......................................................................................... 62
4.5.5 Creating a Layout View of Diff_ Amplifier ....................................................................... 66
4.5.6 Physical Verification ........................................................................................................... 68
4.6 Tutorial3: COMMON SOURCE AMPLIFIER .......................................................................... 74
4.6.1 Schematic Entry .................................................................................................................. 75
4.6.2 Symbol Creation ................................................................................................................. 75
4.6.3 Building the Common Source Amplifier Test Design ........................................................ 76
4.6.4 Analog Simulation with Spectre ......................................................................................... 77
4.6.5 Creating a layout view of Common Source Amplifier ....................................................... 78
4.7 Tutorial4: COMMON DRAIN AMPLIFIER............................................................................. 79
5|Page
4.7.1 Schematic Entry .................................................................................................................. 79
4.7.2 Symbol Creation ................................................................................................................. 80
4.7.3 Building the Common Drain Amplifier Test Design .......................................................... 80
4.7.4 Analog Simulation with Spectre ......................................................................................... 81
4.7.5 Creating a layout view of Common Drain Amplifier ......................................................... 82
4.8 Tutorial 5: OPERATIONAL AMPLIFIER ................................................................................. 83
4.8.1 Schematic Entry .................................................................................................................. 83
4.8.2 Symbol Creation ................................................................................................................. 84
4.8.3 Building the Operational Amplifier Test Design ................................................................ 84
4.8.4 Analog Simulation with Spectre ......................................................................................... 85
4.8.5 Creating a layout view of Operational Amplifier ............................................................... 86
5 Altera DE2 Board (CYCLONE2 FPGA) ............................................................................................ 89
5.1 Components: ............................................................................................................................... 89
5.2 Block Diagram ............................................................................................................................ 91
5.3 Power-up the DE2 Board ............................................................................................................ 92
5.4 Configuring the EPCS16 in AS Mode ........................................................................................ 93
5.5 Pin Assignments.......................................................................................................................... 94
5.5.1 Pin Assignments for the toggle switches ............................................................................ 94
5.5.2 Pin Assignments for the pushbutton switches ..................................................................... 94
5.5.3 Pin Assignments for Output LED’s .................................................................................... 96
5.5.4 Using 7-segment Displays ................................................................................................. 97
6 CYCLONE III FPGA ........................................................................................................................ 99
6.1 COMPONENTS ....................................................................................................................... 100
6.2 BLOCK DIAGRAM ................................................................................................................. 102
6.3 PIN ASSIGNMENTS ............................................................................................................... 102
6.3.1 Pin Settings for pushbutton ............................................................................................... 102
6.3.2 Pin settings for LEDs ....................................................................................................... 102
7 LAB EXPERIMENTS: Verilog Code .............................................................................................. 104
7.1 LOGIC GATES ........................................................................................................................ 104
7.2 2-to-4 Decoder .......................................................................................................................... 105
7.3 8-to-1 Multiplexer ..................................................................................................................... 106
7.4 4Bit Binary to Gray converter ................................................................................................... 107
7.5 8-to-3 encoder ........................................................................................................................... 108
7.5.1 Encoder without parity ...................................................................................................... 108
7.5.2 Priority encoder ................................................................................................................. 109
6|Page
7.6 Demux 1-to-8 ............................................................................................................................ 111
7.7 Comparator ............................................................................................................................... 112
7.8 Full adder .................................................................................................................................. 113
7.8.1 Full adder: Continuous Assignment .................................................................................. 113
7.8.2 Full adder: Structural ........................................................................................................ 114
7.8.3 Full adder: Procedural ....................................................................................................... 115
7.9 Flip-flops ................................................................................................................................... 116
7.9.1 SR FLIPFLOP ................................................................................................................... 116
7.9.2 D FLIPFLOP ..................................................................................................................... 117
7.9.3 JK FlipFlop ....................................................................................................................... 118
7.9.4 T FLIPFLOP ..................................................................................................................... 120
7.10 Counter...................................................................................................................................... 121
7.11 Finite State Machine ................................................................................................................. 122
8 LAB EXERCISES ............................................................................................................................ 124
9 Work Book and Observation............................................................................................................. 126
7|Page
8|Page
1 Introduction
The objective of this lab is to learn and get acquainted with HDL designing using Xilinx Design
Suite, FPGA programming using Altera Kits, spice simulations and layout using the Cadence
Design Suite
PART2: Programs are to be downloaded on the FPGA boards Cyclone2, Cyclone3 using
Quartus II. The performance testing may be done using pattern generator and logic analyzer.
All the programs in the (PART1) should be programmed and configured on the FPGA board
PART2: Introduction to Layout & design rules. Verification (DRC, LVS, ANTDRC) of the
designs
1. Layout of CMOS inverter
2. Layout of any combinational circuit ( complex cmos logic gate,
NAND,NOR)
3. Layout of Latch
4. Layout of Adder
9|Page
5. Layout of MUX
10 | P a g e
2 Xilinx DSI Manual
Xilinx ISE is a software tool produced by Xilinx for synthesis and analysis of HDL designs,
which enables the developer to synthesize ("compile") their designs, perform timing analysis,
examine RTL diagrams, simulate a design's reaction to different stimuli, and configure the
target device with the programmer.
In our Lab, the scope is limited to design and analyze the design using test benches &
simulation.
The following is the step by step procedure to design in the Xilinx ISE:
11 | P a g e
2. Continue to the next window and check if the Preferred Language is selected as ‘Verilog’
3. Proceed by clicking ‘Next’ and create a ‘New Source’ using the ‘Create New Source’
Window
12 | P a g e
4. Select the source type as ‘Verilog Module’ and input a filename and proceed to ‘Next’.
In the next window ‘Define Module’ enter the ports.
5. Finish with the New project setup with the ‘Summary’ window.
13 | P a g e
6. Once ‘Finish’ is selected a pop-up appears to create the directory. Select ‘yes’
7. Then proceed to ‘Next’ in the “New Project Wizard’ to ‘Add Existing Sources’. ‘Add
source’ if an existing source is available, If not proceed to ‘Next’ and finish with the
‘Project Summary’ window
14 | P a g e
8. Design Entry and Syntax Check
The ports defined during the ‘Project Creation’ are defined as a module in the ‘filename.v’
file
15 | P a g e
10. Select the design from the ‘Hierarchy‘window. In the below window of Processes
‘Implement Design ‘would be orange (in color) ready for implementation
11. Double click on implement design, it turns green (in color) once the design is
implemented successfully and the Summary report is displayed.
16 | P a g e
12. Test-Bench creation, Simulation & Verification
To add a test-bench to the existing design, right click on the ‘.v’ file from the Hierarchy
window and select ‘New Source’
13. Select ‘Verilog Text Fixture’ from the Select Source Type and name the Test-Bench
17 | P a g e
14. Continue to ‘Finish’ and a test bench is added in the project area
15. Edit the test bench as per your simulation requirements and select ‘Behavioral
Simulation’ in the ‘Design Window’. In the Processes window Isim Simulator would be
displayed. First Proceed with the Behavioral Check Syntax
18 | P a g e
16. Double click on ‘Behavioral Check Syntax’ & check for no errors
17. Then double click on ‘Simulate Behavioral Model’ and the ISIM simulator window
would open. Check for the outputs
19 | P a g e
3 Altera Quartus II Programming Manual
The Quartus II system includes full support for all of the popular methods of entering a
description of the desired circuit into a CAD system. Typical FPGA CAD flow is shown below.
The CAD flow involves the following steps:
Design Entry – the desired circuit is specified either by means of a schematic diagram,
or by using a hardware description language, such as Verilog or VHDL
Synthesis – the entered design is synthesized into a circuit that consists of the logic
elements (LEs) provided in the FPGA chip
Functional Simulation – the synthesized circuit is tested to verify its functional
correctness; this simulation does not take into account any timing issues
Fitting – the CAD Fitter tool determines the placement of the LEs defined in the netlist
into the LEs in an actual FPGA chip; it also chooses routing wires in the chip to make the
required connections between specific LEs
Timing Analysis – propagation delays along the various paths in the fitted circuit are
analyzed to provide an indication of the expected performance of the circuit
Timing Simulation – the fitted circuit is tested to verify both its functional correctness
and timing
Programming and Configuration – the designed circuit is implemented in a physical
FPGA chip by programming the configuration switches that configure the LEs and
establish the required wiring connections
For the Lab, since the designs are already verified using Xilinx, we use Quartus II mainly for the
Programming and the configuration of the FPGA
The Steps to from the start of the new project in Quartus II to programming the design in the
DE2 Kit are illustrated below:
1. Invoke the Quartus II window and create a new project
20 | P a g e
2. Enter the working directory, project name and the top-level-design
21 | P a g e
4. The “Add Files” window will appear. Enter the design file to be programmed. If there
is no design file created, leave this section blank. Click ‘Next’
5. The “Family and Device Settings” will appear. Enter the settings for the Family, Package,
Pin Count and Speed Grade
22 | P a g e
9. Once the compilation is done assign the pins using the Assignment editor
23 | P a g e
For the CYCLONE III KIT
Select the PIN planner from the menu and assign the pins as per the CYCLONE III pin
assignments (Section6)
24 | P a g e
10. Recompile after the pin assignment. Once the compilation is successful, open the
programmer window from the menu
In the programmer window, select the mode as ‘Active Serial programming’ and
choose the ‘USB blaster in the Hardware setup. (USB blaster cable to be
connected from the DE2/DE3 kit.
Select the .pof file and start the programming if the KIT is for CYCLONE II FPGA
Select the .sof file and start the programming if the KIT is for CYCLONE II FPGA
25 | P a g e
26 | P a g e
4 Cadence User Manual (IC613)
This User Manual is provided by the Cadence Design Systems Support Team and has been
integrated into our lab manual.
Objective of this lab is to learn the Virtuoso tool as well learn the flow of the Full Custom IC
design cycle. You will finish the lab by running DRC, LVS and Parasitic Extraction on the
various designs. In the process you will create various components like inverter, differential
amplifier, operational amplifier etc.
Start the lab by creating a library called “myDesignLib” and attach the library to a technology
library called “gpdk180”. Attaching a technology library will ensure that you can do front to
back design.
Create a new cell called “Inverter” with schematic view and hence build the inverter schematic
by instantiating various components. Once inverter schematic is done, symbol for “Inverter” is
generated. Now you will create a new cell view called “Inverter_Test”, where you will
instantiate “Inverter” symbol. This circuit is verified by doing various simulations using spectre.
In the process, you will learn to use spectre, waveform window options, waveform calculator,
etc...
You will learn the Layout Editor basics by concentrating on designing an “Inverter” through
automatic layout generation. Then you will go ahead with completing the other layouts. After
that, you will run DRC, LVS checks on the layout, Extract parasitics and back-annotate them to
the simulation environment.
After completing the parasitic back- annotation flow, design is ready for generating GDSII.
There are a number of things to consider before beginning these lab exercises. Please read
through this section completely, and perform any needed steps in order to ensure a successful
workshop. These labs were designed for use with Incisive Unified Simulator82, IC613 and
Assura32.
Before running any of these labs, ensure that you’ve set up IUS82, IC613, MMSIM71 and
Assura32 correctly:
%> setenv CDSHOME <IC613-installation-home>
%> setenv MMSIMHOME <MMSIM71-installation-home>
%> setenv PVHOME <Assura32-installation-home>
%> setenv AMSHOME <IUS82-installation-home>
You will also need to ensure that the IUS82 is setup correctly for lab 5.
To setup the lab environment, please perform the following steps:
1. Ensure the software mentioned above is correctly setup.
2. Source the C-Shell related commands file i.e. (cshrc file).
These labs were designed to be run using Cadence Virtuoso tool and Assura tool.
27 | P a g e
Lab Getting Started
1. Log in to your workstation using the username and password. The home directory has a cshrc
file with paths to the Cadence installation.
2. In a terminal window, type csh at the command prompt to invoke the C shell.
>csh
>source cshrc
3. To verify that the path to the software is properly set in the cshrc file, type the below
command in the terminal window and enter:
>which virtuoso
It gives the complete path of IC613 tool Installation.
>which spectre
It gives the complete path of MMSIM71 tool Installation.
>which assura
It gives the complete path of Assura32 tool Installation.
>which ncsim
It gives the complete path of IUS82 tool Installation.
Use the installed database to do your work and the steps are as follows:
. /Solution Contains a local copy of all the lab experiments including test circuit for
simulation.
. /libs.cdb Contains a technology library for the design (gpdk180nm).
. /models Contains spectre models of components for simulation in gpdk180nm
technology.
. /stream Contains layer map file for GDSII format
. /pv Containing the Assura and Diva verification files
. /techfiles Contains ASCII versions of the oa22 techfiles
. /dig_source Contains verilog codes for SAR register and clock
. /cds.lib File containing pointer to the Cadence OA22 initialization file.
. /hdl.var File defines the work library for AMS simulation
. /docs Reference manual and user manual for gpdk180nm technology
28 | P a g e
2. In the same terminal window, enter:
> virtuoso &
The virtuoso or Command Interpreter Window (CIW) appears at the bottom of the screen.
3. If the “What’s New ...” window appears, close it with the File— Close command.
4. 4. Keep opened CIW window for the labs.
29 | P a g e
Schematic Capture
30 | P a g e
4.2.1 Schematic Entry
1. In the Library Manager, execute File - New – Library. The new library form appears.
2. In the “New Library” form, type “myDesignLib” in the Name section.
3. In the field of Directory section, verify that the path to the library is set to
~/Database/cadence_analog_labs_613 and click OK.
Note: A technology file is not required if you are not interested to do the layouts for the design
4. In the next “Technology File for New library” form, select option Attach to an existing
techfile and click OK.
31 | P a g e
5. In the “Attach Design Library to Technology File” form, select gpdk180 from the cyclic
field and click OK.
6. After creating a new library you can verify it from the library manager.
7. If you right click on the “myDesignLib” and select properties, you will find that gpdk180
library is attached as techlib to “myDesignLib”.
In this section we will learn how to open new schematic window in the new “myDesignLib”
library and build the inverter schematic as shown in the figure at the start of this lab.
32 | P a g e
Do not edit the Library path file and the one above might be different from the path shown in
your form.
33 | P a g e
3. Click OK when done the above settings. A blank schematic window for the Inverter design
appears.
If you place a component with the wrong parameter values, use the Edit— Properties—
Objects command to change the parameters. Use the Edit— Move command if you place
components in the wrong location.
You can rotate components at the time you place them, or use the Edit— Rotate command after
they are placed.
4. After entering components, click Cancel in the Add Instance form or press Esc with your
cursor in the schematic window.
1. Click the Pin fixed menu icon in the schematic window. You can also execute Create — Pin
or press p. The Add pin form appears.
2. Type the following in the Add pin form in the exact order leaving space between the pin
names.
Pin Names Direction
vin Input
vout Output
Make sure that the direction field is set to input/output/inputOutput when placing the
input/output/inout pins respectively and the Usage field is set to schematic.
34 | P a g e
3. Select Cancel from the Add – pin form after placing the pins. In the schematic window,
2. In the schematic window, click on a pin of one of your components as the first point for your
wiring. A diamond shape appears over the starting point of this wire.
3. Follow the prompts at the bottom of the design window and click left on the destination point
for your wire. A wire is routed between the source and destination points.
4. Complete the wiring as shown in figure and when done wiring press ESC key in the schematic
window to cancel wiring.
1. Click the Check and Save icon in the schematic editor window.
In this section, you will create a symbol for your inverter design so can place it in a test circuit
for simulation. A symbol view is extremely important step in the design process. The symbol
view must exist for the schematic to be used in a hierarchy. In addition, the symbol has attached
properties (cdsParam) that facilitate the simulation and the design of the circuit.
35 | P a g e
2. Verify that the From View Name field is set to schematic, and the To View Name field is set
to symbol, with the Tool/Data Type set as SchematicSymbol.
3. Click OK in the Cellview From Cellview form. The Symbol Generation Form appears.
4. Modify the Pin Specifications as follows:
36 | P a g e
Editing a Symbol
In this section we will modify the inverter symbol to look like a Inverter gate symbol.
1. Move the cursor over the automatically generated symbol, until the green rectangle is
highlighted, click left to select it.
2. Click Delete icon in the symbol window, similarly select the red rectangle and delete that.
3. Execute Create – Shape – polygon, and draw a shape similar to triangle.
4. After creating the triangle press ESC key.
5. Execute Create – Shape – Circle to make a circle at the end of triangle.
6. You can move the pin names according to the location.
7. Execute Create — Selection Box. In the Add Selection Box form, click Automatic.
A new red selection box is automatically added.
8. After creating symbol, click on the save icon in the symbol editor window to save the
symbol. In the symbol editor, execute File — Close to close the symbol view window.
37 | P a g e
3. Click OK when done. A blank schematic window for the Inverter_Test design
appears.
1. Using the component list and Properties/Comments in this table, build the
Inverter_Test schematic.
Note: Remember to set the values for VDD and VSS. Otherwise, your circuit will have
no power.
38 | P a g e
4.2.4 Analog Simulation using Spectre
In this section, we will run the simulation for Inverter and plot the transient, DC characteristics
and we will do Parametric Analysis after the initial simulation.
Choosing a Simulator
Set the environment to use the Spectre® tool, a high speed, highly accurate
analog simulator. Use this simulator with the Inverter_Test design, which is made-up of analog
components.
1. In the simulation window (ADE), execute Setup— Simulator/Directory/Host.
2. In the Choosing Simulator form, set the Simulator field to spectre (Not spectreS) and click
OK.
The Model Library file contains the model files that describe the nmos and pmos devices
during simulation.
1. In the simulation window (ADE), Execute Setup - Model Libraries.
The Model Library Setup form appears. Click the browse button to add gpdk.scs if not
added by default as shown in the Model Library Setup form.
Remember to select the section type as stat in front of the gpdk.scs file.
Your Model Library Setup window should now looks like the below figure
39 | P a g e
To view the model file, highlight the expression in the Model Library File field and Click
Edit File.
2. To complete the Model Library Setup, move the cursor and click OK.
The Model Library Setup allows you to include multiple model files.
It also allows you to use the Edit button to view the model file.
Choosing Analyses
This section demonstrates how to view and select the different types of analyses to complete the
circuit when running the simulation.
40 | P a g e
3. To set up for DC Analyses:
a. In the Analyses section, select dc.
b. In the DC Analyses section, turn on Save DC Operating Point.
c. Turn on the Component Parameter.
d. Double click the Select Component, Which takes you to the schematic window.
e. Select input signal vpulse source in the test schematic window.
f. Select “DC Voltage” in the Select Component Parameter form and click OK.
g. In the analysis form type start and stop voltages as 0 to 1.8 respectively.
h. Check the enable button and then click Apply.
Set the values of any design variables in the circuit before simulating. Otherwise, the simulation
will not run.
Value(Expr) 2u
Click Change and notice the update in the Table of Design Variables.
41 | P a g e
4. Click OK or Cancel in the Editing Design Variables window.
42 | P a g e
Selecting Outputs for Plotting
1. Execute Simulation – Netlist and Run in the simulation window to start the
Simulation or the icon, this will create the netlist as well as run the simulation.
2. When simulation finishes, the Transient, DC plots automatically will be popped up along with
log file.
43 | P a g e
Saving the Simulator State
We can save the simulator state, which stores information such as model library file, outputs,
analysis, variable etc. This information restores the simulation environment without having to
type in all of setting again.
1. In the Simulation window, execute Session – Save State. The Saving State form appears.
2. Set the Save as field to state1_inv and make sure all options are selected under what to save
field.
3. Click OK in the saving state form. The Simulator state is saved.
Loading the Simulator State
1. From the ADE window execute Session – Load State.
2. In the Loading State window, set the State name to state1_inv as shown
Parametric Analysis yields information similar to that provided by the Spectre® sweep feature,
except the data is for a full range of sweeps for eachparametric step. The Spectre sweep feature
provides sweep data at only one specified condition.
You will run a parametric DC analysis on the wp variable, of the PMOS device of the Inverter
design by sweeping the value of wp.
Run a simulation before starting the parametric tool. You will start by loading the state from the
previous simulation run.
Run the simulation and check for errors. When the simulation ends, a single waveform in the
waveform window displays the DC Response at the Vout node.
44 | P a g e
Starting the Parametric Analysis Tool
1. In the Simulation window, execute Tools—Parametric Analysis. The Parametric Analysis
form appears.
2. In the Parametric Analysis form, execute
Setup—Pick Name For Variable—Sweep 1.
A selection window appears with a list of all variables in the design that you can sweep. This list
includes the variables that appear in the Design Variables section of the Simulation window.
3. In the selection window, double click left on wp. The Variable Name field for Sweep 1 in the
Parametric Analysis form is set to wp.
4. Change the Range Type and Step Control fields in the Parametric Analysis form as shown
below:
Range Type From/To From 1u To 10u
Step Control Auto Total Steps 10
These numbers vary the value of the wp of the pmos between 1um and 10um at ten evenly
spaced intervals.
5. Execute Analysis—Start.
The Parametric Analysis window displays the number of runs remaining in the analysis and the
current value of the swept variable(s). Look in the upper right corner of the window. Once the
runs are completed the wavescan window comes up with the plots for different runs.
45 | P a g e
46 | P a g e
Note: Change the wp value of pmos device back to 2u and save the schematic before proceeding
to the next section of the lab. To do this use edit property option.
1. Execute Connectivity – Generate – All from Source or click the icon in the layout
editor window, Generate Layout form appears. Click OK which imports the schematic
components in to the Layout window automatically.
2. Re arrange the components with in PR-Boundary as shown in the next page.
3. To rotate a component, Select the component and execute Edit –Properties. Now select the
degree of rotation from the property edit form.
4. To Move a component, Select the component and execute Edit -Move command.
Making interconnection
1. Save your design by selecting File — Save or click to save the layout, and layout
should appear as below.
Running a DRC
1. Open the Inverter layout form the CIW or library manger if you have closed that.
Press shift – f in the layout window to display all the levels.
2. Select Assura - Run DRC from layout window.
The DRC form appears. The Library and Cellname are taken from the current design window,
but rule file may be missing. Select the Technology as gpdk180. This automatically loads the
rule file.
48 | P a g e
Your DRC form should appear like this
In this section we will perform the LVS check that will compare the schematic netlist and the
layout netlist.
49 | P a g e
Running LVS
1. Select Assura – Run LVS from the layout window. The Assura Run LVS form appears. It
will automatically load both the schematic and layout view of the cell.
2. Change the following in the form and click OK.
In this section we will extract the RC values from the layout and perform analog circuit
simulation on the designs extracted with RCX.
Before using RCX to extract parasitic devices for simulation, the layout should match with
schematic completely to ensure that all parasites will be backannoted to the correct schematic
nets.
50 | P a g e
Running RCX
1. From the layout window execute Assura – Run RCX.
2. Change the following in the Assura parasitic extraction form. Select output type under Setup
tab of the form.
3. In the Extraction tab of the form, choose Extraction type, Cap Coupling Mode and specify the
Reference node for extraction.
51 | P a g e
4. In the Filtering tab of the form, Enter Power Nets as vdd!, vss! and Enter Ground Nets as
gnd!
In this section we will create a config view and with this config view we will run the simulation
with and without parasitic.
1. In the CIW or Library Manager, execute File – New – Cellview
2. In the Create New file form, set the following:
52 | P a g e
The Hierarchy Editor form opens and a New Configuration form opens in front of it.
4. Click Use template at the bottom of the New Configuration form and select Spectre in the
cyclic field and click OK.
The Global Bindings lists are loaded from the template.
5. Change the Top Cell View to schematic and remove the default entry from the
Library List field.
6. Click OK in the New Configuration form.
53 | P a g e
The hierarchy editor displays the hierarchy for this design using table format.
7. Click the Tree View tab. The design hierarchy changes to tree format. The form should look
like this:
2. In the form, turn on the both cyclic buttons to Yes and click OK.
54 | P a g e
The Inverter_Test schematic and Inverter_Test config window appears. Notice the window
banner of schematic also states Config: myDesignLib Inverter_Test config.
3. Execute Launch – ADE L from the schematic window.
4. Now you need to follow the same procedure for running the simulation. Executing Session–
Load state, the Analog Design Environment window loads the previous state.
2. From the functions select delay, this will open the delay data panel.
3. Place the cursor in the text box for Signal1, select the wave button and select the input
waveform from the waveform window.
4. Repeat the same for Signal2, and select the output waveform.
5. Set the Threshold value 1 and Threshold value 2 to 0.9, this directs the calculator to
calculate delay at 50% i.e. at 0.9 volts.
6. Execute OK and observe the expression created in the calculator buffer.
7. Click on Evaluate the buffer icon to perform the calculation, note down the value
returned after execution.
8. Close the calculator window.
55 | P a g e
To run the Circuit with Parasitics
In this exercise, we will change the configuration to direct simulation of the av_extracted view
which contains the parasites.
1. Open the same Hierarchy Editor form, which is already set for Inverter_Test config.
2. Select the Tree View icon: this will show the design hierarchy in the tree format.
3. Click right mouse on the Inverter schematic.
A pull down menu appears. Select av_extracted view from the Set Instance view menu, the
View to use column now shows av_extracted view.
4. Click on the Recompute the hierarchy icon, the configuration is now updated from
schematic to av_extracted view.
6. From the Analog Design Environment window click Netlist and Run to start the
simulation again.
7. When simulation completes, note the Circuit inventory conditions, this time the list shows
all nets, designed devices, sources and parasitic devices as well.
8. Calculate the delay again and match with the previous one. Now you can conclude how much
delay is introduced by these parasites, now our main aim should to minimize the delay due to
these parasites so number of iteration takes place for making an optimize layout.
56 | P a g e
4.3 Generating Stream Data
1. Select File – Import – Stream from the CIW menu and change the followingin the form.
You need to specify the gpdk180_oa22.tf file. This is the entire technology file that has been
dumped from the design library.
2. Click on the Options button.
57 | P a g e
3. In the StreamOut-Options form select under Layers tab and click OK.
4. In the Virtuoso XStream Out form, click Translate button to start the stream translator.
5. From the Library Manager open the Inverter cellview from the GDS_LIB library and notice
the design.
6. Close all the windows except CIW window, which is needed for the next lab.
Schematic Capture
58 | P a g e
4.5.1 Schematic Entry
2. Click OK when done. A blank schematic window for the design appears.
Adding Components to schematic
1. In the Differential Amplifier schematic window, execute Create— Instance to display the
Add Instance form.
2. Click on the Browse button. This opens up a Library browser from which you can select
components and the Symbol view.
You will update the Library Name, Cell Name, and the property values given in the table on the
next page as you place each component.
3. After you complete the Add Instance form, move your cursor to the schematic window and
click left to place a component.
This is a table of components for building the Differential Amplifier schematic.
4. After entering components, click Cancel in the Add Instance form or press Esc with your
cursor in the schematic window
Make sure that the direction field is set to input/ouput/inputoutput when placing the
input/output/inout pins respectively and the Usage field is set to schematic.
3. Select Cancel from the Add pin form after placing the pins.
In the schematic window, execute View— Fit or press the f bindkey.
59 | P a g e
Adding Wires to a Schematic
Add wires to connect components and pins in the design.
1. Click the Wire (narrow) icon in the schematic window.
You can also press the w key, or execute Create - Wire (narrow).
2. Complete the wiring as shown in figure and when done wiring press ESC key in the schematic
window to cancel wiring.
9. After creating symbol, click on the save icon in the symbol editor window to save the
symbol. In the symbol editor, execute File— Close to close the symbol view window.
60 | P a g e
4.5.3 Building the Diff_amplifier_test Design
Objective: To build Differential Amplifier Test circuit using your Differential Amplifier
Creating the Differential Amplifier Test Cellview
1. In the CIW or Library Manager, execute File— New— Cellview.
2. Set up the Create New File form as follows:
3. Click OK when done. A blank schematic window for the Diff_ amplifier_test design appears.
Note: Remember to set the values for VDD and VSS. Otherwise your circuit will have no power.
3. Click the Wire (narrow) icon and wire your schematic.
Tip: You can also press the w key, or execute Create— Wire (narrow).
4. Click on the Check and save icon to save the design.
5. The schematic should look like this.
61 | P a g e
6. Leave your Diff_amplifier_test schematic window open for the next section.
Objective: To set up and run simulations on the Differential Amplifier Test design.
In this section, we will run the simulation for Differential Amplifier and plot the transient, DC
and AC characteristics.
Choosing a Simulator
1. In the simulation window or ADE, execute
Setup— Simulator/Directory/Host.
2. In the Choosing Simulator form, set the Simulator field to spectre
(Not spectreS) and click OK.
62 | P a g e
Setting the Model Libraries
1. Click Setup - Model Libraries.
Note: Step 2 should be executed only if the model file not loaded by default.
2. In the Model Library Setup form, click Browse and find the gpdk180.scs file
in the ./models/spectre directory.
Select stat in Section field, click Add and click OK.
Choosing Analyses
1. In the Simulation window, click the Choose - Analyses icon.
You can also execute Analyses - Choose.
The Choosing Analysis form appears. This is a dynamic form, the bottom of the form changes
based on the selection above.
2. To setup for transient analysis
a. In the Analysis section select tran
b. Set the stop time as 5m
c. Click at the moderate or Enabled button at the bottom, and then click Apply.
3. To set up for DC Analyses
a. In the Analyses section, select dc.
b. In the DC Analyses section, turn on Save DC Operating Point.
c. Turn on the Component Parameter
d. Double click the Select Component, Which takes you to the schematic window.
e. Select input signal Vsin for dc analysis.
f. In the analysis form, select start and stop voltages as -5 to 5 respectively.
g. Check the enable button and then click Apply.
63 | P a g e
64 | P a g e
4. To set up for AC Analyses form is shown in the previous page.
a. In the Analyses section, select ac.
b. In the AC Analyses section, turn on Frequency.
c. In the Sweep Range section select start and stop frequencies as 150 to 100M
d. Select Points per Decade as 20.
e. Check the enable button and then click Apply.
5. Click OK in the Choosing Analyses Form.
65 | P a g e
Running the Simulation
1. Execute Simulation – Netlist and Run in the simulation window to start the simulation, this
will create the netlist as well as run the simulation.
2. When simulation finishes, the Transient, DC and AC plots automatically will be popped up
along with netlist.
66 | P a g e
Adding Components to Layout
1. Execute Connectivity – Generate – All from Source or click the icon in the layout
editor window, Generate Layout form appears. Click OK which imports the schematic
components in to the Layout window automatically.
2. Re arrange the components with in PR-Boundary as shown in the next page.
3. To rotate a component, Select the component and execute Edit –Properties. Now select the
degree of rotation from the property edit form.
4. To Move a component, Select the component and execute Edit -Move command.
Making interconnection
Creating Contacts/Vias
You will use the contacts or vias to make connections between two different layers.
67 | P a g e
Saving the design
1. Save your design by selecting File — Save or click to save the layout and layout
should appear as below.
Running a DRC
1. Open the Differential_Amplifier layout form the CIW or library manger if you have closed
that. Press shift – f in the layout window to display all the levels.
2. Select Assura - Run DRC from layout window.
The DRC form appears. The Library and Cellname are taken from the current design window,
but rule file may be missing. Select the Technology as gpdk180. This automatically loads the
rule file.
3. Click OK to start DRC.
4. A Progress form will appears. You can click on the watch log file to see the log file.
5. When DRC finishes, a dialog box appears asking you if you want to view your DRC results,
and then click Yes to view the results of this run.
68 | P a g e
69 | P a g e
6. If there any DRC error exists in the design View Layer Window (VLW) and Error Layer
Window (ELW) appears. Also the errors highlight in the design itself.
7. Click View – Summary in the ELW to find the details of errors.
8. You can refer to rule file also for more information, correct all the DRC errors and Re – run
the DRC.
9. If there are no errors in the layout then a dialog box appears with No DRC errors found
written in it, click on close to terminate the DRC run.
Running LVS
1. Select Assura – Run LVS from the layout window.
The Assura Run LVS form appears. The layout name is already in the form. Assura fills in the
layout name from the cellview in the layout window.
2. Verify the following in the Run Assura LVS form.
70 | P a g e
71 | P a g e
3. The LVS begins and a Progress form appears.
4. If the schematic and layout matches completely, you will get the form displaying Schematic
and Layout Match.
5. If the schematic and layout do not matches, a form informs that the LVS completed
successfully and asks if you want to see the results of this run.
6. Click Yes in the form.LVS debug form appears, and you are directed into LVS debug
environment.
7. In the LVS debug form you can find the details of mismatches and you need to correct all
those mismatches and Re – run the LVS till you will be able to match the schematic with layout.
In this section we will extract the RC values from the layout and perform analog circuit
simulation on the designs extracted with RCX.
Before using RCX to extract parasitic devices for simulation, the layout should match with
schematic completely to ensure that all parasites will be backannoted to the correct schematic
nets.
72 | P a g e
Running RCX
1. From the layout window execute Assura – Run RCX.
2. Change the following in the Assura parasitic extraction form. Select output type under Setup
tab of the form.
3. In the Extraction tab of the form, choose Extraction type, Cap Coupling Mode and specify the
Reference node for extraction.
73 | P a g e
4. In the Filtering tab of the form, Enter Power Nets as vdd!, vss! and Enter Ground Nets as
gnd!
6. You can open the av_extracted view from the library manager and view the parasitic.
74 | P a g e
4.6.1 Schematic Entry
Objective: To create a new cell view and build Common Source Amplifier
Use the techniques learned in the Tutotial1 and Tutorial2 to complete the schematic of Common
Source Amplifier. This is a table of components for building the Common Source Amplifier
schematic.
Library name Cell Name Properties/Comments
gpdk180 pmos Model Name = pmos1; W= 50u ; L= 1u
gpdk180 nmos Model Name =nmos1; W= 10u ; L= 1u
Type the following in the ADD pin form in the exact order leaving space between the pin names.
75 | P a g e
4.6.3 Building the Common Source Amplifier Test Design
76 | P a g e
4.6.4 Analog Simulation with Spectre
77 | P a g e
4.6.5 Creating a layout view of Common Source Amplifier
Use the techniques learned in the Tutorial1 and Tutorial2 to complete the layout of cs_amplifier.
Complete the DRC, LVS check using the assura tool. Extract RC parasites for back annotation
and Re-simulation.
78 | P a g e
4.7 Tutorial4: COMMON DRAIN AMPLIFIER
Schematic Capture
Objective: To create a new cell view and build Common Drain Amplifier
Use the techniques learned in the Tutorial1 and Tutorial2 to complete the schematic of Common
Drain Amplifier. This is a table of components for building the Common Drain Amplifier
schematic.
Type the following in the ADD pin form in the exact order leaving space between the pin names.
Pin Names Direction
vin, vbias Input
vout Output
vdd vss Input
79 | P a g e
4.7.2 Symbol Creation
80 | P a g e
4.7.4 Analog Simulation with Spectre
81 | P a g e
4.7.5 Creating a layout view of Common Drain Amplifier
Use the techniques learned in the Lab1 and Lab2 to complete the layout of cd_amplifier.
Complete the DRC, LVS check using the assura tool.
Extract RC parasites for back annotation and Re-simulation.
82 | P a g e
4.8 Tutorial 5: OPERATIONAL AMPLIFIER
Schematic Capture
Type the following in the ADD pin form in the exact order leaving space between the pin names.
Pin Names Direction
Idc,Vinv,Vnoninv Input
Vo Output
vdd, vss Input
83 | P a g e
4.8.2 Symbol Creation
Note: Remember to set the values for vdd and vss. Otherwise your circuit will have no power.
84 | P a g e
4.8.4 Analog Simulation with Spectre
85 | P a g e
4.8.5 Creating a layout view of Operational Amplifier
Use the techniques learned in the Tutorial1 and Tutorial2 to complete the layout of op-amp.
Complete the DRC, LVS check using the assura tool.
Extract RC parasites for back annotation and Re-simulation.
86 | P a g e
87 | P a g e
88 | P a g e
5 Altera DE2 Board (CYCLONE2 FPGA)
The DE2 board has many features that allow the user to implement a wide range of designed
circuits, from simple circuits to various multimedia projects.
5.1 Components:
90 | P a g e
5.2 Block Diagram
91 | P a g e
5.3 Power-up the DE2 Board
The DE2 board comes with a preloaded configuration bit stream to demonstrate some features of
the board. This bit stream also allows users to see quickly if the board is working properly. To
power-up the board perform the following steps:
1. Connect the provided USB cable from the host computer to the USB Blaster connector on
the DE2 board. For communication between the host and the DE2 board, it is necessary
to install the Altera USB Blaster driver software.
2. Connect the 9V adapter to the DE2 board
3. Connect a VGA monitor to the VGA port on the DE2 board
4. Connect your headset to the Line-out audio port on the DE2 board
5. Turn the RUN/PROG switch on the left edge of the DE2 board to RUN position; the
PROG position is used only for the AS Mode programming
6. Turn the power on by pressing the ON/OFF switch on the DE2 board
At this point you should observe the following:
• All user LEDs are flashing
• All 7-segment displays are cycling through the numbers 0 to F
• The LCD display shows Welcome to the Altera DE2 Board
• The VGA monitor displays the image shown in Figure 2.3.
• Set the toggle switch SW17 to the DOWN position; you should hear a 1-kHz
sound
• Set the toggle switch SW17 to the UP position and connect the output of an audio
player to
the Line-in connector on the DE2 board; on your headset you should hear the
music played
from the audio player (MP3, PC, iPod, or the like)
• You can also connect a microphone to the Microphone-in connector on the DE2
board; your
voice will be mixed with the music played from the audio player
92 | P a g e
5.4 Configuring the EPCS16 in AS Mode
The above Figure illustrates the AS configuration set up. To download a configuration bit
stream into the EPCS16 serial EEPROM device, perform the following steps:
• Ensure that power is applied to the DE2 board
• Connect the supplied USB cable to the USB Blaster port on the DE2 board (see
Figure 2.1)
• Configure the JTAG programming circuit by setting the RUN/PROG switch (on the
left side
of the board) to the PROG position.
• The EPCS16 chip can now be programmed by using the Quartus II Programmer
module to
select a configuration bit stream file with the .pof filename extension
• Once the programming operation is finished, set the RUN/PROG switch back to the
RUN position and then reset the board by turning the power switch off and back on;
this action
causes the new configuration data in the EPCS16 device to be loaded into the FPGA
chip.
93 | P a g e
5.5 Pin Assignments
5.5.1 Pin Assignments for the toggle switches
There are also 18 toggle switches (sliders) on the DE2 board. When a switch is in the DOWN
position (closest to the edge of the board) it provides a low logic level (0 volts) to the FPGA, and
when the switch is in the UP position it provides a high logic level (3.3 volts).
The DE2 board provides four pushbutton switches. Each switch provides a high logic level (3.3
volts) when it is not pressed, and provides a low logic level (0 volts) when depressed.
94 | P a g e
95 | P a g e
5.5.3 Pin Assignments for Output LED’s
There are 27 user-controllable LEDs on the DE2 board. Eighteen red LEDs are situated above
the 18 toggle switches, and eight green LEDs are found above the pushbutton switches (the 9th
green LED is in the middle of the 7-segment displays). Each LED is driven directly by a pin on
the Cyclone II FPGA; driving its associated pin to a high logic level turns the LED on, and
driving the pin low turns it off
96 | P a g e
5.5.4 Using 7-segment Displays
DE2 Board has eight 7-segment displays. These displays are arranged into two pairs and a group
of four, with the intent of displaying numbers of various sizes. Applying a low logic level to a
segment causes it to light up, and applying a high logic level turns it off.
Each segment in a display is identified by an index from 0 to 6, with the positions given in
Figure below. Note that the dot in each display is unconnected and cannot be used.
The assignments of FPGA pins to the 7-segment displays are also provided below
97 | P a g e
98 | P a g e
6 CYCLONE III FPGA
99 | P a g e
6.1 COMPONENTS
General user-interface
o Four user LEDs
o Two board-specific LEDs
o Push-buttons:
System reset
User reset
Four general user push-buttons
Memory subsystem
o Synchronous SRAM device
1-MB standard synchronous SRAM
167-MHz
Shares bus with parallel flash device
100 | P a g e
o Communications port for Board Diagnostic graphical user interface (GUI)
101 | P a g e
6.2 BLOCK DIAGRAM
102 | P a g e
103 | P a g e
7 LAB EXPERIMENTS: Verilog Code
7.1 LOGIC GATES
104 | P a g e
7.2 2-to-4 Decoder
`timescale 1ns/1ps
module decoder(
input [1:0] a,
output reg [3:0] y
);
always@(a)
case(a)
2'b00: y= 4'b0001;
2'b01: y= 4'b0010;
2'b10: y= 4'b0100;
2'b11: y= 4'b1000;
endcase
endmodule
105 | P a g e
7.3 8-to-1 Multiplexer
`timescale 1ns/1ps
module mux8to1(
input [7:0] a,
input [2:0] s,
output reg y
);
always@(a,s)
case(s)
3'b000: y=a[0];
3'b001: y=a[1];
3'b010: y=a[2];
3'b011: y=a[3];
3'b100: y=a[4];
3'b101: y=a[5];
3'b110: y=a[6];
3'b111: y=a[7];
endcase
endmodule
106 | P a g e
7.4 4Bit Binary to Gray converter
`timescale 1ns/1ps
module b2g_4b(
input [3:0] b,
output [3:0] g
);
assign g[3]=b[3];
assign g[2]=b[3]^b[2];
assign g[1]=b[2]^b[1];
assign g[0]=b[1]^b[0];
endmodule
107 | P a g e
7.5 8-to-3 encoder
7.5.1 Encoder without parity
`timescale 1ns/1ps
module encoder8x3(
input [7:0] a,
output reg [2:0] y
);
always @(a)
begin
if (a==8'b00000001) y=3'b000;
else if (a==8'b00000010) y=3'b001;
else if (a==8'b00000100) y=3'b010;
else if (a==8'b00001000) y=3'b011;
else if (a==8'b00010000) y=3'b100;
else if (a==8'b00100000) y=3'b101;
else if (a==8'b01000000) y=3'b110;
else if (a==8'b10000000) y=3'b111;
else y=3'bX;
end
endmodule
108 | P a g e
7.5.2 Priority encoder
`timescale 1ns/1ps
module PriorityEncoder(
input [7:0] D,
output ValidD,
output reg [2:0] Dout
);
endcase
end
endmodule
109 | P a g e
110 | P a g e
7.6 Demux 1-to-8
`timescale 1ns/1ps
module Demux8to1(
input a,
input [2:0] s,
output reg [7:0] z =0 );
always@(a,s)
if (s==0) z[0] = a;
else if (s==1) z[1] = a;
else if (s==2) z[2] = a;
else if (s==3) z[3] = a;
else if (s==4) z[4] = a;
else if (s==5) z[5] = a;
else if (s==6) z[6] = a;
else if (s==7) z[7] = a;
endmodule
111 | P a g e
7.7 Comparator
`timescale 1ns/1ps
module Comparator(
input [3:0] a,
input [3:0] b,
output a_gt_b,
output a_ls_b,
output a_eq_b
);
assign a_gt_b = (a > b);
assign a_ls_b = (a < b);
assign a_eq_b = (a == b);
endmodule
112 | P a g e
7.8 Full adder
7.8.1 Full adder: Continuous Assignment
`timescale 1ns/1ps
module FullAdder_CtAssign(
input A,
input B,
input Ci,
output S,
output Co
);
assign S =A^B^Ci;
assign Co= (A&B) | (Ci&A) | (Ci&B);
endmodule
113 | P a g e
7.8.2 Full adder: Structural
`timescale 1ns/1ps
module FullAdder_Structural(
input A,
input B,
input Ci,
output S,
output Co
);
wire z1,z2,z3,z4;
and And1(z1,A,B);
and And2(z2,A,Ci);
and And3(z3,B,Ci);
or Or1(Co, z1, z2, z3);
xor Xor1(z4, A, B);
xor Xor2(S,z4,Ci);
endmodule
114 | P a g e
7.8.3 Full adder: Procedural
`timescale 1ns/1ps
module FullAdder_Procedural(
input A,
input B,
input Ci,
output reg S,
output reg Co
);
always @(Ci, A, B)
begin
case({Ci, A, B})
3'b000: {Co,S}= 'b00;
3'b001: {Co,S}= 'b01;
3'b010: {Co,S}= 'b01;
3'b011: {Co,S}= 'b10;
3'b100: {Co,S}= 'b00;
3'b101: {Co,S}= 'b10;
3'b110: {Co,S}= 'b10;
3'b111: {Co,S}= 'b11;
endcase
end
endmodule
115 | P a g e
7.9 Flip-flops
7.9.1 SR FLIPFLOP
`timescale 1ns/1ps
module SRflipflop(
input S,
input R,
input Clk,
output reg Qa =1'b0,
output reg Qb =1'b1
);
//wire S,R,Clk;
reg a,b;
always@(S,R,Clk)
begin
a=Qa;
b=Qb;
if (Clk==1'b1)
case({S,R})
'b00: {Qa,Qb} ={a,b};
'b01: {Qa,Qb} = 'b01;
'b10: {Qa,Qb} = 'b10;
endcase
else if(Clk==1'b0)
{Qa,Qb} ={a,b};
end
endmodule
116 | P a g e
7.9.2 D FLIPFLOP
`timescale 1ns/1ps
module Dflipflop(
input wire D,
input wire Clk,
output reg Q=0,
output reg Qbar=1
);
always@(posedge Clk)
begin
Q=D;
Qbar=~Q;
end
endmodule
117 | P a g e
7.9.3 JK FlipFlop
`timescale 1ns/1ps
module JKflipflop(
input wire J,
input wire K,
input wire Clk,
output reg Q=0,
output reg Qbar=1
);
reg a,b;
always@(posedge Clk)
begin
a=Q; b=~Q;
case({J,K})
'b00: {Q,Qbar} = {a,b};
'b01:
begin
Q=0; a=Q; b=~Q; Qbar =b;
end
'b10:
begin
Q=1; a=Q; b=~Q; Qbar =b;
end
'b11: {Q,Qbar} = {b,a};
endcase
end
endmodule
118 | P a g e
119 | P a g e
7.9.4 T FLIPFLOP
`timescale 1ns/1ps
module Tflipflop(
input T,
input Clk,
output reg Q=0,
output reg Qbar,
output reg Di
);
always@(posedge Clk)
begin
Di=T^Q; Q=Di; Qbar=~Q;
end
endmodule
120 | P a g e
7.10 Counter
`timescale 1ns/1ps
module counter(
input clk,
input reset,
output reg [2:0] q
);
always @(posedge clk,reset)
if ((reset==0)|(q>=3'b 100))
q=3'b000;
else q = q+1;
endmodule
121 | P a g e
7.11 Finite State Machine
A finite state machine is implemented which will output(z) ‘high’ if all the 4 states (a,b,c,d) are
executed. For a change of state an output is flagged (flg) indicating the same
`timescale 1ns/1ps
module fsm(clk, reset, x, z, flg, pst, nst);
input clk;
input reset;
input x;
output reg z=0;
output reg flg=0;
output reg[1:0]pst,nst;
parameter a=2'b00;
parameter b=2'b01;
parameter c=2'b10;
parameter d=2'b11;
always@(posedge clk)
if(reset==0)
pst<=a;
else
pst<=nst;
always@(x or pst)
case({pst})
a:
if(x) begin
nst=b; z=0; flg=1;
end
else begin
nst=a;z=0;flg=0;
end
b:
if(x) begin
nst=c; z=0; flg=1;
end
else begin
nst=b;z=0;flg=0;
end
c:
if(x) begin
nst=d; z=0; flg=1;
end
122 | P a g e
else begin
nst=c;z=0;flg=0;
end
d:
if (x) begin
nst=a; z=1;flg=1;
end
else begin
nst=d;z=0; flg=0;
end
endcase
endmodule
123 | P a g e
8 LAB EXERCISES
2. Implement 3-to-8 decoder
124 | P a g e
125 | P a g e
9 Work Book and Observation
126 | P a g e
127 | P a g e
128 | P a g e
129 | P a g e
130 | P a g e
131 | P a g e
132 | P a g e
133 | P a g e
134 | P a g e
135 | P a g e
136 | P a g e
137 | P a g e
138 | P a g e
139 | P a g e
140 | P a g e
141 | P a g e
142 | P a g e
143 | P a g e
144 | P a g e
145 | P a g e
146 | P a g e
147 | P a g e
148 | P a g e
149 | P a g e
150 | P a g e
151 | P a g e