1-Hardware

# 1-Hardware - The hardware level of a computer Hardware How...

This preview shows pages 1–2. Sign up to view the full content.

1 Hardware: How Computer Programs Run on Physical Machines The hardware level of a computer Binary numbers are used to encode all forms of data, such as numbers and letters Electric circuits process and store binary data • Simple gates can be combined to build circuits for any computation Boolean logic is a useful abstraction of electric circuits These are the topics we’ll be discussing this week The binary number system Bi nary digi ts (“bits”) have values 0 and 1 • The position of each digit determines its value for example, the binary number 101011 equals: 1x2 5 + 0x2 4 + 1x2 3 + 0x2 2 + 1x2 1 + 1x2 0 = 32 + 0 + 8 + 0 + 2 + 1 = 43 10 • note the similarity with decimal numbers: 572 10 = 5x10 2 + 7x10 1 + 2x10 0 Why use binary, not decimal or . ..? • At the hardware level, data is manipulated and stored with electrical circuits • So, data must correspond to electronic quantities, such as voltage and current • A “decimal computer” could be built using an

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 12/03/2010 for the course CS 302 taught by Professor J.parker during the Spring '08 term at University of Texas.

### Page1 / 3

1-Hardware - The hardware level of a computer Hardware How...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online