10 Computer Architecture Paradigms And 8085 Features

Microprocessor and Computer Architecture · Unit 10

Computer Architecture Paradigms and 8085 Features

Exam-focused notes for Computer Architecture Paradigms and 8085 Features (Microprocessor and Computer Architecture, BIT151): what the TU syllabus asks and how it has actually been tested, with 10 solved past questions from this unit.

Computer Architecture Paradigms and 8085 Features in short

This chapter groups several topics. They are two processor design styles (RISC and CISC) and a way to classify computers (Flynn). Then come two 8085 features, the flags and the shared address and data lines. It ends with arithmetic circuits built from logic gates.

Computer Architecture Paradigms and 8085 Features: notes

RISC and CISC architecture comparison

CISC (Complex Instruction Set Computer) has a large set of powerful instructions, some of which do a lot of work. RISC (Reduced Instruction Set Computer) has a small set of simple instructions, and each one is fast.

PointRISCCISC
Instruction setSmall and simpleLarge and complex
Instruction lengthFixedVariable
Execution timeUsually one clock cycleMany clock cycles
Addressing modesFewMany
Memory accessOnly LOAD and STOREMost instructions can access memory
RegistersManyFewer
Control unitMostly hardwiredMostly microprogrammed
PipeliningEasy and very effectiveHarder
Code sizeLarger programsSmaller programs
CompilerDoes more workHardware does more work
ExamplesARM, MIPS, RISC-VIntel x86, VAX, 8085

RISC trades bigger programs for simpler hardware and faster clock rates. CISC saves memory and makes assembly programming easier.

Flynns classification of computers

Flynn's classification groups computers by the number of instruction streams and data streams they handle at one time.

ClassInstruction streamsData streamsDescriptionExample
SISDSingleSingleOne CPU runs one instruction on one data item at a timeOld single-core PC
SIMDSingleMultipleOne instruction works on many data items togetherVector processor, GPU
MISDMultipleSingleMany instructions work on the same data streamRare, some fault-tolerant systems
MIMDMultipleMultipleSeveral processors run different programs on different dataMulticore CPU, cluster

SISD is the classic von Neumann computer. SIMD is good for graphics and matrix work. MIMD is the most common form of parallel computer today.

What this unit covers

  • RISC and CISC architecture comparison
  • Flynns classification of computers
  • Flags in 8085 microprocessor
  • Flag types and functions
  • Multiplexed address bus
  • Combinational circuit design for arithmetic operations

RISC and CISC architecture comparison

2082

Differentiate between RISC and CISC Architecture and Booth's Multiplication

Show solved answer

RISC vs CISC Architecture and Booth's Multiplication Algorithm

Given

  • Multiply 9 × 7 using Booth's Algorithm
  • Multiplicand $M = 9$
  • Multiplier $Q = 7$
  • Both positive, need signed 2's complement representation

Bit-width check: $9 = 1001_2$ (4 bits). To represent as signed positive, we need a leading 0, so minimum 5 bits: $9 = 01001$. Similarly $7 = 00111$. Use $n = 5$ bits.


Part 1: RISC vs CISC Architecture [4 Marks]

RISC (Reduced Instruction Set Computer) uses a small set of simple, fixed-length instructions, each executing in a single clock cycle.

CISC (Complex Instruction Set Computer) uses a large set of complex, variable-length instructions where one instruction may perform several low-level operations over multiple cycles.

FeatureRISCCISC
Instruction SetSmall, simpleLarge, complex
Instruction LengthFixedVariable
Execution TimeSingle clock cycleMultiple clock cycles
Addressing ModesFewMany
Control UnitHardwiredMicroprogrammed
RegistersLarge numberFewer
Memory AccessLoad/Store onlyInstructions can access memory directly
ExamplesARM, MIPS, SPARCIntel x86, VAX

Part 2: Booth's Multiplication -- 9 × 7 [6 Marks]

Booth's Rules

$Q_0$$Q_{-1}$Operation
00Shift only
11Shift only
01$A = A + M$, then shift
10$A = A - M$, then shift

