1.Programs reside in the memory & usually get these through the I/P unit.
2. Execution of the program starts when the PC is set to point at the first instruction of the program.
3. Contents of PC are transferred to MAR and a Read Control Signal is sent to the memory.
4. After the time required ...
1.Programs reside in the memory & usually get these through the I/P unit.
2. Execution of the program starts when the PC is set to point at the first instruction of the program.
3. Contents of PC are transferred to MAR and a Read Control Signal is sent to the memory.
4. After the time required to access the memory elapses, the address word is read out of the memory and loaded into the MDR.
5. Now contents of MDR are transferred to the IR & now the instruction is ready to be decoded and executed.
6. If the instruction involves an operation by the ALU, it is necessary to obtain the required operands.
7. An operand in the memory is fetched by sending its address to MAR & Initiating a read cycle.
When the operand has been read from the memory
to the MDR, it is transferred from MDR to the ALU.
After one or two such repeated cycles, the ALU
can perform the desired operation.
10. If the result of this operation is to be stored in the memory, the result is sent to MDR.
11. Address of location where the result is stored is sent to MAR & a write cycle is initiated.
12. The contents of PC are incremented so that PC points to the next instruction that is to be executed.
1.Programs reside in the memory & usually get these through the I/P unit.
2. Execution of the program starts when the PC is set to point at the first instruction of the program.
3. Contents of PC are transferred to MAR and a Read Control Signal is sent to the memory.
4. After the time required to access the memory elapses, the address word is read out of the memory and loaded into the MDR.
5. Now contents of MDR are transferred to the IR & now the instruction is ready to be decoded and executed.
6. If the instruction involves an operation by the ALU, it is necessary to obtain the required operands.
7. An operand in the memory is fetched by sending its address to MAR & Initiating a read cycle.
When the operand has been read from the memory
to the MDR, it is transferred from MDR to the ALU.
After one or two such repeated cycles, the ALU
can perform the desired operation.
10. If the result of this operation is to be stored in the memory, the result is sent to MDR.
11. Address of location where the result is stored is sent to MAR & a write cycle is initiated.
12. The contents of PC are incremented so that PC points to the next instruction that is to be executed.
1.Programs reside in the memory & usually get these through the I/P unit.
2. Execution of the program starts when the PC is set to point at the first instruction of the program.
3. Contents of PC are transferred to MAR and a Read Control Signal is sent to the memory.
4. After the time required to access the memory elapses, the address word is read out of the memory and loaded into the MDR.
5. Now contents of MDR are transferred to the IR & now the instruction is ready to be decoded and executed.
6. If the instruction involves an operation by the ALU
Examples: -ADD LOCA, R0
•This instruction adds the operand at memory
location LOCA, to operand in register R0 & places
the sum into register.
•This instruction requires the performance of
several steps,
1. First the instruction is fetched from the memory into
the processor.
2. The operand at LOCA is fetched and added to the
contents of R0
3. Finally the resulting sum is stored in the register R0
Buses
•Busconsistsof3setoflines:Address,Data,
Control
•Processorplacesaparticularaddress(uniquefor
anI/ODev.)onaddresslines.
•Devicewhichrecognizesthisaddressrespondsto
thecommandsissuedontheControllines.
•ProcessorrequestsforeitherRead/Write.
•ThedatawillbeplacedonDatalines.
Data Bus
•Carries data
–Remember that there is no difference between
“data” and “instruction” at this level
•Width is a key determinant of performance
–8, 16, 32, 64 bit
10
Address bus
•Identify the source or destination of data
•e.g. CPU needs to read an instruction (data)
from a given location in memory
•Bus width determines maximum memory
capacity of system
–e.g. 8080 has 16 bit address bus giving 64k
address space
11
Control Bus
•Control and timing information
–Memory read/write signal
–Interrupt request
–Clock signals
–Reset
–Bus request / bus grant
–Transfer ACK
–I/O read and I/O write
12
Bus Interconnection Scheme
13
Big and Yellow?
•What do buses look like?
–Parallel lines on circuit boards
–Ribbon cables
14
Bus Types
•Bus is a shared communication link.
•It is used to connect multiple subsystems.
Single bus structure
Multiple bus structure
15
Single bus structure
16
Multiple bus structure -Traditional (ISA)
(with cache)
17
High Performance Bus
18
Bus Operations
•Bus includes:
1.Address lines
2.Data lines
3.Control lines
•Data transfer can be in two ways:
1.Synchronous bus
2.Asynchronous bus
19
Bus Operations
1.Synchronousbus-Alldevicesderivetiming
informationfromacommonclockcycle.
2.Asynchronousbus–commonclockcycleis
eliminatedanddatatransferisachievedby
handshakebetweenprocessoranddevice
beingconnected
20
BUS Arbitration
•There are two approaches to bus arbitration:
–Centralized bus arbitration –A single bus
arbiter performs the required arbitration.
–Distributed bus arbitration –All devices
participate in the selection of the next bus
master.
•Methods of BUS Arbitration –
There are three bus arbitration methods:
•Daisy Chaining method
•Polling or Rotating Priority method
•Fixed priority or Independent Request method
Daisy Chaining method
•It is a centralized bus arbitration method. During
any bus cycle, the bus master may be any device –
the processor or any DMA controller unit,
connected to the bus.
Polling or Rotating Priority
method
•Inthismethod,thedevicesareassignedunique
prioritiesandcompletetoaccessthebus,butthe
prioritiesaredynamicallychangedtogiveevery
deviceanopportunitytoaccessthebus.
Fixed priority or Independent Request
method
•In this method, the bus control passes from one
device to another only through the centralized
bus arbiter.