SlideShare a Scribd company logo
8 Bit Adder
module bit_8_adder(A,B,Cin,S,Cout);
        input [7:0] A,B;
        input Cin;
        output [7:0] S;
        output Cout;
        wire C0,C1,C2,C3,C4,C5,C6;
        full_add FA0(A[0],B[0],Cin, S[0], C0);
        full_add FA1(A[1],B[1],C0, S[1], C1);
        full_add FA2(A[2],B[2],C1, S[2], C2);
        full_add FA3(A[3],B[3],C2, S[3], C3);
        full_add FA4(A[4],B[4],C3, S[4], C4);
        full_add FA5(A[5],B[5],C4, S[5], C5);
        full_add FA6(A[6],B[6],C5, S[6], C6);
        full_add FA7(A[7],B[7],C6, S[7], Cout);
endmodule

module full_add(a,b,c,sum,carry);
        input a,b,c;
        output sum,carry;
        assign sum = a^b^c;
        assign carry = (a&b)|(b&c)|(c&a);
endmodule

4 Bit Multiplier
module multiplier_4_bit (A,B,C);
        input [3:0] A;
        input [3:0] B;
        output [7:0] C;
        assign C[7:0] =A[3:0] * B[3:0];
endmodule


8 :3 ENCODER
module encoder8_to_3(D0,D1,D2,D3,D4,D5,D6,D7,X,Y,Z);
        input D0,D1,D2,D3,D4,D5,D6,D7;
        output X,Y,Z;
        or (X,D4,D5,D6,D7);
        or(Y,D2,D3,D6,D7);
        or (Z,D1,D3,D5,D7);
endmodule
3:8 DECODER

module decoder3_to_8(X,Y,Z, D0,D1,D2,D3,D4,D5,D6,D7);
       input X,Y,Z;
       output D0,D1,D2,D3,D4,D5,D6,D7;
       assign D0 = (~X & ~Y&~Z),
               D1 = (~X & ~Y&Z ),
               D2 = (~X & Y&~Z ),
               D3 = (~X & Y&Z ),
               D4 = (X & ~Y&~Z ),
               D5 = (X & ~Y&Z ),
               D6 = (X & Y&~Z ),
               D7 = (X &Y&Z );
endmodule

1:8 DEMULTIPLEXER

module demux1_to_8(i,S0,S1,S2, D0,D1,D2,D3,D4,D5,D6,D7);
       input I,S0,S1,S2;
       output D0,D1,D2,D3,D4,D5,D6,D7;
       assign D0 = (i & ~S2 & ~S1 & ~S0),
                D1 = (i& ~S2 & ~S1 & S0),
                D2 = (i & ~S2 & S1 & ~S0),
                D3 = (i & ~S2 & S1 & S0),
                D4 = (i & S2 & ~S1 & ~S0),
                D5 = (i & S2 & ~S1 & S0),
                D6 = (i & S2 & S1 & ~S0),
                D7 = (i & S2 & S1 & S0);
endmodule


4:1 MULTIPLEXER

module mux4_to_1(i0,i1,i2,i3,s0,s1,out);
       input i0,i1,i2,i3,s0,s1;
       output out;
       assign out = (i0 & ~s1 & ~s0)|(i1 & ~s1 & s0)|(i2 & s1 & ~s0)|(i3 & s1 & s0);
endmodule
8 BIT ADDER




4 BIT MULTIPLIER




8:3 ENCODER
3:8 DECODER




1:8 DEMULTIPLEXER




4:1 MULTIPLEXER

More Related Content

DOCX
Tarea de informatica
PPTX
TALLER INFORMATICA 3
PPSX
P U P School Sembarambakkam
DOCX
DOCX
Deberes
PPTX
Program presentation
Tarea de informatica
TALLER INFORMATICA 3
P U P School Sembarambakkam
Deberes
Program presentation

What's hot (15)

PPT
C programs pbq final
DOCX
Include
PPTX
R tist
DOCX
Matlab code for crout method
PPT
Kay's pythagorean theorem
PDF
Eso3 tablasestadisticas blog
PPTX
Assignement of c++
PPTX
Grupo1 150208232203-conversion-gate02
PDF
Ch 10 Review #1
DOC
Devry ecet 105 week 6 homework new
PDF
C programming
DOCX
Assignement of programming & problem solving u.s ass.(1)
PDF
Portes lògiques llistat funcions
DOCX
C programs pbq final
Include
R tist
Matlab code for crout method
Kay's pythagorean theorem
Eso3 tablasestadisticas blog
Assignement of c++
Grupo1 150208232203-conversion-gate02
Ch 10 Review #1
Devry ecet 105 week 6 homework new
C programming
Assignement of programming & problem solving u.s ass.(1)
Portes lògiques llistat funcions
Ad

