On-chip system performing address translation and operating method thereof

By using a translation backup buffer to store the mapping information of frequently used addresses in the system-on-chip and utilizing prefetch commands, the problem of excessive waiting time when converting virtual addresses to physical addresses is solved, thus improving system performance.

CN114595187BActive Publication Date: 2026-11-24SAMSUNG ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111241963.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-12-03
Filing Date
2021-10-25
Publication Date
2026-11-24
Estimated Expiration
2041-10-25

AI Technical Summary

Technical Problem

The memory management unit of existing on-chip systems needs to load mapping information from the memory device when translating virtual addresses into physical addresses, which results in excessive waiting time and affects system performance.

Method used

By introducing first and second memory management units into the system-on-a-chip, the mapping information of frequently used addresses is stored using a translation backup buffer, and the unstored mapping information is preloaded into the buffer using a prefetch command, thereby reducing the waiting time.

Benefits of technology

This effectively reduces the waiting time for multiple memory management units to load mapping information, thus improving system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114595187B_ABST
    Figure CN114595187B_ABST
Patent Text Reader

Abstract

An on-chip system for performing address translation and a method of operating the same are provided. The method of operating the on-chip system includes: outputting a prefetch command in response to an update of mapping information associated with a first read target address, the update occurring in a first translation backup buffer circuit storing first mapping information of a second address associated with the first address; and storing second mapping information of a third address associated with at least some of the second addresses of an address block, the address block including the second read target address, in response to the prefetch command in a second translation backup buffer circuit.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is based on and claims priority to Korean Patent Application No. 10-2020-0167331, filed on December 3, 2020, with the Korean Intellectual Property Office, the entire disclosure of which is incorporated herein by reference. Technical Field

[0002] At least some exemplary embodiments of the inventive concept relate to a system-on-a-chip, and more specifically, to a system-on-a-chip that performs address translation. Background Technology

[0003] In the process of translating virtual addresses into physical addresses, the system-on-a-chip's memory management unit (MMU) receives mapping information of the physical addresses associated with the virtual addresses from a memory device that stores address translation tables. Whenever the MMU receives a translation request for a virtual address, it spends a long time waiting to receive the mapping information from the memory device, and the system performance is significantly degraded due to the long wait time. Summary of the Invention

[0004] At least some exemplary embodiments of the inventive concept provide an efficient system-on-a-chip that reduces the waiting time for multiple memory management units (MMUs) to load mapping information.

[0005] According to at least some exemplary embodiments of the inventive concept, a method of operating a system is provided, the method comprising: outputting a prefetch command in response to an update of mapping information associated with a first read target address, the update occurring in a first translation backup buffer circuit, the first translation backup buffer circuit storing first mapping information of a second address associated with the first address; and storing second mapping information of a third address associated with at least some second addresses of an address block, the address block including a second read target address, in response to the prefetch command in a second translation backup buffer circuit.

[0006] According to at least some example embodiments of the inventive concept, a system is provided, the system comprising: a first memory management unit (MMU) circuit configured to output a prefetch command in response to an update of mapping information associated with a first read target address, the update occurring in a first translation back buffer circuit storing first mapping information of a second address associated with the first address; and a second MMU circuit configured to store second mapping information of a third address associated with at least some second addresses of an address block, the address block including a second read target address, in response to the prefetch command.

[0007] According to at least some exemplary embodiments of the inventive concept, a system-on-a-chip (SoC) is provided, the SoC comprising: a first translation backup buffer circuit storing at least some of the first mapping information of a second address associated with a first address; a second translation backup buffer circuit storing at least some of the second mapping information of a third address associated with the second address; a prefetch command generation circuit configured to output a prefetch command in response to receiving update information for updating the mapping information of a second read target address associated with a first read target address to the first translation backup buffer circuit; and a prefetch control logic circuit configured to provide a lookup signal for an address block, including the second read target address, to the second translation backup buffer circuit in response to the prefetch command. Attached Figure Description

[0008] The above and other features and advantages of the inventive concept will become clearer from the detailed description of exemplary embodiments of the inventive concept with reference to the accompanying drawings. The drawings are intended to depict exemplary embodiments of the inventive concept and should not be construed as limiting the intended scope of the claims. Unless explicitly emphasized, the drawings are not to be considered as drawn to scale.

[0009] Figure 1 It is a schematic structural block diagram of a system based on at least some exemplary embodiments of the inventive concept;

[0010] Figure 2 It is a flowchart of a method of operating a system based on at least some exemplary embodiments of the inventive concept;

[0011] Figure 3 This is a block diagram illustrating the architecture of a system-on-chip according to at least some exemplary embodiments of the inventive concept, the system-on-chip including a management program for controlling access permissions between multiple operating systems;

[0012] Figure 4 This is a structural block diagram of a system including multiple memory management units (MMUs) according to at least some exemplary embodiments of the inventive concept;

[0013] Figure 5 This is a block diagram illustrating a memory device for storing address mapping information in multiple operating systems, according to at least some example embodiments of the inventive concept;

[0014] Figure 6 This is a block diagram illustrating a first memory management unit (MMU) according to at least some exemplary embodiments of the inventive concept;

[0015] Figure 7 It is by Figure 6 A flowchart of a method for performing an update by a first MMU according to at least some exemplary embodiments of the inventive concept;

[0016] Figure 8 It is by Figure 6 A flowchart of a method for outputting prefetch commands to a first MMU according to at least some exemplary embodiments of the inventive concept;

[0017] Figure 9 This is a diagram illustrating mapping information stored in a first conversion backup buffer according to at least some example embodiments of the inventive concept;

[0018] Figure 10 It is a block diagram of a configuration for generating prefetch commands associated with multiple address blocks, based on at least some example embodiments of the inventive concept;

[0019] Figure 11 This is a flowchart of a method for outputting prefetch commands from a first MMU according to at least some exemplary embodiments of the inventive concept;

[0020] Figure 12 This is a block diagram illustrating at least some exemplary embodiments of a second MMU according to the inventive concept;

[0021] Figure 13 yes Figure 12 A flowchart of the operation method of the second MMU according to at least some exemplary embodiments of the inventive concept; and

[0022] Figure 14 This is a flowchart of a method for updating mapping information related to a prefetch target address by a second MMU according to at least some example embodiments of the inventive concept. Detailed Implementation

[0023] As is customary in the field of inventive conception, embodiments are described and illustrated in the accompanying drawings according to functional blocks, units, and / or modules. Those skilled in the art will understand that these blocks, units, and / or modules are physically implemented by electronic (or optical) circuits (such as logic circuits, discrete components, microprocessors, hardwired circuits, memory elements, wiring connections, etc.) that can be formed using semiconductor-based manufacturing techniques or other manufacturing techniques. Where blocks, units, and / or modules are implemented by microprocessors or the like, they can be programmed using software (e.g., microcode) to perform the various functions discussed herein and can be driven by firmware and / or software. Alternatively, each block, unit, and / or module can be implemented by dedicated hardware, or can be implemented as a combination of dedicated hardware for performing some functions and a processor (e.g., one or more programmed microprocessors and associated circuitry) for performing other functions. Furthermore, without departing from the scope of the inventive conception, each block, unit, and / or module of an embodiment can be physically separated into two or more interactive and discrete blocks, units, and / or modules. Furthermore, without departing from the scope of the inventive concept, the blocks, units, and / or modules of the embodiments can be physically combined into more complex blocks, units, and / or modules.

[0024] Figure 1 It is a schematic structural block diagram of a system based on at least some exemplary embodiments of the inventive concept.

