mips platform data access method and device

A data access and data technology, applied in machine execution devices, concurrent instruction execution, etc., can solve problems such as system error data access, program compilation efficiency and execution efficiency decline, and memory utilization decline.

Active Publication Date: 2019-10-01
LOONGSON TECH CORP
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] However, in the prior art, because the data is forced to be aligned by inserting blank bytes in the memory, the memory utilization rate is severely reduced, and changing the offset address of the data may lead to wrong data access in the entire system, resulting in program compilation efficiency and execution efficiency is severely reduced

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
  • mips platform data access method and device
  • mips platform data access method and device
  • mips platform data access method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 5

[0125] Embodiment 5 is another MIPS platform data access method of the present invention provided on the basis of Embodiment 1. The MIPS platform data access method provided by this embodiment may also include:

[0126] If the data to be accessed is aligned, the MIPS instruction corresponding to the storage attribute set is selected according to the storage attribute set, the data to be accessed is loaded from the memory into the register, or the data to be accessed is stored from the register to the memory.

[0127] The MIPS instructions include: lbu instruction, lb instruction, lhu instruction, lh instruction, lwu instruction, lw instruction, ld instruction, lwc1 instruction, ldc1 instruction, sb instruction, sh instruction, sw instruction, sd instruction, swc1 instruction or sdc1 instruction .

[0128] In this embodiment, the specific meaning of each instruction is shown in Table 4.

[0129] Table 4

[0130] instruction meaning lbu Single-byte load and ...

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 provides an MIPS (million instructions per second) platform data accessing method and device, wherein the MIPS platform data accessing method comprises: acquiring input parameters of memory access macroinstructions in a complier; acquiring a storage attribute set of data to be accessed according to the input parameters, wherein the storage attribute set includes data types and number of bytes; if the data to be accessed are incomplete, selecting an MIPS instruction corresponding to the storage attribute set according to the same, and loading the data to be accessed into a register, or storing the data to be accessed from the register to a memory. According to the MIPS platform data accessing method provided herein, when the data are incomplete, the corresponding MIPS instructions are selected through the storage attribute set of the data to access the data, system memory waste is avoided, and program compiling efficiency and executing efficiency are improved.

Description

technical field [0001] The invention relates to the field of computer data access, in particular to a method and device for data access on a microprocessor (Million Instructions Per Second, MIPS) platform without interlocking pipeline level. Background technique [0002] Under the MIPS platform, there are corresponding access instructions for accessing data of different data types. For example, the lh instruction means to load a double-byte integer aligned data from memory and sign-extend to the entire register, and the lw instruction means to load the data from the memory. A four-byte integer-aligned data is loaded into memory and sign-extended to the entire register. Among them, aligned data means that the starting address of the data in the memory can be divisible by the number of bytes corresponding to the data type of the data. On the contrary, unaligned data means that the starting address of the data in the memory cannot be corresponding to the data type of the data. ...

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): G06F9/38
Inventor 余银黄文军彭飞
Owner LOONGSON TECH CORP
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