RISC-V dual-core processing system based on FPGA

By designing a RISC-V dual-core processing system based on FPGA in the field of rail transit, using 2X2 structure and safety management module, the problem of lack of RISC-V dual-core processing system in the existing technology is solved, and efficient data processing and security guarantee is achieved .

CN118939320APending Publication Date: 2024-11-12CRRC QINGDAO SIFANG ROLLING STOCK RESEARCH INSTITUTE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410957538.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing technology lacks a mature RISC-V dual-core processing system solution, which cannot meet the high requirements for safety and reliability of rail transit electronic systems.

Method used

A RISC-V dual-core processing system based on FPGA is designed, using a dual-core setup with 2X2 structure. The finger fetching module and execution module of the main processor core and the verification processor core work in dual clock cycles, decoding module and data The access module works in a single clock cycle, and the security management module monitors and compares the module to ensure the security of the system operation, and uses OTP technology and ECC intelligent verification technology to ensure the security of programs and data.

Benefits of technology

It improves the parallelism of instruction processing and the overall processing efficiency of the system, ensures the operating security of the system and the integrity of data, and realizes efficient data processing and utilization of storage resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939320A_ABST
    Figure CN118939320A_ABST
Patent Text Reader

Abstract

The invention relates to an RISC-V dual-core processing system based on an FPGA (Field Programmable Gate Array). The RISC-V dual-core processing system comprises an RISC-V processor core, a memory interface, an on-chip memory and an off-chip memory controller, wherein the RISC-V processor core comprises a main processor core and a verification processor core, and is connected with an off-chip memory controller and an on-chip memory through a memory interface; the off-chip memory controller controls reading and writing of the off-chip memory; each of the main processor core and the verification processor core comprises an instruction fetching module, a decoding module, an execution module and a data access module; the instruction fetching module and the execution module work in a double-clock period, and the decoding module and the data access module work in a single-clock period; the system further comprises a safety management module, the safety management module comprises a monitoring comparison module, the output of the execution module of the main processor core and the output of the execution module of the verification processor core are compared, and if the output of any one of the two is inconsistent, a fault state is sent. The technical problem that a dual-core RISC-V-based processing system solution is lacked in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of rail transportation technology, and in particular relates to a RISC-V dual-core processing system based on FPGA. Background Art

[0002] With the rapid development of the rail transit market, the requirements for the safety and reliability of on-board electronic systems are becoming increasingly higher. RISC-V is an open standard instruction set architecture (ISA), and its full name is Reduced Instruction Set Computer V. In this context, RISC-V processor core, as a new type of processor architecture, has the characteristics of open source, flexibility, and low power consumption, and is increasingly favored by electronic system designers. At the same time, FPGA (Field-Programmable Gate Array), whose Chinese name is field programmable gate array, has advantages in flexibility and reconfigurability. With the gradual maturity of FPGA and RISC-V technologies, the joint use of the two has become a technological innovation direction with great potential.

[0003] In terms of RISC-V processor core research, RISC-V has become a commercial ISA in recent years. Many companies already have or are designing RISC-V processors, but the industry does not yet have a relatively mature solution based on a dual-core RISC-V processing system. Summary of the invention

[0004] Aiming at the deficiencies existing in the related art and solving the problem that there is no RISC-V dual-core processing system in the prior art, the present invention provides a RISC-V dual-core processing system based on FPGA.

[0005] In a possible implementation, a RISC-V dual-core processing system based on FPGA is provided, including: a RISC-V processor core, a memory interface, an on-chip memory, and an off-chip memory controller; wherein the RISC-V processor core includes a main processor core and a verification processor core, and the RISC-V processor core is connected to the off-chip memory controller and the on-chip memory through the memory interface; the off-chip memory controller controls the reading and writing of the off-chip memory; the on-chip memory is used to store data and instructions; the main processor core and the verification processor core both include: an instruction fetch module, a decoding module, an execution module, and a data access module; wherein the instruction fetch module is configured to obtain instructions; the decoding module is configured to fetch the instruction fetch module The instructions obtained are translated and operation instructions are generated; the execution module is configured to perform corresponding operations according to the operation instructions generated by the decoding module; the data access module is configured to read and write operands and / or data to the register; wherein the instruction fetch module and the execution module are configured to work in a dual clock cycle, and the decoding module and the data access module are configured to work in a single clock cycle; the processing system also includes: a security management module; wherein the security management module includes: a monitoring and comparison module, which is configured to compare the outputs of the execution modules of the main processor core and the verification processor core, including: address bits and data bits, and control lines; when any of the outputs of the two are inconsistent, a fault state is sent.

