Processors respond to program commands (or, by extension, programmer) through the machine language, in the form of binary numbers, which represent 0 = 0 Volts and 1 = 5 Volts , for example. This language is nothing more than the interpretation of a "table" of instructions where each instruction ("opcode") has a task to execute inside the processor.
These "opcodes" or instructions are stored in program memory (ROM or RAM) and the processor will read, decode and execute sequentially one by one.
The entire sequence of events within the microprocessor chip, from the time the system is energized, is controlled by the clock, which sends pulses to the electronic components arranged to form a complex state machine. Each 0 and 1 stored electronically in program memory initializes and starts this state machine, giving instructions for the next state.
It usually takes several clock cycles to completely satisfy (or stabilize) the system, depending on the type of "instruction" it has been powered on.
The amount of instruction desired by the system designer will determine the minimum number of bits (zeros and ones) required to complete the set of these instructions. So with 1 bit we only have 2 states or possible instructions. With 2 bits, 4 instructions (00, 01, 10, 11). With 4 bits, 16 instructions, and so on.
This amount is the word of the processor.
But does it mean that with 64 bits more than 18,000,000,000,000,000,000 instructions are possible?
Yes, but to better understand why this word is so great, let's continue ...
The operation with each instruction is usually done in two steps: search (fetch), where the instruction is transferred from the memory to the instruction decoder circuit; and execution itself. See Instruction Cycle .
Taking the 8-bit 8085 microprocessor as an example, the fastest, usually one-byte, instructions are executed in four clock cycles, the slowest, those in which the processor needs seek in memory two more bytes of data, in up to 16 cycles. In all, this processor has 74 instructions and the clock reaches a maximum of 5 MHz .
As we can see, the old processors were not very effective with regard to the processing time of instructions. Higher performance can be achieved by: increasing clock frequency (clock), having physical (electrical and magnetic) limitations of buses (interconnections); by the increase in the number of external bits , which also have limitations on physical space; by the reduction of the number of cycles to execute each instruction , which is currently done by concatenating instruction fetch cycles with decoding and / or by using cache memory; by parallel execution of instructions or multiprocessing or, finally, by the increase in the number of internally processed bits , ie the ALU (Logical and Arithmetic Unit) the accumulator (s) with larger capacity: 16 bits, 32 bits, 64 bits ...
Reviewing the history of microprocessors, the first, 4004 from Intel, had a 4-bit word. The instructions were divided into two nibbles, that is, 4 bits or a half byte: the first was the "opcode", the second was the modifier. Two more nibbles could compose the address or larger instruction data. See the PDF manual for this chip at
4004 datasheet . Although it has instructions equivalent to an 8-bit processor, it could only perform calculations (it was designed for calculator!) Directly with no more than 4 bits.
Nowadays, processors do not decode instructions anymore only through physical logic devices, but by microprograms, and use the most advanced and complex architecture.
Inside each opcode is much more information embedded than those old instructions. In addition, the processor, in addition, each of the various processors is able to manipulate and perform calculations with numbers with many more digits and decimals, for greater efficiency.