[0025] Reference Figure 1 A system according to at least some example embodiments of the inventive concept may include a first memory management unit (MMU) (MMU1) 10, a second MMU (MMU2) 20, and a memory device (or memory) 30. The MMU can generate an address for accessing stored data in response to an address access request. According to at least some example embodiments of the inventive concept, the MMU can receive address mapping information from a memory storing address mapping information and translate the requested virtual address into a physical address. When multiple MMUs exist, each MMU can output the translated address of an address received from another MMU. For example, when the multiple MMUs include a first MMU 10 and a second MMU 20, the first MMU 10 can receive a virtual address from an external device and generate an intermediate physical address, and the second MMU 20 can receive the intermediate physical address from the first MMU 10 and generate a physical address.

[0026] The memory device 30 can store multiple mapping information entries corresponding to multiple MMUs respectively. The mapping information can be referred to as address translation information, and for example, translation information for intermediate physical addresses corresponding to virtual addresses can be stored as a table. Multiple MMUs can request mapping information related to the addresses to be translated from the memory device 30, and each MMU can perform address translation by reading the mapping information from the memory device 30.

[0027] The first MMU 10 can receive a virtual address and output an intermediate physical address associated with the received virtual address. The first MMU 10 may include first control logic (control logic 1) 120 and a first lookaside buffer (TLB 1) 130, and according to at least some example embodiments of the inventive concept, the first MMU 10 may also include a prefetch command generator 110. Any one or all of the first control logic 120, the first lookaside buffer 130, and the prefetch command generator 110 of the first MMU 10 may be implemented by processing circuitry (such as hardware including logic circuitry, a hardware / software combination executing software, or a combination thereof). For example, more specifically, the processing circuitry may include, but is not limited to, one or more of a central processing unit (CPU), processor core, arithmetic logic unit (ALU), digital signal processor, microprocessor, microcomputer, field-programmable gate array (FPGA), programmable logic unit, application-specific integrated circuit (ASIC), etc. Therefore, in this specification, the first control logic 120, the first conversion backup buffer 130, the prefetch command generator 110, and the first MMU 10 can also be referred to as the first control logic circuit 120, the first conversion backup buffer circuit 130, the prefetch command generation circuit 110, and the first MMU circuit 10.

[0028] The first control logic 120 may request first mapping information MAP1 related to the first read target address ADDR1 to be translated from the first translation backup buffer 130 or the memory device 30, and receive the first mapping information MAP1 related to the first read target address ADDR1 to generate a second read target address ADDR2. The first read target address ADDR1 may refer to the virtual address to be translated in the virtual address, and the second read target address ADDR2 may indicate the intermediate physical address to be translated in the intermediate physical address. In the following, the mapping information of the intermediate physical address related to the virtual address may be referred to as the first mapping information MAP1.

[0029] The first translation backup buffer 130 may be a storage area in the first MMU 10 that caches the first mapping information MAP1 associated with the virtual address. The first control logic 120 of the first MMU 10 may store a portion of the first mapping information MAP1, which is the focus of access, from the first mapping information MAP1 associated with the virtual address, in the first translation backup buffer 130. (See below for further details.) Figure 9 The first conversion backup buffer 130, which stores the first mapping information MAP1, is described in detail.

[0030] According to at least some example embodiments, the first MMU 10 can determine whether first mapping information MAP1 associated with the first read target address ADDR1 is stored in the first translation back buffer 130, and determine whether to update the first translation back buffer 130 based on whether the first mapping information MAP1 is stored. When the first MMU 10 determines to update the first translation back buffer 130, the prefetch command generator 110 can generate a prefetch command CMD. When the first translation back buffer 130 is updated for the first read target address ADDR1, the prefetch command CMD can be a command used by the second MMU 20 to update at least a portion of the second mapping information MAP2 associated with the address block including the second read target address ADDR2 to the second translation back buffer 230.

[0031] The second MMU 20 can receive an intermediate physical address and output a physical address corresponding to the received intermediate physical address. The second MMU 20 may include a second control logic (control logic 2) 220 and a second translation backup buffer (TLB2) 230, and according to at least some example embodiments of the inventive concept, the second MMU 20 may also include prefetch control logic 210. Any one or all of the second control logic 220, the second translation backup buffer 230, and the prefetch control logic 210 of the second MMU 20 may be implemented by processing circuitry (such as hardware including logic circuitry, a hardware / software combination executing software, or a combination thereof). For example, more specifically, the processing circuitry may include, but is not limited to, one or more of a central processing unit (CPU), processor core, arithmetic logic unit (ALU), digital signal processor, microprocessor, microcomputer, field-programmable gate array (FPGA), programmable logic unit, application-specific integrated circuit (ASIC), etc. Therefore, in this specification, the second control logic 220, the second translation backup buffer 230, the prefetch control logic 210, and the second MMU 20 can also be referred to as the second control logic circuit 220, the second translation backup buffer circuit 230, the prefetch control logic circuit 210, and the second MMU circuit 20. The second control logic 220 can request second mapping information MAP2 related to the second read target address ADDR2 received from the first MMU 10 from the second translation backup buffer 230 or the memory device 30, and receive the second mapping information MAP2 related to the second read target address ADDR2 to generate a third read target address ADDR3. Similar to the first translation backup buffer 130, the second translation backup buffer 230 can store a portion of the second mapping information MAP2 from which access is concentrated. In the following text, the mapping information of the physical address corresponding to the intermediate physical address can be referred to as the second mapping information MAP2.

[0032] According to at least some example embodiments, the second MMU 20 can receive a prefetch command CMD generated by the first MMU 10 to generate a prefetch target address and perform an update on the prefetch target address. The prefetch target address may be an address including an address block containing a second read target address ADDR2, wherein this address is determined to need to be updated in the second translation backup buffer 230. The prefetch control logic 210 can send a translation request for the prefetch target address to the second control logic 220, which can request second mapping information MAP2 associated with the prefetch target address from the memory device 30. Having received the second mapping information MAP2, the second control logic 220 can update the second mapping information MAP2 associated with the prefetch target address to the second translation backup buffer 230.

[0033] Therefore, for systems according to at least some example embodiments, in the process of translating virtual addresses to physical addresses based on multiple MMUs, the physical address corresponding to the virtual address to which the access is concentrated can be pre-stored in a translation backing buffer, thereby reducing the waiting time for loading mapping information and performing address translation. According to at least some example embodiments of the inventive concept, the virtual address may be referred to as a first address, the intermediate physical address may be referred to as a second address, and the physical address may be referred to as a third address. (Refer to...) Figure 1 The present invention describes an embodiment in which a system translates virtual addresses into physical addresses via a first MMU 10 and a second MMU 20. However, according to at least some example embodiments of the inventive concept, the number of MMUs used for translating virtual addresses into physical addresses is not limited thereto. A system according to at least some example embodiments of the inventive concept may include three or more MMUs, and some of the multiple MMUs may include both a prefetch command generator 110 and prefetch control logic 210 to pre-store mapping information related to the address to which the access is focused in a translation backup buffer.

[0034] Figure 2 It is a flowchart of a method of operating a system based on at least some exemplary embodiments of the inventive concept.

[0035] Reference Figure 2 The system according to at least some example embodiments of the inventive concept can output a prefetch command CMD in response to an update of the first translation back buffer 130, and store second mapping information MAP2 associated with the prefetch target address in the second translation back buffer 230 in response to the prefetch command CMD.