[0006] In one possible implementation, the main processor core and the verification processor core are both 2X2 structures; wherein the instruction fetch module and the execution module are configured to simultaneously fetch and execute different instructions in a dual clock cycle; the decoding module and the data access module are configured to simultaneously decode different instructions and access data in a single clock cycle.

[0007] In a possible implementation, the instruction fetch module of the main processor core is configured to obtain instructions from the on-chip memory through a bus; the instruction fetch module of the verification processor is configured to obtain instructions obtained by the value fetch module of the main processor core through the bus.

[0008] In a possible implementation, the security management module is further configured to: use OTP (One-Time Programming) technology for the ROM that stores programs in the memory; and use ECC intelligent verification for the RAM that stores data in the memory.

[0009] In a possible implementation, it also includes: an external device, and the RISC-V processor is connected to the external device via an AXI bus.

[0010] In a possible implementation, the execution module includes an arithmetic logic unit (ALU), a floating point unit (FPU), and a multiplication / division unit.

[0011] In a possible implementation, the processing system uses FPGA as a hardware implementation platform.

[0012] Based on the above technical scheme, the FPGA-based RISC-V dual-core processing system of the present invention adopts a dual-core setting of a 2X2 structure, and the instruction fetch module and the execution module of the main processor core and the verification processor core operate in a dual clock cycle, while the decoding module and the data access module operate in a single clock cycle; such an alternating working mode optimizes the use efficiency of the instruction pipeline, improves the parallelism of instruction processing and the overall processing efficiency of the system; the security management module monitors and compares the address bits, data bits and control lines output by the execution modules of the main processor core and the verification processor core, and sends a fault status when any of the outputs of the two are inconsistent, thereby ensuring the operation safety of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0014] Figure 1 A topological structure diagram of a RISC-V dual-core processing system based on FPGA according to an embodiment of the present invention;

[0015] Figure 2 This is the 2x2 pipeline structure diagram of the processor core;

[0016] Figure 3 Design block diagram for dual processor core redundancy. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0018] In the description of the present invention, it should be understood that the terms "center", "lateral", "longitudinal", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0019] The terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.

[0020] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0021] In order to solve the problem that there is no RISC-V dual-core processing system in the prior art.

[0022] This application provides a RISC-V dual-core processing system based on FPGA, see Figure 1 , Figure 2 and Figure 3 , including: a RISC-V processor core, a memory interface, an on-chip memory, and an off-chip memory controller; wherein the RISC-V processor core includes a main processor core and a check processor core, and the RISC-V processor core is connected to the off-chip memory controller and the on-chip memory through the memory interface; the off-chip memory controller controls the reading and writing of the off-chip memory; the on-chip memory is used to store data and instructions; the main processor core and the check processor core both include: an instruction fetch module, a decoding module, an execution module, and a data access module; wherein the instruction fetch module is configured to fetch instructions; the decoding module is configured to translate the instructions fetched by the instruction fetch module and generate operation instructions; An execution module is configured to perform corresponding operations according to the operation instructions generated by the decoding module; a data access module is configured to read and write operands and / or data to registers; wherein the instruction fetch module and the execution module are configured to operate under a dual clock cycle, and the decoding module and the data access module are configured to operate under a single clock cycle; the processing system also includes: a security management module; wherein the security management module includes: a monitoring and comparison module, configured to compare the outputs of the execution modules of the main processor core and the verification processor core, including: address bits and data bits, and control lines; when any of the outputs of the two are inconsistent, a fault state is sent.

