2081

BIT151 · TU past paper

Microprocessor and Computer Architecture 2081 question paper

The complete TU 2081 exam paper for Microprocessor and Computer Architecture (BIT151), all 12 questions with solved model answers written to the mark scheme.

Tap a question to open its answer.

  1. 110 marks8085 microprocessor block diagram and compAnswer

    Draw the block diagram of 8085 microprocessor and define its components.[10]

    A microprocessor is a single VLSI (Very Large Scale Integration) chip that integrates the entire CPU on one chip, including the ALU, control unit, and register array. It fetches instructions from memory, decodes them, and executes them t...

  2. 210 marksDifferences between SAP 1 and SAP 2Answer

    Explain the architectural difference between SAP 1 and SAP 2 computer?Explain all the addressing modes of 8085 microprocessor with suitable example.[5+5]

    Note: The reference notes were not available for this topic. The following answer is based on standard computer organization and microprocessor curriculum as taught in TU BSc CSIT. --- (a) Architectural Differences Between SAP-1 and SAP-...

  3. 310 marksNumericalRISC and CISC architecture comparisonAnswer

    Differentiate between RISC and CISC architecture. Represent $(88_{10})$ in signed magnitude, 1's complement and 2's complement format. [5+5]

    --- Feature RISC CISC --------- Instruction Set Small, simple, fixed-length Large, complex, variable-length Execution Time Mostly single clock cycle Multiple clock cycles Addressing Modes Few (3-5) Many (10-20+) Memory Access Only LOAD/S...

  4. 45 marksInstruction types and classificationAnswer

    Write an assembly language program to swap the content of memory location 8000H and 9000H using 8085 microprocessor instructions. [5]

    To swap the contents of two memory locations, we need a temporary register to hold one value while we move the other. Steps: 1. Load the content of memory location 8000H into register A 2. Move it to register B (temporary storage) 3. Loa...

  5. 55 marksArithmetic micro-operationsAnswer

    Explain different arithmetic and binary micro-operations in brief. [5]

    Arithmetic micro-operations perform basic arithmetic operations on numeric data stored in registers. Operation Symbolic Notation Description ------------------------------------------- Add R3 ← R1 + R2 Contents of R1 and R2 are added Sub...

  6. 65 marksHardwired control unit design and block diAnswer

    What is control unit? Compare between microprogrammed and hardwired control unit. [5]

    The Control Unit (CU) is a component of the CPU that directs the operation of the processor. It interprets instructions fetched from memory and generates the necessary control signals to coordinate the activities of the ALU, registers, m...

  7. 75 marksSymbolic and binary microprogram representAnswer

    What is micro program? Write symbolic microprogram for FETCH operation. [5]

    Microprogram and Symbolic Microprogram for FETCH Operation

    What is a Microprogram?

    A microprogram is a sequence of microinstructions stored in a special memory called control memory (or control store). Each microinstruction specifies one or more micro-operations (elementary hardware operations) to be performed in a single clock cycle.

    Key points:

    • Microprogramming is a technique used to implement the control unit of a CPU.
    • The concept was introduced by Maurice Wilkes.
    • Each machine instruction is interpreted by executing a corresponding sequence of microinstructions.
    • Microinstructions are stored in ROM-based control memory.
    • A microprogram is analogous to a program, but operates at the register-transfer (hardware) level.

    Microprogrammed Control Unit uses control memory to generate control signals, rather than hardwired logic.


    Symbolic Microprogram for FETCH Operation

    The FETCH cycle retrieves an instruction from memory and places it in the Instruction Register (IR), then increments the Program Counter (PC).

    Registers Used:

    RegisterPurpose
    PCProgram Counter
    MARMemory Address Register
    MBR / MDRMemory Buffer / Data Register
    IRInstruction Register

    Symbolic Microprogram (FETCH Cycle):

    Step    Micro-operation                     Comment
    ------  ----------------------------------  ---------------------------
    T0:     MAR ← PC                           Transfer PC content to MAR
    T1:     MBR ← M[MAR], PC ← PC + 1         Read memory into MBR;
                                                Increment PC simultaneously
    T2:     IR ← MBR                           Load instruction into IR
    

    Explanation of Each Step:

    1. T0: MAR ← PC

      • The content of the Program Counter is transferred to the Memory Address Register.
      • This tells the memory which address to read from.
    2. T1: MBR ← M[MAR], PC ← PC + 1

      • The instruction stored at the address in MAR is fetched from memory into MBR.
      • Simultaneously, PC is incremented to point to the next instruction.
      • These two micro-operations can occur in parallel (same clock cycle).
    3. T2: IR ← MBR

      • The fetched instruction is transferred from MBR to the Instruction Register (IR).
      • After this, the DECODE phase begins.

    Summary Flow:

    PC --> MAR --> Memory Read --> MBR --> IR
                                    PC + 1 --> PC
    

    The FETCH microprogram typically requires 3 micro-steps (T0, T1, T2) and forms the first part of the instruction cycle in any CPU.

  8. 85 marksFour segment instruction pipelineAnswer

    What is pipelining? Explain about 4 segment instruction pipelines. [5]

    Pipelining is a technique used in computer architecture to improve CPU performance by overlapping the execution of multiple instructions. Instead of completing one instruction fully before starting the next, the processor divides instruc...

  9. 95 marksBooths multiplication algorithmAnswer

    Explain the working procedure of Booth Multiplication algorithm. [5]

    Booth's algorithm is an efficient algorithm for multiplying two signed binary numbers represented in 2's complement form. It handles both positive and negative numbers uniformly and reduces the number of additions/subtractions required. ...

  10. 105 marksMemory hierarchy in computer systemsAnswer

    Explain about memory hierarchy in computer system. [5]

    Memory hierarchy is an organization of different types of memory storage in a computer system, arranged in levels based on speed, cost, and capacity. The fundamental idea is that faster memory is more expensive and smaller in size, while...

  11. 115 marksIsolated I/O and memory mapped I/OAnswer

    Differentiate between I/O mapped (isolated) I/O and memory mapped I/O. [5]

    --- - I/O devices are given a separate address space from memory. - Special I/O instructions (such as IN and OUT) are used to communicate with I/O devices. - The processor has separate control lines for memory and I/O operations (e.g., M...

  12. 125 marksDirect Memory AccessAnswer

    Write short notes on (any two): a) DMA b) Flags in 8085 Microprocessor c) Instruction set. [5]

    Short Notes (Any Two): 5 Marks


    a) DMA (Direct Memory Access)

    DMA is a technique that allows peripheral devices to transfer data directly to/from memory without involving the CPU for each byte of transfer.

    Key Points:

    • Normally, the CPU handles all data transfers between I/O devices and memory, which wastes CPU time.
    • In DMA, a special hardware unit called the DMA Controller (DMAC) takes over the system bus temporarily.
    • The CPU sends the starting address, block size, and direction (read/write) to the DMAC, then releases the bus.
    • The DMAC performs the transfer and sends an interrupt to the CPU when done.

    Steps in DMA Transfer:

    1. CPU initializes the DMAC (address, count, mode).
    2. DMAC sends a Bus Request (BR) to the CPU.
    3. CPU grants the bus via Bus Grant (BG) and suspends its activity.
    4. DMAC transfers data directly between memory and I/O device.
    5. After transfer, DMAC releases the bus and interrupts the CPU.

    Advantages:

    • Very fast data transfer.
    • CPU is free to do other tasks.
    • Suitable for high-speed devices like disk drives, video cards.

    b) Flags in 8085 Microprocessor

    The 8085 microprocessor has a special 8-bit Flag Register (also called the Program Status Word) that reflects the result of arithmetic and logical operations.

    The 8085 has 5 flags:

    FlagSymbolDescription
    Sign FlagSSet to 1 if result is negative (MSB = 1); else 0
    Zero FlagZSet to 1 if result is zero; else 0
    Auxiliary Carry FlagACSet to 1 if carry from bit 3 to bit 4 occurs (used in BCD operations)
    Parity FlagPSet to 1 if result has even number of 1s; else 0
    Carry FlagCYSet to 1 if there is a carry out from the MSB (bit 7)

    Flag Register Bit Layout:

    D7   D6   D5   D4   D3   D2   D1   D0
     S    Z    0   AC    0    P    1   CY
    

    Importance:

    • Flags are used by conditional jump instructions (e.g., JZ, JNZ, JC, JNC) to control program flow.
    • They are automatically set or reset after arithmetic/logical operations.

    c) Instruction Set

    An instruction set (also called Instruction Set Architecture, ISA) is the complete collection of instructions that a processor can understand and execute.

    Key Points:

    • It defines the interface between hardware and software.
    • Each instruction tells the CPU what operation to perform, on what data, and where to store the result.

    Types of Instructions:

    CategoryExamplesDescription
    Data TransferMOV, MVI, LDA, STAMove data between registers/memory
    ArithmeticADD, SUB, INR, DCRPerform arithmetic operations
    LogicalANA, ORA, XRA, CMAPerform bitwise logical operations
    Branch/ControlJMP, CALL, RET, JZControl flow of program
    I/O and Machine ControlIN, OUT, HLT, NOPHandle I/O and CPU control

    Instruction Format:

    An instruction typically has:

    • Opcode: specifies the operation
    • Operand(s): specifies the data or address

    Types of Instruction Sets:

    • RISC (Reduced Instruction Set Computer): fewer, simpler instructions (e.g., ARM)
    • CISC (Complex Instruction Set Computer): many complex instructions (e.g., x86, 8085)

    Importance:

    • Determines the capability and performance of a processor.
    • Programmers and compilers use the instruction set to write programs.