Co Unit 3
Co Unit 3
UNIT-1
Computer Architecture is abstract model and are those attributes
that are visible to programmer like instructions sets, no of bits used
for data, addressing techniques. It describes what the computer
does.
MAR
⚫ Registers may also be represented showing the bits of data they contain
7 6 5 4 3 2 1 0
REPRESENTATION OF REGISTERS IN BLOCK DIAGRAM
R1
(a) Register R1
The individual bits can be distinguished as follows:
R : High Low
76543210
15 0
R2
15 87 0
The symbol PC(0-7) or
PC (H) PC (L) PC(L) refers to low-order
byte
R2 ← R1
T1 ^ p4: R1 R2
This is read as :
⚫ If (T1 ^ p4) then R1 R2
⚫ If T1 and p4, then R1 gets the contents of R2
RTL SYNTAX
Bus lines
One way of connecting a common bus system is with multiplexers.
The multiplexers select the source register whose binary information
is placed on the bus.
The construction of a bus system for four registers is shown below:
Each register has 4 bits, numbered 0 to 3.
The bus consists of four 4 x1 multiplexers each having four data inputs , 0
through 3, and two selection inputs, S1 and S0 .
Output 1 of register A is connected to input 0 of MUX 1 because this
input is labeled A1.
MUX 0 multiplexes the four 0 bits of the registers, MUX 1 multiplexes
the four 1 bits of the registers and similarly for the other two bits.
BUS SELECTION:
The two selection lines S1 and S0 are connected to the selection
inputs of all 4 multiplexers.
Consider the table:
S1 S2 Register Selected
0 0 A
0 1 B
1 0 C
1 1 D
The symbolic statement for a bus transfer may mention the bus or its
presence may be implied in the statement.
When the bus is includes in the statement, the register transfer is
symbolized as follows:
BUS C, R1 BUS
The content of register C is placed on the bus, and the content of the
bus is loaded into register R1.
If the bus is known to exist in the system, it may be convenient just
to show the direct transfer.
R1 C
THREE- STATE BUS BUFFERS
A bus system can also be constructed with three-state gates instead
of multiplexers.
Three-state gate- It is a digital circuit that exhibits 3 states. Two of
the states are logic 1 and logic 0 as in conventional gate. The third
state is high-impedance state. The high-impedance state behaves
like an open circuit, which means that the output is disconnected and
does not have a logic significance.
Essentially, the buffer unit “holds” the value stored in the Flip flop.
The graphic symbol of a three-state buffer gate is shown as below:
Control
input C
When the control input=1, the output is enabled and the gate
behaves likes normal buffer with the output equal to normal input.
When the control input is 0, the output is disabled and the gate goes
to high-impedance state, regardless of the value in normal input.
BUS SYSTEM THROUGH THREE-STATE BUFFER
R1
R2
R3
S0 0
Select { S1
2x4
decoder 1
2
Enable E 3
BUS SYSTEM THROUGH THREE-STATE BUFFER
R1
R2
R3
1
S0 0
Select {
0 S1 2x4
decoder 1
1 2
Enable E 3
The outputs of four buffers are connected together to form a single bus line.
The control inputs to the buffer determines which of the four normal inputs
will communicate with the bus line.
No more than one buffer may be in active state at any given time.
One way to ensure that no more than one control input is active at any given
time is to use a decoder (as shown in diagram).
When enable=0, all of its four output are 0 due to which bus-line is in high
impedance state.
When enable input is=1 (active), one of the 3-state buffer will be active,
depending on the binary value in the selected inputs.
Consider the table:
Rea
Memor
A d
y
R unit Writ
e
Data Data
out in
MEMORY READ
The transfer of information from a memory word to the outside
environment is called a read operation.
To read a value from a location in memory and load it into a register,
the register transfer language notation looks like this:
R1 ← M[AR]
This causes the following to occur:
⚫ The contents of AR are being put on address lines.
⚫ Activate the memory read control signal on the control bus.
⚫ Wait for the memory to retrieve the data from the address memory
location and put it on data lines.
⚫ Read the data from the data bus and load into register R1.
MEMORY WRITE
The transfer of new information to be stored into the memory is
called write operation.
The write operation can be stated symbolically as follows:
M[AR] R1
ABUS ← R1, Transfer content of R1 into bus A and, at the same time, transfer
content of bus A into R2
R2 ← ABUS
AR Address register
DR Data register
M[R] Memory word specified by reg. R
M Equivalent to M[AR]