Presentation is loading. Please wait.

Presentation is loading. Please wait.

Software comes from heaven when you have good hardware. Ken Olsen

Similar presentations


Presentation on theme: "Software comes from heaven when you have good hardware. Ken Olsen"— Presentation transcript:

1 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

2 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

3 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.

4 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

5 Abstract View of a Computer

6 Compiler & Computer as Black Box

7 Assembly& Machine Language Abstraction

8 Generalized Computer Archetecture

9 General Registers in a Computer

10 Program Counter

11 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

12 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

13 Instruction Set Architecture
The assembly level instructions which can be successfully decoded and executed. Once decoded the execution engine will be either CISC RISC

14 RISC vs CISC

15 Base 10 numbers

16 Hex, Binary & Decimal

17

18 Base 16 Numbers

19 Base 8 Numbers

20 Base Conversion using Division

21 Binary to Decimal

22 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 = This is a precision problem infinite # of rationals between any two irrationals

23 Representing Fractions
Moving right from the radix point, each digit has decreasing weight of an additional factor of the base. represents 5x x x x10-4 represents 1x x x x x2-5

24 Fraction Transformation Precision

25 End


Download ppt "Software comes from heaven when you have good hardware. Ken Olsen"

Similar presentations


Ads by Google