Professional Documents
Culture Documents
Engineering
DEPARTMENT OF COMPUTER
SCIENCE & ENGINEERING
Bachelor of Engineering (Computer Science
& Engineering)
Subject Name: Computer Organization &
Architecture
Subject Code: CST-252/ITT-252
MACHINE INSTRUCTIONS DISCOVER . LEARN .
EMPOWER
CHAPTER-1
TOPICS COVERED
Machine level program execution
• Instruction cycle
• Bus cycle
• Machine cycle
2
LECTURE-1.2
MACHINE INSTRUCTIONS
3
MACHINE INSTRUCTIONS FORMAT
4
WHAT HAPPENS DURING INSTRUCTION
EXECUTION?
5
INSTRUCTION REPRESENTATION
6
COMPUTER FUNCTION
• The basic function performed by a computer is execution of a program, which consists of a set
of instructions stored in memory.
• Two steps of Instructions Cycle:
o Fetch
o Execute
7
BASIC INSTRUCTION CYCLE
Fetch Cycle
• Program Counter (PC) holds address of next instruction to fetch
• Processor fetches instruction from memory location pointed to by PC
• Increment PC
Unless told otherwise
• Instruction loaded into Instruction Register (IR) Computer Organization and Architecture
Execute Cycle
• Processor interprets instruction and performs required actions, such as:
• Processor - memory
Data transfer between CPU and main memory
• Processor - I/O
Data transfer between CPU and I/O module
• Data processing
Some arithmetic or logical operation on data
• Control
Alteration of sequence of operations o e.g. jump
• Combination of above
8
INSTRUCTION CYCLE
9
• Bus cycle
The bus cycle is the cycle or time required to make a single read or write transaction
between the cpu and an external device such as external memory.
• Machine cycle
The machine cycle is the amount of cycles needed to do either a fetch, read or write
operation. more. The read or write may be more than a single bus cycle if the
transaction between the CPU and memory is longer than the data width fetched or
written. For example, on an 8080 machine, the data width is 8 bits. If the CPU needs
to fetch or write 16 bits of data, that will require two bus cycles.
10
HOMEWORK
Q1. A basic instruction that can be interpreted by computer has
A. Operand and opcode
B. Decoder and Accumulator
C. Sequence register and decoder
D. None of the above
11
HOMEWORK
Q3. In generic microprocessor instruction time is
A. Shorter than machine cycle time
B. Larger than machine cycle time
C. Ten times machine cycle time
D. Exactly same as machine cycle time
Answers:1.A,2.D,3.D
12
REFERENCES
Reference Books:
1. J.P. Hayes, “Computer Architecture and Organization”, Third Edition.
2. Mano, M., “Computer System Architecture”, Third Edition, Prentice Hall.
3. Stallings, W., “Computer Organization and Architecture”, Eighth Edition, Pearson
Education.
Text Books:
4. Carpinelli J.D,” Computer systems organization &Architecture”, Fourth Edition, Addison
Wesley.
5. Patterson and Hennessy, “Computer Architecture” , Fifth Edition Morgaon Kauffman.
Reference Website
6. https://www.geeksforgeeks.org/computer-organization-and-architecture-tutorials/
7. https://www.eventhelix.com/RealtimeMantra/FaultHandling/bus_cycles.htm
8. https://stackoverflow.com/questions/10383354/difference-between-machine-cycle-bus-cy
cle-and-execution-cycle#:~:text=The%20bus%20cycle%20is%20the,more%20here.
13
THANK YOU