[0023] In the above scheme, the main processor core and the verification processor core are connected to the off-chip memory controller and the on-chip memory through the memory interface, so as to realize the storage and reading and writing of data and instructions; the control unit manages the operation process of the entire processor core, the instruction fetch module is controlled by the control unit to obtain instructions from the on-chip memory, the decoding module translates the obtained instructions into operation instructions, the execution module performs corresponding operations according to these operation instructions, and the data access module is responsible for reading and writing operands and data in the register; the instruction fetch module and the execution module work under dual clock cycles, while the decoding module and the data access module work under single clock cycles, and the security management module compares the outputs of the main processor core and the verification processor core through the monitoring comparison module, and sends a fault status when the two are inconsistent, thereby improving the security of the system.

[0024] The FPGA-based RISC-V dual-core processing system of the above-mentioned implementation mode has efficient data processing capabilities and high security. By configuring the instruction fetch module and the execution module to work in dual clock cycles, the system can process more instructions in the same time period, thereby improving the overall performance. The setting of the security management module ensures the accuracy of the processing results by comparing the output data, effectively avoiding system crashes caused by failures of a single processor core. In addition, the read and write operations of the on-chip memory are controlled by the off-chip memory controller, thereby achieving efficient utilization of storage resources.

[0025] In one possible implementation, the main processor core and the verification processor core are both 2X2 structures; wherein the instruction fetch module and the execution module are configured to simultaneously fetch and execute different instructions in a dual clock cycle; the decoding module and the data access module are configured to simultaneously decode different instructions and access data in a single clock cycle.

[0026] In the above scheme, the main processor core and the check processor core are configured in a 2X2 structure to improve processing efficiency. The decoding module and data access module of the check processor core work in a single clock cycle, ensuring that two different instructions can be decoded and data accessed simultaneously in each clock cycle, thereby ensuring the timeliness and accuracy of data processing.

[0027] By adopting a 2X2 structural configuration, the system can process multiple instructions in parallel within each dual clock cycle, thereby greatly improving data processing efficiency and the overall performance of the system, and improving the system's response speed and processing capabilities.

[0028] See also Figure 3 In a possible implementation, the instruction fetch module of the main processor core is configured to obtain instructions from the on-chip memory through a bus; the instruction fetch module of the verification processor is configured to obtain instructions obtained by the value fetch module of the main processor core through the bus.

[0029] In the above scheme, the instruction fetch module of the main processor core directly obtains instructions from the on-chip memory through the bus, ensuring the timeliness and efficiency of instruction acquisition, while the instruction fetch module of the verification processor core obtains the instructions obtained by the instruction fetch module of the main processor core through the bus, ensuring that the verification processor core can execute the same instructions synchronously, thereby realizing the comparison and verification function of instruction execution results, further improving the reliability and security of the system.

[0030] In a possible implementation, the security management module is further configured to: use OTP (One-Time Programming) technology for the ROM that stores programs in the memory; and use ECC intelligent verification for the RAM that stores data in the memory.

[0031] In the above solution, the security management module uses OTP (One-Time Programming) technology for the ROM that stores programs in the memory, which means that once the program is written into the ROM, it cannot be changed, thereby preventing malicious tampering and ensuring the security of the program. At the same time, the RAM that stores data in the memory uses ECC (Error-Correcting Code) intelligent verification technology, which generates a verification code when writing data and performs verification and error correction when reading data to ensure the integrity and reliability of the data.

[0032] By adopting OTP technology, the program can be effectively prevented from being maliciously tampered with, thus improving the security of the system. The ECC intelligent verification technology ensures the integrity and reliability of stored data through automatic error correction, avoiding data damage caused by storage medium failure or other factors, thereby improving the stability and reliability of the system.

[0033] See also Figure 1 In a possible implementation, it also includes: an external device, the RISC-V processor is connected to the external device via an AXI bus.

[0034] This implementation achieves high-speed data transmission and interaction between the processor and external devices by configuring the RISC-V processor to connect to external devices through the AXI bus; as a high-performance bus protocol, the AXI bus can provide a high-bandwidth and low-latency data transmission channel, ensuring the data exchange efficiency between the processor and external devices.

[0035] This implementation improves the data transmission efficiency and interaction performance between the processor and external devices through the application of the AXI bus; the high bandwidth and low latency characteristics of the AXI bus enable the system to maintain efficient operation under high load, and is suitable for application scenarios that require frequent interaction with external devices.

