# US 6,157,209 A · Loadable up-down counter with asynchronous reset

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

- Number: US 6,157,209 A
- Document ID: US6157209A
- Status: Granted
- Kind: A
- Application number: 09/216,277
- Filed: 1998-12-18
- Granted: 2000-12-05
- Earliest claimed: 1998-12-18
- Assignees: Xilinx, Inc.
- Inventors: Edward S. McGettigan
- Web page: https://patentgrep.com/patent/US6157209A

## CPC

- G06F 7/5055: {in which one operand is a constant, i.e. incrementers or decrementers}
- H03K 19/17728: Reconfigurable logic blocks, e.g. lookup tables
- H03K 23/56: Reversible counters (H03K23/52 {and H03K23/548} take precedence)
- H03K 23/665: {by presetting}
- H03K 19/1737: {using multiplexers (H03K19/1738 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- 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

In an FPGA having four-input lookup tables (LUTs) with parallel two-input AND gates receiving two of the four LUT input signals, associated registers, and a carry chain receiving one input signal from the AND gate output, a loadable up-down counter is formed by connecting the register output to one of the terminals serving as both a LUT input terminal and an AND gate input terminal. A load control signal is connected to another input terminal common to the LUT and the AND gate. Thus the AND gate disables the carry chain during loading of the counter and applies the count value to the carry chain during counting.

## Claims

### Claim 1

A loadable up-down counter implemented in an FPGA comprising a plurality of stages, each stage providing one counter bit and comprising:
a register providing a counter bit output signal G0;
a four-input LUT programmed to generate the function
G=(G1 AND ((G0 XOR G3)) OR (G1 AND G2)
and receiving:
the counter bit output signal G0,
a load signal G1,
an up-down signal G3, and
a starting data value G2;
an AND gate receiving the load signal G1 and the counter bit output signal G0 and providing an AND gate output signal; and
a carry multiplexer providing a carry multiplexer output signal, and receiving as input signals the AND gate output signal and a carry multiplexer output signal from another stage.

### Claim 2 (depends on 1)

A loadable up-down counter as in claim 1 wherein the register further comprises a clock enable terminal controlling whether the register responds to a clock signal, the clock enable terminal being connected to receive the load signal G1.

### Claim 3 (depends on 1)

A loadable up-down counter as in claim 1 wherein the register further comprises an asynchronous terminal for resetting the register, the asynchronous terminal being connected to receive a reset signal.

### Claim 4 (depends on 1)

A loadable up-down counter as in claim 1 wherein a select multiplexer provides the AND gate output signal as an input signal to the carry multiplexer.

### Claim 5 (depends on 1)

A loadable up-down counter as in claim 1 further comprising a first stage providing the least significant counter bit and comprising:
a register providing the least significant counter bit output signal F0;
a LUT programmed to generate the function
F=(F1 AND F0) OR (F1 AND F2)
and receiving
the least significant counter bit output signal F0,
a load signal F1,
a starting data value F2;
an AND gate receiving the load signal F1 and the least significant counter bit output signal F0 and providing an AND gate output signal; and
a carry multiplexer providing a carry multiplexer output signal, and receiving as input signals the AND gate output signal and a logic 0 input signal.

### Claim 6

A method of implementing a loadable up-down counter in an FPGA, comprising:
programming a configurable logic element (CLE) to generate the function
G=(G1 AND ((G0 XOR G3)) OR (G1 AND G2);
providing a register to store a counter bit output signal G0;
providing the counter bit output signal G0, a load signal G1, a starting data value G2, and an up-down signal G3 as inputs to the CLE;
providing an AND gate having an output signal, and receiving the load signal G1 and the counter bit output signal G1 as input signals; and
providing a carry multiplexer having an output signal, and receiving as input signals the AND gate output signal and a carry multiplexer output signal from another stage.

### Claim 7 (depends on 6)

The method of claim 6, further comprising the steps of:
programming a second CLE to generate the least significant bit function
F=(F1 AND F0) OR (F1 AND F2)
providing a register to store a counter bit output signal F0,
providing the counter bit output signal F0, a load signal F1, a starting data value F2, and up-down signal F3 as inputs to the CLE;
providing an AND gate having an output signal, and receiving the load signal F1 and the counter bit output signal F0; and
providing a carry multiplexer with an output signal, and receiving as input signals the AND gate output signal and a logic 0 input signal.
