Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method of using cache as memory based on Loongson processor platform

A Godson processor and high-speed cache technology, which is applied in the direction of electrical digital data processing, instruments, memory systems, etc., can solve problems such as inability to guarantee data, and achieve the effect of avoiding the risk of downtime

Active Publication Date: 2021-08-31
江苏航天龙梦信息技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The two lock mechanisms have their own advantages and disadvantages: the advantage of using the Cache15 instruction is that the virtual address can be used directly to lock the Cache operation, and if the data is not in the S-Cache, the Cache line to be locked will be retrieved to the S-Cache and then locked. The disadvantage is that the Cache lock and release operations need to be performed one by one, and there is a certain overhead; the advantage of using the lock window mechanism is that it can lock a large continuous address space by configuring it once (writing 3 lock window configuration registers). (Theoretically no more than 15 / 16 of the S-Cache capacity, that is, 3.75MB), the disadvantage is that the configuration must use physical address information, which requires special support from the operating system kernel, and there is no guarantee that the data must be in the S-Cache after configuration
[0009] The four sets of lock window registers inside the shared Cache module can be dynamically configured through the chip configuration register space, but it must be ensured that one of the 16 shared Cache channels must not be locked.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be further described below in conjunction with the examples, but not as a limitation of the present invention.

[0026] The hardware platform used in the present invention is based on the Loongson 3A1500 processor, and the software platform is based on UEFI's UDK2015. The official UDK2015 does not have the support of the MIPS architecture to which the Loongson CPU belongs, so the UDK2015 here is based on the official modification and added support Code for the MIPS architecture.

[0027] The method that the cache memory of the present invention is made memory is such that the specific steps of above-mentioned platform are:

[0028]LS3A1500 is a CPU with single NODE and four CORE structure. After power-on, each CORE will fetch and run from the space starting from the physical address 0X1FC00000 (Godson physical address allocation will map this address to the XIP-able FLASH ROM). For the firmware, the overall software architecture is relatively...

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 method for using the high-speed cache of the Godson processor platform as a memory, which includes the following steps in turn: S1, ensuring the synchronization and mutual exclusion of each core of the CPU; S2, locking a shared cache with a certain capacity as the memory as required ; S3, copy the code belonging to the SEC and PEI stages of UEFI from the ROM to the shared cache used as memory in step S2; S4, set the stack and heap, jump from the assembly environment to the shared cache as C in the memory The environment continues to execute the code; S5. Execute the relevant codes of SEC and PEI and initialize the system memory; S6. After the initialization of the system memory is completed, before the execution process enters DXE from PEI, unlock the shared cache area locked by step S2 and used as memory. The method realizes using the cache memory as memory on the Loongson processor platform.

Description

technical field [0001] The invention relates to a method for using a high-speed cache as a memory, in particular to a method for using a high-speed cache as a memory based on a Godson processor platform. Background technique [0002] When the CPU starts, it usually fetches instructions from the ROM (here generally refers to ROM, EPROM, EERPOM, and NORFlash). Before the memory (RAM) is initialized to be available, the instructions to be executed by the CPU are obtained from the ROM. The XIP (eXecuteIn Place) attribute of the ROM brings certain convenience, that is, the ROM already has a part of the characteristics of the RAM, and the content on it can be read and executed directly by the CPU as instructions. However, the read-only nature of ROM and its slow reading speed also impose certain restrictions on the writing of instructions carried on it. Since the ROM is read-only, it means that the stack and heap cannot be opened for writing and updating. Therefore, instructions ...

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): G06F12/1045
CPCG06F12/1054
Inventor 钱宇力孙海勇吴少刚张福新
Owner 江苏航天龙梦信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products