How Does a Microprocessor Use Digital Logic to Execute Commands?

  • Thread starter Thread starter jaydnul
  • Start date Start date
  • Tags Tags
    Works
Click For Summary
A microprocessor executes commands by configuring digital logic gates, such as AND and OR, to perform logical operations. Each command in a program corresponds to specific bit patterns that control these operations and select registers for processing. The instruction is held in an instruction register, which determines how the arithmetic and logic unit connects to the selected registers. Memory cells, often made from specialized dynamic RAM cells, are fundamental components in this process. The choice of logic gate type is flexible, as long as the gates can perform the necessary operations.
jaydnul
Messages
558
Reaction score
15
Tell me if I'm on the right track. Any command in a computer program when you break it down is really just a combination of different digital logic configurations (AND, OR, NAND, etc.). Then the microprocessor activates some of its transistors that are in the right configuration to perform that logical operation?
 
Engineering news on Phys.org
That will do as a start.

It's possible to quibble with "the microprocessor activates some of its transistors that are in the right configuration". Perhaps better to say that the "microprocessor configures logic gates to perform that logical operation".

In many processor designs groups of bits (called fields) in the instruction word directly control the logical operation. For example suppose the microprocessor has 8 registers and you want to perform an operation on registers A and B and put the answer in C. Then 3 bits of the instruction might select Register A, another 3 bits select register B and another 3 the destination register C. A further 3+ bits might select the operation (AND, OR etc). When the instruction arrives in the microprocessor it might be held in an instruction register and the outputs of the register may literally be used to select which registers are connected to the arithmetic and logic unit and what logical function that performs.
 
I too was puzzled by this until I went on a computer course to Siemens Hell as part of my employment and we studied the R30 computers in detail, these were not micro processors but were built with separate plug in boards one of which was a 128 bit wide memory board that held the instruction set and I suddenly realized how the things worked.
 
Jd0g33 said:
Tell me if I'm on the right track. Any command in a computer program when you break it down is really just a combination of different digital logic configurations (AND, OR, NAND, etc.). Then the microprocessor activates some of its transistors that are in the right configuration to perform that logical operation?

Be sure to include memory cells in your list of fundamental building blocks of computers. You can make memory cells out of logic gates (static memory cells), but more often they are made out of specialized cells (dynamic RAM cells). :smile:
 
Jd0g33 said:
Tell me if I'm on the right track. Any command in a computer program when you break it down is really just a combination of different digital logic configurations (AND, OR, NAND, etc.). Then the microprocessor activates some of its transistors that are in the right configuration to perform that logical operation?
The specific complement of logic gates is irrelevant, as long as they can perform all of the requisite operations. Your combination of AND, OR, and NAND could, for example, be reduced to just NAND alone since combinations of NAND gates can perform OR and AND, so it would just take more transistors total.
 
What mathematics software should engineering students use? Is it correct that much of the engineering industry relies on MATLAB, making it the tool many graduates will encounter in professional settings? How does SageMath compare? It is a free package that supports both numerical and symbolic computation and can be installed on various platforms. Could it become more widely used because it is freely available? I am an academic who has taught engineering mathematics, and taught the...

Similar threads

  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 204 ·
7
Replies
204
Views
12K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • Sticky
  • · Replies 13 ·
Replies
13
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
8
Views
12K
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
802