Computer Architecture
Computer Architecture
com
1
3. Define – ISA
The instruction set architecture, or simply architecture of a computer is the
interface between the hardware and the lowest-level software. It includes anything
programmers need to know to make a binary machine language program work correctly,
including instructions, I/O devices, and so on.
4. Define – ABI
Typically, the operating system will encapsulate the details of doing I/O,
allocating memory, and other low-level system functions so that application programmers
do not need to worry about such details. The combination of the basic instruction set and
the operating system interface provided for application programmers is called the
application binary interface (ABI).
7. Define – Throughput
Throughput or bandwidth is the total amount of work done in a given time.
11. Write the formula for CPU execution time for a program.
12. Write the formula for CPU clock cycles required for a program.
op rs rt rd shamt funct
6 bits 5bits 5 bits 5 bits 5 bits 6 bits
Where,
op: Basic operation of the instruction, traditionally called the opcode.
rs: The first register source operand.
rt: The second register source operand.
rd: The register destination operand. It gets the result of the
operation. shamt: Shift amount.
funct: Function.
1. Add 610 to 710 in binary and Subtract 610 from 710 in binary.
Addition,
Subtraction directly,
A+B ≥0 ≥0 <0
A+B <0 <0 ≥0
A-B ≥0 <0 <0
A-B <0 ≥0 ≥0
6. Define – ULP
Units in the Last Place is defined as the number of bits in error in the least significant
bits of the significant between the actual number and the number that can be represented.
For example, ARM added more than 100 instructions in the NEON multimedia
instruction extension to support sub-word parallelism, which can be used either with
ARMv7 or ARMv8.
4. What are the two state elements needed to store and access an instruction?
Two state elements are needed to store and access instructions, and an adder is needed to
compute the next instruction address. The state elements are the instruction memory and
the program counter.
A portion of the data path is used for fetching instructions and incrementing the
program counter. The fetched instruction is used by other parts of the data path.
10. What are the three instruction classes and their instruction formats?
The three instruction classes (R-type, load and store, and branch) use two
different instruction formats.
UNIT-IV PARALLELISM
6. Define – VLIW
Very Long Instruction Word (VLIW) is a style of instruction set architecture that
launches many operations that are defined to be independent in a single wide instruction,
typically with many separate opcode fields.
DRAMs store the charge on a capacitor, it cannot be kept indefinitely and must
periodically be refreshed.
8. Consider a cache with 64 blocks and a block size of 16 bytes. To what block number
does byte address 1200 map?
9. How many total bits are required for a direct-mapped cache with 16 KiB
of data and 4-word blocks, assuming a 32-bit address?
the entry, writing the upper bits of the address (from the ALU) into the tag
field, and turning the valid bit on.
4. Restart the instruction execution at the first step, which will refetch the
instruction, this time finding it in the cache.
13. What are the various block placement schemes in cache memory?
Direct-mapped cache is a cache structure in which each memory location is
mapped to exactly one location in the cache.
Fully associative cache is a cache structure in which a block can be placed in any
location in the cache.
Set-associative cache is a cache that has a fixed number of locations (at least two)
where each block can be placed.