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

Discussion Overview

The discussion revolves around how microprocessors utilize digital logic to execute commands within computer programs. Participants explore the relationship between digital logic configurations and the functioning of microprocessors, touching on aspects of instruction processing and memory cell construction.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant suggests that commands in a computer program can be viewed as combinations of digital logic configurations, with microprocessors activating transistors in the appropriate configurations to perform logical operations.
  • Another participant proposes that it may be more accurate to say that microprocessors configure logic gates to execute logical operations, detailing how bits in the instruction word control these operations.
  • A third participant shares personal experience from a computer course, indicating that understanding the physical architecture of computers, such as the R30 systems, clarified their understanding of microprocessor functionality.
  • One participant emphasizes the importance of including memory cells as fundamental building blocks, noting that while logic gates can create static memory cells, dynamic RAM cells are more commonly used.
  • Another participant points out that the specific types of logic gates used are less critical than their ability to perform necessary operations, mentioning that NAND gates alone could suffice to create the required logic configurations.

Areas of Agreement / Disagreement

Participants express various viewpoints on the relationship between digital logic and microprocessor operations, with no clear consensus on the best way to describe these processes. Some agree on the fundamental role of digital logic, while others offer differing perspectives on the specifics of how microprocessors execute commands.

Contextual Notes

There are unresolved aspects regarding the definitions of terms like "configuration" and the implications of using different types of logic gates. Additionally, the discussion does not clarify the extent to which different architectures may influence the execution of commands.

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.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 14 ·
Replies
14
Views
6K
Replies
10
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 204 ·
7
Replies
204
Views
13K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • Sticky
  • · Replies 13 ·
Replies
13
Views
8K