# US 2022/0291963 A1 · Input-shaping method and input-shaping unit for group-modulated input scheme in computing-in-memory applications

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

- Number: US 2022/0291963 A1
- Document ID: US20220291963A1
- Status: Published application
- Kind: A1
- Application number: 17/200,927
- Filed: 2021-03-15
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: National Tsing Hua University
- Applicants: National Tsing Hua University
- Inventors: Fu-Chun CHANG; Ta-Wei LIU; Cheng-Xin XUE; Sheng-Po HUANG; Yen-Hsiang HUANG; Meng-Fan CHANG
- Web page: https://patentgrep.com/patent/US20220291963A1

## CPC

- G06F 15/7821: {Tightly coupled to memory, e.g. computational memory, smart memory, processor in memory}
- H03M 7/3059: {Digital compression and data reduction techniques where the original information is represented by a subset or similar information, e.g. lossy compression}
- G06F 9/466: {Transaction processing}
- G06F 9/5016: {the resource being the memory}
- G06F 21/32: using biometric data, e.g. fingerprints, iris scans or voiceprints
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/063: using electronic means
- G06N 5/04: Inference or reasoning models
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- 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)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

An input-shaping method for a group-modulated input scheme in a plurality of computing-in-memory applications is configured to shape a plurality of multi-bit input signals. The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications includes performing an input splitting step, a threshold setting step and an input shaping step. The input splitting step includes splitting the multi-bit input signals into a plurality of input sub-groups via an input-shaping unit. The threshold setting step includes setting at least one shaping threshold via the input-shaping unit. The input shaping step includes shaping at least one of the input sub-groups according to the at least one shaping threshold via the input-shaping unit to form a plurality of shaped multi-bit input signals so as to increase a probability of a bit equal to 0 occurring in the at least one of the input sub-groups.

## Claims

### Claim 1

An input-shaping method for a group-modulated input scheme in a plurality of computing-in-memory applications, which is configured to shape a plurality of multi-bit input signals, and the input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications comprising:
performing an input splitting step, wherein the input splitting step comprises splitting each of the multi-bit input signals into a plurality of input sub-groups via an input-shaping unit;
performing a threshold setting step, wherein the threshold setting step comprises setting a plurality of shaping thresholds via the input-shaping unit, wherein the shaping thresholds comprise a first round-up threshold, a round-down threshold and a second round-up threshold; and
performing an input shaping step, wherein the input shaping step comprises shaping one of the input sub-groups according to the first round-up threshold and the round-down threshold, and then shaping another of the input sub-groups according to the second round-up threshold via the input-shaping unit to form a plurality of shaped multi-bit input signals so as to increase a probability of a bit equal to 0 occurring in the one and the another of the input sub-groups.

### Claim 2 (depends on 1)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 1, wherein each of the multi-bit input signals and the shaped multi-bit input signals has eight bits, the input sub-groups comprise a first input sub-group, a second input sub-group and a third input sub-group, and the first input sub-group, the second input sub-group and the third input sub-group have two bits, three bits and three bits, respectively.

### Claim 3 (depends on 2)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 2, wherein the input shaping step further comprises:
performing a first shaping sub-step, wherein the first shaping sub-step comprises determining whether the third input sub-group is rounded up to the second input sub-group according to the first round-up threshold, and then determining whether the third input sub-group is rounded down to 0 according to the round-down threshold; and
performing a second shaping sub-step, wherein the second shaping sub-step comprises determining whether the second input sub-group is rounded up to the first input sub-group according to the second round-up threshold.

### Claim 4 (depends on 3)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 3, wherein in the first shaping sub-step,
in response to determining that the third input sub-group is greater than or equal to the first round-up threshold, and the second input sub-group is different from 7, adding the second input sub-group by 1, and setting the third input sub-group to 0; and
in response to determining that the third input sub-group is smaller than the first round-up threshold, or the second input sub-group is equal to 7, checking whether the round-down threshold is greater than or equal to the third input sub-group.

### Claim 5 (depends on 4)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 4, wherein in the first shaping sub-step,
in response to determining that the round-down threshold is greater than or equal to the third input sub-group, setting the third input sub-group to 0.

### Claim 6 (depends on 5)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 5, wherein in the second shaping sub-step,
in response to determining that the second input sub-group is greater than or equal to the second round-up threshold, and the first input sub-group is different from 3, adding the first input sub-group by 1, and setting the second input sub-group and the third input sub-group to 0.

### Claim 7 (depends on 1)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 1, wherein in the threshold setting step, setting the first round-up threshold, the round-down threshold and the second round-up threshold to 5, 3 and 7, respectively.

### Claim 8

An input-shaping method for a group-modulated input scheme in a plurality of computing-in-memory applications, which is configured to shape a plurality of multi-bit input signals, and the input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications comprising:
performing an input splitting step, wherein the input splitting step comprises splitting the multi-bit input signals into a plurality of input sub-groups via an input-shaping unit;
performing a threshold setting step, wherein the threshold setting step comprises setting at least one shaping threshold via the input-shaping unit; and
performing an input shaping step, wherein the input shaping step comprises shaping at least one of the input sub-groups according to the at least one shaping threshold via the input-shaping unit to form a plurality of shaped multi-bit input signals so as to increase a probability of a bit equal to 0 occurring in the at least one of the input sub-groups.

