Microinstruction and microoperation

  • Thread starter Thread starter RobikShrestha
  • Start date Start date
AI Thread 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.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top