E-Cad Lab Manual
E-Cad Lab Manual
For
E-CAD LAB
(III B. Tech ECE- II Semester- R18 .AY:2021 - 22)
Prepared by
1. Mr. M. RANJITH REDDY, Asst. Professor
2. Mr. K. RAJESH, Asst. Professor
Department of
Electronics & Communication Engineering
2022
www.siddhartha.co.in
SIDDHARTHA INSTITUTE OF TECHNOLOGY & SCIENCES
CONTENTS
ADDITIONAL
EXPERIMENTS
SIDDHARTHA INSTITUTE OF TECHNOLOGY & SCIENCES
VISION:
To be a Centre of Excellence in Technical Education and to become an epic center of Research for
creative solutions.
MISSION:
To address the Emerging Needs through Quality Technical Education with an emphasis on practical
skills and Advanced Research with social relevance.
OBJECTIVES:
To translate our vision into action and accomplish our mission, we strive to provide state-of-art
infrastructure.
Recruit, Motivate and develop faculty of high caliber and with multiple specialization.
i
SIDDHARTHA INSTITUTE OF TECHNOLOGY & SCIENCES
VISION:
To provide innovative teaching and learning methodologies for excelling in a high-value career, higher
education and research to the students in the field of Electronics and Communication Engineering to
meet the needs of the industry and to be a part of the advancing technological revolution.
MISSION:
To create engineers of high quality on par with international standards by providing excellent
infrastructure and well qualified faculty.
To establish centers of excellence to enhance collaborative and multidisciplinary activities to
develop human and intellectual qualities.
To provide technical expertise to carry out research and development.
ii
SIDDHARTHA INSTITUTE OF TECHNOLOGY & SCIENCES
PROGRAM OUTCOMES:
1. Engineering Knowledge: Apply the knowledge of mathematics, science, engineering fundamentals, and
an engineering specialization to the solution of complex engineering problems.
2. Problem analysis: Identify, formulate, review research literature, and analyze complex engineering
problems reaching substantiated conclusions using first principles of mathematics, natural sciences, and
engineering sciences.
3. Design/development of solutions: Design solutions for complex engineering problems and design
system components or processes that meet the specified needs with appropriate consideration for the
public health and safety, and the cultural, societal, and environmental considerations.
4. Conduct investigations of complex problems: Use research-based knowledge and research methods
including design of experiments, analysis and interpretation of data, and synthesis of the information to
provide valid conclusions.
5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern engineering
and IT tools including prediction and modeling to complex engineering activities with an understanding of
the limitations.
6. The engineer and society: Apply reasoning informed by the contextual knowledge to assess societal,
health, safety, legal and cultural issues and the consequent responsibilities relevant to the professional
engineering practice.
7. Environment and sustainability: Understand the impact of the professional engineering solutions in
societal and environmental contexts, and demonstrate the knowledge of, and need for sustainable
development.
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of the
engineering practice.
9. Individual and team work: Function effectively as an individual, and as a member or leader in diverse
teams, and in multidisciplinary settings.
10. Communication: Communicate effectively on complex engineering activities with the engineering
community and with society at large, such as, being able to comprehend and write effective reports and
design documentation, make effective presentations, and give and receive clear instructions.
11. Project management and finance: Demonstrate knowledge and understanding of the engineering and
management principles and apply these to one’s own work, as a member and leader in a team, to manage
projects and in multidisciplinary environments.
12. Life-long learning: Recognize the need for, and have the preparation and ability to engage in independent
and life-long learning in the broadest context of technological change.
iii
RULES AND REGULATIONS OF LAB
All students must observe the Dress Code while in the laboratory.
iv
INTRODUCTION - XILINX
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:
1. New Project Creation
Once the Xilinx ISE Design suite is started, open a new project & enter your design
name and the location path. By default ‘HDL’ is selected as the top-level source type. (If
not, please select Top-level source type as ‘HDL’)
1
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
2
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.
3
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
4
8. Design Entry and Syntax Check
The ports defined during the ‘Project Creation’ are defined as a module in the ‘filename.v’
file
5
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.
6
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
7
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
8
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
9
EXPERIMENT No: 1
AIM:
To develop the source code for logic gates by using VERILOG and obtain the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
LOGIC DIAGRAM:
A B Y=AB A B Y=A+B
0 0 0 0 0 0
0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
A B Y=(A+B)’
0 0 1 A B
0 1 0 0 0 0
1 0 0 0 1 1
1 1 0 1 0 1
1 1 0
10
XNOR GATE:
LOGIC DIAGRAM: TRUTH TABLE:
endmodule
SIMULATION OUTPUT:
RESULT:
Thus the OUTPUT’s of all logic gates are verified by simulating the VERILOG code.
11
EXPERIMENT No: 2
AIM:
To develop the source code for encoder by using VERILOG and obtain the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
DECODER
0 0 1 0 1 1 1
0 1 1 1 0 1 1
1 0 1 1 1 0 1
1 1 1 1 1 1 0
12
SIMULATION OUTPUT:
RESULT:
Thus the OUTPUT’s of encoder are verified by simulating the VERILOG code.
13
ECE,
MRCET
EXPERIMENT No: 3
AIM:
To develop the source code for encoder by using VERILOG and obtain the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
ENCODER:
TRUTH
LOGIC DIAGRAM: TABLE:
D0 D1 D2 D3 D4 D5 D6 D7 X Y Z
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
15
ECE E-CAD LAB MANUAL SITS
SIMULATION OUTPUT:
RESULT:
Thus the OUTPUT’s of Encoded are verified by simulating the VERILOG code.
16
ECE E-CAD LAB MANUAL SITS
EXPERIMENT No: 4
AIM:
To develop the source code for 8x1 multiplexer and demultiplexer by using VERILOG and
obtain the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
MULTIPLEXER:
LOGIC DIAGRAM:
17
ECE E-CAD LAB MANUAL SITS
TRUTH TABLE:
18
ECE E-CAD LAB MANUAL SITS
SIMULATION OUTPUT:
DEMULTIPLEXER:
LOGIC DIAGRAM:
RESULT:
Thus the OUTPUT’s of Multiplexers and Demultiplexers are verified by simulating the
VHDL and VERILOG code.
19
ECE E-CAD LAB MANUAL SITS
EXPERIMENT No: 5
AIM:
To develop the source code for binary to gray converter by using VERILOG and obtained
the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
TRUTH TABLE:
BCD GRAY
0000 0000
0001 0001
0010 0011
0011 0010
0100 0110
0101 0111
0110 0101
0111 0100
1000 1100
1001 1101
LOGIC DIAGRAM:
BEHAVIORAL MODELING:
20
ECE E-CAD LAB MANUAL SITS
always@(b) begin
g[3]=b[3];
g[2]=b[3]^b[2];
g[1]=b[2]^b[1];
g[0]=b[1]^b[0];
end
endmodule
SIMULATION OUTPUT:
RESULT:
Thus the OUTPUT’s of binary to gray converter are verified by simulating the VERILOG
code.
21
ECE E-CAD LAB MANUAL SITS
EXPERIMENT No: 6
4-BIT COMPARATOR
AIM:
To develop the source code for 4-Bit comparator by using VERILOG and obtained the
simulation .
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
4-BIT COMPARATOR:
LOGIC DIAGRAM:
22
ECE E-CAD LAB MANUAL SITS
SIMULATION OUTPUT:
RESULT:
Thus the OUTPUT’s of 4-bit comparator is verified by simulating the VERILOG code.
23
ECE E-CAD LAB MANUAL SITS
EXPERIMENT No: 7
AIM:
To develop the source code for full adder using three modeling styles by using VERILOG
and obtained the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
FULL ADDER:
A B C SUM CARRY
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Dataflow Modeling:
endmodule
24
ECE E-CAD LAB MANUAL SITS
Behavioral Modeling:
Structural Modeling:
25
ECE E-CAD LAB MANUAL SITS
SIMULATION OUTPUT:
RESULT:
Thus the OUTPUT’s of full adder using three modeling styles are verified by simulating the
VERILOG code.
26
ECE E-CAD LAB MANUAL SITS
EXPERIMENT No: 8
AIM:
To develop the source code for FLIP FLOPS by using VERILOG and obtained the
simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
SR FLIPFLOP:
LOGIC DIAGRAM: TRUTH TABLE:
Q(t) S R Q(t+1)
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 X
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 X
VERILOG SOURCE CODE:
Behavioral Modeling:
module srflipflop(s, r, clk, rst, q, qbar);
input s;
input r;
input clk;
input rst;
output q;
output qbar;
reg q,qbar;
always @ (posedge(clk) or posedge(rst)) begin
if(rst==1'b1) begin
q= 1'b0;qbar= 1'b1;
end
else if(s==1'b0 && r==1'b0)
begin
27
ECE E-CAD LAB MANUAL SITS
q=q; qbar=qbar;
end
else if(s==1'b0 && r==1'b1)
begin
q= 1'b0; qbar= 1'b1;
end
else if(s==1'b1 && r==1'b0)
begin
q= 1'b1; qbar= 1'b0;
end
else
begin
q=1'bx;qbar=1'bx;
end
end
endmodule
SIMULATION OUTPUT:
JK FLIPFLOP:
Q(t) J K Q(t+1)
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
28
ECE E-CAD LAB MANUAL SITS
Behavioral Modeling:
29
ECE E-CAD LAB MANUAL SITS
SIMULATION OUTPUT:
D FLIPFLOP:
LOGIC DIAGRAM: TRUTH TABLE:
Q(t) D Q(t+1)
0 0 0
0 1 1
1 0 0
1 1 1
Behavioral Modeling:
SIMULATION OUTPUT:
T-FLIP FLOP
31
ECE E-CAD LAB MANUAL SITS
SIMULATION OUTPUT:
RESULT:
Thus the OUTPUT’s of Flip Flops are verified by simulating the VERILOG code.
32
ECE E-CAD LAB MANUAL SITS
EXPERIMENT-9
AIM:
To develop the source code for 4-bit binary counter and BCD counter by using VERILOG
and obtained the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
LOGIC DIAGRAM:
33
ECE E-CAD LAB MANUAL SITS
SIMULATION OUTPUT:
BCD COUNTER
LOGIC DIAGRAM
SIMULATION OUTPUT:
RESULT:
Thus the OUTPUT’s of 4-bit counter and BCD COUNTER using three modeling styles are
verified by synthesizing and simulating the VERILOG code
35
ECE E-CAD LAB MANUAL SITS
EXPERIMENT: 10
AIM:
To develop the source code for finite state machine design by using VERILOG and obtained
the simulation
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
FSM DESIGN
36
ECE E-CAD LAB MANUAL SITS
of Module arbiter
RESULT:
Thus the OUTPUT’s of finite state machine design is verified by simulating the VERILOG
code.
37
ECE E-CAD LAB MANUAL SITS
EXPERIMENT: 11
DESIGN AND IMPLEMENTATION OF AN INVERTER
Schematic Capture:
Procedure:
1. Connect the Circuit as shown in the circuit diagram using Pyxis Schematic tool
2. Enter into Simulation mode.
3. Setup the Analysis and library.
4. Setup the required analysis.
5. Probe the required Voltages
6. Run the simulation.
7. Observe the waveforms in EZ wave.
8. Draw the layout using Pysis Layout.
9. Perform Routing using IRoute
10. Perform DRC, LVS, PEX.
ECE E-CAD LAB MANUAL SITS
Schematic Symbol:
EXPERIMENT: 12
NAND GATE
AIM: To create a library and build a schematic of a NAND GATE, to create a symbol for
the Inverter, to build an Inverter Test circuit using your Inverter, To set up and run
simulations on the Inverter Test design.
Schematic Diagram
ECE E-CAD LAB MANUAL SITS
PROCEDURE:
1. Connect the Circuit as shown in the circuit diagram using Pyxis schematic.
2. Create a simulation schematic for simulation.
3. Add necessary nets in outputs to view waveforms.
4. Run the Simulation and observe results in EZwave.
5. Draw the Layout for the circuit using Pyxis Layout.
7. Run the physical verification (DRC, LVS, PEX) using Calibre tool .
8. Run the post layout simulation by adding the .dspf file generated in PEX.
9. Observe the post layout results.
Symbol Creation:
ECE E-CAD LAB MANUAL SITS
Simulation Output:
ECE E-CAD LAB MANUAL SITS
EXPERIMENT NO: 13
NOR GATE
AIM: To design and simulate the CMOS NOR gate
TOOLS: Mentor Graphics: Pyxis Schematic, Pyxis Layout, Eldo, Ezwave, Calibre
CIRCUIT DIAGRAM:
ECE E-CAD LAB MANUAL SITS
SIMULATION CIRCUIT:
PROCEDURE:
1. Connect the Circuit as shown in the circuit diagram using Pyxis schematic.
2. Create a simulation schematic for simulation.
3. Add necessary nets in outputs to view waveforms.
4. Run the Simulation and observe results in EZwave.
5. Draw the Layout for the circuit using Pyxis Layout.
7. Run the physical verification (DRC, LVS, PEX) using Calibre tool .
8. Run the post layout simulation by adding the .dspf file generated in PEX.
9. Observe the post layout results.
ECE E-CAD LAB MANUAL SITS
Simulation Output:
Layout:
ECE E-CAD LAB MANUAL SITS
EXPERIMENT NO: 14
XOR GATE
AIM: To create a library and build a schematic of an XOR gate, to create a symbol for the
XOR, to build an inverter test circuit using your XOR, to set up and run simulations on the
XOR_test design.
PROCEDURE:
1. Connect the Circuit as shown in the circuit diagram using Pyxis schematic.
2. Create a simulation schematic for simulation.
3. Add necessary nets in outputs to view waveforms.
4. Run the Simulation and observe results in EZwave.
5. Draw the Layout for the circuit using Pyxis Layout.
ECE E-CAD LAB MANUAL SITS
7. Run the physical verification (DRC, LVS, PEX) using Calibre tool .
8. Run the post layout simulation by adding the .dspf file generated in PEX.
9. Observe the post layout results.
Symbol Creation:
PROCEDURE:
1. Connect the Circuit as shown in the circuit diagram using Pyxis schematic.
2. Create a simulation schematic for simulation.
3. Add necessary nets in outputs to view waveforms.
4. Run the Simulation and observe results in EZwave.
5. Draw the Layout for the circuit using Pyxis Layout.
7. Run the physical verification (DRC, LVS, PEX) using Calibre tool .
8. Run the post layout simulation by adding the .dspf file generated in PEX.
9. Observe the post layout results
Simulation output:
Layout:
ECE E-CAD LAB MANUAL SITS
52