Exception and interruption processing system and method based on RISC-V architecture

A RISC-V, exception handling technology, applied in the direction of response errors, etc., can solve problems such as the system cannot be recovered, and achieve the effect of speeding up the response speed

Active Publication Date: 2019-06-25
AMOLOGIC (SHANGHAI) CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, in the RISC-V architecture, there is a problem that...

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
  • Exception and interruption processing system and method based on RISC-V architecture
  • Exception and interruption processing system and method based on RISC-V architecture
  • Exception and interruption processing system and method based on RISC-V architecture

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0087] Specifically, such as image 3 As shown, the first embodiment of the interrupt processing method includes the following steps:

[0088] Step S10, when the core of the processor responds to the interrupt request, update the current state of the processor and store the return address of the interrupt handler of the processor, obtain the base address of the interrupt vector of the processor, and start executing the interrupt processing corresponding to the interrupt request model;

[0089] Step S11, after executing the interrupt processing mode corresponding to the interrupt request, update the state of the interrupt processing and the current state of the processor, restore the instruction address of the processor from the return address of the interrupt processing program of the processor, and exit the corresponding interrupt request interrupt handling mode.

[0090] Further, as Figure 4 As shown, the first embodiment of the interrupt processing method includes the f...

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 relates to the technical field of low-power-consumption kernel interrupt processing, in particular to an exception and interruption processing system and method based on an RISC-V architecture. The exception and interruption processing system comprises a mode register, an exception vector base address register, a state register, an exception cause register, an exception return address register, an interruption vector base address register, an interruption state register and an interruption return address register. Beneficial effects are as follows: the feed additive is A mode register is added in a kernel of a processor, and the interrupt vector base address register, the interrupt state register and the interrupt return address register are used for separately processing theinterrupt processing mode and the exception processing mode of the processor, so that a program of the processor can exit from the exception processing mode and the interrupt processing mode when theexception nesting interrupt exists, and the system can recover when the exception nesting interrupt exists.

Description

technical field [0001] The invention relates to the technical field of low-power-consumption kernel interrupt processing, in particular to an exception and interrupt processing system and method based on RISC-V architecture. Background technique [0002] Interrupt mechanism (Interrupt), that is, the processor core is suddenly interrupted by other requests in the process of sequentially executing the program instruction flow and suspends the execution of the current program, and turns to process other things. After it finishes processing other things, then Return to the point where the previous program was interrupted and continue to execute the previous program instruction flow. Among them, the "other request" that interrupts the processor's execution of the program instruction flow is called an interrupt request (Interrupt Request), and the source of the interrupt request is called an interrupt source (Interrupt Source). Usually, the interrupt source is mainly from periphe...

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): G06F11/07
Inventor 吴俊顾冲李青
Owner AMOLOGIC (SHANGHAI) 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