# US 2024/0404613 A1 · Random access memory and corresponding method for managing a random access memory

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

- Number: US 2024/0404613 A1
- Document ID: US20240404613A1
- Status: Published application
- Kind: A1
- Application number: 18/773,006
- Filed: 2024-07-15
- Published: 2024-12-05
- Earliest claimed: 2022-04-22
- Assignees: STMicroelectronics S.r.l.
- Applicants: STMICROELECTRONICS S.r.l.
- Inventors: Marco CASARSA
- Web page: https://patentgrep.com/patent/US20240404613A1

## CPC

- G11C 29/023: {in clock generator or timing circuitry}
- G06F 12/023: {Free address space management}
- G11C 29/32: Serial access; Scan testing
- G06F 2212/202: Non-volatile memory
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A random access memory (RAM) includes an array of arranged in rows and columns. The rows of the storage elements correspond to respective memory locations of the RAM. The storage elements of a row have a common gated-clock input and respective data inputs, and each row of the array of storage elements includes a plurality of D type latches. In operation, an address input of the RAM receives a memory address identifying a memory location in the RAM. Clock gating circuitry of the RAM, generates respective gated-clock signals for the rows of the array of storage elements based on the memory address received at the address input. Memory operation are performed using storage elements of the array based on the gated-clock signals.

## Claims

### Claim 1

A non-transitory computer-readable medium method having contents which configure a processing device including a random access memory (RAM) to perform a method, the method comprising:
receiving, on an address input of the RAM, a memory address identifying a memory location in the RAM, the RAM including an array of storage elements arranged in rows and columns, wherein the rows of the storage elements correspond to respective memory locations of the RAM, the storage elements of a row have a common gated-clock input and respective data inputs, and each row of the array of storage elements comprises a plurality of D type latches;
generating, using clock gating circuitry of the RAM having an input coupled to the address input, respective gated-clock signals for the rows of the array of storage elements based on the memory address received at the address input, a test mode signal and a scan enable signal; and
performing memory operations using storage elements of the array based on the gated-clock signals.

### Claim 2 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the memory operation is a read operation, and performing the read operation comprises generating an output of the RAM based on the outputs of the storage elements and the memory address received at the memory input.

### Claim 3 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the method comprises:
performing one hot decoding on the received memory address;
receiving a clock signal; and
generating the respective gated-clock signals for the rows of the array of storage elements based on the one-hot decoding and the received clock signal.

### Claim 4 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the contents include instructions executable by the RAM.

### Claim 5

A random access memory (RAM), comprising:
an array of storage elements arranged in rows and columns, wherein the rows of the storage elements correspond to respective memory locations of the RAM, the storage elements of a row have a common gated-clock input and respective data inputs, and each row of the array of storage elements comprises a plurality of D type latches;
an address input, which, in operation, receives a memory address identifying a memory location in the RAM; and
clock gating circuitry having an input coupled to the address input, wherein the clock gating circuitry includes:
a one-hot decoder, which, in operation, provides one-hot decoding on the received memory address; and
a clock input, which, in operation, receives a clock signal, wherein the clock gating circuitry, in operation, generates respective gated-clock signals for the rows of the array of storage elements based on the one-hot decoding and the received clock signal.

### Claim 6 (depends on 5)

The RAM of claim 5, wherein the clock gating circuitry comprises:
a plurality of clock gating cells, which, in operation, generate the respective gated-clock signals for the rows of the array of storage elements.

### Claim 7 (depends on 5)

The RAM of claim 5, wherein the clock gating circuitry comprises:
test mode control logic, which, in operation, generates a test mode enable signal based on a test mode signal and a scan enable signal, wherein the clock gating circuitry, in operation, generates the respective gated-clock signals for the rows of the array of storage elements based on the test mode enable signal.

### Claim 8 (depends on 7)

The RAM of claim 7, wherein the clock gating circuitry, in operation, responds to the scan enable signal by clocking all of the rows of the array of storage elements.

### Claim 9 (depends on 8)

The RAM of claim 8, wherein the test mode control logic comprises a first OR gate, which, in operation, receives the scan enable signal and a test mode signal, wherein the clock gating circuitry, in operation, responds to a test mode signal by clocking all of the rows of the array of storage elements.

### Claim 10 (depends on 9)

The RAM of claim 9, wherein each of the clock gating cells comprises:
a latch having:
an input coupled to an output of a second OR gate if the clock is sampled on a falling edge in the RAM or to the output of a NOR gate if the clock is sampled on a rising edge in the RAM, the second OR gate or the NOR gate receiving at its inputs an output of the one-hot decoder and an output of the first OR gate;
an output coupled to an input of a logic gate, wherein the logic gate is an AND gate, if the clock is sampled on the falling edge in the RAM, and the logic gate is a third OR gate, if the clock is sampled on the rising edge in the RAM; and
a second input coupled to the clock input, wherein, in operation, an output of the logic gate provides a respective gated-clock signal for a row of the array of storage elements.

