Computer Organisation and Architecture · Instruction Formats
Instruction Set as the Interface Between Architect and Programmer
Overview
The instruction set is the fixed collection of operations a computer's hardware can execute, and it acts as the interface between the hardware architect and the programmer.
It is decided before any hardware is built, so understanding it is the starting point for all later design of components, datapath and control.
Key concepts
- Instruction set (machine instructions): the fixed collection of instructions that a computer's hardware can execute; the set of operations the architect commits to before any hardware is built.
- Interface: the instruction set is the meeting point between the two groups involved with a computer — the architect / hardware designer, who designs and builds the computer, and the programmer, who writes programs for it.
- Contract: because it is the exact place where architect and programmer interact, the instruction set is the most important point of interaction between the two parties, which is why it is studied before datapath and control design.
How it works
- The designer keeps in mind the people who will use the computer — the programmers — since the design depends on these users.
- Before designing the computer, the designer first fixes the instruction set (machine instructions).
- The choice of instruction set depends on what programmers need, i.e. what programmers think they require in order to write their programs.
- Once the instruction set is decided, the designer chooses the hardware based on that instruction set and then connects the components together.
- Because the instruction set is where architect and programmer interact, it must be discussed first; only afterwards can we decide which components are required to implement it and how to connect them.
- With the instruction set fixed, the next questions are what the main things present in the instruction set are, and what must be present in an individual instruction.
Revision summary
- The instruction set is decided first, before hardware selection and before component interconnection.
- Order of design: programmer's needs → instruction set → hardware components → interconnection.
- The instruction set is the contract/interface between hardware designer and programmer.
- It is the most important point of interaction between the two parties, so it is studied before datapath and control design.
- The instruction set is fixed before any hardware is built.
Previous-year exam insights
- An assembly-language instruction corresponds one-to-one with a machine-code instruction; it is not a micro-operation, a macro-operation, or something completed in a single clock pulse.
Asked inUGC NET 2007 - The instruction set architecture (ISA) is the programmer-visible interface of a machine: it defines the instruction formats, addressing modes, registers, data types and operations, while the microarchitecture (datapath and control) is the implementation of that ISA and may differ between machines running the same ISA.
- An instruction is executed as a sequence of micro-operations, each performed in one clock pulse; a single machine instruction therefore normally takes several clock pulses, not one.
- A macro-operation is a higher-level operation (e.g. a procedure call or a complex operation) that is realised by a sequence of machine instructions, so it is not contained within a single assembly instruction.
- The ISA is the boundary that gives binary compatibility: programs compiled for an ISA run unchanged on any implementation of that ISA, which is why the ISA is fixed before the datapath and control are designed.