40 likes | 210 Views
Homework 1 Exercise: Building a Computer. Instruction Set: Data Types: boolean,integer, address char, float 3. fixed point. Trade-off considerations speed memory size power usage cost environmental conditions (temp, vibration, …). Resources
E N D
Homework 1 Exercise: Building a Computer Silicon Programming--Homework 1 Comments
Instruction Set: • Data Types: • boolean,integer, address • char, float • 3. fixed point Silicon Programming--Homework 1 Comments
Trade-off considerations • speed • memory size • power usage • cost • environmental conditions (temp, vibration, …) • Resources • hardware: number registers, word size, addressing modes, mem • hardware / software: instruction set size, word size Silicon Programming--Homework 1 Comments
Example minimal instruction set (~PDP8):3-bit opcodes, 1 general purpose reg (acc) --arithmetic/logical **1-address 011: add (2’s complement) 010: and **no-address not, ……. --data movement **1-address 001: load accumulator 101: deposit accumulator **no-address set accumulator,zero accumulator,shiftL, shiftR, set cff, zero Cff, I/O,… --jumps **1-address 000: increment and skip next instruction if result is zero 110: jump (go to) 100: jump to subroutine (store return address in its 1st word) **no-address ret (use indirect add. To 1st work of subroutine) halt skip next instruc if Cff=0, if Cff=1, … Silicon Programming--Homework 1 Comments