Input, Output and Hardware CS105 Electrical Signals Transmission - - PowerPoint PPT Presentation

input output and hardware
SMART_READER_LITE
LIVE PREVIEW

Input, Output and Hardware CS105 Electrical Signals Transmission - - PowerPoint PPT Presentation

Input, Output and Hardware CS105 Electrical Signals Transmission of data Any electrical signal has a level of voltage Interpretation of 1s and 0s Generally speaking: range of 0 to 2 volts low 0 Range of 2 to 5


slide-1
SLIDE 1

Input, Output and Hardware

CS105

slide-2
SLIDE 2

Electrical Signals

  • Transmission of data
  • Any electrical signal has a level of voltage
  • Interpretation of 1s and 0s
  • Generally speaking:
  • range of 0 to 2 volts – ‘low’ – 0
  • Range of 2 to 5 volts – ‘high’ – 1
  • Control signals by a gate
  • A device that performs a basic operation on electrical

signals

  • Input one or more signals producing an output
slide-3
SLIDE 3

Electrical Signals

  • Gates are combined to form circuits
  • Circuits for a logical function such as arithmetic,

store values

  • Three equally powerful notational methods for

describing behavior of gates and circuits

  • Boolean expressions
  • Expressions in algebraic notation
  • Logic diagrams
  • Graphical representation of a circuit
  • Truth tables
  • Function of a gate by listing input combinations
slide-4
SLIDE 4

Transistors

  • A transistor is a device that acts depending on the voltage level
  • f the input signal, either as a conductor or as a resistor of the

flow of electricity

  • Great for logic circuits
slide-5
SLIDE 5

Transistors: History

  • Harvard Mark 1 : First programmable computer in the US built in 1944

○ Switches, rotating shafts, relays, clutches..not purely electrical machine ○ 5 tons, 500 miles of wires First computer bug

slide-6
SLIDE 6

Gates

AND OR NOT A B A & B 1 1 1 1 1

B A A B A

A B A | B 1 1 1 1 1 1 1 A

  • A

1 1

slide-7
SLIDE 7

Gates

NAND NOR XOR A B

  • (A & B)

1 1 1 1 1 1 1

B A A B

A B

  • (A | B)

1 1 1 1 1

A B

A B A ⊕ B 1 1 1 1 1 1

slide-8
SLIDE 8

Combinational Circuits

slide-9
SLIDE 9

Combinational Circuits

1 1 1 1 A B C D E X 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

slide-10
SLIDE 10

Stored program concept

  • Early design:
  • Unique set of instructions for central processor (Example:

Calculator)

  • Physical separate storage and pathways for data and

instructions (Example: Harvard Mark 1)

  • Rewiring required
  • Conceptually programs and data seem very different
  • But not to a computer – both instructions and data can be represented

as numbers

  • John von Neumann’s idea:
  • Store programs, together with data in the memory of the computer
  • Memory contains: (a) data (b) instructions
  • Random access to different memory addresses and hence

instructions

slide-11
SLIDE 11

Von Neumann Architecture

Five components:

  • Memory unit holds both data and instructions
  • ALU is capable of performing arithmetic and logic operations on data
  • Input unit moves data from user to computer
  • Output unit displays or prints results
  • Control unit acts as manager of different components

Input device

Output device Auxiliary storage device

Control Unit Arithmetic/Logic Unit Memory Unit Central Processing Unit

slide-12
SLIDE 12

Current Computer Architectures

  • x86 (Intel)
  • SPARC (sun)
  • PowerPC (Motorola)
  • ARM
slide-13
SLIDE 13

Registers

Registers: General registers eax ebx ecx edx Index and pointers esi edi ebp eip esp Indicator eflags

Registers represent the state of a computer similar to ram

  • f hard drives. Registers are stored closer to the CPU so

their access speed is faster

slide-14
SLIDE 14

x86 From the CPUs Point of View

Registers: General registers eax ebx ecx edx Index and pointers esi edi ebp eip esp Indicator eflags

fetch-and-execute cycle:

while (true){ Fetch instruction pointed to by eip register Increment eip Execute instruction }

slide-15
SLIDE 15

x86 From the CPUs Point of View

Example of opcodes being executed iadd %eax, %edx // adds eax to edx registers cmp %edx, $0x04 // if edx > 4 set flag in eflags jmp $0xa432f53 // set eip to 0xa432f53 mov $0x6ee1e0, %edx // put memory at 0x6ee1e0 into edx

Registers: General registers eax ebx ecx edx Index and pointers esi edi ebp eip esp Indicator eflags

slide-16
SLIDE 16

Computer BUS

  • Communication in the von Neumann System

Bus: A set of wires that connects major components of a machine through which data flows Input devices CPU Main Memory Output devices BUS

slide-17
SLIDE 17

Computer BUS

slide-18
SLIDE 18

Motherboard

slide-19
SLIDE 19

Processors nomenclature

  • Clock speed

○ faster might mean more power

  • Number of bits the processor can deal with per clock cycle

○ 32, 64, 128

  • Cores: Number of instruction processors in a CPU

○ unrelated computations may be parallelized