Top Banner
Computer Architecture and Binary Encodings
12

Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Apr 17, 2018

Download

Documents

dangphuc
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Computer Architecture and Binary Encodings  

Page 2: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Computers  of  Different  Shapes  

Page 3: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Computer System Components  1. Hardware – provides basic

computing resources (CPU, memory, I/O devices, network)

2. Operating system – controls and coordinates the use of the hardware among the various application programs for the various users

3. Applications programs – define the ways in which the system resources are used to solve the computing problems of the users (compilers, database systems, video games, business programs)

4. Users (people, machines, other computers)

Page 4: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

How Do Computers Work?  

Bits & Bytes Binary Numbers

Number Systems

Orders of Magnitude Gates

Boolean Logic

Circuits

CPU Machine Instructions

Assembly Language

Address Space

Code vs. Data

Page 5: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Data Representation  •  All data stored in and manipulated by a digital computer are represented by patterns of bits: – Numbers – Text characters – Sound –  Images and videos – Anything else…

•  Bit – Binary Digit = a symbol whose meaning

depends on the application at hand •  Binary: takes on values of ‘0’ or ‘1’ – Or equivalently, “FALSE” or “TRUE”, “OFF”

or “ON”

Page 6: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Bytes  

•  A sequence of bits •  8 bits = 1 byte

How binary works?

Page 7: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Number  System  

Page 8: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Binary Number System  

110  

=6  decimal  

Page 9: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Convert Decimal to Binary  •  13 = 8 + 4 + 1 = 1101

•  What if we have a big number?

Page 10: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Convert Decimal to Binary  

Page 11: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Try  it!  

•  1011001  to  decimal    •  10110010  to  decimal  •  15  to  binary  •  30  to  binary  •  31  to  binary    

Page 12: Computer Architecture and Binary Encodingscs10/sp13/disc/Discussion+2... · Computer System Components! 1. Hardware – provides basic computing resources (CPU, memory, I/O devices,

Computer  Anatomy  •  Motherboard    •  Power  Supply  •  CPU  Heatsink/Fan  •  CPU  (Central  Processing  Unit)  •  RAM  (Random  Access  Memory  )  •  Hard  Drive  •  OpNcal  Drive  •  Graphic  Card  •  Sounds  Card  •  Computer  Case