[0036] In operation S10, the system can determine whether the first translation backup buffer 130 has been updated. When the first translation backup buffer 130 is updated, it may be in the following situation: when the system's first MMU 10 receives a translation request for the first read target address ADDR1, the first mapping information MAP1 associated with the first read target address ADDR1 is not stored in the first translation backup buffer 130. That is, when the first MMU 10 cannot use the first mapping information MAP1 stored in the first translation backup buffer 130 to generate the second read target address ADDR2 corresponding to the first read target address ADDR1, and the first mapping information MAP1 associated with the first read target address ADDR1 is received from the memory device 30, the first MMU 10 can update the first translation backup buffer 130 with the first mapping information MAP1 associated with the first read target address ADDR1 read from the memory device 30. In operation S10, when the system has determined that the first translation backup buffer 130 does not need to be updated because the first mapping information MAP1 associated with the first read target address ADDR1 is stored in the first translation backup buffer 130, the operation can be terminated without outputting the prefetch command CMD.

[0037] In operation S20, the system may output a prefetch command CMD in response to an update of the first translation back buffer 130. The system may update the first translation back buffer 130 with a second read target address ADDR2 corresponding to the first read target address ADDR1. For example, the system may update the first translation back buffer 130 by mapping an address block including the second read target address ADDR2 to an address tag corresponding to the first read target address ADDR1. The address tag may be indicator information specifying the location in the first translation back buffer 130 where mapping information associated with the first read target address ADDR1 is stored. In one example, the address tag may include an indicator specifying the location in the first translation back buffer circuit where the update of the first mapping information is performed.

[0038] When the system updates the address tags and address blocks in the first translation backup buffer 130 according to at least some example embodiments of the inventive concept, a prefetch command CMD for the address block can be output to the second MMU 20. The prefetch command CMD for the address block can be a command for determining whether second mapping information MAP2 corresponding to the physical address included in the address block is stored in the second translation backup buffer 230.

[0039] In operation S30, in response to the output of the prefetch command CMD, the system may store the second mapping information MAP2 associated with the prefetch target address in the second translation backup buffer 230. The prefetch target address may be an address block that includes the second read target address ADDR2, wherein this address is determined to need to be updated in the second translation backup buffer 230. The system may determine whether the second mapping information MAP2 associated with each of the plurality of intermediate physical addresses included in the address block is stored in the second translation backup buffer 230. The system may determine an intermediate physical address whose second mapping information MAP2 is not stored in the second translation backup buffer 230 as the prefetch target address. The system may request the second mapping information MAP2 associated with the determined prefetch target address from the memory device 30 and store the second mapping information MAP2 received in response to the request in the second translation backup buffer 230.

[0040] Figure 3 This is a block diagram illustrating the architecture of a system-on-a-chip according to at least some example embodiments of the inventive concept, the system-on-a-chip including a hypervisor that controls access permissions between multiple operating systems.

[0041] Reference Figure 3 The architecture of the on-chip system according to at least some example embodiments of the inventive concept may include a security domain requiring a high level of security and a non-security domain requiring only a lower level of security compared to the security domain. The architecture of the on-chip system may be divided into multiple exception levels (ELs) indicating the permission levels of the corresponding domains, and Figure 3 The architecture can be divided into four levels of exception levels. Level 0 (EL0) can be the user region where the actual application operates. Level 1 (EL1) can be the level where the operating system (OS) exists and the kernel is used to perform tasks such as allocating various devices and memory. Level 2 (EL2), included in the non-security domain, is the region containing the hypervisor and can control access permissions between operating systems. Level 3 (EL3), included in the security domain, is the level where a security monitor exists and can provide a reliable source within the coding system.

[0042] Aside from virtualization, the on-chip system described in the comparative example does not use Level 2 EL2 exception level in mobile or embedded systems. However, in on-chip systems requiring high performance (e.g., neural processors (NPUs)), security requirements increase, and virtualization-based security technologies with Level 2 EL2 exception level are needed due to the difficulty in meeting all security requirements across the security domain. Furthermore, the need for strict access control over the memory regions of the on-chip system due to various direct memory access (DMA) devices and attack models via external interfaces leads to hypervisor-based EL2 solutions.

[0043] For access control based on Level 2 exception level EL2 in a system-on-a-chip (SoC), in addition to the address translation between virtual addresses and intermediate physical addresses controlled in the existing Level 1 exception level EL1, address translation between intermediate physical addresses and physical addresses controlled at Level 2 exception level EL2 also needs to be performed. However, because the SoC needs to additionally load mapping information from the address mapping information table to perform address translation at Level 2 exception level EL2, this leads to an increase in latency due to loading. In other words, when the SoC performs additional address translation, it increases latency and significantly degrades system performance.

[0044] Figure 4 This is a structural block diagram of a system including multiple memory management units (MMUs) according to at least some exemplary embodiments of the inventive concept.

[0045] Reference Figure 4 The system according to at least some example embodiments of the inventive concept may include multiple MMUs, a host central processing unit (CPU), DMA devices, and memory controllers. Furthermore, the system may include an interconnect subsystem connecting the multiple DMA devices to each other and an interconnect system connecting the multiple memory controllers to each other. For example, the multiple DMA devices may include real-time DMA devices.

