Coa Module 1
Coa Module 1
Tech
Module 1: Fundamentals
and basics in COA
Course Name: Computer Architecture and organization[22CSE104]
Total Hours : 12
Table of Content
• Aim
• Objectives
• Functional Units
• Basic Operational Concepts
• Bus Structure
• Performance
• Multi Processors and Multi-computers
• Encoders
• Demultiplexers
• Programmable Logic Arrays(PLAs)
• Digital Logic Circuits
• Basic Logic Functions
• Synthesis of Logic Functions Using AND,OR and NOT Gates
• Minimization of Logic Expressions
Table of Content
• Synthesis with NAND and NOR Gates
• Flip Flops
• Self Assessments
• Activities
• Did You Know
• Summary
• Terminal Questions
Aim
• Status and control register report and allow the modification of the state of the processor and of
the Program to be executed.
• Instruction Format:
• Address 0-11bits
• Opcode 12-14 bits
• I 14-15 bits I OPCODE ADDRESS
General-Purpose Data Registers
• 0 0 0 0 0 0 0 1 0 0 0
• 0 0 0 0 0 0 1 0 0 0 1
• 0 0 0 0 0 1 0 0 0 1 0
• 0 0 0 0 1 0 0 0 0 1 1
• 0 0 0 1 0 0 0 0 1 0 0
• 0 0 1 0 0 0 0 0 1 0 1
• 0 1 0 0 0 0 0 0 1 1 0
• 1 0 0 0 0 0 0 0 1 1 1
Implementation
De-Multiplexers
• De-Multiplexers
• A De-multiplexer (De-Mux) can be described as a combinational circuit that performs the reverse
operation of a Multiplexer.
• A De-multiplexer has a single input, 'n' selection lines and a maximum of 2^n outputs.
• The following image shows the block diagram of a 1 * 4 De-multiplexer.
Function Table 4*1
Implementation of 3AND and 1 OR
Programmable Logic Array(PLA)
• Programmable Logic Array(PLA) is a fixed architecture logic device with programmable AND
gates followed by programmable OR gates.
• Basic block diagram for PLA:
Truth Table
• F1 = AB’C’ + ABC’ + ABC
on simplifying we get : F1 = AB + AC’
• F2 = A’BC + AB’C + ABC
on simplifying we get: F2 = BC + AC
Circuit Diagram
Digital Logic Circuits
• Digital logic circuits are the basis of digital systems. These logic circuits are a set of logic gates
that show logical equivalence between two different groups of binary numbers.
• These digital logic circuits use 0 and 1 for on/off conditions, where 0 represents on, and 1
represents off conditions.
• Digital Logic Circuits are digital devices that use logic gates, ALU’s, microprocessors, RAM,
ROM to control other circuits. It is a specific form of logic circuit that processes the numerical
values 0 and 1.
Logic Circuits
• Digital circuits are also called logical circuits because they perform logical operations on digital
signals. Digital circuits use logic gates like AND, OR, NOT, NAND, and NOR to perform the
required digital operations.
• A digital circuit is a circuit containing digital logic. Digital circuits are the most common physical
implementation of Boolean algebra and binary arithmetic and are the basis of all modern
computers.
• It is because digital circuits are mainly used to process data that has only two values, such as true
or false.
• In other words, it can be said that a digital circuit’s primary function is to process the information
that manages the binary system. Digital circuits are called logical circuits because they perform
logical operations and produce results that can be interpreted as True or False.
Types of Digital Logic Circuits:
• 1. Synchronous Systems:
• Synchronous systems include clocks, our circadian rhythms, and periodic phenomena such as tides and
waves. In electronics, an asynchronous system is a system in which the temporal behaviour of different
elements is related to each other. The timing of events in Synchronous systems depends on the signals clock.
• 2. Asynchronous Systems:
• Asynchronous systems send out messages and perform operations in parallel without the need to wait for a
response. This means that different processes can co-occur; that is, multiple functions can be running
simultaneously.
• 3. Combinational Logic Circuits:
• Combinational logic is a form of digital logic in which an input pattern is applied to a circuit, and the output
pattern depends only on this input pattern. Logic gates are undoubtedly one of the most basic and essential
building blocks of digital circuits.
• 4. Sequential Networks:
• The sequence network is a type of balance equivalent network that is used for the balance power system.
Invest and imagined working condition is set so that only one sequence component can be present in the
voltage and current.
Basics of Logic Gates
• Logic gates are used to carry out logical operations on single or multiple binary inputs and give
one binary output. In simple terms, logic gates are the electronic circuits in a digital system.
• Types of Basic Logic Gates
• There are several basic logic gates used in performing operations in digital systems. The common
ones are
• OR Gate
• AND Gate
• NOT Gate
• UNIVERSAL GATES
• NAND GATE
• Special GATES
• EX-OR GATE
• EX-NOR Gate
OR GATE
• OR Gate
• In an OR gate, the output of an OR gate attains state 1 if one or more inputs attain state 1.
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
AND GATE
• AND Gate
• In the AND gate, the output of an AND gate attains state 1 if and only if all the inputs are
in state 1. The Boolean expression of AND gate is Y = A.B
A B Y
0 0 0
0 1 0
1 0 0
1 1 1
NOT GATE
• NOT Gate
• In a NOT gate, the output of a NOT gate attains state 1 if and only if the input does not attain state
1.
• The Boolean expression is
Y=A(INVERSE)
• It is read as Y equals NOT A.
• The truth table of NOT gate is as follows
NAND GATE
• NAND Gate
• This basic logic gate is the combination of AND ,NOT gates.
• The Boolean expression of the NAND gate is
• Y=A.B(Inverse)
• The truth table of a NAND gate is given as
NOR GATE
• NOR Gate
• This gate is the combination of OR and NOT gates.
• The Boolean expression of the NOR gate is
• Y=A+B(Inverse)
0 0 1
0 1 0
1 0 0
1 1 0
Exclusive-OR gate (XOR Gate)
• In an XOR gate, the output of a two-input XOR gate attains state 1 if one adds only input and
attains state 1.
• The Boolean Expression for XOR gate is
• A.B+A.B or Y=A + B
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
Synthesis of digital circuits
• Synthesis is the process of generating a circuit that realizes a functional behavior of a
logic system from a given description (stated in form of verbal statements, truth table,
K-map, state diagram, etc.)
• Example: Synthesize a logic function that realizes the following truth table. Use AND,
OR, and NOT gates
Synthesis of Digital Circuits
• Two implementations of a function
•
Synthesis of Digital Circuits
Synthesis of Digital Circuits
Synthesis of Digital Circuits
Minimization of Logic EXPRESSIONS
• K-map can take two forms Sum of Product (SOP) and Product of Sum (POS) according to the
need of problem. K-map is table like representation but it gives more information than TRUTH
TABLE. We fill grid of K-map with 0’s and 1’s then solve it by making groups.
• Steps to solve expression using K-map-
1. Select K-map according to the number of variables.
2. Identify minterms or maxterms as given in problem.
3. For SOP put 1’s in blocks of K-map respective to the minterms (0’s elsewhere).
4. For POS put 0’s in blocks of K-map respective to the maxterms(1’s elsewhere).
5. Make rectangular groups containing total terms in power of two like 2,4,8 ..(except 1) and try to
cover as many elements as you can in one group.
6. From the groups made in step 5 find the product terms and sum them up for SOP form.
SOP Form K-Map for 3 variable
Z= ∑A,B,C(1,3,6,7)
SOP Form K-Map for 4 Variable
F(P,Q,R,S)=∑(0,2,5,7,8,10,13,15)
POS FORM K-Map for 3 variable
F(A,B,C)=π(0,3,6,7)
POS FORM K-Map for 4 variable
F(A,B,C,D)=π(3,5,7,8,10,11,12,13)
Flip Flop
• Flip-flop is a circuit that maintains a state until directed by input to change the state. A basic flip-
flop can be constructed using four-NAND or four-NOR gates. Types of flip-flops:
1. SR Flip Flop
2. JK Flip Flop
3. D Flip Flop
4. T Flip Flop
• Logic diagrams and truth tables of the different types of flip-flops
• are as follows:
• S-R Flip Flop :
• Characteristics Equation for SR Flip Flop: QN+1 = QNR’ + SR’
JK FLIP FLOP
D-Flip Flop
Outcomes:
a. Discuss the theory functionality and basic architecture of CPU
b. Discuss the Design Issues on the basis of speed, Technology, cost and
performance.
c. Illustrate the different Logic Gates and Minimization of Logic gates.
Terminal Questions
1) What are the different types of Logic Gates?
2) What is Encoders?
Reference Links
• https://www.geekforgeeks.org/computer organization
Reference Material:
• William Stallings "Computer Organization and Architecture”,6Th Edition,Pearson/PHIISBN:10:0-
13-609704-9
Thank you