SlideShare a Scribd company logo
1 of 11
Ex No :1a
DESIGN & SIMULATION OF COMBINATIONAL LOGIC CIRCUITS
(Structural modeling)Date :
AIM:
To Design the following Combinational Circuits using verilog HDL and Simulate using Xilinx
foundation Series ISE version9.1
a) Half Adders
b) Full adder
c) Parallel adder
d) Multiplexer
e) Demultiplexer
f) 2-bit Magnitude Comparator
TOOLS REQUIRED:
Simulation Tool: Xilinx ISE 9.1 Simulator
DESIGN:
a) Half adder
Circuit Diagram& Truth Table
1
A & B- Inputs
S-Sum
C-Carry
Verilog Module
Output Waveform
2
TRUTH TABLE
Input Output
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
b) Full Adder
Circuit Diagram& Truth Table
A & B- Inputs
Ci-Input Carry
S-Sum
Co-Output Carry
Verilog Module
i) Without Instantiation
3
TRUTH TABLE
Input Output
A B Cin 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
ii) With Instantiation
4
Output Waveform
c) Parallel Adder
Circuit Diagram
5
A3 A2 A1 A0 &
B3 B2 B1 B0 are
operands.
C0- input carry
C4 -output carry
S3 S2 S1 S0-Sum
Verilog Module
Output Data
d) Multiplexer
Circuit Diagram & Truth Table
6
S0S1-Select Lines
D0 D1 D2 D3- Input variable
X- Output
Verilog Module
Output waveform
7
TRUTH TABLE
Inputs Output
S0 S1 X
0 0 D0
0 1 D1
1 0 D2
1 1 D3
e) De-multiplexer
Circuit Diagram & Truth Table
S0S1-Select Lines
Inp- input
O0 O1 O2 O3- Output
Verilog Module
8
Output Waveform
f) Two- bit Magnitude Comparator
Circuit Diagram
Verilog Module
9
Output Wave form
PROCEDURE:
i) Open the application software Xilinx window.
ii) Open a new project
a). Give the project name, check for configuration ‘Spartan 3E’ in next window.
b). Open new source verilog module, give the file name.
c). Give the name for input and output variables of the program.
d). Click Finish.
iii) Type the program to be synthesized.
iv) Save the program.
v) Run the synthesis tool.
vi) After completion of successful synthesis, click and view the RTL schematic.
vii) RTL schematic view window is open and synthesized circuit is seen on the screen.
10
VIVA QUESTIONS:
1. What are Min val & Max val Specifications in Gate Level Modeling?
2. What is Wire
3. Give the Verilog Data types?
4. What is Hardware Description Language
5. Give the Different types of modeling. Arrange them in descending order from highest
level of abstraction to lowest
RESULT:
11
Preparation /40
Output & Result /30
Viva /30
Total /100

More Related Content

What's hot

All VLSI programs
All VLSI programsAll VLSI programs
All VLSI programs
Gouthaman V
 
343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011
e11ie
 
Lecture 2 verilog
Lecture 2   verilogLecture 2   verilog
Lecture 2 verilog
venravi10
 

What's hot (18)

Alu description[1]
Alu description[1]Alu description[1]
Alu description[1]
 
Verilog HDL
Verilog HDLVerilog HDL
Verilog HDL
 
Digital system design lab manual
Digital system design lab manualDigital system design lab manual
Digital system design lab manual
 
Digital system design practical file
Digital system design practical fileDigital system design practical file
Digital system design practical file
 
Unit 2 module-2
Unit 2 module-2Unit 2 module-2
Unit 2 module-2
 
Basics of digital verilog design(alok singh kanpur)
Basics of digital verilog design(alok singh kanpur)Basics of digital verilog design(alok singh kanpur)
Basics of digital verilog design(alok singh kanpur)
 
Ecad &vlsi lab 18
Ecad &vlsi lab 18Ecad &vlsi lab 18
Ecad &vlsi lab 18
 
Functions for Nano 5 Card
Functions for Nano 5 CardFunctions for Nano 5 Card
Functions for Nano 5 Card
 
Practical file
Practical filePractical file
Practical file
 
17443 microprocessor
17443   microprocessor17443   microprocessor
17443 microprocessor
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDL
 
8 bit single cycle processor
8 bit single cycle processor8 bit single cycle processor
8 bit single cycle processor
 
All VLSI programs
All VLSI programsAll VLSI programs
All VLSI programs
 
Q 1
Q 1Q 1
Q 1
 
Lec15 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- EPIC VLIW
Lec15 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- EPIC VLIWLec15 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- EPIC VLIW
Lec15 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- EPIC VLIW
 
