Memory access method, crossbar and computer system

A technology of computer system and crossbar switch, applied in the direction of memory system, calculation, memory address/allocation/relocation, etc., can solve the problems that cannot meet GPU memory requirements, memory access methods cannot meet GPU memory requirements, etc.

Active Publication Date: 2020-03-31
LOONGSON TECH CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example: based on the microprocessor (Microprocessor Without interlocked Piped Stages, referred to as: MIPS) 64 architecture without internal interlocking pipeline stage, GPU32 can theoretically access 2 32 = 4G memory space, the corresponding address range is 0-0xffffffff, however, only 256MB of memory space in the 4G memory space can not be used to store page tables, therefore, the GPU can only compete with other devices for the 256MB memory space , however, the memory requirement of the GPU is 4G, so 256MB cannot meet the memory requirement of the GPU
[0004] In summary, the memory access methods of the prior art cannot meet the memory requirements of the GPU

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
  • Memory access method, crossbar and computer system
  • Memory access method, crossbar and computer system
  • Memory access method, crossbar and computer system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] In order to solve the problem that the existing memory access method cannot meet the requirements of the GPU for memory, an embodiment of the present invention provides a memory access method, a crossbar switch and a computer system, wherein the method is applied to a microprocessor MIPS without an internal interlocking pipeline stage The computer system of framework, this computer system comprises: central processing unit CPU, internal memory, crossbar switch and graphics processing unit GPU, crossbar switch is connected with internal memory and GPU respectively, and wherein, the bit number of the binary number that CPU can process once per unit time Greater than the number of bits of the binary number that the GPU can process once per unit time, in the embodiment of the present invention, the memory can be a random access memory (Random Access Memory, RAM for short), a read-only memory (Read-Only Memory, ROM for short) ), or cache (CACHE).

[0041] Specifically, this ...

Embodiment 2

[0049] Based on the basis of Embodiment 1, an optional manner is specifically as follows:

[0050] image 3 A flowchart of a memory access method provided by another embodiment of the present invention, such as image 3 As shown, the method specifically includes the following processes:

[0051] S301: The crossbar receives an access request message sent by the GPU, and the access request message includes: a start address corresponding to the memory space to be accessed;

[0052] S302: The crossbar judges whether the initial address is greater than or equal to the first address, if greater than or equal to, execute S303; otherwise, execute S304;

[0053] S303: The crossbar performs an OR operation on the starting address and the next address of the second address to obtain a mapping address, and the GPU accesses the memory space starting from the mapping address;

[0054] S304: The GPU directly accesses the memory space starting from the starting address.

[0055] Specifica...

Embodiment 3

[0058] Based on the basis of Embodiment 1, another optional manner is specifically as follows:

[0059] Figure 4 The flowchart of the memory access method provided for another embodiment of the present invention, such as Figure 4 As shown, the method specifically includes the following processes:

[0060] S401: The crossbar receives an access request message sent by the GPU, and the access request message includes: a start address corresponding to the memory space to be accessed;

[0061] S402: The crossbar judges whether the starting address is greater than or equal to the first address, if greater than or equal to, execute S403; otherwise, execute S406;

[0062] S403: The crossbar determines a first difference between the start address and the second address, and a second difference between the start address and the third address;

[0063] S404: The crossbar determines an offset based on the start address according to the first difference and the second difference, wher...

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 embodiment of the invention provides a memory access method, a crossbar switch and a computer system. The method includes: receiving an access request message, which is sent by a GPU (Graphic Processing Unit), by the crossbar switch, wherein the access request message includes an initial address corresponding to to-be-accessed memory space; and determining a mapping address, which corresponds to the initial address, by the crossbar switch to enable the GPU to access memory space, which starts from the mapping address, if the initial address is greater than or equal to a first address, wherein the first address is a highest address corresponding to memory space which the GPU can actually access before the crossbar switch determines the mapping address, the mapping address is between a second address and a third address, the second address is a highest address corresponding to memory space which the GPU can theoretically access, the third address is a highest address of a memory, the first address is less than the second address, and the second address is less than the third address. Therefore, a memory requirement of the GPU is met.

Description

technical field [0001] The embodiment of the present invention relates to memory access technology, in particular to a memory access method, a crossbar switch and a computer system. Background technique [0002] With the continuous development of computer technology, many computers currently include not only a central processing unit (Central Processing Unit, referred to as CPU), but also a graphics processing unit (Graphic Processing Unit, referred to as GPU). [0003] When the number of binary digits that the GPU can process once per unit time is less than the number of binary digits that the CPU can process once per unit time, the GPU can be determined according to the number of binary digits that the GPU can process once per unit time. Theoretically accessible memory space, since part of the memory space in the memory is used to store page tables, therefore, the GPU can only remove the memory space used to store page tables on the basis of theoretically accessible memory...

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/06
CPCG06F12/0607
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