Software comes from heaven when you have good hardware. Ken Olsen Cosc 2P12 Week 1 Software comes from heaven when you have good hardware. Ken Olsen
2P12 Overview Course Website Course Outline Text Book is Digital Course Requirements Rules No talking Ask many questions Respect the class, turn off cell phones. Respect others in the class
How to Pass 2P12 Come to lecture. Purchase the text book. Free marks for the taking Read the text and complete the exercises. Go to labs, these have a tutorial component which will make life easy and act as a primer for the assignments. Commit 8.5 hrs per week to the course.
How to Fail 2P12 Don’t come to class. Don’t go to labs. After all the instructor has lecture slides. Don’t go to labs. Attendance is not taken. Don’t read the text book. Blow off assignments, cuz they are not worth much. Start the night before they are due. Plagiarize Assignments. Party hard
Abstract View of a Computer
Compiler & Computer as Black Box
Assembly& Machine Language Abstraction
Generalized Computer Archetecture
General Registers in a Computer
Program Counter
Fetch Decode Execute Cycle Data is acted upon based on the instruction. Figure out what the instruction is, configure the cpu accordingly. Start Here, Get instruction from memory
Cycle of Steps Fetch Instruction Update Program Counter (Partial Decode) Decode Instruction (Full Decode) Load Operand(s) May result in memory references May use Regiters within the CPU Execute Operation Store Result
Instruction Set Architecture The assembly level instructions which can be successfully decoded and executed. Once decoded the execution engine will be either CISC RISC
RISC vs CISC
Base 10 numbers
Hex, Binary & Decimal
Base 16 Numbers
Base 8 Numbers
Base Conversion using Division
Binary to Decimal
Difficulties in Number Representation finite size (number of bits) in a computer e.g. 8 bit computer, +127 to -127 This is a magnitude problem infinite number of integers infinite # of rationals between any two integers infinite # of irrationals between any two rational # e.g. Pi = 3.141592654 This is a precision problem infinite # of rationals between any two irrationals
Representing Fractions Moving right from the radix point, each digit has decreasing weight of an additional factor of the base. 0.543210 represents 5x10-1 + 4x10-2 + 3x10-3 + 2x10-4 0.100112 represents 1x2-1 + 0x2-2 + 0x2-3 + 1x2-4 + 1x2-5
Fraction Transformation Precision
End