Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
computer instructions and how the computer decides which instructions to execute. Although at times it may appear to be magical. Its just math and science.
memory
input/ output
arithmeticlogic unit
environment
Bistable environment
Distinguishing only two electronic states
controlling current
when the controlling current is 1, the electromagnet pulls the switch closed, and the controlled current flows through the switch
circuits to perform any computation Remember, computers do very simple tasks, very quickly
when both inputs are 1, the circuit is closed in1 in2 out 0 0 0 0 1 0 1 0 0 1 1 1
CS 302 - Computer Fluency
in1 in2
and
out
in1 in2
or
out
in1
not
out = in1
in1 out 0 1 1 0
bi-stable, solid state device switching is done electronically, not mechanically no moving parts; therefore, fast, small, reliable can switch states in about one 10 billionth of a second about 5 million transistors can fit on a chip 1 centimeter square. Density is increasing rapidly with new technology.
10
11
true/false values
True/false maps easily onto bistable
environment
Boolean logic operations on electronic signals
expression
A column for each input plus the output A row for each combination of input values
13
b
0
Value
1
0
1 1
1
0 1
0
0 1
14
outputs
Values of the outputs depend only on the current values
of the inputs
15
A Compare-for-equality Circuit
Compare-for-equality circuit
CE compares two unsigned binary integers for
equality
Built by combining together 1-bit comparison
circuits (1-CE)
Integers are equal if corresponding bits are equal
16
17
Figure 4.22
18
19
products algorithm
20
An Addition Circuit
Addition circuit
Adds two unsigned binary integers, setting output bits and an
overflow
Built from 1-bit adders (1-ADD) Starting with rightmost bits, each pair produces
A value for that order A carry bit for next place to the left
21
22
input carry
Send 1-ADDs output value to output, and put its
24
Computer Instructions
The logic for every instruction is executed
on every cycle by the Arithmetic and Logic Unit (ALU). The answer used is the one for the instruction that is currently decoded and executed by the CPU. This selection is done by the Control Circuits.
25
Control Circuits
Do not perform computations
26
27
Summary
Binary values create a bistable environment, making
computers reliable Boolean logic maps easily onto electronic hardware Circuits are constructed using Boolean expressions as an abstraction Computational and control circuits may be built from Boolean gates
28