Docsity

Midterm Review | Computer Organization | ECE 445, Study notes of Computer Architecture and Organization

Toggle sidebar
bg1
ECE445/F05/RJH
1
ECE 445
Midterm Review
Topics
• Computer Functional Units: Input, Output, Memory, Arithmetic & Logic, Control
• Assembly Language → Register Transfer Notation (RTN)
• Processor Registers: MAR, MDR, PC, IR, SP, AC, LINK, General Registers
• Fetch and Execute Cycles
• Bus Architectures: Single-Bus, Multiple-Bus
• System Software: Compiler, Assembler, Text Editor, Operating System
• Performance Equation: T, N, S, R, RISC vs CISC
• Memory Organization: Dimensions, Operations, Byte Addressability, Timing
• Instruction Types: 1-, 2-, 3-Address, Transfer, Arithmetic, Logic, Control
• Instruction Sequencing and Branching, Condition Codes
• Shift Instructions: Arithmetic, Logical, Shift, Rotate
• VHDL: Slice, Alias, Tri-State Logic, Array, Loop
• VHDL Models: Counter, Register, Memory, Bus, Decoder, Controller
• Addressing Modes: Immediate, Register, Absolute, Indirect, Index, Relative, Autoincrement,
Autodecrement
• Two-Pass Assembler: Symbol Table, Assembly Language → Machine Instructions
• Stack: SP, Push, Pop
• Subroutines: Call, Return, Nesting, Parameter Passing
• Example Processors: ARM, Motorola
• Control Unit: Fetch, Execute, RTN → Control Signals
• Hardwired Control: Control Step Counter, IR Decoders, Encoder,
Control Signal Matrix → Control Signal Logic Functions
• Microprogram Control: Microinstructions, Control Store, µPC, µAR, µIR
Encoding: Horizontal, Vertical, Bit-ORing
pf3
pf4

Partial preview of the text

Download Midterm Review | Computer Organization | ECE 445 and more Study notes Computer Architecture and Organization in PDF only on Docsity!

ECE 445

Midterm Review

Topics

  • Computer Functional Units: Input, Output, Memory, Arithmetic & Logic, Control
  • Assembly Language → Register Transfer Notation (RTN)
  • Processor Registers: MAR, MDR, PC, IR, SP, AC, LINK, General Registers
  • Fetch and Execute Cycles
  • Bus Architectures: Single-Bus, Multiple-Bus
  • System Software: Compiler, Assembler, Text Editor, Operating System
  • Performance Equation: T, N, S, R, RISC vs CISC
  • Memory Organization: Dimensions, Operations, Byte Addressability, Timing
  • Instruction Types: 1-, 2-, 3-Address, Transfer, Arithmetic, Logic, Control
  • Instruction Sequencing and Branching, Condition Codes
  • Shift Instructions: Arithmetic, Logical, Shift, Rotate
  • VHDL: Slice, Alias, Tri-State Logic, Array, Loop
  • VHDL Models: Counter, Register, Memory, Bus, Decoder, Controller
  • Addressing Modes: Immediate, Register, Absolute, Indirect, Index, Relative, Autoincrement, Autodecrement
  • Two-Pass Assembler: Symbol Table, Assembly Language → Machine Instructions
  • Stack: SP, Push, Pop
  • Subroutines: Call, Return, Nesting, Parameter Passing
  • Example Processors: ARM, Motorola
  • Control Unit: Fetch, Execute, RTN → Control Signals
  • Hardwired Control: Control Step Counter, IR Decoders, Encoder, Control Signal Matrix → Control Signal Logic Functions
  • Microprogram Control: Microinstructions, Control Store, μPC, μAR, μIR Encoding: Horizontal, Vertical, Bit-ORing

Review Problems

  1. Given the following initial register and memory contents, determine the updated contents after the execution of the following assembly language sequence (all values in Hex ).

MOVE #-8,NUM

ADD (R0),NUM

MOVE R1,(R2)

Memory Registers

Label Address

Initial

Contents

Updated

Contents Address

Initial

Contents

Updated

Contents

NUM1 09 2345 0 000B

NUM4 0A 000A 1 5678

NUM2 0B 0008 2 0009

NUM3 0C 000C 3 0C0C

  1. Given the instruction format from Homework 2 with the following operations: OP Fn Assembly Language RTN 000 Move MOVE SRC,DST DST ← [SRC] 001 Add ADD SRC,DST DST^ ←^ [SRC] + [DST] 101 Call Subroutine CALL TGT LINK ← [PC], PC ← TGT 110 Return Subroutine RTS PC ← [LINK] 111 Halt HALT Halt ← 1 a. For the assembly language program below, complete the address symbol table and machine language encoding (in binary and hex ).

Addr ORIGIN^04 OP SRC DST Value Hex

ST MOVE #X1,R

CALL INC

MOVE R2,X

HALT

ORIGIN 0A

INC MOVE #1,R

ADD (R1),R

RTS

ORIGIN 0F

X1 DATAWORD 5

  1. Given the computer architecture from Problem 3, use the following instruction and microinstruction formats to: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

OP Mode Value IR

F0 F1 F2 F3 F4 μIR

F1 F2 F

000 NOP 000 NOP 00 NOP

001 PC_En_In 001 PC_Inc 01 Y_En_In 010 PC_En_Out 010 SP_Dec 10 IR_En_In 011 Z_En_In 011 SP_En_Out 11 IR_En_Out F 0 F4 OR Fn Addr of 00 Next Addr next Instr (^01) ORMode 00&MODE& 10 OROP 00&OPCODE& a. Write a VHDL alias declaration for MODE. b. Encode the microroutine for the JMP instruction.

Label μAddress F0 F1 F2 F3 F4 RTN

JMP

OP Fn Assembly Language RTN 100 Jump JMP TGT PC ← TGT