Professional Documents
Culture Documents
Topics to be covered
• Computer Architecture & Organization
• Basic Components of Computer System
• Basic Computer Model (Van Neumann Model)
• Instruction codes
• Computer registers
• Computer instructions
• Timing and Control
• Instruction cycle
• Memory-Reference Instructions
Basic Computer Model
ENIAC
• On the ENIAC, all programming was done at the digital logic level
• Programming the computer involved moving plugs and wires
• Configuring the ENIAC to solve a “simple” problem required
many days labor by skilled technicians
• A different hardware configuration was needed to solve every
unique problem type
The von Neumann Model
• The invention of stored program computers has been ascribed
to a mathematician, John von Neumann
• Stored-program computers have become known as von
Neumann Architecture systems
Stored-program computers have the following characteristics:
• Three hardware systems:
• A central processing unit (CPU)
• A main memory system
• An I/O system
• Provides the capacity to carry out sequential instruction
processing
The von Neumann Model
Processor Register
(accumulator or
AC)
Stored Program Organization
Instruction Format
15 14 12 11 0
I Opcode Address
0 0 0 1 0 1 0 0 0 1 0 1 0 1 1 1
Add Instruction – ADD 457
Direct & Indirect Addressing of Memory
300 1350
457 Operand
1350 Operand
+ +
AC AC
Direct & Indirect Addressing of Memory
Memory
4096 words
16 bits per word
Common bus system of basic computer
Computer
Instructions
0 0 0 0 Address
0 1 1 1 10 00 00 00 00 00 00 0 0 0 0 0
AND to AC
ADD to AC
Memory Reference Instruction
BSA
Register Reference Instruction
Input-Output of Basic Computer
Input-Output Instruction
Design of Accumulator
Design of Accumulator Logic
Design of Accumulator Logic
Design of Basic
Computer
Exercise 1
A computer uses a memory unit with 256K words of 32
bits each. The instruction has four parts: an indirect
bit, an operation code and a register code part to
specify one of 64 registers and an address part.
a. How many bits are there in the operation code, the
register code part and the address part?
b. Draw the instruction word format and indicate the
number of bits in each part.
c. How many bits are there in data and address inputs of
the memory?
Exercise 2
• What is difference between a direct and an
indirect address instruction?
• How many references to memory are needed
for each type of instruction to bring an
operand into a processor register?
Exercise 3
• What are the two instructions needed in the
basic computer in order to set the E flip flop to
1?
Exercise 4
• Consider the instruction format of the basic
computer and the list of instructions. For each
of the following 16-bit instruction, give the
equivalent four-digit hexadecimal code and
explain in your own words what it is that the
instruction is going to perform:
a. 0001 0000 0010 0100
b. 1011 0001 0010 0100
c. 0111 0000 0010 0000
Exercise 5
A computer use a memory of 65536 words with eight bits in each word.
It has the following registers: PC,AR,TR(16 bits each), and AC,DR,IR(8
bits each). A memory reference instruction consists of three words: an
8-bt operation-code(one word) and 16-bit address(in the next two
words).All operands are eight bits. There is no indirect bit.
a. Draw a block diagram of the computer showing the memory and
registers. (Slide-30,31) (Do not use a common bus)
b. Draw a block diagram showing the placement in memory of a typical
three-word instruction and the corresponding 8-bit operand.
c. List the sequence of micro operations for fetching a memory
reference instruction and then placing the operand in DR. Start from
timing signal T0.