Arc Unit 3
Arc Unit 3
• SSI
– contain several independent gates in a single package.
– The inputs & outputs of the gates are connected directly to
the pins in the package.
– The number of gates is usually less than 10 and is limited
by the number of pins available in the IC.
• MSI
– have a complexity of approximately 10 to 200 gates in a
single package.
– They perform specific elementary digital functions such as
decoders, adders, and registers.
…
• LSIC
– Contain between 200 and a few thousand gates in a
single package.
– They include digital systems such as processors,
memory chips, & programmable modules.
• VLSI
– contain thousands of gates within a single
package.
– Example are large memory arrays and complex
microcomputer chips.
Ic classify by the specific circuit technology
to which they belong.
• TTL Transistor-transistor logic
– is a widespread logic family
– Uses transistors to implement gates
• ECL Emitter-coupled logic
– Used in high-speed systems
– Uses special nonsaturated transistors to achieve
super fast speed.
…
• MOS Metal-oxide semiconductor
– Used in circuits that have high component density
– uses unipolar transistors
• CMOS Complementary metal-oxide semiconductor
X Y F0 F1 F2 F3
0 0 1 0 0 0
0 1 0 1 0 0 F0 = X'Y'
1 0 0 0 1 0
1 1 0 0 0 1
F1 = X'Y
F0
X Y
X 2-to-4 F1
Y Decoder F2
F3
3-
to-8
Bina Table:
Truth
ry F0 = x'y'z'
Dec
x y z F0 F1 F2 F3 F4 F5 F6 F7 F1 = x'y'z
oder
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0 F2 = x'yz'
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0 F3 = x'yz
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0 F4 = xy'z'
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1 F5 = xy'z
F6 = xyz'
F0
F1 F7 = xyz
X
F2
Y
3-to-8 F3
Z
Decoder F4
F5
F6
x y z
F7
Select Output
s1 s0 Y
0 0 D00
0 1 D01
1 0 D10
1 1 D11
Registers
• It is a group of flip-flops capable of storing one bit
of information.
• An n-bit register has a group of n flip-flops and is
capable of storing any binary information of n bits.
• Registers can also have combinational gates that
perform certain data-processing tasks.
• The flip-flops hold the binary information and
• The gates control when and how new information
is transferred into the register.
parallel Registers
• The transfer of new information into a register is
referred to as a register load.
• If the loading occurs simultaneously at a common clock
pulse transition, we say that the load is done in parallel.
• The load input in a register determines the action to be
taken with each clock pulse.
• When the load input is 1, the data from the input lines
is transferred into the register's flip-flops.
• When the load input is 0, the data inputs are inhibited
and the flip-flop maintains its present state.
a register constructed with four D flip-
flops.
• The common clock input triggers all flip-flops, and
the binary data available at the four inputs are
transferred into the 4-bit register.
• The four outputs can be sampled at any time to
obtain the binary information stored in the register.
• The clear input goes to a special terminal in each
flip-flop. When this input goes to 0, all flip-flops are
reset.
• Note that the clock signal enables the D input but
that the clear input is independent of the clock.
parallel & Shift Registers
• A register capable of shifting its binary
information in one or both directions is called
a shift register.
• It consists of a chain of flip-flops in cascade,
with the output of one flip-flop connected to
the input of the next flip-flop.
• All flip-flops receive common clock pulses
that initiate the shift from one stage to the
next.
…
• A register capable of shifting its binary
information in one or both directions is called
a shift register.
• Shift registers are constructed by connecting
flip-flops in cascade, where the output of one
flip-flop is connected to the input of the next
flip-flop.
• All flip-flops receive common clock pulses that
initiate the shift from one stage to the next.
Cont.………………
• A serial input shift register has a single external input
(called the serial input) entering an outermost flip-flop.
• Each remaining flip-flop uses the output of the
previous flip-flop as its input, with the last flip-flop
producing the external output (called the serial
output).
• A register capable of shifting in one direction is called a
unidirectional shift register.
• A register that can shift in both directions is called a bi-
directional shift register.
Cont.………………..
• The most general shift register has the following capabilities:
– An input for clock pulses to synchronize all operations.
– A shift-right operation and a serial input line associated with the
shift- right.
– A shift-left operation and a serial input line associated with the shift-
left.
– A parallel load operation and n input lines associated with the
parallel transfer. N
– parallel output lines.
– A control state that leaves the information in the register unchanged
even though clock pulses are applied continuously.
• A mode control to determine which type of register operation
to perform.
Cont.………………
• Function Table for Shift Register Mode Control
Mode Control
S1 S0 Register operation
0 0 No Change
0 1 Shift right (down)
1 0 Shift left (up)
1 1 Parallel load
Binary Counters
• A register that goes through a predetermined sequence
of states upon the application of input pulses is called a
counter.
• The input pulses may be clock pulses or may originate
from an external source.
• A counter that follows a binary sequence is called a
binary counter.
• An n- bit binary counter is a register of n flip-flops along
with a combinational circuit that continually produces a
binary count of n bits having a value from 0 to 2n-1.
…
• Going through a sequence of binary
numbers such as 0000, 0001, 0010, 0011,
and so on, we note that the lower-order
bit is complemented after every count
and every other bit is complemented
from one count to the next if and only if
all its lower-order bits are equal to 1.
Cont.…………
• The most general binary counter register has the following
capabilities:
– An input for clock pulses to synchronize all operations.
– An increment operation that signals the register to increment its
value by 1.
– A parallel clear operation that sets all the flip-flop values to 0.
– A parallel load operation that sets all the flip-flop values
according to the values of n input lines associated with the
parallel load.
– n parallel output lines.
– A control state that leaves the information in the register
unchanged even though clock pulses are applied continuously.
Memory Unit
• It is a collection of storage cells together with associated
circuits needed to transfer information in and out of storage.
• Memory stores binary information in groups of bits called
words.
• A memory word can be used to represent any type of binary-
coded information.
• A group of eight bits is called a byte.
• Most systems use memory words that are a multiple of eight.
• Thus, a 16-bit word contains two bytes. A 32-bit word
contains four bytes, and so on.
• The number of words it contains and the number of bits in
each word define the internal structure of a memory unit.
Cont.………
• Special input lines called address lines select one particular
word.
• Each word in memory is assigned a unique address ranging
from 0 to 2k-1, where k is the number of address lines.
• Applying the k-bit binary address to the address lines does
the selection of a specific word in memory.
• A decoder inside the memory accepts the address and opens
the paths needed to select the bits of the specified word.
• Computer memories range from 1024 words, requiring an
address of 10 bits, to 2(32) words, requiring 3(2) address bits.
• Two major types of memory are used in computer systems:
Random-Access Memory (RAM)
• The concept of random-access comes from the fact that the process of
locating a word in memory is the same and requires an equal amount of time
regardless of its physical location.
• Data transfers occur through the use of data input and output lines, address
selection lines, and control lines.
• The two operations that a random-access memory can perform are the read
and write.
• To perform the read operation, the address of the desired word in memory is
placed on the address selection lines and the read control line is activated.
The memory unit then places the desired data onto the data output lines.
• To perform the write operation, the address of the desired word to be placed
into memory is placed on the address selection lines, data to be written is
placed on the data input lines, and the write control line is activated.
Read-Only Memory (ROM)
• Can only perform the read operation.
• Data placed in ROM must be done so during the hardware production
of the unit.
• The read operation on a ROM is identical to that of a RAM with the
exception being that there is no need for a read control line.
• One special type of ROM, called a programmable read-only memory
(PROM) allows the purchaser of the memory to write to the ROM one
time only.
• Another type of ROM, called an erasable PROM (EPROM) provides
the purchaser of the system the capability to modify the data in a
ROM.
• However, this must be done physically by placing the memory unit
under ultraviolet light for a specified amount of time.
Chapter 4
Register Transfer language and
Micro operations
1
Registers
11 0
PC
Memory
11 0
4096 x 16
AR
15 0
IR CPU
15 0 15 0
TR DR
7 0 7 0 15 0
OUTR INPR AC
List of BC Registers
DR 16 Data Register Holds memory operand
AR 12 Address Register Holds address for memory
AC 16 Accumulator Processor register
IR 16 Instruction Register Holds instruction code
PC 12 Program Counter Holds address of instruction
TR 16 Temporary Register Holds temporary data
INPR 8 Input Register Holds input character
OUTR 8 Output Register Holds output character
Registers
COMMON BUS SYSTEM
S1 S2
S0 Bus
Memory unit 7
4096 x 16
Address
Write Read
AR 1
LD INR CLR
PC 2
LD INR CLR
DR 3
LD INR CLR DR 16 Data Register
AR 12 Address Register
E AC 16 Accumulator
ALU AC 4 IR 16 Instruction Register
LD INR CLR PC 12 Program Counter
TR 16 Temporary Register
INPR INPR 8 Input Register
OUTR 8 Output Register
IR 5
LD
TR 6
LD INR CLR
OUTR
Clock
LD
16-bit common bus
REGISTER TRANSFER AND MICROOPERATIONS
• Register Transfer
• Shift Microoperations
• Typically,
- What operations are performed on the data in the registers
- What information is passed between registers
Register Transfer Language
MICROOPERATIONS (1)
1 clock cycle
Registers ALU
(R) (f)
R f(R, R)
- Microoperations set
MAR
• Designation of a register
- a register
- portion of a register
- a bit of a register
R2 R1
R3 R5
P: R2 R1
Load
Transfer occurs here
•The same clock controls the circuits that generate the control
function and the destination register
• Registers are assumed to use positive-edge-triggered flip-
flops
Register Transfer
SIMULTANEOUS OPERATIONS
P: R3 R5, MAR IR
Bus lines
0 0 0 0
4 x1 4 x1 4 x1 4 x1
MUX MUX MUX MUX
x
select
y
4-line bus
Bus and Memory Transfers
TRANSFER FROM BUS TO A DESTINATION REGISTER
Load
Reg. R0 Reg. R1 Reg. R2 Reg. R3
z D0 D1 D2 D3
Select 2x4 E (enable)
w
Decoder
B1 C1 D1 B2 C2 D2 B3 C3 D3 B4 C4 D4
4 x10 4 x1
0
4 x1
0
4 x1
0
MUX MUX MUX MUX
x
select
y
4-line bus
Bus and Memory Transfers
BUS TRANSFER IN RTL
2 R1
n
data output lines
Bus and Memory Transfers
MEMORY TRANSFER
M
Memory Read
AR unit Write
R1 M[MAR]
M[MAR] R1
1 10 0 At
1010 B
1 11 0 At+1 (A A + B)
1100 At
1 01 0 B
0 11 0 At+1 (A A B)
1100 At
1010 B
0100 At+1 (A A B’)
1100 At
1010 B
1000 At+1 (A A B)
1100 At
1010 B
0110 At+1 (A A B)
Logic Microoperations
INSERT OPERATION
• In a circular shift the serial input is the bit that is shifted out of the
other end of the register.
sign
bit
0
sign
bit
Shift Microoperations
ARITHMETIC SHIFT
S
MUX H0
0
1
A0
A1 S
H1
0 MUX
A2 1
A3
S
H2
0 MUX
1
S
H3
0 MUX
1
Serial
input (IL)
Shift Microoperations
ARITHMETIC LOGIC SHIFT UNIT
S3
S2 Ci
S1
S0
Arithmetic Di
Circuit
Select
0 4x1
C i+1 1 MUX Fi
2
3
Logic
Bi Ei
Ai
Circuit
shr
Ai-1
shl
i+1 A