i/o and bus architecture Flashcards

1
Q

explain i/o bus

A

1.exists special h/w components b/w CPU and peripherals to supervise and synchronize all the input and output transfers
2. consists of data lines,address line and control lined
3. i/o bus from processor is attached to all peripherals interface
4. to communicate with a particular device ,processor places a devie address on adddress lines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

explain memory mapped i/o device interface

A
  • Same address decoder selects memory and I/O ports.
  • Some memory address space is occupied by the I/O devices.
  • All data transfer instructions to / from memory can be used to transfer to/from I/O devices.
  • Processor need not have separate instructions for I/O.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

explain i/o mapped device interface

A
  • Separate instructions for I/O data transfer [ IN / OUT].
  • Processor signal identifies whether a generated address refers to memory or I/O device.
  • Separate address decoder for selecting memory and I/O ports.
  • Complete memory address space can be utilized.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are some data transfer techniques?

A
  1. ̥Programmed i/o :
    * CPU executes a program and that transfers data b/w i/o device and mem
    * synchronous : fixed rate of transfer
    * asynchronous : handshanking - polling for sending and receiving data
    * interrupt driven
    2.Direct mem access(DMA) :
    * An external controller directly transfers data between I/O device and Memory without CPU intervention.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

explain interrupt driven data transfer

A
  1. ̥CPU initiates the data transfer and proceeds to perform some other task.
  2. When I/O module is ready for data transfer, it informs the CPU by activating a signal (Interrupt request).
  3. The CPU suspends the task it was doing, services the request from the device and return back to the task it was doing.

Advantages
* CPU time is not wasted by polling the device
* CPU time is required only during the data transfer plus some overheads for transferring and returning the control.

What happens when an interrupt request arrives?
* At the end of the execution of the current instruction, PC and the status register contents are saved in the stack automatically.
* Interrupt is acknowledged, interrupt vector is obtained based which the control transfers to the appropriate ISR.
* After handling the interrupt, the ISR executes a special instruction return from interrupt(RTI).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How is interrupt nesting handled?

A
  • A device D0 has interrupted and the CPU is servicing the (executing the ISR) device D0.
  • In the meantime, device D1 has interrupted.
  • Two possible scenarios are here:
    1. ̥D1 will interrupt the ISR for D0, get processed first, and then the ISR for device D0 will be resumed.
    2. Disable the interrupt system automatically whenever an interrupt is
    acknowledged.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

explain polling technique

A

Each device can have a status bit whether the device has interrupted?

CPU can poll the status bit to check for the device which has interrupted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

– Daisy Chain Technique

A

In Daisy chain technique, INTR line is common to all the devices.

INTA line is connected in a daisy chain fashion [ as shown].

This allows to propagate serially through the devices.

A device when it receives INTA, passes the signal to the next device only if it has
not interrupted.

Else, it stops the propagation of INTA and puts the identifying code on the data
bus.

Thus the device that is electrically closest to the CPU will have the highest
priority.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Exaplain Direct mem access

A

an interrupt handler was used and the I/O machine produces all the signals that the CPU produce, then the I/O machine can bypass the information alienates to central processing unit and hence increases the speed.

Cycle Stealing Process: Traditionally it is a method of accessing RAM or bus without
interfering with the CPU.

adv:
can permit the CPU to run at full speed
without any delay if external devices access memory not actively participating in the CPU’s current activity and complete the operations before any possible CPU conflict.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

explain what is universal bus architecture

A
  • data interface used with computers enabling the computer to send and receive data as well as providing power to some peripherals
  • When a peripheral is attached to the USB network, the host communicates with the device.(enumeration)
    To learn its identity
    To discover which device driver is required
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Explain PCI bus architecture

A
  • local computer bus for attaching hardware devices in a computer.
  • Any PCI device may initiate a transaction.
  • First, it must request permission from a PCI bus arbiter on the motherboard.
  • arbiter grants permission to one of the requesting devices.
  • initiator begins the address phase by broadcasting a 32- bit address plus a 4-bit command code, then waits for a target to respond.
  • All other devices examine this address and one of them responds a few cycles later.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Explain SCSI Architecture

A
  • Provided as a bridge between hard disk low-level interface and a host computer
  • Standard Interface and communication protocol for connecting computer peripherals.
  • increase performance and deliver faster
  • address upto 8 devices (0 to 7).
  • Based on the Client Server Architecture
    Clients are Initiators – creates(begins)and sends SCSI commands to the target.
    Servers are Targets – Collection of logical units – carries out the requested task.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Explain AMBA

A
  • open standard, on-chip interconnect specification for the connection and management of functional blocks in a System-on-Chip (SoC).
  • facilitates right-first-time development of multi-processor designs with large numbers of controllers and peripherals.
  • that enables IP reuse if
    Flexibility:

Wide Adaption:

Compatibility:

Support:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly