Computer Organization and Architecture
Computer Organization and Architecture
Computer Organization and Architecture
2
Answers
1) Discuss data transmission modes.
i) What is the data transmission mode?
Data transmission mode defines the direction of the flow of information
between two communication devices. It is also called data communication
or directional mode. It specifies the direction of the flow of information
from one place to another in a computer network.
ii) What are the types of data transmission modes?
We have different types of data transmission modes based on:
a) The direction of exchange.
The data transmission modes can be characterized in the following
three types based on the direction of exchange of information:
1) Simplex
֎ Simplex is the data transmission mode in which the data can
flow only in one direction, i.e., the communication is
unidirectional. In this mode, a sender can only send data but
cannot receive it. Similarly, a receiver can only receive data
but cannot send it. Graphically, it is represented by:
5
flowing in the opposite direction. The Full-duplex mode is the
fastest mode of communication between devices.
֎ Examples of full duplex modes of data transmission
A telephone network, in which both the persons can talk
and listen to each other simultaneously.
Two way traffic in which vehicles can enter from
opposite side
֎ Advantages of full duplex modes of data transmission
The two-way communication can be carried out
simultaneously in both directions
It is the fastest mode of communication between
devices
A sender can send as well as receive the data
simultaneously
Full duplex has better performance as it doubles the
utilization of bandwidth (utilizes the maximum
bandwidth)
֎ Disadvantages of full duplex modes of data transmission
The capacity of the communication channel is divided
into two parts
No dedicated path exists for data transfer
It has improper channel bandwidth utilization as there
exist two separate paths for two communicating devices
It is more complex than a simplex and half-duplex mode
6
b) Synchronization between the transmitter and receiver.
Given the problems that arise with a parallel-type connection, serial
connections are normally used. However, since a single wire transports
the information, the problem is how to synchronize the transmitter and
receiver. In other words, the receiver can not necessarily distinguish the
characters (or more generally the bit sequences) because the bits are
sent one after the other. There are two types of transmission that
7
address this problem: an asynchronous connection and a synchronous
connection. The data transmission modes can be characterized in the
following two types based on the synchronization between the
transmitter and the receiver:
1) Synchronous
֎ The synchronous transmission mode is a mode of
communication in which the bits are sent one after another
without any start/stop bits or gaps between them. Actually,
both the sender and receiver are paced by the same system
clock. In this way, synchronization is achieved.
֎ In synchronous transmission, the data is sent in form of blocks
or frames. This transmission is the full duplex type. Between
sender and receiver the synchronization is compulsory.
֎ In a synchronous mode of data transmission, bytes are
transmitted as blocks in a continuous stream of bits. Since
there is no start and stop bits in the message block. It is the
responsibility of the receiver to group the bits correctly. The
receiver counts the bits as they arrive and groups them in
eight bits unit. The receiver continuously receives the
information at the same rate that the transmitter has sent it.
It also listens to the messages even if no bits are transmitted.
֎ In synchronous mode, the bits are sent successively with no
separation between each character, so it becomes necessary
to insert some synchronization elements with the message,
this is called "Character-Level Synchronization".
֎ For Example, if there are two bytes of data, say(10001101,
11001011) then it will be transmitted in the synchronous mode
as follows:
8
֎ Example of synchronization
Communication in CPU, RAM
֎ Advantage of synchronization
Transmission speed is fast as there is no gap between
the data bits
֎ Disadvantage of synchronization
It is very expensive
2) Asynchronous
֎ The Asynchronous transmission mode is a mode of
communication in which a start and the stop bit is introduced
in the message during transmission. The start and stop bits
ensure that the data is transmitted correctly from the sender
to the receiver.
֎ Generally, the start bit is '0' and the end bit is
'1'.Asynchronous here means 'asynchronous at the byte level',
but the bits are still synchronized. The time duration between
each character is the same and synchronized.
֎ In an asynchronous mode of communication, data bits can be
sent at any point in time. The messages are sent at irregular
intervals and only one data byte can be sent at a time. This
type of transmission mode is best suited for short-distance
data transfer.
֎ For Example, if there are two bytes of data, say (10001101,
11001011), then it will be transmitted in the asynchronous
mode as follows:
9
֎ In asynchronous transmission, data is sent in form of byte or
character. This transmission is the half duplex type
transmission. In this transmission start bits and stop bits are
added with data. It does not require synchronization.
֎ Example of asynchronous transmission
Data input from a keyboard to the computer
֎ Advantage of asynchronous transmission
It is a cheap and effective mode of transmission
Data transmission accuracy is high due to the presence
of start and stop bits
֎ Disadvantage of asynchronous transmission
The data transmission can be slower due to the gaps
present between different blocks of data
10
c) The number of bits sent simultaneously in a computer network.
The data transmission modes can be characterized in the following two
types based on the number of bits sent simultaneously in the network:
1) Serial
֎ The Serial data transmission mode is a mode in which the data
bits are sent serially one after the other at a time over the
transmission channel.
֎ It needs a single transmission line for communication. The data
bits are received in synchronization with one another. So,
there is a challenge of synchronizing the transmitter and
receiver.
֎ Applications:
11
Serial transmission occurs between two computers, or
from a computer to an external device located far away.
12
large amount of data has to be sent in a shorter duration of
time. It is mostly used for short-distance communication.
֎ Applications:
Parallel transmission can take place within
a computer system, through a computer bus, or to an
external device located nearby.
13
14
2) What is the purpose of accumulator (With examples)?
Answer:
a) ADD and SUB: Yes, both of them activities are done or changed by flag.
16
b) INC and DEC: Yes, both of them activities are done or changed by flag.
c) MOV: No, move cannot be done or changed by flag.
4) __________ memory helps CPU to increase its processing speed.
Answer: Cache memory
5) Differentiate RISC and CISC.
Answer:
Besides the classification based on the word length, the classification is also based
on the architecture i.e. Instruction Set of the microprocessor. These are
categorized into RISC and CISC.
17
18
19
20
6) Differentiate combinational and sequential circuit.
Answer:
Combinational circuits are defined as the time independent circuits which do not
depends upon previous inputs to generate any output are termed as combinational
circuits. Sequential circuits are those which are dependent on clock cycles and
depends on present as well as past inputs to generate any output.
Combinational Circuit:
21
Sequential Circuit:
1. In this output depends upon present as well as past input.
2. Speed is slow.
3. It is designed tough as compared to combinational circuits.
4. There exists a feedback path between input and output.
5. This is time dependent.
6. Elementary building blocks: Flip-flops
7. Mainly used for storing data.
8. Sequential circuits have capability to store any state or to retain earlier
state.
9. As sequential circuits are clock dependent they need triggering.
10. These circuits have memory element.
11. It is not easy to use and handle.
Examples – Flip-flops, Counters
22