High-efficiency assembly line microprocessor based on RISC-V
By introducing a three-level address selector and a two-level pipeline structure memory access unit into the processor, the pipeline flushing and stalling problems caused by branch instruction prediction failure and memory access instruction data correlation are solved, and the execution efficiency and performance of the processor are improved. performance.
Patent Information
- Application Number
- CN202410978893.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-27
AI Technical Summary
The failure of branch instruction prediction in existing processors results in the loss of pipeline flushing cycles, reducing execution efficiency, and the data dependency of memory access instructions causes pipeline pauses, affecting performance.
A high-efficiency pipeline microprocessor based on RISC-V is designed, which uses a three-level address selector to reduce the pipeline flushing cycle, and transfers data in time when data is relevant through the memory access unit of a two-level pipeline structure to avoid pipeline stalls.
It effectively reduces the pipeline flushing cycle, thereby improving the execution efficiency of the processor, ensuring timely execution of instructions when data is relevant, and significantly improving the performance of the processor.
Smart Images

Figure CN118708245A
Abstract
Description
Technical Field
[0001] The present application relates to the field of processor design, and in particular to a high-efficiency pipeline microprocessor based on RISC-V. Background Art
[0002] Microprocessors are widely used in the Internet of Things, smart homes, smart wearables and other fields due to their high performance, low power consumption, programmability and high flexibility. Traditional ARM architecture-based processors not only require high licensing fees, but also prohibit any unauthorized changes, and have poor flexibility. In 2010, the University of California, Berkeley released the RISC-V instruction set architecture. Users can expand the instruction set based on the basic instruction set according to their own application needs to customize a variety of processor architectures. The advantages of the RISC-V instruction set, such as simplicity, modular design and open source, have attracted widespread attention from major companies and researchers.
[0003] RISC-V microprocessors usually use a deeper pipeline architecture to improve the parallelism of instructions and thus achieve better performance. However, the pipeline is easily affected by branch instructions and memory access instructions during the execution of instructions, resulting in pipeline interruption and performance degradation. On the one hand, in order to reduce the impact of branch instructions on pipeline execution efficiency, the Hummingbird E203 adopts the static branch prediction BTFN (Back Taken Forward Not taken) method, which improves the pipeline efficiency to a certain extent. However, due to the low prediction accuracy of this method, the improvement of pipeline efficiency is limited. In order to improve the prediction accuracy, the SweRV EH1 launched by Western Digital designed a dynamic branch prediction method, namely Gshare. This method uses the result of the instruction address and the global branch history XOR operation to index the pattern history table (PHT) table entry, which effectively improves the prediction accuracy. The Institute of Computer Technology of the Chinese Academy of Sciences designed the "Xiangshan" high-performance processor and proposed a three-level prediction structure including uBTB, BTB and TAGE-SC-L, which not only improves the prediction accuracy but also achieves a good prediction speed. However, the branch predictor proposed in the above method is usually executed at the front end of the pipeline. If the prediction fails, all instructions between the "execution" and "instruction fetch" stages will be discarded, causing the pipeline to stall. On the other hand, in order to reduce the impact of memory access instructions on the pipeline, most open source processors with sequential execution structures, such as RI5CY and PicoRV32, insert bubbles to pause the pipeline and wait for the execution of memory access instructions, resulting in low pipeline efficiency of sequential processors. XuanTie-910 proposed an out-of-order dual-issue memory access processing mechanism, which can execute one Load instruction and one Store instruction simultaneously per cycle. Xiangshan processor established an out-of-order memory access model that complies with RVWMO (RISC-V weak memory ordering) memory consistency, including 2 Load and 2 Store pipelines, and supports up to 4 memory access instructions to be executed simultaneously. In order to realize the mechanism of sequential write-back of memory access instructions, the above two processors use a dedicated memory access queue to record the order of memory access instructions. If the data correlation between memory access instructions violates memory consistency, the pipeline will be flushed, blocking the execution of subsequent instructions, limiting the execution efficiency of the pipeline. Summary of the invention
[0004] The purpose of the present invention is to provide a high-efficiency pipeline microprocessor based on RISC-V in order to solve the problem that the failure of existing processor branch instruction prediction leads to pipeline flush cycle loss, thereby reducing execution efficiency.
[0005] The above-mentioned purpose of the present application is achieved through the following technical solutions: The microprocessor comprises: an instruction fetch unit and a memory access unit; The instruction fetch unit includes: a PC register, a Dual_Rom memory, a Mini-Decoder, a BPU branch prediction unit, a three-level address selector, an AHB bus, an adder, and an IF\ID register; The execution and secondary memory access unit includes: ID\EX register, EX execution unit, Forward data forward unit, MEM_1 memory access unit, MEM_2 memory access unit, MUX multiplexer, EX\MEM register, MEM\WB register, ID\EX register, WB write-back unit and AHB bus; The instruction fetch unit is used to quickly fetch the correct instruction; The memory access unit is used to efficiently execute memory access instructions.
[0006] Optionally, the three-stage address selector includes: a first-stage selector MUX1, a second-stage selector MUX2, and a third-stage selector MUX3.
[0007] Optionally, the output end of the first-stage selector of MUX1 is connected to the third input end of the second-stage selector of MUX2, and the output end of the second-stage selector of MUX2 is connected to the third input end of the third-stage selector of MUX3; The first input terminal of the second stage selector of MUX2 is connected to the PC_stop port; The first input end of the third-level selector of MUX3 is connected to the Pipe_flush port, the second input end is connected to the Jump_addr port, and the output end is connected to the IF_ID register; The first read port of the Dual_Rom memory is connected to the AHB bus, and the second read port is connected to the first output end of the PC register; The first read data output port of the Dual_Rom memory is connected to the AHB bus, and the second read data output port is connected to the Mini-Decoder simple decoder; The first output end of the Mini-Decoder is connected to the input end of the BPU branch prediction unit, and the second output end is connected to the IF\ID register.
[0008] Optionally, the first output terminal and the second output terminal of the BPU branch prediction unit are respectively connected to the first input terminal and the third input terminal of the first-stage selector of MUX1 of the three-stage address selector; The second output end of the PC register is connected to the second input end of the second-stage selector of MUX2 of the three-stage address selector and the input end of the adder, and the input end of the PC register is connected to the output end of the third-stage selector of MUX3; The output terminal of the adder is connected to the second input terminal of the first stage selector of MUX1.
[0009] Optionally, the first output terminal and the second output terminal of the ID\EX register are connected to the first input terminal and the second input terminal of the Forward data forwarding unit respectively; The first output terminal and the second output terminal of the Forward data forwarding unit are respectively connected to the first input terminal and the second input terminal of the EX execution unit; The third input terminal of the Forward data forwarding unit is connected to the first output terminal of the MEM_2 memory access unit, and the fourth input terminal is connected to the output terminal of the WB write-back unit; The first output terminal of the EX execution unit is connected to the first input terminal of the EX\MEM register, and the second output terminal is connected to the input terminal of the MEM_1 memory access unit.
[0010] Optionally, the first output terminal of the MEM_1 memory access unit is connected to the second input terminal of the EX\MEM register, and the second output terminal and the third output terminal of the MEM_1 memory access unit are connected to the AHB bus; The output terminal of the EX_MEM register is connected to the first input terminal of the MEM_2 memory access unit; The second input terminal and the second output terminal of the MEM_2 memory access unit are connected to the AHB bus; The first output end of the MEM_2 memory access unit is connected to the input end of the MEM\WB register; the output end of the MEM\WB register is connected to the input end of the WB write-back unit.
[0011] The beneficial effects of the technical solution provided by this application are: 1. Design a three-level address selector to allow instructions to enter the pipeline in advance, reducing the pipeline flush cycle from two to one, improving the execution efficiency of the pipeline, and solving the problem of pipeline flush cycle loss caused by branch instruction prediction failure.
[0012] 2. To address the problem of pipeline suspension caused by Load / Store memory access instructions when data correlation occurs, a two-stage pipeline structure memory access method (MEM_1 memory access unit and MEM_2 memory access unit) is designed, so that when data correlation occurs in the Load instruction, the data retrieved by the Load instruction can be promptly passed to the subsequent instructions through the data forwarding unit. In addition, for the Store instruction, the two-stage pipeline structure memory access method can also enable the subsequent instructions to read the data written by the Store instruction in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The present application will be further described below with reference to the accompanying drawings and embodiments, in which: Figure 1 It is a structural block diagram of an instruction fetch unit of a high-efficiency pipeline microprocessor based on RISC-V in an embodiment of the present application; Figure 2 It is a structural block diagram of the execution and secondary memory access unit of a high-efficiency pipeline microprocessor based on RISC-V in an embodiment of the present application. DETAILED DESCRIPTION
[0014] In order to have a clearer understanding of the technical features, purposes and effects of the present application, the specific implementation methods of the present application are now described in detail with reference to the accompanying drawings.
[0015] An embodiment of the present application provides a high-efficiency pipeline microprocessor based on RISC-V, the microprocessor comprising: Instruction fetch unit and memory access unit; The instruction fetch unit includes: a PC register, a Dual_Rom memory, a Mini-Decoder, a BPU branch prediction unit, a three-level address selector, an AHB bus, an adder, and an IF\ID register; The execution and secondary memory access unit includes: ID\EX register, EX execution unit, Forward data forward unit, MEM_1 memory access unit, MEM_2 memory access unit, MUX multiplexer, EX\MEM register, MEM\WB register, ID\EX register, WB write-back unit and AHB bus; The instruction fetch unit is used to quickly fetch the correct instruction; The memory access unit is used to efficiently execute memory access instructions.
[0016] The three-level address selector includes: a first-level selector MUX1, a second-level selector MUX2, and a third-level selector MUX3.
[0017] The output end of the first-stage selector of MUX1 is connected to the third input end of the second-stage selector of MUX2, and the output end of the second-stage selector of MUX2 is connected to the third input end of the third-stage selector of MUX3; The first input terminal of the second stage selector of MUX2 is connected to the PC_stop port; The first input end of the third-level selector of MUX3 is connected to the Pipe_flush port, the second input end is connected to the Jump_addr port, and the output end is connected to the IF_ID register; The first read port of the Dual_Rom memory is connected to the AHB bus, and the second read port is connected to the first output end of the PC register; The first read data output port of the Dual_Rom memory is connected to the AHB bus, and the second read data output port is connected to the Mini-Decoder simple decoder; The first output end of the Mini-Decoder is connected to the input end of the BPU branch prediction unit, and the second output end is connected to the IF\ID register.
[0018] The first output terminal and the second output terminal of the BPU branch prediction unit are respectively connected to the first input terminal and the third input terminal of the first-stage selector of MUX1 of the three-stage address selector; The second output end of the PC register is connected to the second input end of the second-stage selector of MUX2 of the three-stage address selector and the input end of the adder, and the input end of the PC register is connected to the output end of the third-stage selector of MUX3; The output terminal of the adder is connected to the second input terminal of the first stage selector of MUX1.
[0019] Specifically, the use of dual-port ROM (Dual_Rom memory) allows two independent read ports to enable instruction fetching and memory access to be executed in parallel. At the same time, a three-level address selector is designed to reduce the pipeline flush cycle caused by branch instructions from two to one, greatly improving the execution efficiency of the pipeline.
[0020] like Figure 1 As shown in the figure, the three-level address selector is responsible for determining the PC address NEXT_PC of the next cycle, and fetching instructions from the first read port of the dual-port ROM (Dual_Rom memory) through the PC register. The second read port of the dual-port ROM is connected to the AHB bus to support memory access operations. The retrieved instructions are parsed by the Mini-Decoder, and the information of the branch instructions is passed to the branch prediction unit (BPU). The BPU is responsible for predicting whether the instruction will jump. The current mainstream storage structures of processors include von Neumann and Harvard architectures. The von Neumann structure stores instructions and data in the same memory. Although this structure is simple, it can only perform instruction fetch operations or memory access operations at the same time. Compared with the von Neumann structure, the Harvard structure uses a separate storage method for instructions and data, so instruction fetch can be performed in parallel with memory access operations. However, the traditional Harvard structure cannot read data in the instruction memory through memory access operations.
[0021] The present invention establishes an improved Harvard structure based on a dual-port ROM. In this structure, the dual-port ROM has two independent read addresses, which can perform read operations simultaneously. One of the read addresses is connected to the PC address output by the PC register and is used for instruction reading. In addition, the port is not directly connected to the processor through the AHB bus, so the access rate depends on the instruction memory. The instruction memory in this article is implemented using SRAM, which has a fast access rate and can retrieve data in just one clock cycle. The other read address is connected to the AHB bus for data reading by the memory access operation. This structure can not only enable instruction fetching and memory access to be performed simultaneously, avoiding instruction fetching suspension caused by memory access, but also complete data transmission between the instruction memory and the data memory.
[0022] The fetched instructions need to be predicted by the branch prediction unit BPU. Since the instructions for backward jumps generated by the code generated by the RISC-V compiler are much greater than the instructions for forward jumps, this paper adopts BTFN (Back Taken Forward Not taken) in the static branch prediction technology. The specific prediction method is as follows: Mini-Decoder is designed to judge and parse the fetched instruction INST, and the result Pre_addr of adding the offset generated by the decoded instruction immediate value to the PC address is passed to BPU as the branch instruction jump address. The BPU unit predicts the jump direction based on the information parsed by Mini-Decoder. If the input instruction is a conditional jump instruction and the highest bit of the instruction is 1 (meaning the instruction jumps backward), it is predicted to jump, otherwise it is predicted not to jump; if it is an unconditional jump instruction JAL, it is directly predicted to jump.
[0023] The traditional instruction fetch unit uses sequential logic to generate the next PC address. Therefore, when the pipeline flush signal arrives, the instruction fetch unit needs to fetch the instruction at the correct address in the next clock cycle. In order to reduce the loss of processor performance and make the pipeline run in the correct instruction direction as quickly as possible, this patent proposes a fast instruction fetch method based on a three-level address selector. The first-level selector of MUX1 has the lowest priority, and its input port is PC+4 and BPU predicted jump address Pre_addr, which is selected by the control signal Pre_jump. When Pre_jump is enabled, the selector outputs Pre_addr, otherwise it outputs PC+4. The output of the first level is sent to the second-level selector of MUX2 together with the previous instruction address PC. The second-level selector of MUX2 is mainly used to deal with the suspension of instruction fetching. When an interrupt / exception occurs, or a long-cycle instruction (such as multiplication and division instructions, Load / Store instructions) needs to be processed, the instruction fetching process of the processor will be suspended, the PC_Stop signal will be immediately set high, and the selector will output the previous instruction address PC, otherwise it will output the output of the first-level selector of MUX1. The third-level selector of MUX3 has the highest priority and is mainly used to deal with pipeline flushing. When the branch instruction is predicted incorrectly, the pipeline flush signal Pipe_flush is set high, and the selector outputs the jump address Jump_addr. When all three enable signals are disabled, NEXT_PC is equal to PC+4.
[0024] The real-time performance of combinatorial logic is used to change the instruction fetch address to the jump address immediately in the current cycle. Although the use of combinatorial logic will increase the delay on the critical path of the instruction fetch stage and reduce the main frequency of the processor, for the field of Internet of Things where the main frequency requirement is not high, it is worth sacrificing a small amount of main frequency in exchange for performance improvement. When the pipeline is flushed, the decoding stage can obtain the correct instruction in the next clock cycle, only losing one clock cycle, thereby effectively improving the execution efficiency of the pipeline.
[0025] The first output terminal and the second output terminal of the ID\EX register are connected to the first input terminal and the second input terminal of the Forward data forwarding unit respectively; The first output terminal and the second output terminal of the Forward data forwarding unit are respectively connected to the first input terminal and the second input terminal of the EX execution unit; The third input terminal of the Forward data forwarding unit is connected to the first output terminal of the MEM_2 memory access unit, and the fourth input terminal is connected to the output terminal of the WB write-back unit; The first output terminal of the EX execution unit is connected to the first input terminal of the EX\MEM register, and the second output terminal is connected to the input terminal of the MEM_1 memory access unit.
[0026] The first output terminal of the MEM_1 memory access unit is connected to the second input terminal of the EX_MEM register, and the second output terminal and the third output terminal of the MEM_1 memory access unit are connected to the AHB bus; The output terminal of the EX_MEM register is connected to the first input terminal of the MEM_2 memory access unit; The second input terminal and the second output terminal of the MEM_2 memory access unit are connected to the AHB bus; The first output end of the MEM_2 memory access unit is connected to the input end of the MEM\WB register; the output end of the MEM\WB register is connected to the input end of the WB write-back unit.
[0027] Specifically, the execution and secondary memory access unit structure, such as Figure 2 As shown, the execution unit is the specific implementation part of the instruction. In order to solve the pipeline stagnation caused by data correlation, this patent design targets the data forward unit (Forward) of the five-stage pipeline. For memory access instructions, a two-stage pipeline memory access unit structure is proposed, which are the MEM_1 memory access unit and the MEM_2 memory access unit. When executing memory access instructions, the execution efficiency of the pipeline can be improved.
[0028] Unlike ordinary single-cycle instructions, Load / Store instructions require multiple cycles to execute. If data dependency is detected at this time, the data forwarding unit cannot forward the correct data to subsequent instructions in time. For example, the following assembly code: 0000 : lwsp , 0 (ra) 0004: swsp, 4 (ra) 0008 : lwa2 , 4 (ra) It can be seen from the above assembly code that the SW instruction at 0004 is data dependent on the LW instruction at 0000. If the SW instruction is in the execution stage at this time, then the LW instruction at 0000 is still in the memory access stage, and the data has not been retrieved from the data RAM. The data forwarded by the data forward unit is unknown. If these unknown data are used, the processor will run incorrectly. The LW instruction at 0008 is related to the SW instruction at 0004. The SW instruction at 0004 also requires multiple cycles to write data to the data RAM. If the location of the SW instruction write address in the data RAM is read at this time, old data will be obtained, which will also cause the processor to error. Therefore, when executing data-dependent Load / Store instructions, the pipeline needs to be paused and execution can only continue after the instruction data is read / written. This has a great impact on the performance of the processor.
[0029] Therefore, this patent proposes a memory access unit with a two-stage pipeline structure. MEM_1 is placed in the execution stage of the pipeline, responsible for sending the control signal CTRL and the memory access address ADDR to the bus. In the memory access stage of the original pipeline, if the current instruction is a Load instruction, MEM_2 reads the read data RDATA sent back by the bus according to the required bytes. If it is a Store instruction, the data to be written WDATA is written to the corresponding address through the bus. When subsequent instructions have data dependencies and need to obtain the data of the memory access instruction, the memory access instruction at this time is in the second-stage pipeline of the memory access, the execution of the instruction has been completed, and the correct data can be passed through the data forwarding unit.
[0030] In order to verify the method proposed in this patent, a test system was built based on Altera's Clone V series FPGA development board C5P.
[0031] To test the impact of the optimization strategy proposed in this patent on the overall performance of the processor. No optimization is performed in the initial test, and the performance test case CoreMark running program is run on the FPGA to obtain performance data by enabling the optimization items one by one. The CoreMark running program is written in C language and contains some typical operating rules in the embedded field. The Bit stream file generated by CoreMark is downloaded into the FPGA development board, and the CoreMark running program is run at a frequency of 50MHz. By running the processor under different optimization conditions, the test results are shown in Table 1.
[0032] Table 1. The results of the benchmarks under various processor optimization conditions. Dual-port ROM Static branch prediction Three-level address selector Secondary memory access unit design CoreMark / MHz × × × × 1.74 √ × × × 2.40 √ √ × × 2.58 √ √ √ × 2.70 √ √ √ √ 3.32 It can be seen that without any optimization, the processor's running score is only 1.74 CoreMark / MHz. When the dual-port ROM is added, the running score rises to 2.4 CoreMark / MHz. This is because memory access will cause instruction fetch to pause, and instruction fetch depends on the rate of the AHB bus. The addition of the dual-port ROM avoids the conflict between memory access and instruction fetch and reduces the access cycle of instruction fetch. After adding the static branch prediction algorithm, the running score is increased to 2.58 CoreMark / MHz. When branch prediction is not enabled, each branch instruction does not jump by default, resulting in more pipeline flushes. The implementation of the prediction algorithm can effectively reduce the number of pipeline flushes. Further adding the three-level address selector proposed in this paper, the pipeline flush processing cycle is reduced from two to one, and the running score is increased to 2.70 CoreMark / MHz. Finally, after adding the memory access unit of the two-stage pipeline proposed in this paper, the running score is increased to 3.32 CoreMark / MHz. This is because after adding the two-stage memory access unit, the pipeline no longer needs to be paused when accessing memory, thus significantly improving the processor performance.
[0033] The branch instructions and memory access instructions in the instructions seriously affect the execution efficiency of the processor pipeline and reduce the performance of the processor. For the instruction fetch unit, an optimized Harvard structure based on dual-port ROM is designed to solve the conflict between instruction fetch and memory access. A three-level address selection circuit is proposed to reduce the pipeline flushing processor cycle. A two-level pipeline memory access unit is proposed to further improve the processor performance. The test results show that the processor designed in this paper is significantly better than most of the current mainstream RISC-V architecture open source processors in terms of area and performance, and has high application value in the field of Internet of Things.
[0034] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0035] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A high-efficiency pipeline microprocessor based on RISC-V, characterized in that: The microprocessor comprises: an instruction fetch unit and a memory access unit; The instruction fetch unit includes: a PC register, a Dual_Rom memory, a Mini-Decoder, a BPU branch prediction unit, a three-level address selector, an AHB bus, an adder, and an IF\ID register; The execution and secondary memory access unit includes: ID\EX register, EX execution unit, Forward data forward unit, MEM_1 memory access unit, MEM_2 memory access unit, MUX multiplexer, EX\MEM register, MEM\WB register, ID\EX register, WB write-back unit and AHB bus; The instruction fetch unit is used to quickly fetch the correct instruction; The memory access unit is used to efficiently execute memory access instructions.
2. A high-efficiency pipeline microprocessor based on RISC-V as claimed in claim 1, characterized in that: The three-level address selector includes: a first-level selector MUX1, a second-level selector MUX2, and a third-level selector MUX3.
3. A high-efficiency pipeline microprocessor based on RISC-V as claimed in claim 2, characterized in that: The output end of the first-stage selector of MUX1 is connected to the third input end of the second-stage selector of MUX2, and the output end of the second-stage selector of MUX2 is connected to the third input end of the third-stage selector of MUX3; The first input terminal of the second stage selector of MUX2 is connected to the PC_stop port; The first input end of the third-level selector of MUX3 is connected to the Pipe_flush port, the second input end is connected to the Jump_addr port, and the output end is connected to the IF_ID register; The first read port of the Dual_Rom memory is connected to the AHB bus, and the second read port is connected to the first output end of the PC register; The first read data output port of the Dual_Rom memory is connected to the AHB bus, and the second read data output port is connected to the Mini-Decoder simple decoder; The first output end of the Mini-Decoder is connected to the input end of the BPU branch prediction unit, and the second output end is connected to the IF\ID register.
4. A high-efficiency pipeline microprocessor based on RISC-V as claimed in claim 3, characterized in that: The first output terminal and the second output terminal of the BPU branch prediction unit are respectively connected to the first input terminal and the third input terminal of the first-stage selector of MUX1 of the three-stage address selector.
5. A high-efficiency pipeline microprocessor based on RISC-V as claimed in claim 4, characterized in that: The second output end of the PC register is connected to the second input end of the second-stage selector of MUX2 of the three-stage address selector and the input end of the adder, and the input end of the PC register is connected to the output end of the third-stage selector of MUX3; The output terminal of the adder is connected to the second input terminal of the first stage selector of MUX1.
6. A high-efficiency pipeline microprocessor based on RISC-V as claimed in claim 1, characterized in that: The first output terminal and the second output terminal of the ID\EX register are connected to the first input terminal and the second input terminal of the Forward data forwarding unit respectively; The first output terminal and the second output terminal of the Forward data forwarding unit are connected to the first input terminal and the second input terminal of the EX execution unit respectively.
7. A high-efficiency pipeline microprocessor based on RISC-V as claimed in claim 6, characterized in that: The third input end of the Forward data forwarding unit is connected to the first output end of the MEM_2 memory access unit, and the fourth input end is connected to the output end of the WB write-back unit; The first output terminal of the EX execution unit is connected to the first input terminal of the EX\MEM register, and the second output terminal is connected to the input terminal of the MEM_1 memory access unit.
8. A high-efficiency pipeline microprocessor based on RISC-V as claimed in claim 7, characterized in that: The first output terminal of the MEM_1 memory access unit is connected to the second input terminal of the EX_MEM register, and the second output terminal and the third output terminal of the MEM_1 memory access unit are connected to the AHB bus; The output terminal of the EX_MEM register is connected to the first input terminal of the MEM_2 memory access unit; The second input terminal and the second output terminal of the MEM_2 memory access unit are connected to the AHB bus; The first output end of the MEM_2 memory access unit is connected to the input end of the MEM\WB register; the output end of the MEM\WB register is connected to the input end of the WB write-back unit.
Citation Information
Cited By
Quantitative transaction processor based on RISC-V instruction extension
CN119248352A
Sequential single-emission five-stage assembly line micro-processing system and application
CN121658081A