[0046] Included in the host CPU MMU (e.g., Figure 4 The CPU MMU (Memory Management Unit) provides physical addresses to the interconnect system by translating virtual addresses into intermediate physical addresses and vice versa. The host CPU is a component with an embedded MMU and can be directly connected to the interconnect system to communicate with the memory controller.

[0047] The interconnect subsystem can connect multiple DMA devices to each other. DMA devices can use virtual addresses, and at least one DMA device can translate virtual addresses into physical addresses to communicate with dynamic random access memory (DRAM) devices through the interconnect system.

[0048] The system's MMU can translate virtual addresses into physical addresses, and according to at least some example embodiments of the inventive concept, the system can translate virtual addresses into physical addresses using multiple MMUs connected in series. See also... Figure 3 and Figure 4 The first MMU 10 is a component corresponding to level 1 exception EL1, and the system may include multiple first MMUs 10 corresponding to the number of operating systems supported by the system. Each first MMU 10 corresponding to an operating system can receive virtual addresses from an application corresponding to level 0 exception EL0 and translate the virtual addresses into intermediate physical addresses. The second MMU 20 can receive intermediate physical addresses from each first MMU 10 corresponding to an operating system and integrate virtual addresses supported by different operating systems into the intermediate physical addresses. The second MMU 20 can translate the intermediate physical addresses into physical addresses to access at least one DRAM memory device. According to at least some example embodiments of the inventive concept, when the system includes multiple DRAM memory devices, the interconnect system can access the DRAM memory devices based on the physical addresses received from the second MMU 20.

[0049] The first MMU 10 can read a mapping information table from the memory device 30 storing address translation information to translate virtual addresses into intermediate physical addresses. Here, the first MMU 10 may require a waiting time to read the mapping information associated with the virtual address to be translated, and this waiting time causes latency when the virtual address is translated into a physical address. The first MMU 10 according to at least some example embodiments of the inventive concept may include a first translation backup buffer 130 to reduce latency, and the first translation backup buffer 130 may store at least some of the mapping information associated with the virtual address stored in the memory device 30 as a cache.

[0050] The second MMU 20 can read a mapping information table associated with intermediate physical addresses from the memory device 30 to translate the intermediate physical addresses into physical addresses. Similar to the first MMU 10, the second MMU 20 may need to wait for a period of time to read the mapping information, and this waiting time will cause system latency. The second MMU 20 according to at least some example embodiments of the inventive concept may include a second translation backup buffer 230 to reduce the waiting time, and the second translation backup buffer 230 may store at least some of the mapping information associated with intermediate physical addresses stored in the memory device 30 as a cache.

[0051] Figure 5 This is a block diagram illustrating a memory device 30 storing address mapping information in multiple operating systems, according to at least some example embodiments of the inventive concept.

[0052] Reference Figure 5 The memory device 30 storing mapping information may include: a first mapping information MAP1 for intermediate physical addresses associated with virtual addresses, and a second mapping information MAP2 for physical addresses associated with intermediate physical addresses. According to at least some example embodiments of the inventive concept, when multiple operating systems corresponding to Level 1 exception level EL1 exist, the first mapping information MAP1 for converting virtual addresses to intermediate physical addresses may include multiple mapping information tables 300a and 300b. That is, the first MMU 10 may store mapping information tables 300a and 300b differently for each operating system to convert virtual addresses different for each operating system into intermediate physical addresses integrated in the hypervisor corresponding to Level 2 exception level EL2. The first MMU 10 may determine whether the virtual address requested to be converted is a virtual address output according to one of the multiple operating systems, and may load the table storing mapping information corresponding to that operating system from the memory device 30 and convert the virtual address into an intermediate physical address.

[0053] According to at least some example embodiments of the inventive concept, the memory device 30 may include: a first operating system mapping information table (or OS1 table) 300a corresponding to a first operating system, and a second operating system mapping information table (or OS2 table) 300b corresponding to a second operating system. The first MMU 10 can determine which operating system (first or second) the requested virtual address corresponds to, and can read the mapping information corresponding to the virtual address from either the first operating system mapping information table 300a or the second operating system mapping information table 300b. For example, when the first MMU 10 receives the virtual address VA2_4, it can read the mapping information corresponding to the virtual address VA2_4 from the second operating system mapping information table 300b of the memory device 30. Having read the mapping information, the first MMU 10 can translate the virtual address VA2_4 into an intermediate physical address IPA2_4 based on the mapping information and output the intermediate physical address IPA2_4.

[0054] The second MMU 20 can receive the intermediate physical address from the first MMU 10 and read the second mapping information MAP2 associated with the intermediate physical address from the memory device 30. For example, when the second MMU 20 receives the intermediate physical address IPA2_4 from the first MMU 10, the second MMU 20 can read the mapping information corresponding to the intermediate physical address IPA2_4 from the hypervisor mapping information table (or hypervisor table) 300c of the memory device 30. Having read the mapping information, the second MMU 20 can convert the intermediate physical address IPA2_4 to the physical address PA9 based on the second mapping information MAP2 and output the physical address PA9.

[0055] The MMU according to at least some example embodiments of the inventive concept may include a translation backup buffer to reduce system latency. When the system includes multiple MMUs, each MMU may store at least some mapping information from the memory device 30 as a cache. For example, the first MMU 10 is an MMU that translates virtual addresses to intermediate physical addresses, and may store some mapping information with high access frequency from among multiple first mapping information MAP1 stored in the memory device 30. The second MMU 20 is an MMU that translates intermediate physical addresses to physical addresses, and may store some mapping information with high access frequency from among multiple second mapping information MAP2 stored in the memory device 30.

[0056] Here, when the system's first MMU 10 updates the first mapping information MAP1 to the first translation backup buffer 130, the first translation backup buffer 130 can be updated in units of address blocks including intermediate physical addresses. Address blocks can include peripheral addresses of the intermediate physical addresses and addresses that are highly likely to be requested for translation in subsequent address translations. When updating the second translation backup buffer 230, according to the comparative example, the second MMU 20 may only store mapping information related to intermediate physical addresses that are requested for translation, and the remaining addresses other than the intermediate physical addresses of the address blocks will not be updated because they are not requested for translation. That is, when the second MMU 20 receives a translation request for addresses other than the intermediate physical addresses of the address blocks, the mapping information corresponding to other addresses may not be stored in the second translation backup buffer 230; therefore, the second MMU 20 will request mapping information from the memory device 30. Therefore, the system according to the comparative example does not store mapping information related to address blocks that are likely to be accessed in subsequent address translation processes, thus increasing system latency.

[0057] Figure 6 This is a block diagram illustrating a first MMU 10 according to at least some example embodiments of the inventive concept.

[0058] Reference Figure 6 When a translation request for a first read target address ADDR1 is received, the first MMU 10 may provide a translation request for a second read target address ADDR2 to the second MMU 20. According to at least some example embodiments of the inventive concept, the first MMU 10 may provide the prefetch command CMD and the translation request for the second read target address ADDR2 to the second MMU 20 separately.

[0059] A first MMU 10, according to at least some example embodiments of the inventive concept, may include a prefetch command generator 110, first control logic 120, and a first translation backup buffer 130. The first MMU 10 may receive a first read target address ADDR1 from an interconnect subsystem and may output a second read target address ADDR2 based on first mapping information MAP1 associated with the received first read target address ADDR1. The first control logic 120 may perform a lookup operation on the received first read target address ADDR1 and may receive the result of the lookup operation. The lookup operation may refer to the operation of determining whether the first mapping information MAP1 associated with the received first read target address ADDR1 is stored in the first translation backup buffer 130. For example, the first control logic 120 may output a lookup signal TLB1_LOOKUP to the first translation backup buffer 130 and receive result information (or lookup result information) TLB1_RESULT based on the lookup signal TLB1_LOOKUP to determine whether the first mapping information MAP1 is stored in the first translation backup buffer 130.

[0060] When it is determined from the first translation backup buffer 130 that the first mapping information MAP1 associated with the first read target address ADDR1 is stored in the first translation backup buffer 130, the first control logic 120 can load the first mapping information MAP1 from the first translation backup buffer 130 to generate a second read target address ADDR2. The first control logic 120 can send the generated second read target address ADDR2 to the second MMU 20, and by receiving data DATA from at least one memory cell accessed based on the second read target address ADDR2, the first control logic 120 can send the data DATA to the interconnect subsystem.

[0061] When the first control logic 120 determines that the first mapping information MAP1 is not stored in the first translation backup buffer 130, the first control logic 120 can receive the first mapping information MAP1 from the memory device 30 (e.g., a memory device 30 including a first mapping information table (mapping table 1) 310 storing multiple first mapping information MAP1s) to output the second read target address ADDR2. The first control logic 120, having received the first mapping information MAP1 from the memory device 30, can send update information TLB1_UP related to the first mapping information MAP1 to the first translation backup buffer 130. The update information TLB1_UP can include the first mapping information MAP1 related to the first read target address ADDR1 to be translated in the first translation backup buffer 130, and when the available space in the first translation backup buffer 130 for storing the first mapping information MAP1 is insufficient, the first control logic 120 can store the first mapping information MAP1 to replace any existing mapping information. In other words, in response to the situation where the first mapping information MAP1 related to the first read target address ADDR1 to be translated is not present in the first translation back buffer 130, the first control logic 120 may perform an update operation, and when the first mapping information MAP1 is stored, the first control logic 120 may not perform an update operation. According to at least some example embodiments of the inventive concept, the first control logic 120 may map an address block including "a second read target address ADDR2 related to the first read target address ADDR1 to be translated" to an address tag, and store the mapped address block and address tag in the first translation back buffer 130. Referring later... Figure 9 An embodiment of the first control logic 120 that maps address blocks to address tags and stores the mapped address blocks and address tags in a first translation backup buffer 130 is described in detail.

[0062] The prefetch command generator 110 can receive update information TLB1_UP from the first control logic 120. The prefetch command generator 110 can generate a prefetch command CMD in response to receiving the update information TLB1_UP. When the first control logic 120 determines that no update operation needs to be performed on the first translation backup buffer 130, the prefetch command generator 110 is not provided with update information TLB1_UP, therefore, the prefetch command generator 110 may not output a prefetch command CMD. The prefetch command generator 110, having received the update information TLB1_UP, can output a first mapping information read signal TLB1_READ for the first read target address ADDR1 to the first translation backup buffer 130. The first translation backup buffer 130, having received the first mapping information read signal TLB1_READ, can provide the updated first mapping information MAP1 as first mapping information read data TLB1_DATA to the prefetch command generator 110. Therefore, the prefetch command generator 110 can generate a prefetch command CMD for the updated first mapping information MAP1. According to at least some example embodiments of the inventive concept, the prefetch command generator 110 can receive address blocks mapped to address tags as first mapping information read data TLB1_DATA, and output prefetch command CMD for the address blocks.

[0063] Figure 7 It is by Figure 6 A flowchart of a method for performing an update of a first MMU 10 according to at least some example embodiments of the inventive concept.

[0064] According to at least some example embodiments of the inventive concept, the first MMU 10 may generate a prefetch command CMD in response to performing an update operation, and when no update operation is performed, the first MMU 10 may not generate a prefetch command CMD, but instead perform an address translation operation.

[0065] In operation S110, the first MMU 10 can receive a translation request associated with the first read target address ADDR1 and the first read target address ADDR1 from an external device. The first read target address ADDR1 may be an address that is to be accessed to receive data from memory (such as DRAM), or it may be a virtual address before being translated into a physical address.

[0066] In operation S120, the first MMU 10 can determine whether the first mapping information MAP1 associated with the first read target address ADDR1 is stored in the first translation backup buffer 130. The first mapping information MAP1 associated with the first read target address ADDR1 can be data mapped by the first MMU 10 to the first read target address ADDR1 and the second read target address ADDR2. According to at least some example embodiments of the inventive concept, when the first mapping information MAP1 is stored in the first translation backup buffer 130, the first translation backup buffer 130 can store information including an address tag as the first mapping information MAP1, which corresponds to the first read target address ADDR1 and is mapped to an address block including the second read target address ADDR2. When the first mapping information MAP1 is stored in the first translation backup buffer 130, the first control logic 120 can load the first mapping information MAP1 from the first translation backup buffer 130, thereby converting the first read target address ADDR1 to the second read target address ADDR2. Here, since the first translation backup buffer 130 does not need to update the first mapping information MAP1, the first control logic 120 can complete the address translation operation without performing an update operation.

[0067] In operation S130, the first MMU 10 can perform an update operation when the first mapping information MAP1 is not stored in the first translation back buffer 130. The first MMU 10 can store the first mapping information MAP1 associated with the first read target address ADDR1 in the first translation back buffer 130, or, when the available space in the first translation back buffer 130 is insufficient, the first MMU 10 can perform an update operation by repositioning the first mapping information MAP1 associated with the first read target address ADDR1 to replace other mapping information. According to at least some example embodiments of the inventive concept, the first control logic 120 can perform an update operation by using information including an address tag as the first mapping information MAP1, which corresponds to the first read target address ADDR1 and is mapped to an address block including the second read target address ADDR2.

[0068] Figure 8 It is by Figure 6 A flowchart of a method for outputting a prefetch command CMD from a first MMU 10 according to at least some example embodiments of the inventive concept.

[0069] Reference Figure 8When an update operation is performed on the first mapping information MAP1, the first MMU 10 can output a prefetch command CMD. In operation S210, the prefetch command generator 110 can receive update information from the first control logic 120. When the update operation is performed, the first control logic 120 can provide the first read target address ADDR1 to be updated and the first mapping information MAP1 associated with the first read target address ADDR1 to the first translation backup buffer 130. The first control logic 120 can send a trigger signal indicating the execution of the update operation as update information to the prefetch command generator 110, while providing the first mapping information MAP1 to the first translation backup buffer 130. Furthermore, according to at least some example embodiments of the inventive concept, the first control logic 120 can include at least one of the first read target address ADDR1 and the first mapping information MAP1 associated with the first read target address ADDR1 in the update information, and send the update information to the prefetch command generator 110.

[0070] In operation S220, the prefetch command generator 110 may request an address block from the first translation backup buffer 130 for generating the prefetch command CMD in response to receiving a trigger signal indicating that an update operation will be performed. The prefetch command generator 110 may request an address block associated with the most recently updated virtual address from the first translation backup buffer 130. Here, when the first control logic 120 updates the first translation backup buffer 130 by matching address tags to address blocks, the prefetch command generator 110 may request an address block corresponding to the most recently updated address tag.

[0071] In operation S230, the prefetch command generator 110 can receive the most recently updated address block from the first translation backup buffer 130. That is, the prefetch command generator 110 can monitor update events in the first MMU 10 and read the most recently monitored update information from the first translation backup buffer 130 to receive the address block corresponding to the address tag.

[0072] In operation S240, the prefetch command generator 110 can output a prefetch command CMD instructing the prefetch operation to be performed on the address block received from the first translation backup buffer 130. That is, the prefetch command generator 110 can instruct the second MMU 20 to perform a prefetch operation on the updated intermediate physical address.

[0073] Figure 9 This is a diagram illustrating mapping information stored in a first conversion backup buffer 130 according to at least some example embodiments of the inventive concept.

[0074] Reference Figure 9The first translation backup buffer 130 can store the cache in a set-associative manner. The cache can include data read line-by-line from the memory device 30 storing mapping information, and can be data mapped line-by-line to tagged data blocks. Figure 9 In the example, the first translation back buffer 130 may include s sets (e.g., set 0 to set (s-1), where s is an integer greater than 1), and the s sets may be divided into k paths (e.g., path 0 to path (k-1), where k is an integer greater than 1). The first control logic 120 or the prefetch command generator 110 may specify the address block to be read from the first translation back buffer 130 based on the address tag 131. The first translation back buffer 130, which stores the cache in a set-associative manner, may store multiple lines in each set. The address tags 131 of lines included in the same set may be partially identical, and the first control logic 120 may distinguish the set corresponding to the first read target address ADDR1 based on the identical tag portion of each set. When the first control logic 120 distinguishes the set corresponding to the first read target address ADDR1, it may specify the cache line based on the remaining tag portion.

[0075] The specified cache line may include multiple sub-lines 132a to 132d, each sub-line may have data corresponding to an intermediate physical address. The first control logic 120 may select one of the multiple sub-lines 132a to 132d to load a second read target address ADDR2 corresponding to the first read target address ADDR1, and may determine the second read target address ADDR2 corresponding to the first read target address ADDR1 from among the multiple sub-lines 132a to 132d based on address tag 131. That is, the first control logic 120 may select one of multiple groups based on address tag 131, select any one of the multiple lines included in the selected group, and determine any one of the multiple sub-lines 132a to 132d as the second read target address ADDR2. Address tag 131 may be data corresponding to the first read target address ADDR1, but at least some exemplary embodiments of the inventive concept are not limited to this, and address tag 131 may also be a data block generated from the first read target address ADDR1.

[0076] according to Figure 9In at least some example embodiments of the inventive concept, when address label 131 specifies a cache line corresponding to group 0 (group 0) and path 0 (path 0), and the first read target address ADDR1 indicates the first sub-line (sub-line 1) 132b among the four sub-lines (i.e., the zeroth sub-line 132a to the third sub-line 132d) included in the specified cache line, the first control logic 120 may output a second read target address ADDR2 as data corresponding to the first read target address ADDR1.

[0077] When the first MMU 10 performs an update operation according to at least some example embodiments of the inventive concept, the first control logic 120 can determine whether the cache line corresponding to address tag 131 is stored in the first translation back buffer 130. When the cache line corresponding to address tag 131 is not present in the first translation back buffer 130, the first control logic 120 can update the cache line corresponding to address tag 131 from the memory device 30 to the first translation back buffer 130. Here, as the first control logic 120 updates the first mapping information MAP1 to the first translation back buffer 130 on a cache line basis, the address block including the second read target address ADDR2 can be updated to the first translation back buffer 130. For example, when the second read target address ADDR2 corresponding to the first sub-row 132b is updated to the first translation backup buffer 130, the first control logic 120 can update the address block including the zeroth sub-row (sub-row 0) 132a, the second sub-row (sub-row 2) 132c, the third sub-row (sub-row 3) 132d, and the first sub-row 132b to the first translation backup buffer 130.

[0078] According to the comparative example, the first MMU 10 does not generate a prefetch command CMD and only provides one of the intermediate physical addresses corresponding to the multiple sub-rows 132a to 132d to the second MMU 20. Therefore, the second MMU 20 only stores the second mapping information MAP2 associated with any one of the multiple sub-rows 132a to 132d in the second translation back buffer 230, and the second mapping information MAP2 associated with the remaining intermediate physical addresses that were not output as the second read target address ADDR2 is not stored in the second translation back buffer 230. Since the system needs to obtain the second mapping information MAP2 from the memory device 30 in subsequent address translation processing, the address translation latency is increased.

[0079] In contrast, the first MMU 10, according to at least some example embodiments of the inventive concept, can generate a prefetch command CMD for the remaining intermediate physical addresses among the plurality of sub-rows 132a to 132d that are not output as the second read target address ADDR2. The second MMU 20 can receive the prefetch command CMD and pre-obtain second mapping information MAP2 associated with the remaining intermediate physical addresses from the memory device 30, store the second mapping information MAP2 in the second translation back buffer 230, and load the second mapping information MAP2 stored in the second translation back buffer 230 in subsequent address translation processing. Therefore, the address translation latency can be reduced compared to the comparative example.

[0080] Figure 10 It is a block diagram of the configuration for generating prefetch commands (CMDs) for multiple address blocks, based on at least some example embodiments of the inventive concept.

[0081] Reference Figure 10 The prefetch command generator 110 may further include prefetch command control logic 111 and may receive a series of first read target addresses ADDR1. According to at least some example embodiments of the inventive concept, the system may detect an address pattern with a high access frequency and store multiple first mapping information MAP1 related to a series of first read target addresses ADDR1 corresponding to the address pattern in a first translation backup buffer 130.

[0082] The prefetch command control logic 111 can receive multiple address tags corresponding to a series of first read target addresses ADDR1 from the first control logic 120, and request address blocks corresponding to the multiple address tags from the first translation backup buffer 130. The prefetch command control logic 111, having received a series of address blocks from the first translation backup buffer 130, can generate a prefetch command CMD for the address blocks.

[0083] Furthermore, when the first MMU 10, according to at least some example embodiments of the inventive concept, has performed update operations multiple times, the first MMU 10 can provide address tags to the prefetch command control logic 111 in the order in which the update operations were performed. The prefetch command control logic 111 can request address blocks corresponding to the address tags from the first translation backup buffer 130. The prefetch command control logic 111 can generate a prefetch command CMD in the order of the received address blocks and provide the prefetch command CMD to the second MMU 20.

[0084] Figure 11 This is a flowchart of a method for outputting a prefetch command (CMD) from a first MMU according to at least some exemplary embodiments of the inventive concept.

[0085] Reference Figure 11 In response to receiving a translation request for the first read target address ADDR1, the first MMU 10 can generate a prefetch command CMD and provide the prefetch command CMD to the second MMU 20. In operation S1100, the first control logic 120 can receive the first read target address ADDR1 from an external device and receive a translation request for the first read target address ADDR1. In operation S1200, the first control logic 120 can send a lookup signal TLB1_LOOKUP for the first read target address ADDR1 to the first translation backup buffer 130. The lookup signal TLB1_LOOKUP for the first read target address ADDR1 can be a signal used to detect whether the first mapping information MAP1 associated with the first read target address ADDR1 is stored in the first translation backup buffer 130. According to at least some example embodiments of the inventive concept, the address tag corresponding to the first read target address ADDR1 can be provided to the first translation backup buffer 130 as the lookup signal TLB1_LOOKUP.

[0086] In operation S1300, the first control logic 120 can receive lookup result information TLB1_RESULT from the first translation backup buffer 130. The lookup result information TLB1_RESULT may be information indicating whether the first mapping information MAP1 associated with the first read target address ADDR1 is stored in the first translation backup buffer 130. For example, when the first mapping information MAP1 associated with the first read target address ADDR1 is stored in the first translation backup buffer 130, the first control logic 120 can receive a lookup hit result via the lookup result information TLB1_RESULT, and when the first mapping information MAP1 associated with the first read target address ADDR1 is not stored, the first control logic 120 can receive a lookup miss result via the lookup result information TLB1_RESULT.

[0087] In operation S1400, the first control logic 120 can determine whether the first mapping information MAP1 is stored in the first translation backup buffer 130 based on the received lookup result information. When it is determined that the first mapping information MAP1 is stored in the first translation backup buffer 130, the first control logic 120 can perform an address translation operation without performing an update operation. When the first control logic 120 determines that the first mapping information MAP1 is not stored in the first translation backup buffer 130, the first control logic 120 can provide update information TLB1_UP to the first translation backup buffer 130 in operation S1500, and provide update information TLB1_UP to the prefetch command generator 110 in operation S1600. The update information TLB1_UP may include the first mapping information MAP1 received from the memory device 30, which stores multiple mapping information of intermediate physical addresses associated with virtual addresses.

[0088] In operation S1700, the prefetch command generator 110, having received the update information TLB1_UP, can generate a prefetch command CMD. The prefetch command generator 110 can directly receive the first mapping information MAP1 related to the first read target address ADDR1 from the first control logic 120, or it can obtain the first mapping information MAP1 by requesting the first mapping information MAP1 of the most recently occurring event from the first translation backup buffer 130. According to at least some example embodiments of the inventive concept, the first mapping information MAP1 may include an address block containing multiple intermediate physical addresses, including the second read target address ADDR2. In operation S1800, the prefetch command generator 110 can provide the prefetch command CMD for the address block to the second MMU 20.

[0089] Figure 12 This is a block diagram illustrating a second MMU 20 according to at least some example embodiments of the inventive concept.

[0090] Reference Figure 12 When a translation request for a second read target address ADDR2 is received, the second MMU 20 can translate the second read target address ADDR2 into a third read target address ADDR3 and provide the third read target address ADDR3 to the interconnect system. According to at least some example embodiments of the inventive concept, the second MMU 20 can receive the prefetch command CMD separately from the translation request for the second read target address ADDR2 and perform an update on the address block.

[0091] The second MMU 20, according to at least some example embodiments of the inventive concept, may include prefetch control logic 210, second control logic 220, and a second translation backup buffer 230. The second MMU 20 may receive a second read target address ADDR2 from the first MMU 10 and may output a third read target address ADDR3 based on second mapping information MAP2 associated with the received second read target address ADDR2. The second control logic 220 may perform a lookup operation on the received second read target address ADDR2 and may receive the result of the lookup operation. For example, the second control logic 220 may output a lookup signal TLB2_LOOKUP to the second translation backup buffer 230 and receive result information TLB2_RESULT based on the lookup signal TLB2_LOOKUP to determine whether the second mapping information MAP2 is stored in the second translation backup buffer 230.

[0092] When the second control logic 220 determines that the second mapping information MAP2 is stored in the second translation backup buffer 230, the second control logic 220 can generate a third read target address ADDR3 by loading the second mapping information MAP2 from the second translation backup buffer 230. The second control logic 220 can send the generated third read target address ADDR3 to the interconnect system, and by receiving data DATA from at least one memory cell accessed based on the third read target address ADDR3, the second control logic 220 can send the data DATA to the interconnect subsystem.

[0093] When the second control logic 220 determines that the second mapping information MAP2 is not stored in the second translation backup buffer 230, the second control logic 220 can receive the second mapping information MAP2 from the memory device 30 to output the third read target address ADDR3. Having already received the second mapping information MAP2 from the memory device 30, the second control logic 220 can send update information TLB2_UP related to the second mapping information MAP2 to the second translation backup buffer 230. The update information TLB2_UP can include the second mapping information MAP2 related to the second read target address ADDR2 to be translated in the second translation backup buffer 230, and when the available space for storing the second mapping information MAP2 in the second translation backup buffer 230 is insufficient, the second control logic 220 can store the second mapping information MAP2 to replace any existing mapping information. In other words, if the second mapping information MAP2 related to the second read target address ADDR2 to be converted is not present in the second conversion backup buffer 230, the second control logic 220 may perform an update operation, and if the second mapping information MAP2 is stored, the second control logic 220 may not perform an update operation.

[0094] The prefetch control logic 210 can receive a prefetch command CMD from the first MMU 10 and determine whether the second mapping information MAP2 associated with the address block of the prefetch command CMD is stored in the second translation backup buffer 230. For example, the prefetch control logic 210 can output a lookup signal TLB2_LOOKUP to the second translation backup buffer 230 and receive result information TLB2_RESULT based on the lookup signal TLB2_LOOKUP to determine whether the second mapping information MAP2 associated with the address block is stored in the second translation backup buffer 230.

[0095] Prefetch control logic 210 can determine whether second mapping information MAP2 associated with at least one intermediate physical address included in an address block is stored in the second translation back buffer 230, and can generate a mapping information request command MAP2_CMD based on the determination result. The mapping information request command MAP2_CMD can be a command for requesting the second mapping information MAP2 from a second mapping information table (mapping table 2) 320 of the memory device 30, which stores multiple entries of second mapping information MAP2. When it is determined that the second mapping information MAP2 is not stored in the second translation back buffer 230, prefetch control logic 210 can provide the mapping information request command MAP2_CMD to second control logic 220, and second control logic 220 can provide the mapping information request command MAP2_CMD to the memory device 30, thereby receiving the second mapping information MAP2. (Refer to...) Figure 9 In at least some example embodiments of the inventive concept, when the second MMU 20 receives a prefetch command CMD for the address block corresponding to the zeroth sub-row 132a to the third sub-row 132d, the prefetch control logic 210 can determine whether multiple second mapping information MAP2 associated with the four intermediate physical addresses is stored in the second translation backup buffer 230. When the prefetch control logic 210 determines that the second mapping information MAP2 of the intermediate physical address corresponding to the third sub-row 132d is not stored in the second translation backup buffer 230, the prefetch control logic 210 can request the second mapping information MAP2 of the intermediate physical address corresponding to the third sub-row 132d from the memory device 30.

[0096] The second control logic 220 and the prefetch control logic 210 can be configured as different hardware components, but at least some exemplary embodiments of the inventive concept are not limited thereto, and the second control logic 220 and the prefetch control logic 210 can also be configured as a single hardware component. For example, when a translation request for a second read target address ADDR2 is received, the second control logic 220 of the second MMU 20 can output a third read target address ADDR3, and when a prefetch command CMD is received, the second control logic 220 can provide update information related to the address block to the second translation backup buffer 230.

[0097] Therefore, the second MMU 20 according to at least some example embodiments of the inventive concept can store the second mapping information MAP2 of the intermediate physical address included in the address block in advance in the second translation backup buffer 230, and can quickly load the second mapping information MAP2 associated with the intermediate physical address that is likely to be accessed frequently in subsequent address translation operations.

[0098] Reference Figure 6 and Figure 12 According to at least some example embodiments of the inventive concept, the first MMU 10 can output a second read target address ADDR2 associated with a first read target address ADDR1 that is requested to be translated, and can output the prefetch command CMD for the address block including the second read target address ADDR2 separately from the second read target address ADDR2. The second MMU 20, having received the prefetch command CMD, can determine whether second mapping information MAP2 associated with an intermediate physical address included in the address block is stored in the second translation back buffer 230. If the second mapping information MAP2 is not stored in the second translation back buffer 230, the second MMU 20 can store the second mapping information MAP2 associated with the address block, thereby reducing the waiting time for loading the second mapping information MAP2 in subsequent operations.

[0099] Figure 13 yes Figure 12 A flowchart of the operation method of the second MMU 20 according to at least some example embodiments of the inventive concept.

[0100] Reference Figure 13 The second MMU 20 can determine whether the intermediate physical address included in the address block is stored in the second translation backup buffer 230, and can update the second translation backup buffer 230 by reading the second mapping information MAP2 based on the determined result.

[0101] In operation S310, the second MMU 20 can receive a prefetch command CMD for an address block from the first MMU 10. In operation S320, the prefetch control logic 210, having received the prefetch command CMD for the address block, can output a lookup signal TLB2_LOOKUP for detecting second mapping information MAP2 associated with intermediate physical addresses to the second translation backup buffer 230. For example, the prefetch control logic 210, having received an address block including multiple intermediate physical addresses, can output a lookup signal TLB2_LOOKUP for each of the multiple intermediate physical addresses.

[0102] In operation S330, the prefetch control logic 210 can determine whether the second mapping information MAP2 corresponding to the address block is stored in the second translation backup buffer 230 based on the result information TLB2_RESULT of the lookup signal TLB2_LOOKUP. When the prefetch control logic 210 receives an address block including multiple intermediate physical addresses, the prefetch control logic 210 can detect intermediate physical addresses that are not stored in the second translation backup buffer 230 based on the result information TLB2_RESULT associated with each of the multiple intermediate physical addresses. The prefetch control logic 210 can terminate the operation without performing an update operation on the intermediate physical addresses already stored in the second translation backup buffer 230.

[0103] In operation S340, prefetch control logic 210 can provide a mapping information request command MAP2_CMD to second control logic 220 for requesting "second mapping information MAP2 related to an intermediate physical address not stored in the second translation back buffer 230". Second control logic 220 can send the mapping information request command MAP2_CMD to memory device 30 storing the second mapping information table 320. In operation S350, second MMU 20 can read second mapping information MAP2 by sending the mapping information request command MAP2_CMD for second mapping information MAP2 to memory device 30. Therefore, second MMU 20 can obtain second mapping information MAP2 related to intermediate physical addresses in the address block whose second mapping information MAP2 is not stored in the second translation back buffer 230. In operation S360, as second control logic 220 updates second mapping information MAP2 to the second translation back buffer 230, second MMU 20 can store second mapping information MAP2 related to intermediate physical addresses in the address block.

[0104] Figure 14 This is a flowchart of a method for updating mapping information related to a prefetch target address by a second MMU 20 according to at least some example embodiments of the inventive concept.

[0105] Reference Figure 14 In response to receiving a prefetch command CMD from the first MMU 10, the second MMU 20, according to at least some example embodiments of the inventive concept, may store second mapping information MAP2 of the address block corresponding to the prefetch command CMD in the second translation backup buffer 230. In operation S2100, the prefetch control logic 210 may receive the prefetch command CMD from the second MMU 20. In operation S2200, the prefetch control logic 210 may provide a lookup signal TLB2_LOOKUP for the intermediate physical address of the address block corresponding to the prefetch command CMD to the second translation backup buffer 230, and in operation S2300, the prefetch control logic 210 may receive result information TLB2_RESULT related to the intermediate physical address from the second translation backup buffer 230. For example, when an address block includes multiple intermediate physical addresses, the prefetch control logic 210 can provide a lookup signal TLB2_LOOKUP for each intermediate physical address to the second translation backup buffer 230, thereby detecting intermediate physical addresses that are not included in the second translation backup buffer 230 among the intermediate physical addresses included in the address block.

[0106] In operation S2400, prefetch control logic 210 can determine whether the second mapping information MAP2 is stored in the second translation backup buffer 230 based on the result information TLB2_RESULT related to the intermediate physical address, and can terminate the operation without performing an update operation on the intermediate physical address where the second mapping information MAP2 is already stored in the second translation backup buffer 230. In operation S2500, prefetch control logic 210 can provide a mapping information request command MAP2_CMD for "the intermediate physical address where the second mapping information MAP2 is not stored in the second translation backup buffer 230" to the second control logic 220. In operation S2600, the second control logic 220 can read the second mapping information MAP2 related to the intermediate physical address corresponding to the received mapping information request command MAP2_CMD from the memory device 30 storing the second mapping information table 320. In operation S2700, the second control logic 220 can terminate the update operation of the second mapping information MAP2 by providing the read second mapping information MAP2 to the second translation backup buffer 230.

[0107] Having described exemplary embodiments of the inventive concept, it will be clear that these exemplary embodiments can be varied in many ways. Such variations will not be considered as departing from the intended spirit and scope of the exemplary embodiments of the inventive concept, and as will be apparent to those skilled in the art, all such modifications are intended to be included within the scope of the appended claims.

Claims

1. An address translation method for accessing memory, the address translation method comprising: A prefetch command is output in response to an update of mapping information related to a first read target address, the update occurring in a first translation backup buffer circuit that stores first mapping information between a first address and a second address; as well as In response to a prefetch command, second mapping information related to at least some second addresses of an address block is stored in a second translation backup buffer circuit. The address block includes a second read target address mapped to a first read target address. The second translation backup buffer circuit stores second mapping information between the second address and a third address. The address block also includes a second address surrounding the second target address, and The first address is a virtual address, the second address is an intermediate physical address, and the third address is a physical address.

2. The address translation method according to claim 1, further comprising: Convert the first read target address to the second read target address.

3. The address translation method according to claim 1, further comprising: In response to a conversion request made for a first read target address, determine whether the first mapping information related to the first read target address is stored in the first conversion backup buffer circuit; as well as In response to the fact that the first mapping information associated with the first read target address is not stored in the first translation backup buffer circuit, the first read target address is updated.

4. The address translation method of claim 1, wherein, The steps for outputting the prefetch command include: generating a prefetch command for the address block based on the address tag corresponding to the first read target address.

5. The address translation method according to claim 4, wherein, The address label includes an indicator that specifies the location in the first conversion backup buffer circuit where the update of the first mapping information is performed.

6. The address translation method according to claim 5, wherein, The address block includes a data block, and the data block includes a second peripheral address corresponding to the second read target address.

7. The address translation method according to any one of claims 1 to 6, wherein, The steps of storing the second mapping information in the second conversion backup buffer circuit include: The second address of the address block is detected in response to a prefetch command, wherein the second mapping information of the second address is stored in the second translation backup buffer circuit.

8. The address translation method according to claim 7, wherein, The step of storing the second mapping information in the second conversion backup buffer circuit further includes: A mapping information request command is generated for the prefetch target address, and the second mapping information for the prefetch target address is not stored in the second conversion backup buffer circuit.

9. The address translation method according to claim 8, wherein, The step of storing the second mapping information in the second conversion backup buffer circuit further includes: In response to the mapping information request command, read the second mapping information related to the prefetch target address from the second mapping information table; and The read second mapping information is updated to the second conversion backup buffer circuit.

10. An address translation system, the address translation system comprising: A first memory management unit circuit is configured to output a prefetch command in response to an update of mapping information related to a first read target address, the update occurring in a first translation backup buffer circuit that stores first mapping information between a first address and a second address. as well as The second memory management unit circuit is configured to: in response to a prefetch command, store second mapping information related to at least some second addresses of an address block in a second translation backup buffer circuit, wherein the address block includes a second read target address mapped to a first read target address, and the second translation backup buffer circuit stores second mapping information between the second address and a third address. The address block also includes a second address surrounding the second target address, and The first address is a virtual address, the second address is an intermediate physical address, and the third address is a physical address.

11. The address translation system according to claim 10, wherein, The first memory management unit circuit is further configured to: in response to a conversion request made for a first read target address, determine whether first mapping information related to the first read target address is stored in a first conversion backup buffer circuit, and in response to the first mapping information related to the first read target address not being stored in the first conversion backup buffer circuit, update the first read target address.

12. The address translation system according to claim 10, wherein, The first memory management unit circuit is also configured to generate a prefetch command for an address block based on the address tag corresponding to the first read target address.

13. The address translation system according to claim 12, wherein, The address label includes an indicator that specifies the location in the first conversion backup buffer circuit where the update of the first mapping information is performed.

14. The address translation system according to claim 13, wherein, The address block includes a data block, and the data block includes a second peripheral address corresponding to the second read target address.

15. The address translation system according to any one of claims 10 to 14, wherein, The second memory management unit circuit is further configured to detect a second address of an address block in response to a prefetch command, wherein a second mapping information of the second address is stored in a second translation backup buffer circuit.

16. The address translation system according to claim 15, wherein, The second memory management unit circuit is also configured to generate a mapping information request command for a prefetch target address, wherein the second mapping information for the prefetch target address is not stored in the second translation backup buffer circuit.

17. The address translation system according to claim 16, wherein, The second memory management unit circuit is further configured to: read second mapping information related to the prefetch target address from the second mapping information table in response to a mapping information request command, and update the read second mapping information to the second translation backup buffer circuit.

18. A system-on-a-chip, the system-on-a-chip comprising: The first conversion backup buffer circuit stores the first mapping information between the first address and the second address; The second conversion backup buffer circuit stores the second mapping information between the second address and the third address; The prefetch command generation circuit is configured to: output a prefetch command in response to receiving update information for updating the first mapping information between the first read target address and the second read target address to the first conversion backup buffer circuit; as well as The prefetch control logic circuit is configured to: in response to a prefetch command, provide a lookup signal for an address block to a second translation backup buffer circuit, the address block including a second read target address. The address block also includes a second address surrounding the second target address, and The first address is a virtual address, the second address is an intermediate physical address, and the third address is a physical address.

19. The system-on-a-chip according to claim 18, further comprising: A first control logic circuit is configured to: in response to a conversion request made for a first read target address, determine whether first mapping information related to the first read target address is stored in a first conversion backup buffer circuit, and in response to the first mapping information related to the first read target address not being stored in the first conversion backup buffer circuit, update the first read target address.

20. The system-on-a-chip according to claim 18 or 19, wherein, The prefetch command generation circuit is also configured to generate a prefetch command for an address block based on the address tag corresponding to the first read target address.

Citation Information

Patent Citations

  • Lookup of a data structure containing a mapping between a virtual address space and a physical address space

    CN105359115A

  • A data processing apparatus, and a method of handling address translation within a data processing apparatus

    CN106537362A