Setup

  • $M = 01001$
  • $-M = 10111$ (2's complement of $M$)
  • $Q = 00111$
  • $A = 00000$, $Q_{-1} = 0$, $n = 5$

Step-by-Step

Initial: $A=00000,\ Q=00111,\ Q_{-1}=0$

Cycle 1: $Q_0 Q_{-1} = 10 \Rightarrow A = A - M$ $$A = 00000 + 10111 = 10111$$ Before ASR: $A=10111,\ Q=00111,\ Q_{-1}=0$ After ASR: $A=11011,\ Q=10011,\ Q_{-1}=1$

Cycle 2: $Q_0 Q_{-1} = 11 \Rightarrow$ no op After ASR: $A=11101,\ Q=11001,\ Q_{-1}=1$

Cycle 3: $Q_0 Q_{-1} = 11 \Rightarrow$ no op After ASR: $A=11110,\ Q=11100,\ Q_{-1}=1$

Cycle 4: $Q_0 Q_{-1} = 01 \Rightarrow A = A + M$ $$A = 11110 + 01001 = 00111$$ Before ASR: $A=00111,\ Q=11100,\ Q_{-1}=1$ After ASR: $A=00011,\ Q=11110,\ Q_{-1}=0$

Cycle 5: $Q_0 Q_{-1} = 00 \Rightarrow$ no op After ASR: $A=00001,\ Q=11111,\ Q_{-1}=0$

Summary Table

CycleAQ$Q_{-1}$$Q_0Q_{-1}$Operation
Init00000001110--Initialize
11011100111010A = A - M
ASR11011100111Shift
21101110011111No op
ASR11101110011Shift
31110111001111No op
ASR11110111001Shift
40011111100101A = A + M
ASR00011111100Shift
50001111110000No op
ASR00001111110Shift

Result

$$AQ = 00001,11111$$

Converting to decimal: $0000111111_2 = 63$

$$9 \times 7 = 63 \checkmark$$

Conclusion: Booth's algorithm correctly yields the product 63.

Open this answer on its own page →

2081 · 10 marks

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/STORE access memory Many instructions access memory directly ...

Open this answer on its own page →

2080.1 · 5 marks

Write short notes on: a) RISC b) Page Fault. [5]

RISC is a CPU design philosophy that uses a small, highly optimized set of instructions that can be executed in a single clock cycle. - Simple Instructions: Each instruction performs a simple, basic operation - Fixed Instruction Length: All instructions are of the same size (e.g., 32 bits), makin...

Open this answer on its own page →

0 · 5 marks

Differentiate between RISC and CISC computer. [5]

--- Feature RISC (Reduced Instruction Set Computer) CISC (Complex Instruction Set Computer) --------- Instruction Set Small, simple, and limited set of instructions Large, complex set of instructions Instruction Size Fixed size (uniform length) Variable size instructions Execution Time Each instr...

Open this answer on its own page →

Flag types and functions

2082 · 5 marks

Explain all the flags in 8085 microprocessor. [5]

The 8085 microprocessor contains a special 8-bit register called the Flag Register (also called Program Status Word). It contains 5 flags that reflect the status of the result after arithmetic and logical operations. --- - Set to 1 if the result of an operation is negative (i.e., the Most Signifi...

Open this answer on its own page →

Combinational circuit design for arithmetic operations

2080 · 5 marks

Design a 4-bit combinational circuit decrementer (A1 ←\gets← A1 - 1) using four full-adder circuits. Explain the circuit. [5]

A decrementer reduces the input value by 1, i.e., it computes: $$A - 1 = A + (-1)$$ In 2's complement, the value -1 is represented as 1111 (for 4 bits). Therefore, subtracting 1 from A is equivalent to adding 1111 (all 1s) to A using binary addition. --- We use four Full Adder (FA) circuits conne...

Open this answer on its own page →

Multiplexed address bus

2079 · 5 marks

Write short notes on: a.) Multiplexed Address Write short notes on: b.) Memory Hierarchy [2.5+2.5]

Definition: A multiplexed address is a technique where the same set of address lines (pins) is used to transmit different parts of an address at different times, rather than having separate lines for each part. Key Concept: In many memory systems (especially DRAM), the address is divided into two...

Open this answer on its own page →

Flags in 8085 microprocessor

2078 · 5 marks

What is flag? What are different flags available in 8085 microprocessor? [5]

Show solved answer

Flags in 8085 Microprocessor

What is a Flag?

A flag is a single-bit flip-flop (register) that reflects the status (condition) of the result after the execution of an arithmetic or logical operation. Flags are part of the Program Status Word (PSW) or Flag Register in the 8085 microprocessor.

The 8085 has an 8-bit flag register, but only 5 bits are used as flags.


The 5 Flags of 8085 Microprocessor

