SlideShare a Scribd company logo
3
Most read
6
Most read
7
Most read
Experiment 4
Name: SHYAMVEER SINGH
Roll no. B-54
Regno. 11205816
AIM: To implement the 2:4,3:8, Decode and 8:3 encoder using
dataflow modeling and bheverioural madeling.
Apparetus: Xillinx ISE 9.2i softwere
Implementation of 2:4 Decoder:
Enable a b y0 y1 y2 y3
1 0 0 1 0 0 0
1 0 1 0 1 0 0
1 1 0 0 0 1 0
1 1 1 0 0 0 1
Verilogecode:
module dec24(a,b,en, y1,y2,y3,y4);
input a,b,en;
output y1,y2,y3,y4;
assign y1=(~a & ~b) & en;
assign y2=(~a & b) & en;
assign y3=(a & ~b) & en;
assign y4=(a & b) & en;
endmodule
RTL simulation:
Output waveform:
Implemantation of3:8 Decoder:
Verilogcode:
module deco38(a,b,c,en,y1,y2,y3,y4,y5,y6,y7,y8);
input a,b,c,en;
output y1,y2,y3,y4,y5,y6,y7,y8;
wire w1,w2,w3,w4,w5,w6,w7,w8,w9,w10,w11,w12;
not(w1,a);
not(w2,b);
not(w3,c);
not(w4,a);
not(w5,b);
not(w6,a);
not(w7,c);
not(w8,a);
not(w9,b);
not(w10,a);
not(w11,b);
not(w12,c);
and(y1,w1,w2,w3);
and(y2,w4,w5,c);
and(y3,w6,b,w7);
and(y4,w8,b,c);
and(y5,a,w9,w10);
and(y6,a,w11,c);
and(y7,a,b,w12);
and(y8,a,b,c);
endmodule
RTL simulation:
Output waveform:
Implementation of 3:8 Encoder:
Verilogcode:
module encode83(y0,y1,y2,i0,i1,i2,i3,i4,i5,i6,i7);
input i0,i1,i2,i3,i4,i5,i6,i7;
output y0,y1,y2;
or(y0,i4,i5,i6,i7);
or(y1,i2,i3,i6,i7);
or(y2,i1,i3,i5,i7);
endmodule
Output waveform:
Verilog VHDL code Decoder and Encoder
Ad

Recommended

Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer
Bharti Airtel Ltd.
 
Verilog HDL
Verilog HDL
Mantra VLSI
 
Vhdl programming
Vhdl programming
Yogesh Mashalkar
 
VLSI Lab manual PDF
VLSI Lab manual PDF
UR11EC098
 
Multiplexer & de multiplexer
Multiplexer & de multiplexer
vishalgohel12195
 
CSL 202, Multiplexer and Demultiplexer
CSL 202, Multiplexer and Demultiplexer
CKSunith1
 
Butterworth filter
Butterworth filter
MOHAMMAD AKRAM
 
carry look ahead adder
carry look ahead adder
ASHISH MANI
 
floating point multiplier
floating point multiplier
Bipin Likhar
 
Demultiplexer with vhdl code
Demultiplexer with vhdl code
Vishal Bait
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 ppt
SIVALAKSHMIPANNEERSE
 
Module4: opamp as a V-I & I-V Converter
Module4: opamp as a V-I & I-V Converter
chandrakant shinde
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.
Omkar Rane
 
Mod-5-synchronous-counter-using-J-K flip-flop.pdf
Mod-5-synchronous-counter-using-J-K flip-flop.pdf
Dr. Manjunatha. P
 
Verilog Test Bench
Verilog Test Bench
Dr.YNM
 
Verilog VHDL code Parallel adder
Verilog VHDL code Parallel adder
Bharti Airtel Ltd.
 
Magnitude comparator
Magnitude comparator
Syed Saeed
 
STLD-Combinational logic design
STLD-Combinational logic design
Abhinay Potlabathini
 
Design for Testability
Design for Testability
kumar gavanurmath
 
Shifters
Shifters
Rabindranath Tagore University, Bhopal
 
Multiplexers & Demultiplexers
Multiplexers & Demultiplexers
Jayanshu Gundaniya
 
Verilog coding of demux 8 x1
Verilog coding of demux 8 x1
Rakesh kumar jha
 
Digital electronics logic families
Digital electronics logic families
BLESSINAR0
 