[0036] In a possible implementation, the execution module includes an arithmetic logic unit ALU, a floating point unit FPU, and a multiplication / division unit.

[0037] This implementation achieves efficient processing of multiple computing functions by configuring ALU, FPU and multiplication / division unit in the execution module; ALU is used to perform basic arithmetic and logic operations, FPU is used to process floating-point operations, and multiplication / division unit is specifically used to perform multiplication and division operations; different computing units process different types of computing tasks respectively, thereby improving the computing power and processing efficiency of the system;

[0038] This implementation achieves parallel processing of multiple computing tasks through the configuration of ALU, FPU and multiplication / division units, thereby improving the computing performance and processing efficiency of the system; especially in application scenarios that require a large number of floating-point operations or complex arithmetic operations, it can significantly improve the computing speed and accuracy.

[0039] In a possible implementation, the system on chip SOC uses FPGA as a hardware implementation platform.

[0040] This implementation method achieves high flexibility and reconfigurability of the system by using FPGA as the hardware implementation platform; FPGA, as a programmable logic device, can dynamically configure and adjust the hardware logic as needed, so that the system can adapt to different application requirements and working environments; by implementing the RISC-V dual-core processing system on the FPGA, the parallel processing capabilities and high-speed data transmission characteristics of the FPGA can be fully utilized to improve the overall performance of the system.

[0041] The RISC-V dual-core processing system based on FPGA according to an embodiment of the present invention is specifically described as follows:

[0042] The present invention provides a structural design of a functional safety RISC-V processor core based on FPGA. The processor core adopts the RISC-V instruction set architecture, combines functional safety requirements, designs a hardware structure for FPGA devices, and implements a minimum instruction set (Minimal Instruction Set) and efficient instruction pipeline execution.

[0043] To achieve the above objectives, the technical solution of the present invention is as follows.

[0044] The functional safety RISC-V system topology of the present invention is as follows Figure 1 As shown in the figure, the system includes a RISC-V processor core, peripheral devices, a memory interface, and a security management module.

[0045] 1. RISC-V processor core

[0046] The processor core includes modules such as the control unit (CU), arithmetic logic unit (ALU), register file, memory interface, and interrupt controller. Among them, the control unit is responsible for instruction decoding and decision-making, and distributes the instruction pipeline to each functional module to implement the execution of instructions; the ALU is the arithmetic logic unit, which is responsible for data calculation operations in the processor; the register file is the register unit, which stores the data and status information in the processor; the memory interface is the interface between the processor and the main memory, which implements data read and write operations; the interrupt controller is the interrupt control unit of the processor, which supports exception and interrupt processing. In order to improve performance and reduce power consumption, key technologies such as specific instructions that retain double-precision floating-point calculations, independent instruction and data caches, switchable static and dynamic instruction scheduling, and globally shared memory and function units are adopted. At the same time, it also has symmetric multi-processor (SMP) expansion technology, which can achieve scalability and high concurrency.

[0047] The RISC-V processor core of this design adopts a 4-stage pipeline of instruction fetch, decoding, execution and data access. Different from the ordinary 4-stage pipeline structure, this design adopts a 2x2 layout for the 4 pipeline stages. In a dual clock cycle, only the instruction fetch and execution stages are activated, and in a single clock cycle, only the decoding and data access stages are activated. Compared with the ordinary 4-stage pipeline structure, this 2x2 structure consumes more registers, but it reduces large blocks of combinational logic, thereby reducing routing resource consumption and increasing the clock frequency. In addition, the register resources in FPGA are abundant, and consuming more registers will not have a negative impact on the entire design.

[0048] (1) The ultimate goal of instruction fetching is to quickly and continuously fetch instructions from the memory for the processor core to execute. The instruction fetch module of this design mainly includes the following functions: simple decoding of the fetched address, simple branch prediction, generating the PC of the instruction fetch, and accessing the ITCM (instruction tightly coupled memory) according to the address of the PC. In order to achieve "fast", this design adopts the ITCM method and configures a small capacity memory for storing instructions. It is physically very close to the processor core and is dedicated to the processor core, so it can achieve a very small access delay. In addition, the ITCM of this design uses a single cycle to access SRAM, that is, one instruction can be retrieved from the ITCM in one cycle, so as to achieve fast instruction fetching. In order to achieve "continuous", it is necessary to generate the PC value of the next instruction to be fetched in each cycle. Therefore, it is necessary to determine whether this instruction is a normal instruction or a branch jump instruction. The branch prediction of this design adopts a simple static prediction. For the conditional branch prediction instruction of the backward jump, it predicts a true jump, while for the branch prediction instruction of the forward jump, it predicts that no jump is required, thereby simplifying the design.

