Docsity

Notes on Data Representation - Computer Organization | CSCI 2500, Study notes of Computer Architecture and Organization

Toggle sidebar
bg1
Back then: a person who does mathematical calculations
•
Processes data
○
Stores data
○
Outputs data
○
Digital - data is represented in the form of 0s and 1s (binary)
○
Modern computers
•
Note: hard drive manufacturers do not use these units!
•
the smallest piece of information in a computer
○
one binary digit
○
Bit
•
Nibble: 4 bits
•
Byte: 8 bits
•
8086 word: 2 bytes
•
Mips32 word: 4 bytes
•
Kilobyte: bytes = 1024 bytes
•
Megabyte: bytes = 1048576 bytes
•
Gigabyte: bytes
•
Terabyte: bytes
•
Petabyte: bytes
•
How is an unsigned integer represented in a digital computer?
Base 16: uses 0-9A-F
•
One hexadecimal digit can be represented as a nibble
•
Hexadecimal
Review sheet: Lecture 1: Data Representation
Data Representation
Tuesday, January 24, 2012
10:11 AM
Notes Page 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e

Partial preview of the text

Download Notes on Data Representation - Computer Organization | CSCI 2500 and more Study notes Computer Architecture and Organization in PDF only on Docsity!

  • Back then: a person who does mathematical calculations ○ Processes data ○ Stores data ○ Outputs data ○ Digital - data is represented in the form of 0s and 1s (binary)
  • Modern computers Computer
  • Note: hard drive manufacturers do not use these units! ○ the smallest piece of information in a computer ○ one binary digit
  • Bit
  • Nibble: 4 bits
  • Byte: 8 bits
  • 8086 word: 2 bytes
  • Mips32 word: 4 bytes
  • Kilobyte: bytes = 1024 bytes
  • Megabyte: bytes = 1048576 bytes
  • Gigabyte: bytes
  • Terabyte: bytes
  • Petabyte: bytes How is an unsigned integer represented in a digital computer?
  • Base 16: uses 0-9A-F
  • One hexadecimal digit can be represented as a nibble Hexadecimal Review sheet: Lecture 1: Data Representation

Data Representation

Tuesday, January 24, 2012 10:11 AM

  • Base 8: uses 0- 7
  • Can be represented by three bits Octal
  • Used in old computers to represent signed integers ○ 0 is positive ○ 1 is negative
  • Most significant bit (MSB) is reserved as the sign bit
  • Remaining bits are used for the magnitude 7 0000 0111
  • 7 1000 0111
  • Examples Sign and magnitude notation

 If original was negative, negate □ It's already positive  Make positive □ 8 + 16 = 24  Convert to decimal □ It was positive □ 24  If original was negative, negate

Flip the bits 0101 0001 Add 1 0101 0010

 Make positive □ 2 + 16 + 64 = 82  Convert to decimal □ - 82  If original was negative, negate

Smallest Largest Unsigned 0 Signed

Range of binary integers with n bits

○ defined mostly by software from applications to operating system

  • User view
  • Machine/Assembly Language Programmer's view ○ a view at the system as a whole ○ concerned with the ultimate performance of the computer
  • Computer Architect's view ○ at the gate level design designs the processor including the logic that controls execution of programs, sets values of registers, and performs arithmetic and logic functions
  • Logic Designer's view Views of a computer
  • The fundamental building block of all digital circuits An electronic circuit that produces an output that is a simple Boolean operation on its input signals

Gate

  1. Define the process to be performed a. reduce the amount of circuitry
  2. Minimize the equations
  3. Transform the Boolean equation into logic circuitry Logic Design ○ makes a connection when it sees a high (1) on the control input
  • n-type: normally open ○ makes a connection when it sees a low (0) on the control input
  • p-type: normally closed Gates are built from transistors

Logic

Tuesday, February 07, 2012 10:08 AM