Race around and master slave flip flop
Race around and master slave flip flop
Shubham Singh
 
Vlsi ppt priyanka
Vlsi ppt priyanka
Priyanka Gaur
 
Binary parallel adder
Binary parallel adder
jignesh prajapati
 
Testing boolean difference
Testing boolean difference
Anish Gupta
 
Chapter 4: Combinational Logic
Chapter 4: Combinational Logic
Er. Nawaraj Bhandari
 
Encoder and decoder
Encoder and decoder
Then Murugeshwari
 
Encoders and Decoders
Encoders and Decoders
Nic JM
 

More Related Content

What's hot (20)

floating point multiplier
floating point multiplier
Bipin Likhar
 
Demultiplexer with vhdl code
Demultiplexer with vhdl code
Vishal Bait
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 ppt
SIVALAKSHMIPANNEERSE
 
Module4: opamp as a V-I & I-V Converter
Module4: opamp as a V-I & I-V Converter
chandrakant shinde
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.
Omkar Rane
 
Mod-5-synchronous-counter-using-J-K flip-flop.pdf
Mod-5-synchronous-counter-using-J-K flip-flop.pdf
Dr. Manjunatha. P
 
Verilog Test Bench
Verilog Test Bench
Dr.YNM
 
Verilog VHDL code Parallel adder
Verilog VHDL code Parallel adder
Bharti Airtel Ltd.
 
Magnitude comparator
Magnitude comparator
Syed Saeed
 
STLD-Combinational logic design
STLD-Combinational logic design
Abhinay Potlabathini
 
Design for Testability
Design for Testability
kumar gavanurmath
 
Shifters
Shifters
Rabindranath Tagore University, Bhopal
 
Multiplexers & Demultiplexers
Multiplexers & Demultiplexers
Jayanshu Gundaniya
 
Verilog coding of demux 8 x1
Verilog coding of demux 8 x1
Rakesh kumar jha
 
Digital electronics logic families
Digital electronics logic families
BLESSINAR0
 
Race around and master slave flip flop
Race around and master slave flip flop
Shubham Singh
 
Vlsi ppt priyanka
Vlsi ppt priyanka
Priyanka Gaur
 
Binary parallel adder
Binary parallel adder
jignesh prajapati
 
Testing boolean difference
Testing boolean difference
Anish Gupta
 
Chapter 4: Combinational Logic
Chapter 4: Combinational Logic
Er. Nawaraj Bhandari
 
floating point multiplier
floating point multiplier
Bipin Likhar
 
Demultiplexer with vhdl code
Demultiplexer with vhdl code
Vishal Bait
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 ppt
SIVALAKSHMIPANNEERSE
 
Module4: opamp as a V-I & I-V Converter
Module4: opamp as a V-I & I-V Converter
chandrakant shinde
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.
Omkar Rane
 
Mod-5-synchronous-counter-using-J-K flip-flop.pdf
Mod-5-synchronous-counter-using-J-K flip-flop.pdf
Dr. Manjunatha. P
 
Verilog Test Bench
Verilog Test Bench
Dr.YNM
 
Verilog VHDL code Parallel adder
Verilog VHDL code Parallel adder
Bharti Airtel Ltd.
 
Magnitude comparator
Magnitude comparator
Syed Saeed
 
Verilog coding of demux 8 x1
Verilog coding of demux 8 x1
Rakesh kumar jha
 
Digital electronics logic families
Digital electronics logic families
BLESSINAR0
 
Race around and master slave flip flop
Race around and master slave flip flop
Shubham Singh
 
Testing boolean difference
Testing boolean difference
Anish Gupta
 

Viewers also liked (14)

Encoder and decoder
Encoder and decoder
Then Murugeshwari
 
Encoders and Decoders
Encoders and Decoders
Nic JM
 
Verilog code all
Verilog code all
MNIT jaipur
 
VHDL Packages, Coding Styles for Arithmetic Operations and VHDL-200x Additions
VHDL Packages, Coding Styles for Arithmetic Operations and VHDL-200x Additions
Amal Khailtash
 
L5 Adders
L5 Adders
ankitgoel
 
Logic families
Logic families
Bipin Kujur
 
Encoder decoder
Encoder decoder
dennis gookyi
 
encoder and decoder in digital electronics
encoder and decoder in digital electronics
vikram rajpurohit
 
