Hardware quick interrupt processing system and method for RISC-V architecture

A RISC-V, processing method technology, applied in electrical digital data processing, address formation of the next instruction, program control design, etc., can solve problems such as not fast enough speed, too many interrupt response programs, etc., to shorten the process of fetching instructions , the effect of speeding up interrupt processing

Active Publication Date: 2020-04-21
NANJING QINHENG MICROELECTRONICS CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Purpose of the invention: In order to solve the problem that there are many interrupt response programs in the RISC-V architecture in the

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hardware quick interrupt processing system and method for RISC-V architecture
  • Hardware quick interrupt processing system and method for RISC-V architecture
  • Hardware quick interrupt processing system and method for RISC-V architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments.

[0034] A hardware fast interrupt processing system for RISC-V architecture, including a privileged mode trap vector base address register (mtvec), a privileged mode trap cause register (mcause) and a fast interrupt register group. like image 3 As shown, the fast interrupt register group includes a fast interrupt number register and a fast interrupt address register, the fast interrupt number register stores the fast interrupt number, and the fast interrupt address register stores the address of the interrupt service program corresponding to the fast interrupt number. The privileged mode trap vector base address register is used to store the vector base address of the trap in the privileged mode, and the privileged mode trap vector base address register includes a MODE domain and a BASE domain, and the MODE domain is used to store the privilege...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a hardware quick interrupt processing system and method for RISC-V. The method comprises the following steps: firstly, configuring a quick interrupt register group which comprises a quick interrupt number register and a quick interrupt address register; when an interrupt request is received; updating a privileged mode self-trapping reason register, obtaining an interrupt number according to a self-trapping reason, matching the interrupt number with a quick interrupt number stored in a quick interrupt register set, If the interrupt number is successfully matched with thequick interrupt number, directly skipping to a quick interrupt service program address corresponding to the quick interrupt number by the processor, and executing an interrupt service program; If thematching is unsuccessful, indirectly skipping to a corresponding interrupt service program according to the value of the MODE domain in the privileged mode self-trapping vector base address register.According to the method, the skipping times of the interrupt response program can be reduced from three or two to one, so that the process of taking the instruction from the ROM is greatly shortened,the interrupt processing speed is increased, and the method is suitable for a scene with a relatively high interrupt response speed requirement.

Description

technical field [0001] The invention relates to the technical field of computer processors, in particular to a hardware fast interrupt processing system and a method thereof for RISC-V architecture. Background technique [0002] RISC-V is an open source instruction set architecture officially released by the University of California, Berkeley in 2014. The interrupt types defined by the RISC-V architecture are divided into four types: external interrupts, timer interrupts, software interrupts, and debug interrupts. When entering an exception, according to the hardware behavior specified by the RISC-V architecture, the program stops the current program flow and starts executing from the PC defined by the CSR register MTVEC. According to the value of MTVEC, the program has two jump behaviors when it encounters an exception. The main points are as follows: [0003] The register format of MTVEC is as follows figure 1 As shown, the lower 2 bits are the MODE field, and the remai...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/30G06F9/32
CPCG06F9/30105G06F9/3005G06F9/327Y02D10/00
Inventor 阙庆河
Owner NANJING QINHENG MICROELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products