Viewers also liked (18)

DOC
VLSI experiments II
DOC
VLSI Sequential Circuits II
DOC
Antenna and Wave Propagation Assignment I
ODT
Slideshire
DOC
Antenna Unit Test II Questions
PDF
Objectives(antennas and wave propagation)
DOC
Antenna Unit Test II questions
PDF
Answers for 2 Marks Unit Test I (RMW)
PPT
ppt of BE
PPT
Chap 02 antenna & wave propagation
PDF
Antenna types
DOC
Antenna fundamentals
PDF
Bit Serial multiplier using Verilog
PPTX
Different types of antenna by shakir
PPTX
TYPES OF ANTENNA
PPTX
Antenna
PDF
Mini Project on 4 BIT SERIAL MULTIPLIER
VLSI experiments II
VLSI Sequential Circuits II
Antenna and Wave Propagation Assignment I
Slideshire
Antenna Unit Test II Questions
Objectives(antennas and wave propagation)
Antenna Unit Test II questions
Answers for 2 Marks Unit Test I (RMW)
ppt of BE
Chap 02 antenna & wave propagation
Antenna types
Antenna fundamentals
Bit Serial multiplier using Verilog
Different types of antenna by shakir
TYPES OF ANTENNA
Antenna
Mini Project on 4 BIT SERIAL MULTIPLIER
Ad

Similar to Combinational circuits II outputs (20)

DOC
All VLSI programs
PPT
VerilogHDL_Utkarsh_kulshrestha
PDF
Task i
PPTX
Praktek ARDUINO
PPTX
mod-4.pptx
PDF
Digital Systems Design Using Verilog 1st Edition Roth Solutions Manual
PPTX
Rishabh-Verilog_Examples_Nov_2019_VGS.pptx
PPT
PPT
Digital Circuit Verification Hardware Descriptive Language Verilog
PPT
Unit 3 - Styles of Modeling-1 for resource management techniques
PPT
PPTX
Digital VLSI - Unit 2.pptx
PPTX
Logic Design - Chapter 5: Part1 Combinattional Logic
PDF
Digital Systems Design Using Verilog 1st Edition Roth Solutions Manual
DOC
Ramco Sample Paper 2003
PDF
L6 Visual Output LED_7SEGMEN_LEDMATRIX upate.pdf
PDF
L6 Visual Output LED_7SEGMEN_LEDMATRIX upate.pdf
DOCX
Graphics programs
PPTX
TRICK
PDF
C Code and the Art of Obfuscation
All VLSI programs
VerilogHDL_Utkarsh_kulshrestha
Task i
Praktek ARDUINO
mod-4.pptx
Digital Systems Design Using Verilog 1st Edition Roth Solutions Manual
Rishabh-Verilog_Examples_Nov_2019_VGS.pptx
Digital Circuit Verification Hardware Descriptive Language Verilog
Unit 3 - Styles of Modeling-1 for resource management techniques
Digital VLSI - Unit 2.pptx
Logic Design - Chapter 5: Part1 Combinattional Logic
Digital Systems Design Using Verilog 1st Edition Roth Solutions Manual
Ramco Sample Paper 2003
L6 Visual Output LED_7SEGMEN_LEDMATRIX upate.pdf
L6 Visual Output LED_7SEGMEN_LEDMATRIX upate.pdf
Graphics programs
TRICK
C Code and the Art of Obfuscation

More from Gouthaman V (20)

PDF
Professional Ethics Assignment II
DOC
Dip Unit Test-I
XLS
Scholastic averages sheet-2
DOC
Eligibility criteria and instructions for Infosys Placement
PDF
Anwers for 2 marks - RMW
PDF
Rmw unit test question papers
PDF
Circular and semicircular cavity resonator
DOC
VLSI Anna University Practical Examination
DOC
HCL IPT
PDF
VI Semester Examination Time Table
DOC
DOC
Antenna and Wave Propagation Assignment I
DOC
Computer Networks Unit Test II Questions
DOC
Sequential Circuits I VLSI 9th experiment
DOC
POM Unit Test II - ECE B
DOC
VLSI Experiments I
DOC
VLSI Study experiments
PPT
PPT
PPT
Web 2.0
Professional Ethics Assignment II
Dip Unit Test-I
Scholastic averages sheet-2
Eligibility criteria and instructions for Infosys Placement
Anwers for 2 marks - RMW
Rmw unit test question papers
Circular and semicircular cavity resonator
VLSI Anna University Practical Examination
HCL IPT
VI Semester Examination Time Table
Antenna and Wave Propagation Assignment I
Computer Networks Unit Test II Questions
Sequential Circuits I VLSI 9th experiment
POM Unit Test II - ECE B
VLSI Experiments I
VLSI Study experiments
Web 2.0

