Method and device for register mapping from multiple instruction set architecture to RISC-V instruction set architecture

A RISC-V, instruction set architecture technology, applied in instrumentation, error detection/correction, computing, etc., can solve problems such as instruction type limitations, instruction architecture limitations, inability to apply automatic register mapping, etc., to achieve rich ecology, transplantation Work efficiently

Active Publication Date: 2022-07-29
PLA STRATEGIC SUPPORT FORCE INFORMATION ENG UNIV PLA SSF IEU
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. Due to the limitations of instruction types, it is impossible to map vector registers and mixed registers under the vector instruction type
[0004] 2. Instruction architecture limitations, unable to apply to multiple instruction set architectures Register automatic mapping for RISC-V instruction set architecture
[0005] 3. In the field of new-generation information technology, the ecology of RISC-V instruction set architecture is not mature enough, and some methods are urgently needed to accurately and efficiently transplant the advantages of mature instruction set architecture to RISC-V instruction set architecture

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
  • Method and device for register mapping from multiple instruction set architecture to RISC-V instruction set architecture
  • Method and device for register mapping from multiple instruction set architecture to RISC-V instruction set architecture
  • Method and device for register mapping from multiple instruction set architecture to RISC-V instruction set architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0050] like figure 1 As shown, the method for register mapping from a multiple instruction set architecture to a RISC-V instruction set architecture in this embodiment includes the following steps:

[0051] Step S11, traverse the source assembler, analyze whether the type of the source assembler instruction is a vector instruction or a scalar instruction, and further obtain the register category stored behind the mnemonic; Utilize th...

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 belongs to the technical field of automatic transplantation of assembly function libraries and assembler program testing, and in particular relates to a method and device for register mapping from a multi-instruction set architecture to a RISC-V instruction set architecture. The method includes: if the source assembly instruction is a scalar instruction, then The register is a scalar register, and performs scalar register mapping between the source instruction set architecture and the RISC‑V instruction set architecture; if the source assembly instruction is a vector instruction, the register is a vector register or a mixed register; if the register is a vector register, the source instruction is performed. The vector register bank mapping between the source instruction set architecture and the RISC‑V instruction set architecture; if the registers are mixed registers, the scalar registers are extracted for the scalar register mapping between the source instruction set architecture and the RISC‑V instruction set architecture, and the remaining Mapping of vector register sets between source instruction set architecture and RISC‑V instruction set architecture for vector registers. The invention is suitable for automatic mapping of registers of various instruction set architectures oriented to the RISC-V instruction set architecture.

Description

technical field [0001] The invention belongs to the technical field of automatic transplantation of assembler function libraries and assembler program testing, and in particular relates to a method and device for register mapping from a multi-instruction set architecture to a RISC-V instruction set architecture. Background technique [0002] The technologies involved in register mapping include mapping methods for scalar registers, which are only applicable to a single instruction set architecture to map scalar registers for the RISC-V instruction set architecture. The vector registers and mixed registers under the vector instruction type have not been mapped. So there are the following disadvantages: [0003] 1. The instruction type is limited, and the vector registers and mixed registers under the vector instruction type cannot be mapped. [0004] 2. Due to the limitations of the instruction architecture, it cannot be applied to the automatic register mapping of multiple...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3672
Inventor 许瑾晨李飞郭绍忠周蓓郝江伟
Owner PLA STRATEGIC SUPPORT FORCE INFORMATION ENG UNIV PLA SSF IEU
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