# US 2021/0174854 A1 · Encoder

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

- Number: US 2021/0174854 A1
- Document ID: US20210174854A1
- Status: Published application
- Kind: A1
- Application number: 16/709,622
- Filed: 2019-12-10
- Published: 2021-06-10
- Earliest claimed: 2019-12-10
- Assignees: Taiwan Semiconductor Manufacturing Company, Ltd.
- Applicants: Taiwan Semiconductor Manufacturing Company, Ltd.
- Inventors: Win-San Khwa; Hiroki Noguchi; Ku-Feng Lin
- Web page: https://patentgrep.com/patent/US20210174854A1

## CPC

- H03M 7/16: Conversion to or from unit-distance codes, e.g. Gray code, reflected binary code
- G11C 11/1673: {Reading or sensing circuits or methods}
- G11C 29/021: {in voltage or current generators}
- G11C 29/026: {in sense amplifiers}
- G11C 29/028: {with adaption or trimming of parameters}
- H03K 19/20: characterised by logic function, e.g. AND, OR, NOR, NOT circuits (H03K19/003 - H03K19/01 take precedence)
- H03M 7/04: the radix thereof being two
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- G11C: STATIC STORES (semiconductor memory devices H10B)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

An encode apparatus and an encode method may be provided. The encoding apparatus may comprise a first stage and a second stage. The first stage may be configured to receive a first input, decode the first input, and produce a first output comprising the decoded first input. The second stage may be configured to receive a second input, receive the first output from the first stage, and convert the first input and the second input from a first coding system to a second coding system based on the second input and the first output. The second stage may produce a second output comprising the converted first input and the converted second input.

## Claims

### Claim 1

An apparatus comprising:
a first stage configured to;
receive a first input,
decode the first input, and
produce a first output comprising the decoded first input; and
a second stage configured to:
receive a second input,
receive the first output from the first stage,
convert the first input and the second input from a first coding
system to a second coding system based on the second input and the first output, and
produce a second output comprising the converted first input and the converted second input.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the second stage comprises a plurality of logic gates.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the first stage comprises a decoder that produces the first output that is smaller than the second output.

### Claim 4 (depends on 2)

The apparatus of claim 2, wherein the decoder comprises a 7:1 decoder.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein the second stage comprises a first plurality of two input port AND gates, each one of the first plurality of two input port AND gates having a first input port respectively connected to one of seven output nodes of the 7:1 decoder and a second input port connected to an inverse of an input bit.

### Claim 6 (depends on 5)

The apparatus of claim 5, wherein the second stage comprises a second plurality of two input port AND gates, each one of the second plurality of two input port AND gates having a first input port respectively connected to one of the seven output nodes of the 7:1 decoder and a second input port connected to an input bit.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein inputs to the first plurality of two input port AND gates and the second plurality of two input port AND gates are arranged to reduce standby current for more commonly occurring TRIM codes used in a sense amplifier (SA) trimming function.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the first coding system comprises one of Binary Code and Gray Code.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein the second coding system comprises Unary Code.

### Claim 10 (depends on 1)

The apparatus of claim 1, wherein the apparatus is disposed in a Magnetoresistive Random Access Memory (MRAM).

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the second output corresponds to trim codes used in a sense amplifier (SA) trimming function of the MRAM.

### Claim 12

An apparatus comprising:
a first stage comprising a 7:1 decoder configured to:
receive a first input comprising a 0th bit, a 1st bit, and a 2nd bit of an input code,
decode the first input, and
produce a first output comprising the decoded first input on seven output nodes on the 7:1 decoder; and
a second stage comprising:
a second stage input port configured to receive a 3rd bit of the input code,
a first plurality of two input port AND gates, each one of the first plurality of two input port AND gates having a first input port respectively connected to one of the seven output nodes of the 7:1 decoder and a second input port connected to an inverse of the 3rd bit of the input code,
a second plurality of two input port AND gates, each one of the second plurality of two input port AND gates having a first input port respectively connected to one of the seven output nodes of the 7:1 decoder and a second input port connected to the 3rd bit of the input code, and
a 15 bit output, wherein bits 1 through 7 of the 15 bit output respectively correspond to outputs of the first plurality of two input port AND gates, bits 9 through 15 of the 15 bit output respectively correspond to outputs of the second plurality of two input port AND gates, and bit 8 of the 15 bit output corresponds to the second stage input port.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the input code comprises Gray Code.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the input code comprises Binary Code.

### Claim 15 (depends on 12)

The apparatus of claim 12, wherein the 15 bit output comprises Unary Code.

### Claim 16 (depends on 12)

The apparatus of claim 12, wherein the apparatus is disposed in a Magnetoresistive Random Access Memory (MRAM).

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the 15 bit output corresponds to trim codes used in a sense amplifier (SA) trimming function of the MRAM.

### Claim 18

A method comprising:
receiving a 0th bit, a 1st bit, a 2nd bit, and a 3rd bit of an input code;
decoding the 0th bit, the 1st bit, and the 2nd bit of the input code to create a first output;
generating a first portion of a second output based on the 3rd bit of the input code and the first output;
generating a second portion of the second output based on the 3rd bit of the input code and the first output; and
generating a third portion of the second output comprising the 3rd bit of the input code.

### Claim 19 (depends on 18)

The method of claim 18, wherein generating the first portion of the second output comprises ANDing an inverse of the 3rd bit with the first output.

### Claim 20 (depends on 18)

The method of claim 18, wherein generating the second portion of the second output comprises ANDing the 3rd bit with the first output.
