Documente Academic
Documente Profesional
Documente Cultură
Asmal
CA QA
2016/02/18
PT 1 Jan 19
What are the major computer milestones?
Some of the major milestones include: First electronic computer (1939), First
general purpose (1951), the world web released (1990)
John Von Neumann described the basic arrangement (or architecture) of a computer.
Most computers today follow the concept that he described although there are other
types of architecture. When we talk about the Von Neumann architecture, we are
actually talking about the relationship between the hardware that makes up a Von
Neumann-based computer.
A Von Neumann-based computer is a computer that:
Uses a single processor.
Uses one memory for both instructions and data. A von Neumann computer cannot
distinguish between data and instructions in a memory location! It knows only
because of the location of a particular bit pattern in RAM.
Executes programs by doing one instruction after the next in a serial manner using
a fetch-decode-execute cycle.
What is a CPU?
The CPU is reffered to as the brain of the computer
The Primary function -> exceute programs in the main memory by having these
functions on repeat
1) Fetch the programs instructions
2) Examine the instructions
3) Execute the instructions on after the other
Zaid.Asmal
CA QA
2016/02/18
Zaid.Asmal
CA QA
2016/02/18
SPARC proccesor was created by David Patterson and Carlo Sequin which didnt
need interpetation (1980)
MIPS proccssor was created after SPARC by John Hennesy and created a brand new
way
Most recent Risc Machines are x86 and called SUPERSCALER which can implement
more than one instrucion in each cycle
RISC present
We now see RISC machines with on-chip which means
Larger memory management units
Large caches
We also see CISC machines (Pentium Family) with RISC-like subsets (single-cycles
hard-coded)
Zaid.Asmal
CA QA
2016/02/18
What is pipelining?
The fetching of instructions from memory is a major key in execution speed
Pipelining is basically speeding up the proccess
What are some potential bottlenecks in pipelining?
Stage 1
Fetch the instruction from memory
Place it in a buffer until needed
Stage 2
Decode the instruction
Determine its type and what operands it needs
Stage 3
Locates and fetches the operands either from registers or memory
Stage 4
Do the work of carrying out the instructions
Typically run the operands through the data path
Stage 5
Write the results of stage 4 back into the proper register
Zaid.Asmal
CA QA
2016/02/18
All common instructions are exceuted by the hardware and removing a level
from interpetation provides more speed for more instructions
Maximize instruction issue rate(as many instructions per/s as possible
Instructions should be easy to decode
Making instructions regular, fixed length with a small number of fields
The fewer different formats for instructions, the better
Only loads and stores should reference memory
PT 2 Jan 22
Response Time and Throughput
Response time
Throughput
Relative performance
Zaid.Asmal
CA QA
CPU TIME
How is CPU time calculated?
EXAMPLE
Computer A: 2GHz, 10s CPU time
Computer B: 6s CPU time so how fast must computer B be?
2016/02/18
Zaid.Asmal
CA QA
2016/02/18
Determined by compiler/asa
Performance depeneds on
Algorithim
Programming language
Compiler
Instruction set architecture
Main memory
Part of the computer where programs and data are stored
Bit
PT 1 Jan 26
Computer Number Systems
Digital computers are great at manipluting numbers
Perform opererations at great speed by circuits consisting of logic gates
Zaid.Asmal
CA QA
2016/02/18
What is a radix?
Base of a number system
How can we convert binary, octal and hexadecimal numbers into decimal?
Just practice the assigment 1
Counting
Arithmetic operation
Conversions from one base to another
1. Counting starts with the lowest order digit (0) and proceeds in increasing order
2. When highest order digit is reached counting starts with 0 again and a carry is
generated
3. The carry is added to the next significant column
They all remain constant
Gates
The gate is a tiny electronic device that can perform functiuons on these voltage
signals
Zaid.Asmal
CA QA
2016/02/18
These gates including AND , OR are considerd the principal building blocks
NAND and NOR are typically used because they have two transistors for
multiple inputs
Boolean algebra
A Boolean variable can only be 1 or 0
Its always convieniant to only use one type of gate often NAND or NOR