Professional Documents
Culture Documents
Co Complete Notes
Co Complete Notes
AND GATE DEFINITION: The AND gate is an electronic circuit that gives a high output
(1) only if all its inputs are high.
• An AND gate accepts two input signals and gives only one output
• A dot (.) is used to show the AND operation i.e. A.B.
TIMING DIAGRAM(AND)
UNIT 1 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms.
SOWMYA, DCA, PRESIDNCY COLLEGE Page 1
COMPUTER ORGANIZATION UNIT-1
TIMING DIAGRAM(OR)
UNIT 1 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms.
SOWMYA, DCA, PRESIDNCY COLLEGE Page 2
COMPUTER ORGANIZATION UNIT-1
TIMING DIAGRAM(NOT)
• NAND GATE Definition: The outputs of all NAND gates are high if any of the inputs are low.
• The NAND gate is the complement of AND gate
• It has two inputs and only one output
• The symbol is an AND gate with a small circle on the output. The small circle represents
inversion.
UNIT 1 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms.
SOWMYA, DCA, PRESIDNCY COLLEGE Page 3
COMPUTER ORGANIZATION UNIT-1
TIMING DIAGRAM(NAND)
• NOR GATE Definition: The output of NOR gate is high if both of the inputs are low.
• The symbol is an OR gate with a small circle on the output. The small circle
represents inversion.
• The NOR gate is the complement of OR gate
• It has two inputs and only one output
TIMING DIAGRAM(NOR)
UNIT 1 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms.
SOWMYA, DCA, PRESIDNCY COLLEGE Page 4
COMPUTER ORGANIZATION UNIT-1
• XOR GATE Definition: The 'Exclusive-OR' gate is a circuit which will give a high output ,When
both the inputs are different. An encircled plus sign (+ ) is used to show the XOR operation.
– An XOR gate produces
– 0 or LOW if its two inputs are the same
– 1 or HIGH if its inputs are different
TIMING DIAGRAM(XOR)
UNIT 1 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms.
SOWMYA, DCA, PRESIDNCY COLLEGE Page 5
COMPUTER ORGANIZATION UNIT-1
UNIT 1 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms.
SOWMYA, DCA, PRESIDNCY COLLEGE Page 6
COMPUTER ORGANIZATION UNIT-1
UNIVERSAL GATES-NOTES
• NAND and NOR are called universal gates
• As other basic gates and circuits are constructed using NAND and NOR.
A NAND gate can be used as NOT gate with a single input by connecting two
inputs of the NAND gates together.
• First NAND gate output is connected as an input to second NOT (NOT using
NAND) gate to construct AND gate.
UNIT 1 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms.
SOWMYA, DCA, PRESIDNCY COLLEGE Page 7
COMPUTER ORGANIZATION UNIT-1
• The output of two NOT(NOT using NAND) gates are connected as a inputs to NAND gate
to construct OR gate
UNIT 1 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms.
SOWMYA, DCA, PRESIDNCY COLLEGE Page 8
COMPUTER ORGANIZATION UNIT-1
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 9
COMPUTER ORGANIZATION UNIT-1
• A NOR gate can be used as NOT gate with a single input by connecting two inputs of the NOR
gates together.
• First NOR gate output is connected as an input to second NOT (NOT using NOR) gate to
construct OR gate
• The output of two NOT(NOT using NOR) gates are connected as a inputs to NOR gate to
construct AND gate
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 11
COMPUTER ORGANIZATION UNIT-1
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 12
COMPUTER ORGANIZATION UNIT-1
• Half adder is a combinational logic circuit with two inputs and two outputs.
It is used to add two binary bits.
• This circuit has two inputs A & B and two outputs namely SUM and CARRY.
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 13
COMPUTER ORGANIZATION UNIT-1
SUM = A B
CARRY = AB
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 14
COMPUTER ORGANIZATION UNIT-1
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 15
COMPUTER ORGANIZATION UNIT-1
FULL ADDER(EXPRESSION)
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 16
COMPUTER ORGANIZATION UNIT-1
Memory element
• A memory element is used to store 1 bit data.
• A one bit memory is called as bi-stable or flip-flop.
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 17
COMPUTER ORGANIZATION UNIT-1
• A clock is a signal, which oscillates between logic level 0 and logic level 1,
repeatedly. Square wave with constant frequency is the most common form of
clock signal.
• A clock signal has “edges”. These are the instants at which the clock changes
from 0 to 1 (a positive edge) or from 1 to 0 (a negative edge).
• Clock signals control the outputs of the sequential circuit.
• A digital clock signal is basically a square wave voltage and it is used in
synchronous device.
• Types of Triggering
1. Level triggering: High level and low level
2. Edge triggering : Positive edge triggering [Rising Edge]
Negative edge triggering [Falling Edge]
• High Level Triggering: When a flip flop is required to respond at its HIGH
state, a HIGH level triggering method is used
• Low Level Triggering: When a flip flop is required to respond at its LOW state, a
LOW level triggering method is used.
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 18
COMPUTER ORGANIZATION UNIT-1
• Positive Edge Triggering: If flip-flop changes its state from ‘0’ OFF to ‘1’ ON
state.
• Negative Edge Triggering: If flip-flop changes its state from ‘1’ ON to ‘0’ OFF
state.
Definition of FLIPFLOP:
• It is used to store one bit of information with a ‘0’ or ‘1’ . It has only two
states ‘0’ OFF & ’1’ ON.
• TYPES OF FLIPFLOPS
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 19
COMPUTER ORGANIZATION UNIT-1
• SR flip-flop
• D flip-flop
• JK flip-flop
• T flip-flop
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 20
COMPUTER ORGANIZATION UNIT-1
• WORKING OF SR FLIPFLOP:
• Case 1:With the inputs the S=0 and R=0, then the output remains in
previous state i.e. it holds the previous data.(No change/ Hold state)
• Case 2:With the inputs set to S=0and R=1, when the clock pulse is applied,
the active high signal on R resets the filp flop to 0 ,then the flip flop said to
be in the RESET state.
• Case 3:With the inputs set to S=1and R=0, when the clock pulse is applied,
the active high signal on S sets the flip flop to 1 ,then the flip flop said to be
in the SET state.
• Case 4: When both the S=1 and R=1, then the flip flop will be in undefined
state(INVALID/PROHIBITED).
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 21
COMPUTER ORGANIZATION UNIT-1
• WORKING OF D FLIPFLOP:
• Case 1 :With the inputs set to D=0, when the clock pulse is applied, the
active high signal resets the flip flop to Q= 0 ,then the flip flop said to be in
the RESET state.
• Case 2:With the inputs set to D=1, when the clock pulse is applied, the
active high signal SETS the flip flop to Q=1 ,then the flip flop said to be in
the SET state.
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 23
COMPUTER ORGANIZATION UNIT-1
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 24
COMPUTER ORGANIZATION UNIT-1
• WORKING OF SR
JK FLIPFLOP:
• Case 1:With the inputs the J=0 and K=0, then the output remains in
previous state i.e. it holds the previous data.(No change)
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 25
COMPUTER ORGANIZATION UNIT-1
• Case 2:With the inputs set to J=0and K=1, when the clock pulse is applied,
the active high signal on R resets the flip flop to 0 ,then the flip flop said to
be in the RESET state.
• Case 3:With the inputs set to J=1and K=0, when the clock pulse is applied,
the active high signal on S sets the flip flop to 1 ,then the flip flop said to be
in the SET state.
• Case 4: When both the J=1 and K=1, then the flip flop will be in TOGGLE
state(TOGGLE).
TIMING DIAGRAM OF SR
JK FLIPFLOP
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 26
COMPUTER ORGANIZATION UNIT-1
• WORKING OF T FLIPFLOP:
• CASE1: When T=0 and clock=1 then Q and Q’ Holds Previous States. So no
change in outputs. This state is referred as HOLD STATE
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 27
COMPUTER ORGANIZATION UNIT-1
• CASE 2: When T=1 and clock=1 then Q and Q’ will change their outputs
from 0 to 1 and 1 to 0 for every clock period, so toggling of outputs. This
state is referred as TOGGLE STATE
Boolean algebra
• Mathematician George Boole invented the Boolean Algebra. Boolean
algebra is a division of mathematics which deals with operations on
logical values and incorporates binary variables. Boolean Algebra is used
to analyze and simplify the digital (logic) circuits.
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 28
COMPUTER ORGANIZATION UNIT-1
Annulment Law – A term AND´ed with a “0” equals 0 or OR´ed with a “1” will
equal 1.
Identity Law – A term OR´ed with a “0” or AND´ed with a “1” will always
equal that term.
Idempotent Law – An input that is AND´ed or OR´ed with itself is equal to that
input.
Complement Law – A term AND´ed with its complement equals “0” and a
term OR´ed with its complement equals “1”.
Double Negation Law – A term that is inverted twice is equal to the original
term.
(1) Two separate terms NOR´ed together is the same as the two terms inverted
(Complement) and AND´ed for example, (A+B)’ = A’. B’.
(2) Two separate terms NAND´ed together is the same as the two terms inverted
(Complement) and OR´ed for example, (A.B)’ = A’ +B’.
De Morgan´s Theorem(5 MARKS)***
1. (A + B)' = A'B’ (OR LAW)equ 1
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 30
COMPUTER ORGANIZATION UNIT-1
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 31
COMPUTER ORGANIZATION UNIT-1
Duality Theorem
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 32
COMPUTER ORGANIZATION UNIT-1
COMBINATIONAL CIRCUITS NOTES - Dr. DEEPA & Ms. SHEETAL, DCA, PRESIDNCY COLLEGE
Page 33
COMPUTER ORGANIZATION UNIT -2
Unit-II
Computer Organization: Instruction format, Types of basic computer
instruction format, Instruction cycle, Design of basic computer flowchart,
Interrupt and its types, Interrupt cycle
Registers
1. The data register (DR) holds the operand read from memory.
2. The accumulator (AC) register is a general purpose processing register.
3. The instruction read from memory is placed in the instruction register (IR).
4. The temporary register (TR) is used for holding temporary data during the
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
MRI
AND Performs logical AND operation with AC content
LDA Load Memory Word to AC
ADD ADD memory word to AC
STA Store the content of AC to memory
BUN Branched Unconditionally
BSA Branch and save return address
ISZ Increment and skip if zero
1. AND to AC
This is an instruction that performs the AND logic operation on pairs of bits in AC
and the memory word specified by the effective address. The result of the operation
is transferred to AC.
2. ADD to AC
This instruction adds the content of the memory word specified by the effective
address to the value of AC. The sum is transferred into AC and the output carry Cout
is transferred to the E (extended accumulator) flip-flop.
3. LDA: Load to AC
This instruction transfers the memory word specified by the effective address to AC.
STA: Store AC
This instruction stores the content of AC into the memory word specified by the
effective address.
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
The next four instructions cause a skip of the next instruction in sequence
when
If condition is satisfied. The skipping of the instruction is achieved by
incrementing PC.
The AC is positive when the sign bit in AC(15) = 0; it is negative when
AC(15) = 1. The content of AC is zero (AC = 0) if all the flip-flops of the
register are zero.
The HLT instruction stops the sequence counter.
INPUTOUTPUT INSTRUCTION
IO reference
instructions
INP Input character to AC
OUT Output character from AC
SKI Skip on input flag
SKO Skip on output flag
ION Interrupt on
IOF Interrupt off
The INP instruction transfers the input information from INPR into the eight
bits of AC and also clears the input flag to 0.
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
The OUT instruction transfers the eight least significant bits of AC into the
output register OUTR and clears the output flag to 0.
The next two instructions, check the status of the flags and cause a skip of
the next instruction if the flag is 1.
The instruction that is skipped will normally be a branch instruction to return
and check the flag again.
The branch instruction is not skipped if the flag is 0. If the flag is 1, the branch
instruction is skipped and an input or output instruction is executed.
The last two instructions set and clear an interrupt enable flip-flop IEN. The
purpose of IEN is explained in conjunction with the interrupt operation
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
Type of instruction during instruction cycle can be determined by a special bit called
D7 and the Mode value I are specify using following Notations
D’7 I T3: AR <- M [AR]
D’7 I’ T3: Nothing
D7 I’ T3: Execute a register-reference instruction
D7 I T3: Execute an input-output instruction
Interrupt Cycle
The process of altering the flow of execution of a program is called interrupt.
An Interrupt flip flop R is included in computer system, When R = 0, it specifies
Instruction cycle and R = 1 specifies the Interrupt cycle.
This is a hardware implementation of a branch and save return address operation.
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
2. During Execution phase of instruction cycle checks the IEN ,If IEN =0,If there is
no interrupt, fetch next instruction
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
1. Memory unit
• RAM stands for random access memory. It is also called direct access memory
Random access means that each individual byte in entire memory can be
accessed directly. RAM is used to store data and instructions temporarily.
• ROM stands for Read Only Memory. The instructions in ROM prepare the
computer for use. These instructions can only be read but cannot be changed or
deleted. It is not possible to write new information or instructions into the
ROM.
2. Registers
FLIP USAGE
FLOP
I TO SET MODE VALUES OF
COMPUTER INSTRUCTIONS
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
4. Decoder -3X8 for Register input/output, 4X16 decoder used for Timing control.
5. Common bus: It is 16 bit bus system which is used to carry information to one
location to another location
6. Control Logic gates: It is used to realize basic gate operation and control the flow
of information
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
Instruction cycle
Execute
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
Type of instruction during instruction cycle can be determined by a special bit called
D7 and the Mode value I are specify using following Notations
D’7 I T3: AR <- M [AR]
D’7 I’ T3: Nothing
D7 I’ T3: Execute a register-reference instruction
D7 I T3: Execute an input-output instruction
Interrupt cycle
• If R =1 and Suspend the execution of the current instruction execution and
start with Interrupt cycle
• In interrupt cycle Saves its context(return address) (AR<-0,TR<-PC)
• Set program counter (PC) to interrupt service routine (pc<-0 )
• Process the interrupt(PC<-PC +1)
• Restore the context of the original program and continue its execution (IEN
=0,R = 0, SC=0)
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE
COMPUTER ORGANIZATION UNIT -2
Interrupt:-
Types of interrupts
Internal Interrupts
Software Interrupts
External Interrupts
Internal Interrupts
• Internal interrupts arise from illegal or erroneous use of an instruction or data.
• They are also called trap.
• Examples of interrupts caused by internal error conditions are register
overflow, attempt to divide by zero, stack overflow, etc.
External Interrupts
• They come from I/O Devices, or from circuit monitoring or from any other
external source.
• Examples for causing external interrupts are I/O device requesting transfer of
data, I/O device finished transfer of data, elapsed time of an event.
Software Interrupts
• Software interrupt is a special call instruction that behaves like an interrupt
rather than a subroutine call. It can be used by the programmer to initiate an
interrupt procedure at any desired point in the program.
• Example:
• Windows to linux/linux to windows
• User mode to admin mode/admin mode to user mode.
UNIT 2 NOTES COMPUTER ORGANIZATION - BY Dr. DEEPA, Ms. SHEETAL & Ms. SOWMYA, DCA,
PRESIDNCY COLLEGE