1. Sign Flag (S) -- Bit 7

  • Set to 1 if the result of an operation is negative (i.e., the Most Significant Bit of the result is 1).
  • Set to 0 if the result is positive.
  • Example: If result = 10000001 (negative in 2's complement), S = 1.

2. Zero Flag (Z) -- Bit 6

  • Set to 1 if the result of an operation is zero.
  • Set to 0 if the result is non-zero.
  • Example: If A = 05H and we subtract 05H, result = 00H, so Z = 1.

3. Auxiliary Carry Flag (AC) -- Bit 4

  • Set to 1 if there is a carry out from bit 3 to bit 4 (carry from lower nibble to upper nibble) during an arithmetic operation.
  • Primarily used for BCD (Binary Coded Decimal) arithmetic operations.
  • Example: 0FH + 01H = 10H, carry from bit 3 to bit 4, so AC = 1.

4. Parity Flag (P) -- Bit 2

  • Set to 1 if the result contains an even number of 1s (even parity).
  • Set to 0 if the result contains an odd number of 1s (odd parity).
  • Example: Result = 00000011 (two 1s, even), so P = 1.

5. Carry Flag (CY) -- Bit 0

  • Set to 1 if there is a carry out from the MSB (bit 7) during addition, or a borrow during subtraction.
  • Set to 0 if there is no carry/borrow.
  • Example: FFH + 01H = 100H, carry generated, so CY = 1.

Flag Register Layout (8-bit)

Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
SZXACXPXCY

X = Not used (undefined bits)


Summary Table

FlagSymbolSet to 1 When
SignSResult is negative (MSB = 1)
ZeroZResult is zero
Auxiliary CarryACCarry from bit 3 to bit 4
ParityPResult has even number of 1s
CarryCYCarry out from MSB or borrow
Open this answer on its own page →

0 · 5 marks

What is flag? What are different flags available in 8085 microprocessor? [5]

Show solved answer

Flags in 8085 Microprocessor

What is a Flag?

A flag is a single-bit flip-flop (register) that reflects the status or condition of the result after an arithmetic or logical operation performed by the ALU (Arithmetic and Logic Unit). Flags are stored in a special 8-bit register called the Flag Register (also called the Status Register or Condition Code Register).

The flag register works together with the Accumulator, and together they form a 16-bit Program Status Word (PSW).


Flag Register Structure in 8085

The 8085 has 5 flags (only 5 of the 8 bits are used):

Bit:  D7   D6   D5   D4   D3   D2   D1   D0
      S    Z    --   AC   --   P    --   CY

The 5 Flags of 8085

1. Sign Flag (S) - Bit D7

  • Set to 1 if the result of an operation is negative (i.e., the MSB/D7 of the result is 1).
  • Reset to 0 if the result is positive (MSB = 0).
  • Used in signed number arithmetic.

2. Zero Flag (Z) - Bit D6

  • Set to 1 if the result of an operation is zero.
  • Reset to 0 if the result is non-zero.
  • Commonly used in loop control and comparison operations.

3. Auxiliary Carry Flag (AC) - Bit D4

  • Set to 1 if there is a carry out from bit D3 to bit D4 (i.e., carry from the lower nibble to the upper nibble).
  • Used in BCD (Binary Coded Decimal) arithmetic operations.
  • Also called the Half Carry Flag.

4. Parity Flag (P) - Bit D2

  • Set to 1 if the result contains an even number of 1s (even parity).
  • Reset to 0 if the result contains an odd number of 1s (odd parity).
  • Used in error detection in data communication.

5. Carry Flag (CY) - Bit D0

  • Set to 1 if there is a carry out from the MSB (bit D7) after an addition, or a borrow after a subtraction.
  • Reset to 0 if there is no carry/borrow.
  • Also used in rotate and shift operations.

Summary Table

FlagBit PositionSet to 1 When
Sign (S)D7Result is negative (MSB = 1)
Zero (Z)D6Result is zero
Auxiliary Carry (AC)D4Carry from D3 to D4
Parity (P)D2Result has even number of 1s
Carry (CY)D0Carry out from MSB

Note: Bits D5, D3, and D1 of the flag register are not used in the 8085 microprocessor.

Open this answer on its own page →

Flynns classification of computers

0 · 7.5 marks

Write short notes on(Among three only attempt two): a.) Flynn's Classification Write short notes on: b.) Memory protection Write short notes on: c.) Memory mapped I/O [2.5+2.5+2.5]

--- Flynn's Classification (1966) categorizes computer architectures based on the number of instruction streams and data streams that can be processed simultaneously. Class Full Name Description ------------------------------- SISD Single Instruction, Single Data One instruction stream operates o...

Open this answer on its own page →