343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011
 
Lecture 2 verilog
Lecture 2   verilogLecture 2   verilog
Lecture 2 verilog
 
Ecet 230 Enthusiastic Study / snaptutorial.com
Ecet 230 Enthusiastic Study / snaptutorial.comEcet 230 Enthusiastic Study / snaptutorial.com
Ecet 230 Enthusiastic Study / snaptutorial.com
 

Viewers also liked

Ee 352 lab 1 (tutorial) - schwappach - 15 oct 09
Ee 352   lab 1 (tutorial) - schwappach - 15 oct 09Ee 352   lab 1 (tutorial) - schwappach - 15 oct 09
Ee 352 lab 1 (tutorial) - schwappach - 15 oct 09
Loren Schwappach
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
Vanitha Chandru
 
Sonet Sdh Dwdm
Sonet Sdh DwdmSonet Sdh Dwdm
Sonet Sdh Dwdm
deven l
 
MBA Internship Report
MBA Internship ReportMBA Internship Report
MBA Internship Report
Ajesh U Bhanu
 

Viewers also liked (14)

Ee 352 lab 1 (tutorial) - schwappach - 15 oct 09
Ee 352   lab 1 (tutorial) - schwappach - 15 oct 09Ee 352   lab 1 (tutorial) - schwappach - 15 oct 09
Ee 352 lab 1 (tutorial) - schwappach - 15 oct 09
 
CWDM Multiplexer & Demultiplexer
CWDM Multiplexer & DemultiplexerCWDM Multiplexer & Demultiplexer
CWDM Multiplexer & Demultiplexer
 
Vedic multiplier
Vedic multiplierVedic multiplier
Vedic multiplier
 
DESIGN OF SIMULATION DIFFERENT 8-BIT MULTIPLIERS USING VERILOG CODE BY SAIKIR...
DESIGN OF SIMULATION DIFFERENT 8-BIT MULTIPLIERS USING VERILOG CODE BY SAIKIR...DESIGN OF SIMULATION DIFFERENT 8-BIT MULTIPLIERS USING VERILOG CODE BY SAIKIR...
DESIGN OF SIMULATION DIFFERENT 8-BIT MULTIPLIERS USING VERILOG CODE BY SAIKIR...
 
FPGA Verilog Processor Design
FPGA Verilog Processor DesignFPGA Verilog Processor Design
FPGA Verilog Processor Design
 
Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer
 
Lic lab manual 1
Lic lab manual 1Lic lab manual 1
Lic lab manual 1
 
Verilog codes and testbench codes for basic digital electronic circuits.
Verilog codes and testbench codes for basic digital electronic circuits. Verilog codes and testbench codes for basic digital electronic circuits.
Verilog codes and testbench codes for basic digital electronic circuits.
 
Lic lab manual
Lic lab manualLic lab manual
Lic lab manual
 
My Report on adders
My Report on addersMy Report on adders
My Report on adders
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
 
Sonet Sdh Dwdm
Sonet Sdh DwdmSonet Sdh Dwdm
Sonet Sdh Dwdm
 
Multiplexer demul
Multiplexer demulMultiplexer demul
Multiplexer demul
 
MBA Internship Report
MBA Internship ReportMBA Internship Report
MBA Internship Report
 

Similar to Vlsilab13

108EN Electrical and Electronic scienceDesign, Simulation .docx
108EN Electrical and Electronic scienceDesign, Simulation .docx108EN Electrical and Electronic scienceDesign, Simulation .docx
108EN Electrical and Electronic scienceDesign, Simulation .docx
paynetawnya
 
Adapted from Harris & Harris Digital Design and Computer Arch.docx
Adapted from Harris & Harris Digital Design and Computer Arch.docxAdapted from Harris & Harris Digital Design and Computer Arch.docx
Adapted from Harris & Harris Digital Design and Computer Arch.docx
nettletondevon
 

Similar to Vlsilab13 (20)

108EN Electrical and Electronic scienceDesign, Simulation .docx
108EN Electrical and Electronic scienceDesign, Simulation .docx108EN Electrical and Electronic scienceDesign, Simulation .docx
108EN Electrical and Electronic scienceDesign, Simulation .docx
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
 
Verilog
VerilogVerilog
Verilog
 
Short.course.introduction.to.vhdl for beginners
Short.course.introduction.to.vhdl for beginners Short.course.introduction.to.vhdl for beginners
Short.course.introduction.to.vhdl for beginners
 
Short.course.introduction.to.vhdl
Short.course.introduction.to.vhdlShort.course.introduction.to.vhdl
Short.course.introduction.to.vhdl
 
