1. Abstract logic diagram of CPU implementation
2. Establish data path: Instruction + operation =CPU
1. What is a directive
- How does the code we write turn into instructions that a machine can understand, and in what order
2. What is calculation
- What is the binary representation of the data, and what circuits do we use to add and multiply
3. What is an instruction cycle
- The non-stop Fetch – Decode – Execut loop is an instruction cycle
- There are several steps
-
- Fetch (Fetch instruction)
-
- Decode (command compilation)
-
- Execut (execute instructions)
-
4. What is machine cycle
5. What is a clock cycle
6. The relationship between the three
- For example
- Instruction cycle
- CPU cycles 1
- Clock cycle 1
- Clock cycle 2
- CPU cycles 2
- CPU cycles 3
- CPU cycles 1
- Instruction cycle
- An instruction cycle contains multiple CPU cycles, and a CPU cycle contains multiple clock cycles
7. What do you mean by establishing a data path
- It consists of two parts
- Operating elements
- Storage element
8. Hardware circuit required by CPU
- A combinatorial logic circuit such as the ALU
- Latches and D – trigger circuits for storing data
- Storage function is realized through D trigger
- Use case to realize the COUNTER circuit of PC register
- PC register, also known as program counter
- Decoder circuits for use case decoding and addressing
- The decoder needed to read and write data
- 2-1 selector
- 3-8 decoder
- The nature of the decoder
- From the input of multiple bits of the signal, according to a certain combination of switches and circuits, select the desired signal
- The decoder needed to read and write data