Microinstruction and microoperation

  • Thread starter Thread starter RobikShrestha
  • Start date Start date
Click For Summary
The discussion centers on the role of microinstructions in executing machine-level code, specifically the instruction "add a, b." It clarifies that microinstructions are not a single set of control signals but rather a series of control signals generated by the control unit to perform the operation. The execution of a machine instruction like "add a, b" typically involves multiple microinstructions, each responsible for distinct tasks, such as routing inputs to the ALU, storing the result, and updating the program counter. The architecture of the processor influences the composition of these microinstructions. The conversation also touches on the possibility that if all control signals for an instruction could be encoded into one wide word, the need for microinstructions might be eliminated, leading to a hardwired control unit instead.
RobikShrestha
Messages
37
Reaction score
1
When we write machine level code of say,
add a,b
Then the CPU does many things,
I am confused, whether microinstruction is the set of all the control signals generated by the control unit i.e. is microinstruction = control unit's equivalent set of signals for add a,b as a whole? or is it just one set of control signals such that many microinstructions would be necessary to perform add a,b?
 
Technology news on Phys.org
What a microinstruction consists of will depend on the architecture of the processor. Usually I would think most microcoded architectures would use several microinstructions to implement each machine instruction, say "gate a,b to the ALU" followed by "gate the sum from the ALU to the destination and update the status" and "increment program counter and gate to memory to fetch next machine instruction."

If all control signals needed to execute each machine instruction could be encoded into a single wide word and executed at once then perhaps the idea of using microinstructions would be replaced by hard wired CPU control with no microinstructions.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
491
Replies
29
Views
5K
  • · Replies 15 ·
Replies
15
Views
3K
Replies
7
Views
3K
  • Sticky
  • · Replies 13 ·
Replies
13
Views
7K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
5
Views
2K