Programs of VHDL
Programs of VHDL
Rkrishna Mishra
 
digital image processing
digital image processing
N.CH Karthik
 
Basics of Vhdl
Basics of Vhdl
Atchyuth Sonti
 
Digital Image Processing Fundamental
Digital Image Processing Fundamental
Thuong Nguyen Canh
 
Introduction to digital image processing
Introduction to digital image processing
Hossain Md Shakhawat
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLAB
Ray Phan
 
Encoders and Decoders
Encoders and Decoders
Nic JM
 
Verilog code all
Verilog code all
MNIT jaipur
 
VHDL Packages, Coding Styles for Arithmetic Operations and VHDL-200x Additions
VHDL Packages, Coding Styles for Arithmetic Operations and VHDL-200x Additions
Amal Khailtash
 
encoder and decoder in digital electronics
encoder and decoder in digital electronics
vikram rajpurohit
 
digital image processing
digital image processing
N.CH Karthik
 
Digital Image Processing Fundamental
Digital Image Processing Fundamental
Thuong Nguyen Canh
 
Introduction to digital image processing
Introduction to digital image processing
Hossain Md Shakhawat
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLAB
Ray Phan
 
Ad

Similar to Verilog VHDL code Decoder and Encoder (20)

vlsi design using verilog presentaion 1
vlsi design using verilog presentaion 1
MANDHASAIGOUD1
 
Vlsi lab manual exp:1
Vlsi lab manual exp:1
komala vani
 
Task i
Task i
Darshil Shah
 
Digital system design practical file
Digital system design practical file
Archita Misra
 
Verilog hdl
Verilog hdl
Muhammad Uzair Rasheed
 
Verilog for synthesis - combinational rev a.pdf
Verilog for synthesis - combinational rev a.pdf
AzeemMohammedAbdul
 
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
Supanna Shirguppe
 
Digital System Design Lab Report - VHDL ECE
Digital System Design Lab Report - VHDL ECE
Ramesh Naik Bhukya
 
Verilog lab manual (ECAD and VLSI Lab)
Verilog lab manual (ECAD and VLSI Lab)
Dr. Swaminathan Kathirvel
 
VLSI experiments II
VLSI experiments II
Gouthaman V
 
e CAD lab manual
e CAD lab manual
Amairullah Khan Lodhi
 
COSC 426 Lect. 3 -AR Developer Tools
COSC 426 Lect. 3 -AR Developer Tools
Mark Billinghurst
 
VIT_Workshop.ppt
VIT_Workshop.ppt
VINOTHRAJR1
 
Practical file
Practical file
rajeevkr35
 
Lecture07(DHDNBK)-Behavior-Modelling.pdf
Lecture07(DHDNBK)-Behavior-Modelling.pdf
thanhfacebook123dn
 
VHDL Programs
VHDL Programs
Dr. A. B. Shinde
 
Verilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with Examples
E2MATRIX
 
VHdl lab report
VHdl lab report
Jinesh Kb
 
Day2 Verilog HDL Basic
Day2 Verilog HDL Basic
Ron Liu
 
Seminar on Digital Multiplier(Booth Multiplier) Using VHDL
Seminar on Digital Multiplier(Booth Multiplier) Using VHDL
Naseer LoneRider
 
vlsi design using verilog presentaion 1
vlsi design using verilog presentaion 1
MANDHASAIGOUD1
 
Vlsi lab manual exp:1
Vlsi lab manual exp:1
komala vani
 
Digital system design practical file
Digital system design practical file
Archita Misra
 
Verilog for synthesis - combinational rev a.pdf
Verilog for synthesis - combinational rev a.pdf
AzeemMohammedAbdul
 
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
Supanna Shirguppe
 
Digital System Design Lab Report - VHDL ECE
Digital System Design Lab Report - VHDL ECE
Ramesh Naik Bhukya
 
VLSI experiments II
VLSI experiments II
Gouthaman V
 
COSC 426 Lect. 3 -AR Developer Tools
COSC 426 Lect. 3 -AR Developer Tools
Mark Billinghurst
 
VIT_Workshop.ppt
VIT_Workshop.ppt
VINOTHRAJR1
 
Practical file
Practical file
rajeevkr35
 
Lecture07(DHDNBK)-Behavior-Modelling.pdf
Lecture07(DHDNBK)-Behavior-Modelling.pdf
thanhfacebook123dn
 
Verilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with Examples
E2MATRIX
 
VHdl lab report
VHdl lab report
Jinesh Kb
 
Day2 Verilog HDL Basic
Day2 Verilog HDL Basic
Ron Liu
 
Seminar on Digital Multiplier(Booth Multiplier) Using VHDL
Seminar on Digital Multiplier(Booth Multiplier) Using VHDL
Naseer LoneRider
 
Ad

More from Bharti Airtel Ltd. (20)

Resume Shyamveer
Resume Shyamveer
Bharti Airtel Ltd.
 
BHEL Final Report
BHEL Final Report
Bharti Airtel Ltd.
 
BHEL PPT
BHEL PPT
Bharti Airtel Ltd.
 
Amplitude modulated-systmes
Amplitude modulated-systmes
Bharti Airtel Ltd.
 
Amplitude modulated-systems
Amplitude modulated-systems
Bharti Airtel Ltd.
 
Mcq5 ac-fet-amplifiers
Mcq5 ac-fet-amplifiers
Bharti Airtel Ltd.
 
Mcq6 ac-mosfet-amplifier
Mcq6 ac-mosfet-amplifier
Bharti Airtel Ltd.
 
C bjt-biasing-and-stabilization
C bjt-biasing-and-stabilization
Bharti Airtel Ltd.
 
Mcq6 ac-mosfet-amplifier
Mcq6 ac-mosfet-amplifier
Bharti Airtel Ltd.
 
Mcq4 ac-operational-amplifiers
Mcq4 ac-operational-amplifiers
Bharti Airtel Ltd.
 
Logic gates-notesdc-iii
Logic gates-notesdc-iii
Bharti Airtel Ltd.
 
C bjt-biasing-and-stabilization
C bjt-biasing-and-stabilization
Bharti Airtel Ltd.
 
B bjt-characteristics
B bjt-characteristics
Bharti Airtel Ltd.
 
A bjt-operating-modes-configurations
A bjt-operating-modes-configurations
Bharti Airtel Ltd.
 
Resume shyam final
Resume shyam final
Bharti Airtel Ltd.
 
Noise detection from the signal matlab code, Signal Diagnosis
Noise detection from the signal matlab code, Signal Diagnosis
Bharti Airtel Ltd.
 
Sequence detector Verilog Code
Sequence detector Verilog Code
Bharti Airtel Ltd.
 
Divine inspiration
Divine inspiration
Bharti Airtel Ltd.
 
To designing counters using verilog code
To designing counters using verilog code
Bharti Airtel Ltd.
 
FIR filter designing using Matlab
FIR filter designing using Matlab
Bharti Airtel Ltd.
 

Recently uploaded (20)

May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
 
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Mark Billinghurst
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
resming1
 
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
 
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
Shabista Imam
 
輪読会資料_Miipher and Miipher2 .
輪読会資料_Miipher and Miipher2 .
NABLAS株式会社
 
Mobile database systems 20254545645.pptx
Mobile database systems 20254545645.pptx
herosh1968
 
NEW Strengthened Senior High School Gen Math.pptx
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
Introduction to sensing and Week-1.pptx
Introduction to sensing and Week-1.pptx
KNaveenKumarECE
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
 
How to Un-Obsolete Your Legacy Keypad Design
How to Un-Obsolete Your Legacy Keypad Design
Epec Engineered Technologies
 
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
Data Structures Module 3 Binary Trees Binary Search Trees Tree Traversals AVL...
Data Structures Module 3 Binary Trees Binary Search Trees Tree Traversals AVL...
resming1
 
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
 
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Mark Billinghurst
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
resming1
 
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
 
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
Shabista Imam
 
輪読会資料_Miipher and Miipher2 .
輪読会資料_Miipher and Miipher2 .
NABLAS株式会社
 
Mobile database systems 20254545645.pptx
Mobile database systems 20254545645.pptx
herosh1968
 
NEW Strengthened Senior High School Gen Math.pptx
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
Introduction to sensing and Week-1.pptx
Introduction to sensing and Week-1.pptx
KNaveenKumarECE
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
 
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
Data Structures Module 3 Binary Trees Binary Search Trees Tree Traversals AVL...
Data Structures Module 3 Binary Trees Binary Search Trees Tree Traversals AVL...
resming1
 

Verilog VHDL code Decoder and Encoder