CS2 Lectures
CS2 Lectures
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
d.
e.
f.
g.
h.
i.
j.
27.
28.
13.
14.
15.
16.
17.
18.
19.
20.
21.
b. Most RAM is volatile, or dynamic. When you turn off the poer, the
contents of RAM is lost
c. Sometimes one talks about DRAM which is short for dynamic RAM.
ROM
a. Read only memory can only be read from its contents cannot be
altered or written over easily
b. This type of memory is used to hold instructions that need to always
be there and always be the same
c. Initial instructions that are executed when your PC is turned on
which instructs the machine to load.
Registers
a. Registers are memory locations that are used to facilitate the
movement of data inside a digital computer
b. Registers work in conjunction with the system clock which
determines the speed with which
c. Basic registers
Machine Language
a. Every CPU has its machine language; the set of instructions it knows
how to execute
b. A typical instruction might say: get the contents of a memory
location and put it in the accumulator register
Machine instructions
a. Instruction would consist of two numbers:
i. First would be address of memory unit to be accessed.
ii. Second is the operation code of the instruction.
Structure of Instructions
a. Suppose we used 32 bits to encode a machine language instruction
Information transfer inside the CPU
a. Individual bits in a memory unit are transferred to the CPU in
parallel
b. Opposed to serially
The memory bottleneck
a. Machine can perform dozens of instruction in the time it takes to
retrieve one item from memory
b. One solution is very fast memory in the CPU call cache memory. A
computer will typically have 1000s of bytes of cache, as opposed to
billions of bytes of RAM
Central Processing Unit
a. Manages the instruction- execution cycle
b. Fetch DECODE EXECUTE
Types of processor operations
a. Data movement operations
i. Moving data from memory to the CPU
ii. Moving data from memory to memory
iii. Input and output
b. Arithmetic and logical operations
22.
23.
i. Integer arithmetic
ii. Comparing two quantities
iii. Shifting, rotating bits in a quantity
c. Program control
Challenges to increase speed
a. Thickness in atoms between the silicon layers in transistors is
getting very thin as we attempt to cram more transistors into the
same amount of space
b. Heat. More and more transistors on a chip, the ability to cool it and
keep it from burning up is increasingly a problem
c. Noise. As more transistors are packed ever more tightly together,
the noise level of the circuits increases which affects reliability.
A new computing paradigm
a. Quantum computing: seeks to use the spin of atomic particles to
implement binary digital systems
b. Molecular computing: using molecules to hold electrical charges
instead of transistors