Adapted from Harris & Harris Digital Design and Computer Arch.docx
Adapted from Harris & Harris Digital Design and Computer Arch.docxAdapted from Harris & Harris Digital Design and Computer Arch.docx
Adapted from Harris & Harris Digital Design and Computer Arch.docx
 
ECAD lab manual
ECAD lab manualECAD lab manual
ECAD lab manual
 
VLSI & E-CAD Lab Manual
VLSI & E-CAD Lab ManualVLSI & E-CAD Lab Manual
VLSI & E-CAD Lab Manual
 
Digital design with Systemc
Digital design with SystemcDigital design with Systemc
Digital design with Systemc
 
Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...
Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...
Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...
 
Introduction to VHDL
Introduction to VHDLIntroduction to VHDL
Introduction to VHDL
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Picmico
PicmicoPicmico
Picmico
 
e CAD lab manual
e CAD lab manuale CAD lab manual
e CAD lab manual
 
dokumen.tips_logic-synthesis-report.pdf
dokumen.tips_logic-synthesis-report.pdfdokumen.tips_logic-synthesis-report.pdf
dokumen.tips_logic-synthesis-report.pdf
 
Hardware Description Language
Hardware Description Language Hardware Description Language
Hardware Description Language
 
A109210503 digitallogicdesign1
A109210503 digitallogicdesign1A109210503 digitallogicdesign1
A109210503 digitallogicdesign1
 
Verilog overview
Verilog overviewVerilog overview
Verilog overview
 
slide8.ppt
slide8.pptslide8.ppt
slide8.ppt
 
VLSI lab manual Part A, VTU 7the sem KIT-tiptur
VLSI lab manual Part A, VTU 7the sem KIT-tipturVLSI lab manual Part A, VTU 7the sem KIT-tiptur
VLSI lab manual Part A, VTU 7the sem KIT-tiptur
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 

Vlsilab13

  • 1. Ex No :1a DESIGN & SIMULATION OF COMBINATIONAL LOGIC CIRCUITS (Structural modeling)Date : AIM: To Design the following Combinational Circuits using verilog HDL and Simulate using Xilinx foundation Series ISE version9.1 a) Half Adders b) Full adder c) Parallel adder d) Multiplexer e) Demultiplexer f) 2-bit Magnitude Comparator TOOLS REQUIRED: Simulation Tool: Xilinx ISE 9.1 Simulator DESIGN: a) Half adder Circuit Diagram& Truth Table 1
  • 2. A & B- Inputs S-Sum C-Carry Verilog Module Output Waveform 2 TRUTH TABLE Input Output A B S C 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1
  • 3. b) Full Adder Circuit Diagram& Truth Table A & B- Inputs Ci-Input Carry S-Sum Co-Output Carry Verilog Module i) Without Instantiation 3 TRUTH TABLE Input Output A B Cin 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
  • 5. Output Waveform c) Parallel Adder Circuit Diagram 5
  • 6. A3 A2 A1 A0 & B3 B2 B1 B0 are operands. C0- input carry C4 -output carry S3 S2 S1 S0-Sum Verilog Module Output Data d) Multiplexer Circuit Diagram & Truth Table 6
  • 7. S0S1-Select Lines D0 D1 D2 D3- Input variable X- Output Verilog Module Output waveform 7 TRUTH TABLE Inputs Output S0 S1 X 0 0 D0 0 1 D1 1 0 D2 1 1 D3
  • 8. e) De-multiplexer Circuit Diagram & Truth Table S0S1-Select Lines Inp- input O0 O1 O2 O3- Output Verilog Module 8
  • 9. Output Waveform f) Two- bit Magnitude Comparator Circuit Diagram Verilog Module 9
  • 10. Output Wave form PROCEDURE: i) Open the application software Xilinx window. ii) Open a new project a). Give the project name, check for configuration ‘Spartan 3E’ in next window. b). Open new source verilog module, give the file name. c). Give the name for input and output variables of the program. d). Click Finish. iii) Type the program to be synthesized. iv) Save the program. v) Run the synthesis tool. vi) After completion of successful synthesis, click and view the RTL schematic. vii) RTL schematic view window is open and synthesized circuit is seen on the screen. 10
  • 11. VIVA QUESTIONS: 1. What are Min val & Max val Specifications in Gate Level Modeling? 2. What is Wire 3. Give the Verilog Data types? 4. What is Hardware Description Language 5. Give the Different types of modeling. Arrange them in descending order from highest level of abstraction to lowest RESULT: 11 Preparation /40 Output & Result /30 Viva /30 Total /100