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)

PDF
Verilog VHDL code Parallel adder
Bharti Airtel Ltd.
 
PPTX
I2C Protocol
Sudhanshu Janwadkar
 
PDF
Day2 Verilog HDL Basic
Ron Liu
 
PPTX
Advance Peripheral Bus
SIVA NAGENDRA REDDY
 
PDF
Jtag presentation
klinetik
 
PPTX
Radix 4 booth
Richu Jose Cyriac
 
PDF
VERILOG CODE FOR Adder
Rakesh kumar jha
 
PPTX
Verilog HDL
Mantra VLSI
 
PPTX
Introduction to System verilog
Pushpa Yakkala
 
PDF
Verilog coding of demux 8 x1
Rakesh kumar jha
 
PDF
Verilog lab manual (ECAD and VLSI Lab)
Dr. Swaminathan Kathirvel
 
PPT
Data Flow Modeling
Padmanaban Kalyanaraman
 
PPTX
Ambha axi
HARINATH REDDY
 
PPSX
VLSI Testing Techniques
Dr. A. B. Shinde
 
PPTX
digital electronics Design of 101 sequence detector without overlapping for...
sanjay kumar pediredla
 
PPTX
Combinational circuits
DrSonali Vyas
 
PPTX
System verilog assertions
HARINATH REDDY
 
PPT
Crash course in verilog
Pantech ProLabs India Pvt Ltd
 
PPTX
Carry look ahead adder
dragonpradeep
 
PPT
VLSI subsystem design processes and illustration
Vishal kakade
 
Verilog VHDL code Parallel adder
Bharti Airtel Ltd.
 
I2C Protocol
Sudhanshu Janwadkar
 
Day2 Verilog HDL Basic
Ron Liu
 
Advance Peripheral Bus
SIVA NAGENDRA REDDY
 
Jtag presentation
klinetik
 
Radix 4 booth
Richu Jose Cyriac
 
VERILOG CODE FOR Adder
Rakesh kumar jha
 
Verilog HDL
Mantra VLSI
 
Introduction to System verilog
Pushpa Yakkala
 
Verilog coding of demux 8 x1
Rakesh kumar jha
 
Verilog lab manual (ECAD and VLSI Lab)
Dr. Swaminathan Kathirvel
 
Data Flow Modeling
Padmanaban Kalyanaraman
 
Ambha axi
HARINATH REDDY
 
VLSI Testing Techniques
Dr. A. B. Shinde
 
digital electronics Design of 101 sequence detector without overlapping for...
sanjay kumar pediredla
 
Combinational circuits
DrSonali Vyas
 
System verilog assertions
HARINATH REDDY
 
Crash course in verilog
Pantech ProLabs India Pvt Ltd
 
Carry look ahead adder
dragonpradeep
 
VLSI subsystem design processes and illustration
Vishal kakade
 

Viewers also liked (15)

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
 
PPT
Multiplexers & Demultiplexers
Jayanshu Gundaniya
 
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
 
Multiplexers & Demultiplexers
Jayanshu Gundaniya
 
Introduction to Digital Image Processing Using MATLAB
Ray Phan
 
Ad

Similar to Verilog VHDL code Decoder and Encoder (20)

PPT
Chapter 4 combinational circuit
GulAhmad16
 
PPT
11.ppt
GulAhmad16
 
PDF
Task i
Darshil Shah
 
PPT
04_Chapter 4768 - Modular Comb logic.ppt
ManikandanV100610
 
PPT
leccccccccccc14_combinational_blocks.ppt
AdityaGupta221734
 
PPT
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
Supanna Shirguppe
 
PPT
Digital Circuit Verification Hardware Descriptive Language Verilog
Abhiraj Bohra
 
PPT
Lcdf4 chap 03_p2
ozgur_can
 
PPTX
Decoders in digital electronics
Easy n Inspire L
 
PPT
decoder and encoder
Unsa Shakir
 
PPTX
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
Aishah928448
 
PPTX
Decoders
Ammara Javed
 
PPT
ME- applied electronics Vlsi UNIT IV.ppt
JayashreeSelvam5
 
PPTX
Digital Logic Design Lectures on Flip-flops and latches and counters
ssuserb29fcb
 
PPTX
Decoders
Pooja Dixit
 
PPTX
Digital VLSI - Unit 2.pptx
SanjaiPrasad
 
PPTX
Digital Logic Design Lecture on Counters and
ssuserb29fcb
 
PPT
217456070-Chapter-3_eletrical engineering
KritiArora55
 
PPTX
Logic Design - Chapter 5: Part1 Combinattional Logic
Gouda Mando
 
PDF
Encoders anaaaaaaaaaaaaaaad decoders.pdf
AdityaGupta221734
 
Chapter 4 combinational circuit
GulAhmad16
 
11.ppt
GulAhmad16
 
Task i
Darshil Shah
 
04_Chapter 4768 - Modular Comb logic.ppt
ManikandanV100610
 
leccccccccccc14_combinational_blocks.ppt
AdityaGupta221734
 
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
Supanna Shirguppe
 
Digital Circuit Verification Hardware Descriptive Language Verilog
Abhiraj Bohra
 
Lcdf4 chap 03_p2
ozgur_can
 
Decoders in digital electronics
Easy n Inspire L
 
decoder and encoder
Unsa Shakir
 
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
Aishah928448
 
Decoders
Ammara Javed
 
ME- applied electronics Vlsi UNIT IV.ppt
JayashreeSelvam5
 
Digital Logic Design Lectures on Flip-flops and latches and counters
ssuserb29fcb
 
Decoders
Pooja Dixit
 
Digital VLSI - Unit 2.pptx
SanjaiPrasad
 
Digital Logic Design Lecture on Counters and
ssuserb29fcb
 
217456070-Chapter-3_eletrical engineering
KritiArora55
 
Logic Design - Chapter 5: Part1 Combinattional Logic
Gouda Mando
 
Encoders anaaaaaaaaaaaaaaad decoders.pdf
AdityaGupta221734
 
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
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
PPTX
Day2 B2 Best.pptx
helenjenefa1
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
Green Building & Energy Conservation ppt
Sagar Sarangi
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PPTX
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PPTX
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PPT
Carmon_Remote Sensing GIS by Mahesh kumar
DhananjayM6
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
Introduction to Design of Machine Elements
PradeepKumarS27
 
Day2 B2 Best.pptx
helenjenefa1
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
Green Building & Energy Conservation ppt
Sagar Sarangi
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Carmon_Remote Sensing GIS by Mahesh kumar
DhananjayM6
 
Design Thinking basics for Engineers.pdf
CMR University
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 

Verilog VHDL code Decoder and Encoder