[0049] (2) Decoding is the process of translating instruction information from an instruction. Common information includes the operand register index that the instruction needs to read, the register index that the instruction needs to write back, the instruction type, and operation information.

[0050] (3) Execution is transmitted to a specific operation unit for execution according to the specific operation type. The operation units of this design include an arithmetic logic unit, an integer multiplication unit, an integer division unit, and a floating-point operation unit.

[0051] (4) In the data access phase, general registers are updated, and memory access instructions also access memory in this phase. This design uses a 2x2 pipeline architecture, and the "instruction fetch" phase and the "memory access" phase are arranged in different clock cycles, thereby reducing the possibility of memory access conflicts.

[0052] 2. External devices

[0053] The design uses the AXI standard interface protocol to realize data exchange and communication between the processor and external devices. At the same time, the diagnostic interface and test interface are designed to facilitate system testing and debugging. This design includes commonly used peripherals: CAN, serial UART, I2C bus, SPI interface, PWM and rotary encoder, etc. These peripherals can be flexibly customized according to specific application requirements.

[0054] 3. Memory interface

[0055] The design has both on-chip memory access interface and off-chip memory controller access interface. On-chip memory has fast access speed but small capacity, while off-chip memory has large capacity but large access delay. The design supports the mixed use of on-chip memory and off-chip memory in the design of the memory control unit to support more application scenarios.

[0056] 4. Security management module

[0057] Based on the RISC-V processor core, a functional safety extension module is introduced to achieve functional safety protection of the processor. The extension module includes fault detection, error handling and fault tolerance mechanisms, which can detect, handle and recover in time when the processor fails, ensuring the basic functions and safety of the system.

[0058] This design provides functional safety at both the software and hardware levels, ensuring that the processor core will not cause system failure or endanger personal safety due to any single fault.

[0059] (1) Hardware level

[0060] In order to ensure the functional safety of the processor, this design adopts a dual processor core redundant design. Two identical processor cores are included in one chip, one as the main processor core and the other as the verification processor core. The two processor cores exchange data through the bus and monitor each other during operation. They execute the same code and are strictly synchronized. The main processor core can access the system memory and output instructions, while the verification processor core / slave processor core continuously executes instructions on the bus (that is, instructions obtained by the main processor core). The output generated by the verification processor core / slave processor core, including address bits and data bits, is sent to the monitoring comparison module to check the consistency of the data, address and control lines between them. When any bus value is detected to be inconsistent, it will be found that one of the processor cores is faulty, the system is guided to safety, and the fault status is written to the corresponding control status register.

[0061] In the processor, memory storage is divided into two parts, one is ROM for storing programs, and the other is RAM for storing data. The processor's ROM uses OTP (One-Time Programming) technology to ensure program security. At the same time, the ECC (Error Correction Code) intelligent verification method is used to debug and repair RAM, thereby ensuring the reliability and integrity of the memory.

[0062] (2) Software level

[0063] At the software level, the present invention provides a variety of testing and diagnostic mechanisms, including periodic self-test and dynamic testing, which can detect and repair faults without affecting processor performance. A security manager and a security regulator are designed to manage and monitor the security status of the system. The security manager is responsible for managing the system's security policy and controlling the execution of security functions, while the security regulator is responsible for monitoring the system's operating status, detecting and reporting possible security issues.

[0064] Software security mechanisms also include a security protection system and a memory management unit (MMU), as well as security protection for application software, to detect and prevent software errors and attacks.

[0065] Compared with the prior art, the technical innovations of the present invention include the following points:

[0066] 1. A high-performance, flexible and reconfigurable processor core is implemented by combining FPGA and RISC-V architecture. The processor core supports a variety of peripheral expansions and can be flexibly configured and customized according to the needs of specific applications.