### Claim 9 (depends on 8)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 8, wherein each of the multi-bit input signals and the shaped multi-bit input signals has eight bits, the input sub-groups comprise a first input sub-group, a second input sub-group and a third input sub-group, and the first input sub-group, the second input sub-group and the third input sub-group have two bits, three bits and three bits, respectively.

### Claim 10 (depends on 9)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 9, wherein,
the at least one shaping threshold comprises a first round-up threshold and a round-down threshold; and
the input shaping step further comprises determining whether the third input sub-group is rounded up to the second input sub-group according to the first round-up threshold, and then determining whether the third input sub-group is rounded down to 0 according to the round-down threshold.

### Claim 11 (depends on 10)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 10, wherein in the threshold setting step, setting the first round-up threshold and the round-down threshold to 5 and 3, respectively.

### Claim 12 (depends on 10)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 10, wherein in the input shaping step,
in response to determining that the third input sub-group is greater than or equal to the first round-up threshold, and the second input sub-group is different from 7, adding the second input sub-group by 1, and setting the third input sub-group to 0; and
in response to determining that the third input sub-group is smaller than the first round-up threshold, or the second input sub-group is equal to 7, checking whether the round-down threshold is greater than or equal to the third input sub-group.

### Claim 13 (depends on 12)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 12, wherein in the input shaping step,
in response to determining that the round-down threshold is greater than or equal to the third input sub-group, setting the third input sub-group to 0.

### Claim 14 (depends on 9)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 9, wherein,
the at least one shaping threshold comprises a second round-up threshold; and
the input shaping step further comprises determining whether the second input sub-group is rounded up to the first input sub-group according to the second round-up threshold.

### Claim 15 (depends on 14)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 14, wherein in the threshold setting step, setting the second round-up threshold to 7.

### Claim 16 (depends on 14)

The input-shaping method for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 14, wherein in the input shaping step,
in response to determining that the second input sub-group is greater than or equal to the second round-up threshold, and the first input sub-group is different from 3, adding the first input sub-group by 1, and setting the second input sub-group and the third input sub-group to 0.

### Claim 17

An input-shaping unit for a group-modulated input scheme in a plurality of computing-in-memory applications, which is configured to shape a plurality of multi-bit input signals, and the input-shaping unit for the group-modulated input scheme in the plurality of computing-in-memory applications comprising:
a comparing circuit configured to receive the multi-bit input signals and a plurality of shaping thresholds, wherein each of the multi-bit input signals are split into a plurality of input sub-groups, and the comparing circuit is configured to compare the input sub-groups with the shaping thresholds to generate a plurality of comparison results; and
a logic circuit electrically connected to the comparing circuit, wherein the logic circuit is configured to generate a plurality of shaped multi-bit input signals according to the comparison results;
wherein the shaping thresholds comprise a first round-up threshold, a round-down threshold and a second round-up threshold, the comparing circuit is configured to compare one of the input sub-groups with the first round-up threshold and the round-down threshold to generate one of the comparison results, the comparing circuit is configured to compare another of the input sub-groups with the second round-up threshold to generate another of the comparison results, and the logic circuit is configured to generate the shaped multi-bit input signals according to the one and the another of the comparison results so as to increase a probability of a bit equal to 0 occurring in the one and the another of the input sub-groups.

### Claim 18 (depends on 17)

The input-shaping unit for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 17, wherein each of the multi-bit input signals and the shaped multi-bit input signals has eight bits, the input sub-groups comprise a first input sub-group, a second input sub-group and a third input sub-group, and the first input sub-group, the second input sub-group and the third input sub-group have two bits, three bits and three bits, respectively.

### Claim 19 (depends on 18)

The input-shaping unit for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 18, wherein the comparing circuit comprises:
a first comparator configured to compare the third input sub-group with the first round-up threshold;
a second comparator configured to compare the second input sub-group with 7;
a third comparator configured to compare the round-down threshold with the third input sub-group;
a fourth comparator configured to compare the second input sub-group with the second round-up threshold; and
a fifth comparator configured to compare the first input sub-group with 3.

### Claim 20 (depends on 19)

The input-shaping unit for the group-modulated input scheme in the plurality of computing-in-memory applications of claim 19, wherein,
in response to determining that the third input sub-group is greater than or equal to the first round-up threshold, and the second input sub-group is different from 7, the third input sub-group is set to 0, and the second input sub-group is added by 1;
in response to determining that the round-down threshold is greater than or equal to the third input sub-group, the third input sub-group is set to 0; and
in response to determining that the second input sub-group is greater than or equal to the second round-up threshold, and the first input sub-group is different from 3, the second input sub-group and the third input sub-group are set to 0, and the first input sub-group is added by 1.