Recently uploaded (20)

PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Lesson notes of climatology university.
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Computing-Curriculum for Schools in Ghana
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cell Types and Its function , kingdom of life
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Lesson notes of climatology university.
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
VCE English Exam - Section C Student Revision Booklet
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Computing-Curriculum for Schools in Ghana
O7-L3 Supply Chain Operations - ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
human mycosis Human fungal infections are called human mycosis..pptx
01-Introduction-to-Information-Management.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
Classroom Observation Tools for Teachers
Microbial diseases, their pathogenesis and prophylaxis
Cell Types and Its function , kingdom of life

Combinational circuits II outputs

  • 1. 8 Bit Adder module bit_8_adder(A,B,Cin,S,Cout); input [7:0] A,B; input Cin; output [7:0] S; output Cout; wire C0,C1,C2,C3,C4,C5,C6; full_add FA0(A[0],B[0],Cin, S[0], C0); full_add FA1(A[1],B[1],C0, S[1], C1); full_add FA2(A[2],B[2],C1, S[2], C2); full_add FA3(A[3],B[3],C2, S[3], C3); full_add FA4(A[4],B[4],C3, S[4], C4); full_add FA5(A[5],B[5],C4, S[5], C5); full_add FA6(A[6],B[6],C5, S[6], C6); full_add FA7(A[7],B[7],C6, S[7], Cout); endmodule module full_add(a,b,c,sum,carry); input a,b,c; output sum,carry; assign sum = a^b^c; assign carry = (a&b)|(b&c)|(c&a); endmodule 4 Bit Multiplier module multiplier_4_bit (A,B,C); input [3:0] A; input [3:0] B; output [7:0] C; assign C[7:0] =A[3:0] * B[3:0]; endmodule 8 :3 ENCODER module encoder8_to_3(D0,D1,D2,D3,D4,D5,D6,D7,X,Y,Z); input D0,D1,D2,D3,D4,D5,D6,D7; output X,Y,Z; or (X,D4,D5,D6,D7); or(Y,D2,D3,D6,D7); or (Z,D1,D3,D5,D7); endmodule
  • 2. 3:8 DECODER module decoder3_to_8(X,Y,Z, D0,D1,D2,D3,D4,D5,D6,D7); input X,Y,Z; output D0,D1,D2,D3,D4,D5,D6,D7; assign D0 = (~X & ~Y&~Z), D1 = (~X & ~Y&Z ), D2 = (~X & Y&~Z ), D3 = (~X & Y&Z ), D4 = (X & ~Y&~Z ), D5 = (X & ~Y&Z ), D6 = (X & Y&~Z ), D7 = (X &Y&Z ); endmodule 1:8 DEMULTIPLEXER module demux1_to_8(i,S0,S1,S2, D0,D1,D2,D3,D4,D5,D6,D7); input I,S0,S1,S2; output D0,D1,D2,D3,D4,D5,D6,D7; assign D0 = (i & ~S2 & ~S1 & ~S0), D1 = (i& ~S2 & ~S1 & S0), D2 = (i & ~S2 & S1 & ~S0), D3 = (i & ~S2 & S1 & S0), D4 = (i & S2 & ~S1 & ~S0), D5 = (i & S2 & ~S1 & S0), D6 = (i & S2 & S1 & ~S0), D7 = (i & S2 & S1 & S0); endmodule 4:1 MULTIPLEXER module mux4_to_1(i0,i1,i2,i3,s0,s1,out); input i0,i1,i2,i3,s0,s1; output out; assign out = (i0 & ~s1 & ~s0)|(i1 & ~s1 & s0)|(i2 & s1 & ~s0)|(i3 & s1 & s0); endmodule
  • 3. 8 BIT ADDER 4 BIT MULTIPLIER 8:3 ENCODER