# US 2019/0317895 A1 · Memory controlling device and memory system including the same

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0317895 A1
- Document ID: US20190317895A1
- Status: Published application
- Kind: A1
- Application number: 16/250,343
- Filed: 2019-01-17
- Published: 2019-10-17
- Earliest claimed: 2018-04-11
- Assignees: MemRay Corporation; Yonsei University, University—Industry Foundation (Uif)
- Applicants: MemRay Corporation; Yonsei University, University- Industry Foundation (Uif)
- Inventors: Myoungsoo JUNG; Gyuyoung PARK; Miryeong KWON
- Web page: https://patentgrep.com/patent/US20190317895A1

## CPC

- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G11C 11/005: {comprising combined but independently operative RAM-ROM, RAM-PROM, RAM-EPROM cells}
- G06F 12/0895: of parts of caches, e.g. directory or tag array
- G11C 11/411: using bipolar transistors only
- G11C 11/413: Auxiliary circuits, e.g. for addressing, decoding, driving, writing, sensing, timing or power reduction
- G11C 11/419: Read-write [R-W] circuits
- G11C 13/0002: {using resistive RAM [RRAM] elements}
- G11C 13/0004: {comprising amorphous/crystalline phase transition cells}
- G11C 13/004: {Reading or sensing circuits or methods}
- G11C 14/0045: {and the nonvolatile element is a resistive RAM element, i.e. programmable resistors, e.g. formed of phase change or chalcogenide material}
- G06F 13/1694: {Configuration of memory controller to different memory types}
- G06F 2212/1021: Hit rate improvement
- G06F 2212/608: Details relating to cache mapping
- G11C 13/0069: {Writing or programming circuits or methods}
- G11C 2207/2245: Memory devices with an internal cache buffer
- G11C 2207/2263: Write conditionally, e.g. only if new data and old data differ
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A memory controlling device configured to connect to a first memory module including a resistance switching memory cell array which is partitioned into a plurality of partitions and a second memory module used for a cache is provided. A cache controller splits an address of a read request into at least a first cache index and a first tag, and determines whether the read request is a cache hit or a cache miss by referring to a lookup logic based on the first cache index and the first tag. The cache controller instructs the memory controller to read target data of the read request from the first memory module when the read request targets to the second partition in a case where the read request is the cache miss and a write to the first partition is in progress.

## Claims

### Claim 1

A memory controlling device configured to connect to a first memory module including a resistance switching memory cell array which is partitioned into a plurality of partitions including a first partition and a second partition, and a second memory module used as a cache, the memory controlling device comprising:
a memory controller that accesses the first memory module and the second memory module;
a lookup logic that manages tag information of a plurality of cache lines of the second memory module, the plurality of cache lines corresponding to a plurality of cache indices, respectively; and
a cache controller that:
splits an address of a read request into at least a first cache index and a first tag;
determines whether the read request is a cache hit or a cache miss by referring to the lookup logic based on the first cache index and the first tag; and
instructs the memory controller to read target data of the read request from the first memory module when the read request targets to the second partition in a case where the read request is the cache miss and a write to the first partition is in progress.

### Claim 2 (depends on 1)

The memory controlling device of claim 1, wherein the cache controller suspends the read request when the read request targets to the first partition in a case where the read request is the cache miss and the write to the first partition is in progress.

### Claim 3 (depends on 1)

The memory controlling device of claim 1, wherein the cache controller instructs the memory controller to read the target data from the second memory module when the read request is the cache hit.

### Claim 4 (depends on 1)

The memory controlling device of claim 1, wherein the cache controller:
splits an address of a write request into at least a second cache index and a second tag;
determines whether the write request is a cache hit or a cache miss by referring to the lookup logic based on the second cache index and the second tag; and
checks whether an empty cache line exists in the second memory module by referring to the lookup logic when the write request is the cache miss.

### Claim 5 (depends on 4)

The memory controlling device of claim 4, wherein when no empty cache line exists, the cache controller:
retrieves a victim cache line among the plurality of cache lines by referring to the lookup logic; and
instructs the memory controller to read victim data from the victim cache line of the second memory module, to write the victim data to the first memory module, and to write target data of the write request to the victim cache line of the second memory module.

### Claim 6 (depends on 5)

The memory controlling device of claim 5, wherein the lookup logic includes a plurality of ways,
wherein each way includes a plurality of sets which correspond to the plurality of cache indices, respectively,
wherein each set includes a counter, and
wherein the cache controller selects, as the victim cache line, a cache line indicated by a way in which the counter has a predetermined value at a target set corresponding to the second cache index among the plurality of sets.

### Claim 7 (depends on 6)

