SlideShare a Scribd company logo
ASSEMBLY LANGUAGE PROGRAMMING LAB
SESSION 1
1. Design and implement the Exclusive-OR gate using AND, OR and NOT gates.
Answer:
STEP 1: CIRCUIT SPECIFICATION
Exclusive or is a combinational circuit the Forms the ex-or operation on the two input
values x and y.
Input: Two bits (A, B)
Output: Output= A (+) B
STEP 2: TRUTH TABLE
A B OUTPUT
0 0 0
0 1 1
1 0 1
1 1 0
STEP 3: IDENTIFYING MINTERMS
F1 (1, 2)
STEP 4: K-MAP
0 1
1
STEP 5: EXPRESSION
Output = A (+) B
STEP 6: CIRCUIT
2. Design an “Alarm circuit” using only OR gate in which, if ‘doors’ OR ‘windows’ Or ‘Fire
alarm’ is activated and then alarm sound should start.
(Hint: Alarm is sounded if the output of the above circuit is 1. The Output will be 1 only if any of
the OR conditions given above is true.)
Answer:
STEP 1: CIRCUIT SPECIFICATION
Alarm circuit is a combination circuit that forms output if ‘DOORS’ OR ‘WINDOWS’ Or
‘FIRE ALARM’ are activated by setting the corresponding bit 1.
Input: 3 input bits (‘d’,’w’,’f’)
Output: 1 bit
STEP 2: TRUTH TABLE
DOORS FIRE ALARMS WINDOWS OUTPUT
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
STEP 3: IDENTIFYING MINTERMS
F1(1,2,3,4,5,6,7)
STEP 4: K-MAP
0 1 1 1
1 1 1 1
STEP 5: EXPRESSION
Output= f+d+w
STEP 6: CIRCUIT
3. We know NAND gate is universal gate but we need proof, so Design other gates like OR, NOR,
AND and NOT using only NAND gates.
Answer:
(A) NOT gate using NAND
(B)AND gate using NAND
(C) OR gate using NAND
(D) NOR gate using NAND
4. Design a digital circuit whose output is equal to 1 if the majority of inputs are 1’s . The output is
0 otherwise.
Answer:
STEP 1: CIRCUIT SPECIFICATION
Digital circuit whose output is equal to 1 if the majority of inputs are 1’s. The output is 0
otherwise.
Inputs: 4 bits (a, b, c, d)
Output: 1 bit
STEP 2: TRUTH TABLE
A B C D OUTPUT
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 1
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
STEP 3: IDENTIFYING MINTERMS
F1(13, 14, 15)
STEP 4: K-MAP
0 0 0 0
0 0 1 0
0 1 1 1
0 0 1 0
STEP 5: EXPRESSION
Output = abc+abd+bcd+acd
STEP 6: CIRCUIT
5. Design the following digital circuit
Answer:
A. HALF ADDER
A half adder circuit takes 2 binary input and gives its sum. The input is 2 bits are a and b
the outputs are its sum and carry.
STEP 1: CIRCUIT SPECIFICATION
Inputs: 2 bits
Outputs: Sum and Carry
STEP 2: CIRCUIT AND TRUTH TABLE
B. HALF SUBTRACTOR
A half subtractor circuit takes 2 binary input and gives its difference. The input is 2 bits are
a and b the outputs are its difference and borrow
STEP 1: CIRCUIT SPECIFICATION
Input: 2 bits
Output: Difference and Borrow
STEP 2: CIRCUIT AND TRUTH TABLE
C. FULL SUBTRACTOR
A full subtractor is a combinational circuit that performs a subtraction between two bits
taking into account that a one may be borrowed by a lower significant bit, the circuit has 3 inputs
A, B and C. and 2 outputs Difference and Borrow.
STEP 1: CIRCUIT SPECIFICATION
Inputs: A, B and C
Outputs: Difference and Borrow
STEP 2: CIRCUIT AND TRUTH TABLE
6. Design a logical circuit that will calculate the following function:
Answer:
INPUTS OUTPUT
A B C D
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
Explain why your circuit is correct.
This circuit is correct as its truth table is same as given truth table.
7. Design a combinational circuit that takes 3-bit number and the output of that circuit should be
the square of the input Number.
Answer:
STEP 1: CIRCUIT SPECIFICATION
Square of the number is a combinational circuit that can be obtained by taking 3 bits inputs and 6
bit outputs.
STEP 2: TRUTH TABLE
A B C O1 O2 O3 O4 O5 O6
0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 1
0 1 0 0 0 0 1 0 0
0 1 1 0 0 1 0 0 1
1 0 0 0 1 0 0 0 0
1 0 1 0 1 1 0 0 1
1 1 0 1 0 0 1 0 0
1 1 1 1 1 0 0 0 1
STEP 3: IDENTIFYING MINTERMS
O1=F1 (6, 7)
O2=F2 (4, 5, 7)
O3=F3 (3, 5)
O4=F4 (2, 6)
O5=0
O6=F6 (1, 3, 5, 7)
The Boolean functions for the three inputs and 6 outputs are derived as follows:-
For F1 (6, 7)
O1=AB
For F2 (4, 5, 7)
O2=AB`+AC
For F3 (3, 7)
O3=A`BC+AB`C
For F4 (2, 6)
O4=BC`
For F6 (1, 3, 5, 7)
O6=C
STEP 4: CIRCUIT
8. Design a combinational circuit where input is a 4 bit number and whose output is the 2’s
complement of the input number.
Answer:
STEP 1: CIRCUIT SPECIFICATION
Inputs= A, B, C, D
Output=Q1, Q2, Q3, Q4 (2’s complement)
STEP 2: TRUTH TABLE
A B C D Q1 Q2 Q3 Q4
0 0 0 0 0 0 0 0
0 0 0 1 1 1 1 1
0 0 1 0 1 1 1 0
0 0 1 1 1 1 0 1
0 1 0 0 1 1 0 0
0 1 0 1 1 0 1 1
0 1 1 0 1 0 1 0
0 1 1 1 1 0 0 1
1 0 0 0 1 0 0 0
1 0 0 1 0 1 1 1
1 0 1 0 0 1 1 0
1 0 1 1 0 1 0 1
1 1 0 0 0 1 0 0
1 1 0 1 0 0 1 1
1 1 1 0 0 0 1 0
1 1 1 1 0 0 0 1
STEP 3: IDENTIFYING MINTERMS
Q1=A`D+A`C+A`BC`+AB`C`D`
Q2=BC`D`+B`D+B`C
Q3=C`D+CD`
Q4=D
STEP 4: CIRCUIT
9. Design an encoder circuit, which will convert decimal number to binary number.
Answer:
An encoder is a circuit that encodes a particular input to a different format.
A Decimal to binary encoder constructed below
TRUTH TABLE:
D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 O1 O2 O3 O4
1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 0 0 0 1 0 0
0 0 0 0 0 1 0 0 0 0 0 1 0 1
0 0 0 0 0 0 1 0 0 0 0 1 1 0
0 0 0 0 0 0 0 1 0 0 0 1 1 1
0 0 0 0 0 0 0 0 1 0 1 0 0 0
0 0 0 0 0 0 0 0 0 1 1 0 0 1
STEP 3: IDENTIFYING MINTERMS
Q1=D8+D9
Q2=D4+D5+D6+D7
Q3=D2+D3+D6+D7
Q4=D1+D3+D5+D7+D9
STEP 4: CIRCUIT
Session 2
SESSION 2
10. Design Sequential Circuit of clocked RS flipflop with 4 NAND gates.
Answer:
The circuit has R and S inputs and a clock input. This latch flip flop is activated by a positive level
on the clock input.
If clock = 0, Output Q, Q`= Hold (nochange)
If clock = 1, R=0, S=1,Q=1 State = Set
If clock =1, R=1, S=0, Q`=1 State= Reset
If clock =1, R=0, S=0, State = Hold (no change)
SCHEMATIC:
TRUTH TABLE:
CLOCK S R Qn+1
LOW X X Qn
HIGH 0 0 Qn
HIGH 0 1 0
HIGH 1 0 1
HIGH 1 1 INDETERMINATE
CIRCUIT:
11. Design Sequential Circuit of Clocked D flip flop with AND and NOR gates.
Answer:
A D-type latch is shown below.
The advantage of this is the single D input.
The flip flop takes the value at its D input whenever the clock pulse input is high it will effectively
“track’ the input levels as long as the clock input is high.
If the clock input is zero, the state will be that of the last state the flipflop was when it was high.
TRUTH TABLE:
CLOCK D Qn+1
LOW X Qn
HIGH 0 0
HIGH 1 1
CIRCUIT:
12. Design an 8-bit counter using two 4-bit counters.
Answer:
An 8-bit counter made from two 4-bit counters is shown below. The bottom device
represents the least significant four bits, while the top counter represents the most significant four
bits. When the bottom counter reaches 1111 (i.e., when CO = 0), it enables the top counter for one
cycle. Here the counters share clock and clear signals Hex displays are used here.
13. Design Linear Feed-back Shift Register.
Answer:
SCHEMATIC:
TRUTH TABLE:
CLOCK QA QB QC QD
0 0 0 0 0
1 1 0 0 0
2 1 1 0 0
3 1 1 1 0
4 1 1 1 1
5 0 1 1 1
6 0 0 1 1
7 0 0 0 1
CIRCUIT:
14. Design a logical circuit that will calculate the less-than (<) function for two 2-bit inputs. That
is, if the inputs are A and B, each of whose values can be in the range 0-3 (i.e., 00-11 in binary),
then the output should be 1 whenever A < B, and 0 otherwise. This circuit requires four inputs,
referred to as a1, a2, b1, and b2. a1 and a2 represent a 2-bit number, as do b1 and b2. The output
will be true if the decimal number represented by the pair a1a2 is less than the decimal number
represented by b1b2. Design this circuit with an optimal number of gates.
Answer:
STEP 1: CIRCUIT SPECIFICATION
This circuit compares two inputs of size 2- bits i.e. its range is (0-3) the output will be 1 if A<B
else0
Input: 2 input bits
1 bit for A0
1 bit for A1
1 bit for B0
1 bit for B1
Output: 1 bit (either 0 or 1)
STEP 2: TRUTH TABLE
STEP 3: IDENTIFYING MINTERMS
O1=F1 (1, 2, 3, 6, 7, 11)
STEP 4: CIRCUIT
15. A multiplexer circuit accepts N inputs and outputs the value of one of those inputs. The
selection of which input goes out on the output is determined by a set of M control inputs. A
multiplexer with M control inputs can steer up to 2M inputs to a single output. Design 2-to-1
multiplexer.
Answer:
Multiplexing means transmitting a large number of information units over a smaller number
of channels or lines. A 2-to-1 multiplexer sends one of 2M input lines to a single output line.
SCHEMATIC:
TRUTH TABLE:
S D1 D0 Q
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
CIRCUIT:
16. A decoder has M inputs and up to 2M outputs. If the logic values on the M inputs are
interpreted as a binary number of value P, then the Pth output will be at logic 1 while all the others
are at logic 0. Design 2-to-4 decoder.
Answer:
SCHEMATIC:
TRUTH TABLE:
S1 S0 E O0 O1 O2 O3
X X 0 0 0 0 0
0 0 1 1 0 0 0
0 1 1 0 1 0 0
1 0 1 0 0 1 0
1 1 1 0 0 0 1
LOGIC CIRCUIT:

More Related Content

What's hot

Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
Vaagdevi College of Engineering
 
Logic Design
Logic DesignLogic Design
Logic Design
Partha_bappa
 
Combinational Logic Circuits
Combinational Logic CircuitsCombinational Logic Circuits
Combinational Logic Circuits
Prof. Swapnil V. Kaware
 
Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
Er. Nawaraj Bhandari
 
DLD Presentation By Team Reboot,Rafin Rayan,EUB
DLD Presentation By Team Reboot,Rafin Rayan,EUBDLD Presentation By Team Reboot,Rafin Rayan,EUB
DLD Presentation By Team Reboot,Rafin Rayan,EUB
Rafin Rayan
 
Number system
Number systemNumber system
Number system
Vinoth Loganathan
 
Chapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionChapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean Function
Er. Nawaraj Bhandari
 
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic CircuitsFYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
Arti Parab Academics
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
SSE_AndyLi
 
Ch1 2
Ch1 2Ch1 2
Ch1 2
rohity7
 
Mcs 012 soved assignment 2015-16
Mcs 012 soved assignment 2015-16Mcs 012 soved assignment 2015-16
Mcs 012 soved assignment 2015-16
Indira Gnadhi National Open University (IGNOU)
 
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCETDigital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
SeshaVidhyaS
 
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic CircuitsFYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
Arti Parab Academics
 
Unit 4 dica
Unit 4 dicaUnit 4 dica
Unit 4 dica
Pavan Mukku
 
Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system CT Sabariah Salihin
 
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
Arti Parab Academics
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
DrSonali Vyas
 
Combinational logic
Combinational logicCombinational logic
Combinational logic
Ezeokafor Chibueze
 
Understand data representation on CPU 1
Understand data representation on CPU 1Understand data representation on CPU 1
Understand data representation on CPU 1
Brenda Debra
 

What's hot (20)

Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
 
Logic Design
Logic DesignLogic Design
Logic Design
 
Combinational Logic Circuits
Combinational Logic CircuitsCombinational Logic Circuits
Combinational Logic Circuits
 
Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
 
DLD Presentation By Team Reboot,Rafin Rayan,EUB
DLD Presentation By Team Reboot,Rafin Rayan,EUBDLD Presentation By Team Reboot,Rafin Rayan,EUB
DLD Presentation By Team Reboot,Rafin Rayan,EUB
 
Number system
Number systemNumber system
Number system
 
Chapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionChapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean Function
 
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic CircuitsFYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
 
Ch1 2
Ch1 2Ch1 2
Ch1 2
 
Mcs 012 soved assignment 2015-16
Mcs 012 soved assignment 2015-16Mcs 012 soved assignment 2015-16
Mcs 012 soved assignment 2015-16
 
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCETDigital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
 
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic CircuitsFYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
 
Unit 4 dica
Unit 4 dicaUnit 4 dica
Unit 4 dica
 
Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system
 
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
 
Digital Logic Rcs
Digital Logic RcsDigital Logic Rcs
Digital Logic Rcs
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Combinational logic
Combinational logicCombinational logic
Combinational logic
 
Understand data representation on CPU 1
Understand data representation on CPU 1Understand data representation on CPU 1
Understand data representation on CPU 1
 

Similar to Mcsl 17 ALP lab manual

Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
kavitha muneeshwaran
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptx
amudhak10
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
ThanmayiKumar
 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
SeshaVidhyaS
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
Nitesh Dubey
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Katrina Little
 
3306565.ppt
3306565.ppt3306565.ppt
3306565.ppt
JP Chicano
 
Computer design and architecture with simple cpu
Computer design and architecture with simple cpuComputer design and architecture with simple cpu
Computer design and architecture with simple cpu
Naohiko Shimizu
 
Combinational logic circuits design and implementation
Combinational logic circuits design and implementationCombinational logic circuits design and implementation
Combinational logic circuits design and implementation
ssuserca5764
 
Dilo lab
Dilo labDilo lab
Dilo lab
nisafaa
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
ssuserf7cd2b
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptx
SanjaiPrasad
 
chapter4-Arithmetic_new.ppt having sums og
chapter4-Arithmetic_new.ppt having sums  ogchapter4-Arithmetic_new.ppt having sums  og
chapter4-Arithmetic_new.ppt having sums og
GauravDaware2
 
9525.ppt
9525.ppt9525.ppt
9525.ppt
AravindaAKumar1
 
PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018
Fizaril Amzari Omar
 
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docxEEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
SALU18
 
Digital logic
Digital logicDigital logic
Digital logic
Madhu Bala
 
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
Fizaril Amzari Omar
 
Logic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptLogic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.ppt
Albin562191
 
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
DamotTesfaye
 

Similar to Mcsl 17 ALP lab manual (20)

Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptx
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
 
3306565.ppt
3306565.ppt3306565.ppt
3306565.ppt
 
Computer design and architecture with simple cpu
Computer design and architecture with simple cpuComputer design and architecture with simple cpu
Computer design and architecture with simple cpu
 
Combinational logic circuits design and implementation
Combinational logic circuits design and implementationCombinational logic circuits design and implementation
Combinational logic circuits design and implementation
 
Dilo lab
Dilo labDilo lab
Dilo lab
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptx
 
chapter4-Arithmetic_new.ppt having sums og
chapter4-Arithmetic_new.ppt having sums  ogchapter4-Arithmetic_new.ppt having sums  og
chapter4-Arithmetic_new.ppt having sums og
 
9525.ppt
9525.ppt9525.ppt
9525.ppt
 
PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018
 
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docxEEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
 
Digital logic
Digital logicDigital logic
Digital logic
 
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
 
Logic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptLogic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.ppt
 
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
 

Recently uploaded

Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 

Recently uploaded (20)

Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 

Mcsl 17 ALP lab manual

  • 1. ASSEMBLY LANGUAGE PROGRAMMING LAB SESSION 1 1. Design and implement the Exclusive-OR gate using AND, OR and NOT gates. Answer: STEP 1: CIRCUIT SPECIFICATION Exclusive or is a combinational circuit the Forms the ex-or operation on the two input values x and y. Input: Two bits (A, B) Output: Output= A (+) B STEP 2: TRUTH TABLE A B OUTPUT 0 0 0 0 1 1 1 0 1 1 1 0 STEP 3: IDENTIFYING MINTERMS F1 (1, 2) STEP 4: K-MAP 0 1 1 STEP 5: EXPRESSION Output = A (+) B STEP 6: CIRCUIT
  • 2. 2. Design an “Alarm circuit” using only OR gate in which, if ‘doors’ OR ‘windows’ Or ‘Fire alarm’ is activated and then alarm sound should start. (Hint: Alarm is sounded if the output of the above circuit is 1. The Output will be 1 only if any of the OR conditions given above is true.) Answer: STEP 1: CIRCUIT SPECIFICATION Alarm circuit is a combination circuit that forms output if ‘DOORS’ OR ‘WINDOWS’ Or ‘FIRE ALARM’ are activated by setting the corresponding bit 1. Input: 3 input bits (‘d’,’w’,’f’) Output: 1 bit STEP 2: TRUTH TABLE DOORS FIRE ALARMS WINDOWS OUTPUT 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1 STEP 3: IDENTIFYING MINTERMS F1(1,2,3,4,5,6,7) STEP 4: K-MAP 0 1 1 1 1 1 1 1 STEP 5: EXPRESSION Output= f+d+w STEP 6: CIRCUIT
  • 3. 3. We know NAND gate is universal gate but we need proof, so Design other gates like OR, NOR, AND and NOT using only NAND gates. Answer: (A) NOT gate using NAND (B)AND gate using NAND (C) OR gate using NAND (D) NOR gate using NAND
  • 4. 4. Design a digital circuit whose output is equal to 1 if the majority of inputs are 1’s . The output is 0 otherwise. Answer: STEP 1: CIRCUIT SPECIFICATION Digital circuit whose output is equal to 1 if the majority of inputs are 1’s. The output is 0 otherwise. Inputs: 4 bits (a, b, c, d) Output: 1 bit STEP 2: TRUTH TABLE A B C D OUTPUT 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 0 0 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 STEP 3: IDENTIFYING MINTERMS F1(13, 14, 15) STEP 4: K-MAP 0 0 0 0 0 0 1 0 0 1 1 1 0 0 1 0 STEP 5: EXPRESSION Output = abc+abd+bcd+acd STEP 6: CIRCUIT
  • 5. 5. Design the following digital circuit Answer: A. HALF ADDER A half adder circuit takes 2 binary input and gives its sum. The input is 2 bits are a and b the outputs are its sum and carry. STEP 1: CIRCUIT SPECIFICATION Inputs: 2 bits Outputs: Sum and Carry STEP 2: CIRCUIT AND TRUTH TABLE B. HALF SUBTRACTOR A half subtractor circuit takes 2 binary input and gives its difference. The input is 2 bits are a and b the outputs are its difference and borrow STEP 1: CIRCUIT SPECIFICATION Input: 2 bits Output: Difference and Borrow STEP 2: CIRCUIT AND TRUTH TABLE
  • 6. C. FULL SUBTRACTOR A full subtractor is a combinational circuit that performs a subtraction between two bits taking into account that a one may be borrowed by a lower significant bit, the circuit has 3 inputs A, B and C. and 2 outputs Difference and Borrow. STEP 1: CIRCUIT SPECIFICATION Inputs: A, B and C Outputs: Difference and Borrow STEP 2: CIRCUIT AND TRUTH TABLE
  • 7. 6. Design a logical circuit that will calculate the following function: Answer: INPUTS OUTPUT A B C D 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 1 Explain why your circuit is correct. This circuit is correct as its truth table is same as given truth table.
  • 8. 7. Design a combinational circuit that takes 3-bit number and the output of that circuit should be the square of the input Number. Answer: STEP 1: CIRCUIT SPECIFICATION Square of the number is a combinational circuit that can be obtained by taking 3 bits inputs and 6 bit outputs. STEP 2: TRUTH TABLE A B C O1 O2 O3 O4 O5 O6 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 1 1 0 0 1 0 0 1 1 0 0 0 1 0 0 0 0 1 0 1 0 1 1 0 0 1 1 1 0 1 0 0 1 0 0 1 1 1 1 1 0 0 0 1 STEP 3: IDENTIFYING MINTERMS O1=F1 (6, 7) O2=F2 (4, 5, 7) O3=F3 (3, 5) O4=F4 (2, 6) O5=0 O6=F6 (1, 3, 5, 7) The Boolean functions for the three inputs and 6 outputs are derived as follows:- For F1 (6, 7) O1=AB For F2 (4, 5, 7) O2=AB`+AC For F3 (3, 7) O3=A`BC+AB`C For F4 (2, 6) O4=BC` For F6 (1, 3, 5, 7) O6=C STEP 4: CIRCUIT
  • 9. 8. Design a combinational circuit where input is a 4 bit number and whose output is the 2’s complement of the input number. Answer: STEP 1: CIRCUIT SPECIFICATION Inputs= A, B, C, D Output=Q1, Q2, Q3, Q4 (2’s complement) STEP 2: TRUTH TABLE A B C D Q1 Q2 Q3 Q4 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 0 1 1 1 0 0 0 1 1 1 1 0 1 0 1 0 0 1 1 0 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 1 0 0 1 1 1 1 0 0 1 1 0 0 0 1 0 0 0 1 0 0 1 0 1 1 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 1 1 1 0 0 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 0 1 STEP 3: IDENTIFYING MINTERMS Q1=A`D+A`C+A`BC`+AB`C`D` Q2=BC`D`+B`D+B`C Q3=C`D+CD` Q4=D STEP 4: CIRCUIT
  • 10. 9. Design an encoder circuit, which will convert decimal number to binary number. Answer: An encoder is a circuit that encodes a particular input to a different format. A Decimal to binary encoder constructed below TRUTH TABLE: D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 O1 O2 O3 O4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 STEP 3: IDENTIFYING MINTERMS Q1=D8+D9 Q2=D4+D5+D6+D7 Q3=D2+D3+D6+D7 Q4=D1+D3+D5+D7+D9 STEP 4: CIRCUIT Session 2
  • 11. SESSION 2 10. Design Sequential Circuit of clocked RS flipflop with 4 NAND gates. Answer: The circuit has R and S inputs and a clock input. This latch flip flop is activated by a positive level on the clock input. If clock = 0, Output Q, Q`= Hold (nochange) If clock = 1, R=0, S=1,Q=1 State = Set If clock =1, R=1, S=0, Q`=1 State= Reset If clock =1, R=0, S=0, State = Hold (no change) SCHEMATIC: TRUTH TABLE: CLOCK S R Qn+1 LOW X X Qn HIGH 0 0 Qn HIGH 0 1 0 HIGH 1 0 1 HIGH 1 1 INDETERMINATE CIRCUIT: 11. Design Sequential Circuit of Clocked D flip flop with AND and NOR gates. Answer:
  • 12. A D-type latch is shown below. The advantage of this is the single D input. The flip flop takes the value at its D input whenever the clock pulse input is high it will effectively “track’ the input levels as long as the clock input is high. If the clock input is zero, the state will be that of the last state the flipflop was when it was high. TRUTH TABLE: CLOCK D Qn+1 LOW X Qn HIGH 0 0 HIGH 1 1 CIRCUIT: 12. Design an 8-bit counter using two 4-bit counters.
  • 13. Answer: An 8-bit counter made from two 4-bit counters is shown below. The bottom device represents the least significant four bits, while the top counter represents the most significant four bits. When the bottom counter reaches 1111 (i.e., when CO = 0), it enables the top counter for one cycle. Here the counters share clock and clear signals Hex displays are used here. 13. Design Linear Feed-back Shift Register. Answer: SCHEMATIC:
  • 14. TRUTH TABLE: CLOCK QA QB QC QD 0 0 0 0 0 1 1 0 0 0 2 1 1 0 0 3 1 1 1 0 4 1 1 1 1 5 0 1 1 1 6 0 0 1 1 7 0 0 0 1 CIRCUIT: 14. Design a logical circuit that will calculate the less-than (<) function for two 2-bit inputs. That is, if the inputs are A and B, each of whose values can be in the range 0-3 (i.e., 00-11 in binary), then the output should be 1 whenever A < B, and 0 otherwise. This circuit requires four inputs, referred to as a1, a2, b1, and b2. a1 and a2 represent a 2-bit number, as do b1 and b2. The output will be true if the decimal number represented by the pair a1a2 is less than the decimal number represented by b1b2. Design this circuit with an optimal number of gates. Answer:
  • 15. STEP 1: CIRCUIT SPECIFICATION This circuit compares two inputs of size 2- bits i.e. its range is (0-3) the output will be 1 if A<B else0 Input: 2 input bits 1 bit for A0 1 bit for A1 1 bit for B0 1 bit for B1 Output: 1 bit (either 0 or 1) STEP 2: TRUTH TABLE STEP 3: IDENTIFYING MINTERMS O1=F1 (1, 2, 3, 6, 7, 11) STEP 4: CIRCUIT 15. A multiplexer circuit accepts N inputs and outputs the value of one of those inputs. The selection of which input goes out on the output is determined by a set of M control inputs. A
  • 16. multiplexer with M control inputs can steer up to 2M inputs to a single output. Design 2-to-1 multiplexer. Answer: Multiplexing means transmitting a large number of information units over a smaller number of channels or lines. A 2-to-1 multiplexer sends one of 2M input lines to a single output line. SCHEMATIC: TRUTH TABLE: S D1 D0 Q 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1 CIRCUIT: 16. A decoder has M inputs and up to 2M outputs. If the logic values on the M inputs are interpreted as a binary number of value P, then the Pth output will be at logic 1 while all the others are at logic 0. Design 2-to-4 decoder. Answer:
  • 17. SCHEMATIC: TRUTH TABLE: S1 S0 E O0 O1 O2 O3 X X 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 0 1 0 0 1 0 1 0 0 1 0 1 1 1 0 0 0 1 LOGIC CIRCUIT: