SlideShare a Scribd company logo
3
Most read
4
Most read
6
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

More Related Content

What's hot (20)

PPTX
Arm programmer's model
v Kalairajan
 
PPTX
Pass Transistor Logic
Sudhanshu Janwadkar
 
PPTX
Rc delay modelling in vlsi
Dr. Vishal Sharma
 
PPTX
Verilog Tutorial - Verilog HDL Tutorial with Examples
E2MATRIX
 
PPT
Multiplexers & Demultiplexers
Jayanshu Gundaniya
 
PPTX
Vlsi stick daigram (JCE)
Hrishikesh Kamat
 
PDF
Verilog coding of mux 8 x1
Rakesh kumar jha
 
PPTX
Vlsi design flow
Rajendra Kumar
 
PPTX
gate level modeling
VandanaBR2
 
PDF
VHDL- gate level modelling
VandanaPagar1
 
PPTX
System verilog assertions
HARINATH REDDY
 
PPTX
Gate level design -For beginners
Dr.YNM
 
PDF
Delays in verilog
JITU MISTRY
 
PPT
Memory organization of 8051
Muthu Manickam
 
DOC
DPSK(Differential Phase Shift Keying) transmitter and receiver
Sumukh Athrey
 
PPTX
Interconnect timing model
Prachi Pandey
 
PPTX
Multi mode multi corner (mmmc)
shaik sharief
 
PDF
8 bit full adder
COMSATS Abbottabad
 
PPTX
Verilog presentation final
Ankur Gupta
 
Arm programmer's model
v Kalairajan
 
Pass Transistor Logic
Sudhanshu Janwadkar
 
Rc delay modelling in vlsi
Dr. Vishal Sharma
 
Verilog Tutorial - Verilog HDL Tutorial with Examples
E2MATRIX
 
Multiplexers & Demultiplexers
Jayanshu Gundaniya
 
Vlsi stick daigram (JCE)
Hrishikesh Kamat
 
Verilog coding of mux 8 x1
Rakesh kumar jha
 
Vlsi design flow
Rajendra Kumar
 
gate level modeling
VandanaBR2
 
VHDL- gate level modelling
VandanaPagar1
 
System verilog assertions
HARINATH REDDY
 
Gate level design -For beginners
Dr.YNM
 
Delays in verilog
JITU MISTRY
 
Memory organization of 8051
Muthu Manickam
 
DPSK(Differential Phase Shift Keying) transmitter and receiver
Sumukh Athrey
 
Interconnect timing model
Prachi Pandey
 
Multi mode multi corner (mmmc)
shaik sharief
 
8 bit full adder
COMSATS Abbottabad
 
Verilog presentation final
Ankur Gupta
 

Viewers also liked (14)

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

Similar to Verilog VHDL code Decoder and Encoder (20)

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

More from Bharti Airtel Ltd. (20)

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

Recently uploaded (20)

PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PDF
3rd International Conference on Machine Learning and IoT (MLIoT 2025)
ClaraZara1
 
PDF
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PDF
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
PDF
AN EMPIRICAL STUDY ON THE USAGE OF SOCIAL MEDIA IN GERMAN B2C-ONLINE STORES
ijait
 
PDF
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PDF
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
PDF
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
PPTX
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
PPTX
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
PDF
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
Design Thinking basics for Engineers.pdf
CMR University
 
3rd International Conference on Machine Learning and IoT (MLIoT 2025)
ClaraZara1
 
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
AN EMPIRICAL STUDY ON THE USAGE OF SOCIAL MEDIA IN GERMAN B2C-ONLINE STORES
ijait
 
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 

Verilog VHDL code Decoder and Encoder