This is the 13th day of my participation in Gwen Challenge
What is the CPU
Computers work in a “stored program” way, that is, the computer can automatically execute instructions from the main access, and the special part for executing instructions is the Central Processing Unit (CPU).
Title 1
The following is a description of the functions of each component in the controller. The error is ().
A. The core component is the control unit (CU), which is mainly used to decode the instruction operation code and send out control signals
B.PC, called program counter, is used to store the address of the next instruction to be executed
C. Use PC+ “1” → PC to execute commands in sequence
D. R is called instruction counter and is used to store instruction opcodes
C) IR is an instruction register. D) IR is an instruction register. And then the thing that stores the opcode is the work energy of IR.
Topic 2
In the following statement about the instruction cycle, the error is ().
A. The first subperiod of the instruction cycle must be the reference subperiod
B. All instructions have the same subperiod of execution
C. Access memory at least twice in an instruction cycle with indirection
D. Check whether an interrupt occurs after a command is executed and before the next command is removed
B is obviously wrong. Multiplication, for example, takes longer to execute than addition. So instructions need to be prioritized to improve execution speed.
Topic 3
The following is a description of the interrupt response. The error is ()
A. At the end of each instruction, an interrupt response subcycle is turned
B. During the interrupt response cycle, the CPU first turns off the interrupt by setting the interrupt permit trigger
C. During the interrupt response, the CPU sends the return address to the stack or special register for storage
D. In the interrupt response process, CPU sends the access address of the interrupt service program to PC
Obviously, under normal circumstances, after each instruction is executed, the CPU will take the initiative to query whether there is an interrupt request. If there is, the next instruction address will be saved as a power outage, and then go to the corresponding interrupt service program to execute, and then return to the breakpoint to continue to execute.
Topic 4
Generally, the total time taken by an instruction from reading to completion of execution is called instruction cycle.
A. to
B. the wrong
The time it takes the CPU to fetch and execute an instruction is called the instruction cycle, and the instruction cycle may vary from instruction to instruction.
So this is correct.