# US 2010/0077184 A1 · Method and apparatus for removing a pipeline bubble

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

- Number: US 2010/0077184 A1
- Document ID: US20100077184A1
- Status: Published application
- Kind: A1
- Application number: 12/629,540
- Filed: 2009-12-02
- Published: 2010-03-25
- Earliest claimed: 2005-09-19
- Assignees: Synopsys, Inc.
- Inventors: John D. Lofgren; Brett Kobernat
- Web page: https://patentgrep.com/patent/US20100077184A1

## CPC

- G06F 9/3867: {using instruction pipelines}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One embodiment of the present invention provides a system for augmenting a pipeline with a bubble-removal circuit. During operation, the system generates a bubble-removal circuit which determines a clock-enable signal based at least on whether an upstream register has valid data and whether the pipeline is stalled. Next, the system gates the clock signal using the clock-enable signal. The augmented pipeline can determine whether a first register contains invalid data, which is associated with a bubble. Next, the augmented pipeline determines whether a second register contains valid data, wherein the second register is adjacent to and upstream from the first register. If the first register contains invalid data and the second register contains valid data, the augmented pipeline replaces the invalid data of the first register with valid data based on the valid data in the second register without propagating the invalid data to a downstream register.

## Claims

### Claim 1

A method for augmenting a pipeline with a bubble-removal circuit, wherein the pipeline comprises a first register, a pipeline stage logic, and a second register, wherein an output of the second register is coupled to an input of the pipeline stage logic, and an output of the pipeline stage logic is coupled to an input of the first register, and wherein the first register advances data if the first register's clock signal is not blocked, the method comprising:
generating by computer a bubble-removal circuit which determines a clock-enable signal based at least on whether the second register has valid data and whether the pipeline is stalled; and
gating the first register's clock signal using the clock-enable signal.

### Claim 2 (depends on 1)

The method of claim 1, wherein clock-enable signal does not block the first register's clock signal if the pipeline is reset.

### Claim 3 (depends on 1)

The method of claim 1, wherein the clock-enable signal blocks the first register's clock signal if the second register has invalid data.

### Claim 4 (depends on 1)

The method of claim 1, wherein the clock-enable signal does not block the first register's clock signal if the second register has valid data, and at least one register that is downstream to the first register has a bubble.

### Claim 5 (depends on 1)

The method of claim 1, wherein the clock-enable signal does not block the first register's clock signal if the second register has valid data, and the pipeline is not stalled.

### Claim 6 (depends on 1)

The method of claim 1, wherein gating the first register's clock signal using the clock-enable signal prevents bubbles from consuming switching power while propagating through the pipeline.

### Claim 7

A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for augmenting a pipeline with a bubble-removal circuit, wherein the pipeline comprises a first register, a pipeline stage logic, and a second register, wherein an output of the second register is coupled to an input of the pipeline stage logic, and an output of the pipeline stage logic is coupled to an input of the first register, and wherein the first register advances data if the first register's clock signal is not blocked, the method comprising:
generating a bubble-removal circuit which determines a clock-enable signal based at least on whether the second register has valid data and whether the pipeline is stalled; and
gating the first register's clock signal using the clock-enable signal.

### Claim 8 (depends on 7)

The computer-readable storage medium of claim 7, wherein clock-enable signal does not block the first register's clock signal if the pipeline is reset.

### Claim 9 (depends on 7)

The computer-readable storage medium of claim 7, wherein the clock-enable signal blocks the first register's clock signal if the second register has invalid data.

### Claim 10 (depends on 7)

The computer-readable storage medium of claim 7, wherein the clock-enable signal does not block the first register's clock signal if the second register has valid data, and at least one register that is downstream to the first register has a bubble.

### Claim 11 (depends on 7)

The computer-readable storage medium of claim 7, wherein the clock-enable signal does not block the first register's clock signal if the second register has valid data, and the pipeline is not stalled.

### Claim 12 (depends on 7)

The computer-readable storage medium of claim 7, wherein gating the first register's clock signal using the clock-enable signal prevents bubbles from consuming switching power while propagating through the pipeline.

### Claim 13

An apparatus for augmenting a pipeline with a bubble-removal circuit, wherein the pipeline comprises a first register, a pipeline stage logic, and a second register, wherein an output of the second register is coupled to an input of the pipeline stage logic, and an output of the pipeline stage logic is coupled to an input of the first register, and wherein the first register advances data if the first register's clock signal is not blocked, the apparatus comprising:
a generating mechanism configured to generate a bubble-removal circuit which determines a clock-enable signal based at least on whether the second register has valid data and whether the pipeline is stalled; and
a gating mechanism configured to gate the first register's clock signal using the clock-enable signal.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein clock-enable signal does not block the first register's clock signal if the pipeline is reset.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the clock-enable signal blocks the first register's clock signal if the second register has invalid data.

### Claim 16 (depends on 13)

The apparatus of claim 13, wherein the clock-enable signal does not block the first register's clock signal if the second register has valid data, and at least one register that is downstream to the first register has a bubble.

### Claim 17 (depends on 13)

The apparatus of claim 13, wherein the clock-enable signal does not block the first register's clock signal if the second register has valid data, and the pipeline is not stalled.

### Claim 18 (depends on 13)

The apparatus of claim 13, wherein gating the first register's clock signal using the clock-enable signal prevents bubbles from consuming switching power while propagating through the pipeline.
