Computer Organization: Semester 3
Computer Organization: Semester 3
Computer Organization: Semester 3
ORGANIZATION
SEMESTER 3
UNIT - 2
HI COLLEGE
SYLLABUS
UNIT - 2
HI COLLEGE
COMBINATIONAL CIRCUITS
MULTIPLEXERS
Multiplexers are mainly used to increase amount of the data that can be sent
over the network within certain amount of time and bandwidth.
Now the implementation of 4:1 Multiplexer using truth table and gates.
NOT Gate :
Implementation of NAND, NOR, XOR and XNOR gates requires two 2:1 Mux.
First multiplexer will act as NOT gate which will provide complemented
input to the second multiplexer.
NAND GATE :
NOR GATE :
EX-OR GATE :
Similarly,
While 8 : 1 MUX require seven(7) 2 : 1 MUX, 16 : 1 MUX require fifteen(15) 2 :1
MUX, 64 : 1 MUX requires sixty three(63)2 : 1 MUX.
Hence, we can draw a conclusion, 2n : 1 MUX requires (2^n – 1) 2 : 1 MUX.
With don't care term (7), using a 4 : 1 MUX with AB as the select input:
DE-MULTIPLEXERS:
Distributes a single input to one of many output lines.
Controlled by select lines.
DECODERS:
Converts binary inputs into multiple output lines, one of which is
active based on the input.
Commonly used in memory addressing.
ENCODERS:
Converts multiple input lines into a smaller set of output lines.
Inverse operation of a decoder
Types of flip-flops:
SR Flip Flop
JK Flip Flop
D Flip Flop
T Flip Flop
Logic diagrams and truth tables of the different types of flip-flops are as
follows:
T Flip Flop:
Excitation Functions
Excitation Functions: S = D, R = D‘
Counters
Frequency Dividers
Shift Registers
Storage Registers
Bounce elimination switch
Data storage
Data transfer
Latch
Registers
Memory
Clocked Flip-flop:
Synchronization of flip-flop operations using a clock signal.
Master-Slave Flip-Flop:
Race Around Condition in JK Flip-Flop:
Occurs when J=K=1 and CLK is continuously high, leading to unstable Q
output.
Avoided by brief clock pulses.
Solution: Master-Slave JK Flip-Flop.
Master-Slave JK Flip-Flop:
Combines two JK flip-flops: master and slave.
Master drives slave via an inverter.
Inverted clock pulse controls slave (CP).
Master transfers data during CP low, and slave operates during CP high.
flip-flops working in tandem to eliminate race conditions.
1.Latch:
Latches in Digital Circuits:
Latches store a single bit of information until updated by new input signals.
Two main types: S-R (Set-Reset) Latches and D (Data) Latches.
Latches operate at signal levels, not transitions.
D (Data) Latch:
Also called transparent latches.
Uses D (Data) input and a clock signal.
Output follows D when the clock is high.
Output holds its state until the next clock rising edge.
Applications of Latches:
Widely used in digital systems for data storage, control circuits, and flip-flop
circuits.
Used in combination with other circuits for sequential systems like state
machines and memory elements.
Key Characteristics:
Latches are level-sensitive and not edge-triggered like flip-flops.
Useful for asynchronous sequential circuits.
Have two stable states and respond to input voltage.
Gated D Latch –
D latch is similar to SR latch with some modifications made. Here, the inputs
are complements of each other. The letter in the D latch stands for “data” as this
latch stores single bit temporarily.
The design of D latch with Enable signal is given below:
ADVANTAGES OF LATCHES:
1. Easy Implementation: Latches are straightforward to design and construct
using basic digital logic gates.
2. Low Power Consumption: They consume less power compared to more
complex sequential circuits like flip-flops.
3. High-Speed Operation: Latches can operate at high speeds, making them
suitable for high-performance digital systems.
4. Cost-Effective: Latches are cost-effective to manufacture, making them
suitable for low-cost digital systems.
5. Versatility: Latches find application in various scenarios, including data
storage, control circuits, and flip-flop circuits.
DISADVANTAGES OF LATCHES:
1. Lack of Clock: Latches lack a clock signal, making their behavior
unpredictable and less suitable for synchronous systems.
2. Unstable State: In certain situations, latches can enter an unstable state
when both inputs are set to 1, leading to unexpected system behavior.
3. Complex Timing: Specifying the timing characteristics of latches can be
complex, which may limit their use in real-time control applications.
Data Storage: Registers are small, high-speed storage elements within the CPU
(Central Processing Unit) or other parts of a computer's architecture. They store
binary data in the form of bits or bytes.
Purpose: Registers are used for various purposes, including storing data
temporarily during computation, holding operands for arithmetic and logic
operations, and serving as input/output buffers.
Size and Types: Registers come in different sizes, typically defined by the
number of bits they can store (e.g., 8-bit, 16-bit, 32-bit, or 64-bit registers).
Common types of registers include:
Memory Address Register (MAR): Holds the address of the memory location
being read from or written to.
Memory Buffer Register (MBR): Temporarily stores data read from or written to
memory.
Data Transfer: Registers facilitate the transfer of data within the CPU and
between the CPU and other parts of the computer, such as memory and I/O
devices.