Download presentation
Presentation is loading. Please wait.
Published byBatur Günay Modified over 5 years ago
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 Don’t be afraid to ask questions Respect the class Turn off cell phones
3
How to Pass 2P12 Come to lectures. 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 10 hrs per week to the course.
4
How to Fail 2P12 Don’t come to class. The instructor posts the PowerPoint slides so the lectures are useless. Don’t go to labs. Attendance is not taken, so why bother going? Don’t read the text book. This stuff is boring. Blow off assignments, because they are not worth much. Or, start assignments the night before they are due. Or, plagiarize assignments. Party hard all term. Then try to cram ten week’s material into the day before the final exam.
5
Zybooks Online text book. Consists primarily of two parts:
Participation Activities (Learning) It is recommended these be completed prior to the lecture. Challenge Activities (Testing) It is recommended these be completed after the lecture. 10% of your final grade will be based on these activities.
6
Participation Activities
7
Challenge Activities
8
Abstract View of a Computer
9
Compiler & Computer as Black Box
10
Assembly& Machine Language Abstraction
11
Generalized Computer Archetecture
12
General Registers in a Computer
13
Program Counter
14
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
15
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
16
Instruction Set Architecture
The assembly level instructions which can be successfully decoded and executed. Once decoded the execution engine will be either CISC RISC
17
RISC vs CISC
18
Base 10 numbers
19
Hex, Binary & Decimal
21
Base 16 Numbers
22
Base 8 Numbers
23
Base Conversion using Division
24
Binary to Decimal
25
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
26
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
27
Fraction Transformation Precision
28
End
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.