### Claim 11 (depends on 5)

The RAM of claim 5, comprising:
a data input, which, in operation, receives input data; and
a mask circuit, the mask circuit including a first multiplexer having a first input coupled to an output of the array of storage elements, a second input coupled to the data input, and a selection input, wherein the selection input of the first multiplexer, in operation, receives sampled mask bits, wherein, in operation, the first multiplexer selects output bits from bits received on the first input of the first multiplexer and bits received on the second input of the first multiplexer based on sampled mask bits received at the selection input of the first multiplexer.

### Claim 12 (depends on 7)

The RAM of claim 7, comprising:
write sampling logic having a plurality of rows of cascaded scan ready delay flip flops clocked by a write clock signal, wherein a first row of the cascaded scan ready delay flip flops, in operation, samples a write address bus, and a second row of the cascaded scan ready delay flip flops, in operation, samples a data bus; and
output sampling logic having a first input coupled to an output of the array of storage elements, a second input coupled to an output of the sampling output logic, and a selection input, which, in operation, receives a read enable signal.

### Claim 13 (depends on 12)

The RAM of claim 12, wherein the RAM is a Dual port RAM, comprising read sampling logic, which, in operation, samples read signals with a read clock, wherein the output sampling logic, in operation, samples the read signals with the read clock.

### Claim 14

A random access memory (RAM), comprising:
an array of storage elements arranged in rows and columns, wherein the rows of the storage elements correspond to respective memory locations of the RAM, the storage elements of a row have a common gated-clock input and respective data inputs, and each row of the array of storage elements comprises a plurality of D type latches;
an address input, which, in operation, receives a memory address identifying a memory location in the RAM;
a data input, which, in operation, receives input data;
clock gating circuitry having an input coupled to the address input, wherein the clock gating circuitry, in operation, generates respective gated-clock signals for the rows of the array of storage elements based on the one-hot decoding and the received clock signal; and
a mask circuit, the mask circuit including a first multiplexer having a first input coupled to an output of the array of storage elements, a second input coupled to the data input, and a selection input, wherein the selection input of the first multiplexer, in operation, receives sampled mask bits, wherein, in operation, the first multiplexer selects output bits from bits received on the first input of the first multiplexer and bits received on the second input of the first multiplexer based on sampled mask bits received at the selection input of the first multiplexer.

### Claim 15 (depends on 14)

The RAM of claim 14, wherein the mask circuit comprises a mask bypass multiplexer having a first input coupled to the data input and a second input coupled to an output of the first multiplexer of the mask circuit, wherein the mask bypass multiplexer, in operation, selects an output based on a mask mode signal.

### Claim 16 (depends on 14)

The RAM of claim 14, comprising:
a clock input, wherein the mask circuit comprises an array of flip flops, which, in operation, sample the output bits of the first multiplexer using a rising edge of a clock signal received at the clock input.

### Claim 17

A system, comprising:
processing circuitry; and
a random access memory (RAM) coupled to the processing circuitry, the RAM including:
an array of storage elements arranged in a plurality of rows and a plurality of columns, wherein the rows of the storage elements correspond to respective memory locations of the RAM, the storage elements of a row have a common gated-clock input and respective data inputs, and rows of the array of storage elements comprise a plurality of D type latches;
an address input, which, in operation, receives a memory address identifying a memory location in the RAM; and
clock gating circuitry having an input coupled to the address input, wherein the clock gating circuitry comprises:
a one-hot decoder, which, in operation, provides one-hot decoding on the received memory address; and
a clock input, which, in operation, receives a clock signal, wherein the clock gating circuitry, in operation, generates respective gated-clock signals for the rows of the array of storage elements based on the one-hot decoding and the received clock signal.

### Claim 18 (depends on 17)

The system of claim 17, wherein the RAM comprises data selector circuitry coupled to outputs of the storage elements of the array, and the data selector circuitry, in operation, generates an output of the RAM based on the outputs of the storage elements and the memory address received at the memory input.

### Claim 19 (depends on 17)

The system of claim 17, wherein the RAM is a Dual port RAM.

### Claim 20 (depends on 17)

The system of claim 17, wherein:
the RAM comprises control circuitry coupled to the array of storage elements,
the control circuitry includes D type flip flops coupled to a scan path, and
in a test mode of operation, the scan path receives test patterns.