[0067] 2. The dual-processor core redundant design is used to ensure the correctness and reliability of the processor; the memory storage ECC intelligent verification is used to ensure the integrity of access data; and the OTP technology is used to ensure the security of the program.

[0068] 3. A safety manager and safety regulator are designed to manage and control the safety status of the system.

[0069] 4. This design adopts the AXI standard interface protocol to make data exchange and communication between the processor and external devices easier. In addition, a diagnostic interface and a test interface are designed to facilitate system testing and debugging.

[0070] 5. This solution adopts a 4-stage pipeline structure with a 2x2 layout, which can reduce large blocks of combinational logic, thereby reducing routing resource consumption and increasing the clock frequency.

[0071] In summary, the functional safety processor solution based on RISC-V and FPGA of the present invention designs a RISC-V processor and SOC system with a safe and stable structure, which can be widely used in application fields such as rail transportation, automobiles, industry, and consumer electronics.

[0072] The functional safety processor design scheme based on FPGA and RISC-V proposed in this application adopts key technical points such as dual CPU core redundancy design, ECC technology and OTP technology, which can effectively improve the reliability and safety of the processor. Through the design of hardware and software, the system has the characteristics of functional safety and can keep specific functions running in the event of failure or abnormality. At the same time, the scheme is flexible and scalable, and can be customized according to different application scenarios.

[0073] The above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention is described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention, which should be included in the scope of the technical solution for protection of the present invention.

Claims

1. A RISC-V dual-core processing system based on FPGA, It is characterized in that include: RISC-V processor core, memory interface, on-chip memory, and off-chip memory controller; among them, RISC-V processor core, including a main processor core and a check processor core, the RISC-V processor core is connected to an off-chip memory controller and an on-chip memory through a memory interface; The off-chip memory controller controls the reading and writing of off-chip memory; On-chip memory for storing data and instructions; The main processor core and the verification processor core both include: an instruction fetch module, a decoding module, an execution module and a data access module; wherein, an instruction fetch module configured to fetch instructions; A decoding module is configured to translate the instructions obtained by the instruction fetching module and generate operation instructions; An execution module, configured to execute corresponding operations according to the operation instructions generated by the decoding module; A data access module configured to read and write operands and / or data to the register; Wherein, the instruction fetch module and the execution module are configured to work in a dual clock cycle, and the decoding module and the data access module are configured to work in a single clock cycle; The processing system also includes: a security management module; wherein, The safety management module includes: a monitoring comparison module configured to compare the outputs of the execution modules of the main processor core and the verification processor core, including: address bits, data bits, and control lines; when any of the outputs of the two are inconsistent, a fault state is sent.

2. The RISC-V dual-core processing system based on FPGA according to claim 1, It is characterized in that Both the main processor core and the verification processor core have a 2X2 structure; The instruction fetch module and the execution module are configured to simultaneously fetch and execute different instructions in a dual clock cycle; The decoding module and the data access module are configured to simultaneously perform decoding and data access of different instructions in a single clock cycle.

3. The RISC-V dual-core processing system based on FPGA according to claim 2, It is characterized in that in, The instruction fetch module of the main processor core is configured to fetch instructions from the on-chip memory via the bus; The instruction fetch module of the verification processor is configured to fetch the instruction fetched by the value fetch module of the main processor core through the bus.

4. The RISC-V dual-core processing system based on FPGA according to claim 3, It is characterized in that The security management module is also configured to: use OTP (One-Time Programming) technology for the ROM that stores programs in the memory; and use ECC intelligent verification for the RAM that stores data in the memory.

5. The RISC-V dual-core processing system based on FPGA according to claim 4, It is characterized in that Also includes: External devices, the RISC-V processor connects to external devices through the AXI bus.

6. The RISC-V dual-core processing system based on FPGA according to claim 5, It is characterized in that The execution module includes an arithmetic logic unit (ALU), a floating point unit (FPU), and a multiplication / division unit.

7. The RISC-V dual-core processing system based on FPGA according to claim 6, It is characterized in that The processing system uses FPGA as the hardware implementation platform.