Professional Documents
Culture Documents
ANSWER:
Data Input
Data input is the most basic function of a computer. It's what allows you to transfer
information into the system via a mouse, keyboard, scanner, external hard drive, HDMI
port, USB drive or software. Users can enter this data into a spreadsheet, database, online
forms and more.
The latest computer systems allow you to enter and process data remotely via Bluetooth or
vocal dictation. However, this function is usually performed manually via peripherals.
Data Output
The computer monitor, printer, speakers and 3D printers are known as output devices.
Their role is to display the information processed by the computer system. Data output
makes it possible to print 3D models, view photos on your PC, listen to audio files and
print documents.
Data processing is the most important function of the system unit. Without this feature, you
would not be able to convert raw data into meaningful information. The Central Processing
Unit (CPU), which is the "brain" of the computer, manipulates and controls data over the
entire system.
The CPU can handle complex tasks, such as combining multiple pieces of data, arranging
items in different sets and ensuring that supplied data is accurate and useful. Its capabilities
depend on the type of computer. The more advanced your system is, the more it can do.
Modern computers, for instance, have multiple CPUs and can streamline the most time-
consuming business operations.
Data Storage
Whether you're creating a website or doing accounting work, you want to have the finished
product stored for future use. That's where data storage comes in. Today, any computer can
store information both temporarily and permanently on its hard drive, an external hard
drive or a USB drive.
Even though nowadays you can save data in the cloud and access it from any device, you
still need enough storage space on your computer. How much information you can store
will depend on the computer type, operating system and memory.
Main Structural Component of a Computer System The main elements associated with a
computer system are as follows:
2. Main Memory
Arithmetic and Logic Unit (ALU): Performs arithmetic and logical operations. For
example, it can add together two binary numbers either from memory or from some of the
CPU registers.
Control Unit: controls the action of the other computer components so that instructions are
executed in the correct sequence.
Main Memory: used to store information for immediate access by the CPU. Main Memory
is also referred to as Primary Storage or Main Store.
Registers are storage locations within the circuitry of the CPU. They are very fast on-chip
memory storing binary values using 32 or 64 bits. Information is held there while it is being
interpreted or manipulated. Registers are dedicated or general purpose.
Can be used by programmers to store data temporarily. Some computers may have up to 16
general purpose registers (R1...R16). Processor designers have assigned no specific role to
these registers.
Points to a stack data structure holding return addresses, procedure or function parameters
and local variables. Used when a procedure or function is called. Also used when an
interrupt is serviced. (Interrupt = a signal from a source (hardware or software) requesting
the attention of the processor)
Contains bits that are set and cleared based on the results of an instruction. Allows the CPU
to store information such as the occurrence of an overflow. This information can be used to
decide whether or not to branch out of a given sequence of instructions.
The Accumulator
Holds the result of the current set of calculations. The instruction ADD #25 means add the
value 25 to the contents of the accumulator and store the result in the accumulator.
AKA Memory Data Register (MDR) Temporarily stores data read from or written to
memory. CPU and Memory operate at different speeds (hence buffer)
ANSWER:
Total time to process interrupt = total time for scanner interrupt + total time for camera interrupt
+ total time for printer interrupt
ANSWER:
A = 0101 0000 0
S = 1011 0000 0
P = 0000 1010 0
2 Step:
the last two bits of P are 10
Therefore P should be P + S which gives P = 1011 0101 0
Upon right shift we get P = 1101 1010 1
3 Step:
the last two bits of P are 01
Therefore P should be P + A which gives 0010 1010 1
Upon right shift we get P = 0001 0101 0
4 Step:
the last two bits of P are 10
Therefore P should be P + S which gives 1100 0101 0
Upon right shift we get P = 1110 0010 1
Therefore the result is 11100010
which is equal to -128+64+32+2 = -30
therefore the product is 11100010
Question No. 4: Memory Mapping [5 Marks]
Interface a 32 MB memory with 16K line cache with example using
a. Direct mapping,
b. Associative and
c. set associative mapping
ANSWER:
:
Question No. 5: Memory Design [5 Marks]
a. It is desired to have memory of 64K given that a 13-bit address bus is used to address
memory location. Design the decoding architecture in order to access complete 64 K
memory also calculates address ranges for each memory chip.
b. Design 16 bit of SRAM memory using 4X2 cell array also calculate each cell address.
ANSWER:
A:
So, 8 memory chips of 8KB memory location and 13 bits address busses will help to access
complete 64 Kbytes memory.
B:
Four two input AND gates are used in the design of first stage of the 4*2 decoder and those inputs are
interlinked to the input wires A, B. For accessing the outputs, again four two-input AND gates are used
by the 4*2 decoder in the second stage. 4*2 two-input AND gate networks are used to get the outputs.
Figure 5 represents the diagrammatic structure and its execution. By the time the ENABLED pin is in OFF
state (ENABLE=0), all outputs are observed to be null. But when ENABLE is ON (ENABLE = 1), the results
show in connections to input pins A, B. The suggested 4*2 decoder consists of 361 cells having
consumed an area of 0.44 µm2.
Question No. 6: External Memory [5 Marks]
Consider a 5-drive, 120GB-per-drive RAID array. What is the available data storage capacity
for each of the RAID levels 0, 1, 3, 4, 5, and 6?
ANSWER:
Question No. 7: Pipelining [5 Marks]
In a computing system there are five phases of computation that is instruction fetch, Instruction
decode, execute, memory access and write back. It has been recorded that is instruction fetch
take 40 seconds, Instruction decode takes 50 seconds, execute takes 300 seconds, memory access
take 20 second and write back takes 10 second. If there are 6 instruction need to execute how
much time can be save using pipelining also find the number of pipeline stages.
ANSWER:
Question No. 8: Assembly Language [5 Marks]
For A, B, C, D, E as random variables, compute the followingusing assembly code instructions
a. Y= (B-A) / (C x E+D)
b. Y= A+D*E
ANSWER:
MPY T, D, E
ADD Y, T, A
Comment