The memory controlling device of claim 6, wherein each time a cache access occurs in the target set, the lookup logic sets the counter corresponding to a way in which the cache access occurs to zero and increments the counter corresponding to the other way by one, and
wherein the predetermined value is a value obtained by subtracting one from a number of the plurality of ways.

### Claim 8 (depends on 4)

The memory controlling device of claim 4, wherein when the empty cache line exists, the cache controller instructs the memory controller to write the target data of the write request to the empty cache line of the second memory module, and updates the lookup logic.

### Claim 9 (depends on 4)

The memory controlling device of claim 4, wherein when the write request is the cache hit, the cache controller instructs the memory controller to write the target data of the write request to the second memory module.

### Claim 10 (depends on 1)

The memory controlling device of claim 1, wherein the write in progress is a write according to a cache eviction.

### Claim 11 (depends on 1)

The memory controlling device of claim 1, wherein the write in progress is a write according to a persistent operation by a cache line flush request and a fence request.

### Claim 12 (depends on 11)

The memory controlling device of claim 11, wherein the cache controller performs a read operation even after the fence request.

### Claim 13 (depends on 1)

A memory system comprising:
the memory controlling device of claim 1;
the first memory module; and
the second memory module.

### Claim 14

A memory controlling device configured to connect to a first memory module including a resistance switching memory and a second memory module used as a cache, the memory controlling device comprising:
a memory controller that accesses the first memory module and the second memory module;
a lookup logic including a plurality of ways, each including a plurality of sets which correspond to a plurality of cache indices, respectively, each set including tag information and a counter, and the plurality of cache indices corresponding to a plurality of cache lines of the second memory module, respectively; and
a cache controller that:
splits an address of a write request into at least a first cache index and a first tag;
determines whether the write request is a cache hit or a cache miss by referring to the lookup logic based on the first cache index and the first tag; and
when the write request is the cache miss and no empty cache line exists in the second memory module, selects, as a victim cache line, a cache line indicated by a way in which the counter has a predetermined value at a target set corresponding to the first cache index among the plurality of sets, and instructs the memory controller to write victim data of the victim cache line to the first memory module.

### Claim 15 (depends on 14)

The memory controlling device of claim 14, wherein each time a cache access occurs in the target set, the lookup logic sets the counter corresponding to a way in which the cache access occurs to zero and increments the counter corresponding to the other way by one, and
wherein the predetermined value is a value obtained by subtracting one from a number of the plurality of ways.

### Claim 16 (depends on 14)

The memory controlling device of claim 14, wherein the first memory module includes a memory cell array which is partitioned into a plurality of partitions including a first partition and a second partition, and
wherein the cache controller that:
splits an address of a read request into at least a second cache index and a second tag;
determines whether the read request is a cache hit or a cache miss by referring to the lookup logic based on the second cache index and the second tag; and
instructs the memory controller to read target data of the read request from the first memory module when the read request targets to the second partition in a case where the read request is the cache miss and a write to the first partition is in progress.

### Claim 17 (depends on 16)

The memory controlling device of claim 16, wherein the cache controller suspends the read request when the read request targets to the first partition in a case where the read request is the cache miss and the write to the first partition is in progress.

### Claim 18 (depends on 16)

The memory controlling device of claim 16, wherein the cache controller instructs the memory controller to read the target data of the read request from the second memory module when the read request is the cache hit.

### Claim 19 (depends on 14)

A memory system comprising:
the memory controlling device of claim 14;
the first memory module; and
the second memory module

### Claim 20

A memory controlling device configured to connect to a first memory module including a resistance switching memory cell array which are partitioned into a plurality of partitions including a first partition and a second partition, and a second memory module used as a cache, the memory controlling device comprising:
a memory controller that accesses the first memory module and the second memory module;
a lookup logic that includes a plurality of ways and manages tag information of a plurality of cache lines of the second memory module, each way including a plurality of sets which correspond to the plurality of cache indices, respectively, and the plurality of cache indices corresponding to the plurality of cache lines, respectively; and
a cache controller that splits an address of a request into at least a target cache index and a target tag, and determines whether the request is a cache hit or a cache miss by referring to the lookup logic based on the target cache index and the target tag,
wherein in a case where the request is the cache miss, the cache controller:
when the request is a read request, a write to the first partition is in progress, and the read request targets to the second partition, instructs the memory controller to read target data of the read request from the first memory module; and
when the request is a write request and no empty cache line exists in the second memory module, detects a target way among the plurality of ways in a target set corresponding to the target cache index among the plurality of sets in one clock cycle, selects a cache line of the target way in the target set as a victim cache line, and instructs the memory controller to write victim data of the victim cache line to the first memory module and to write target data of the write request to the victim cache line.

### Claim 21 (depends on 20)

A memory system comprising:
the memory controlling device of claim 20;
the first memory module; and
the second memory module.
