US 5,012,441 AGrant
Apparatus for Addressing Memory With Data Word and Data Block Reversal Capability
Issue Date:1991-04-30
•3 Claims
•2 Drawing Sheets
Abstract
Memory address generation circuitry includes two binary counters for generating addresses for application to an address bus. The least significant bits of one counter are connected to the address bus in bit positions corresponding to the most significant bits of the other counter whereby the two counters increment addresses in opposite directions. The mode of address generation permits addresses for data in normal order, data within data blocks in normal order and data blocks in reverse-bit order, and data within data blocks in bit-reverse order and data blocks in normal order. The circuitry has particular applicability in memory address generation when operating on data with algorithms for FFT operations in one or more dimensions.
Metadata
Assignee
- Zoran Corporation
Inventor
- Refael Retter
Application Information
Application Number:US 9338152
Filing Date:1986-11-24
Priority Date:1986-11-24
Art Unit:232
Classifications
IPC:
G06F 1202G06F 7544
Field of Search:
364377200 MS File;900 MS File;72641;69;52;55
Patent Drawings (2 sheets)
Description
BACKGROUND OF THE INVENTION
This invention relates generally to the storage and retrieval of digital data, and more particularly the invention relates to the address of memory whereby data blocks and data words within data blocks can be selectively addressed in normal order or in "bit reversed" or shuffled order for one- and two-dimensional operations.
Zoran Corporation, Assignee of the present application, has introduced a vector signal processor (VSP) designated the ZR34161 whose architecture has been optimized for efficient and rapid computation of digital signal processing operations such as fast Fourier transforms (FFT). As discussed by Rabiner and Gold in Theory and Application of Digital Signal Processing, Prentice Hall, 1975, pp. 363-366, most FFT algorithms including the decimation in time algorithm require that the input sequence of numbers be stored in a shuffled order to provide for the output sequence to be in natural order. For example, the required order of an input sequence is X(0), X(4), X(2), X(6), X(1), X(5), X(3), and finally X(7) to obtain a corresponding output sequence in natural order. When N is a power of 2, the input sequence must be stored in a bit-reversed order for the output to be computed in natural order.
The definition of bit-reversed order is if one forms the L bit binary representation of the natural order indices of the input sequence, where N=2.sup.L, and reverses the bits, the resulting number is the index of the input sequence that belongs in that position. Thus, in the case of N=8=2.sup.3, the natural order indices are shown in the following table at the left side while the bit-reversed indices are shown at the right side:
Thus in order to shuffle the input sequence from its natural to a bit-reversed order, a bit-reversing algorithm is required. One such algorithm is proposed by Rabiner and Gold in which pairs of numbers are interchanged using a temporary storage.
Summary of the Invention
The present invention is directed to the addressing of memories so that data blocks or data words within a block can be accessed in natural order or in a reversed or shuffled order without requiring temporary storage in a manner that will support one-dimensional and two-dimensional operation. Briefly, two address counters are provided which count in opposite directions to provide the natural order address and the bit-reversed order address, respectively. The count of the counters can be divided between a block address and points within a block.
A bus is provided for preloading the counters, and a programmed logic array defines the data block size. Mode circuitry establishes the order of addresses within a block and of blocks depending on whether a normal order is required or a bit-reversed order is required and whether the operation is one- or two- dimensional.
The invention and objects and features thereof will be more readily apparent from the following detailed description and appended claims when taken with the drawing in.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a schematic diagram of an address generator in accordance/with the invention.
FIG. 2 is a schematic diagram of a counter cell for use in the address generator of FIG. 1.
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENT
Referring now to the drawings, FIG. 1 is a schematic diagram of an address generator for use in loading data from external memory to the internal memory of a vector signal processor or for storing data from the internal memory in the external memory. As will be described, the address generator has the capability for establishing a base address; and in response to a mode code, addresses in normal order or in bit-reversed order are generated. The address counter can count points within a block of addresses or the counter can be segmented into a block counter and a point counter.
Following is a 16 bit Load instruction format: ##STR1##
In describing the circuitry, the following nomenclature is employed for Load (LD) from external memory to internal memory and Store (ST) from internal memory to external memory.
Referring now to FIG. 1, the address generator comprises bidirectional counter circuitry shown generally at 10, a programmed logic array 12 for establishing block size and block address, and a mode circuitry 14 for generating a two bit code indicative of the mode of operation of the address generator, see RV definition, supra.
FIG. 2 is a schematic diagram of one cell in the bidirectional counter of FIG. 1. A first binary counter 20 counts in the normal or natural addressing scheme, and a second binary counter 22 counts in the bit-reversed scheme. Each counter has a carry input C.sub.i, a carry output C.sub.o, and address bit output (DON for counter 20 and DOR for counter 22). Logic circuitry is provided to respond to an MBS signal from the PLA which determines where to split the counters between block address and point address, external circuit signals for controlling data flow designated CIR and A, and an input for NMPTL for the number of points total in the block.
Referring again to FIG. 1, bus 30 is provided for preloading the counters with the number of points to be transferred. The normal count is serially transmitted through the binary counting cells with amplifiers 32 provided between alternate pairs of cells. Similarly, the bit-reversed count is serially transmitted through the binary counting cells with amplifiers 34 provided between alternate pairs of cells. The addresses as taken from cells are noted.
Bit-reverse address generation circuitry in accordance with the invention facilitates memory address generation when operating on data with algorithms for FFT operations. While the invention has been described with reference to a specific embodiment, the description is illustrative of the invention and is not to be construed as limiting the invention. Various modifications and applications may occur to those skilled in the art without departing from the true spirit and scope of the invention as defined by the appended claims.
Claims
What is claimed is:
1. Memory addressing circuitry comprising: a first binary counter comprising a plurality of serially connected binary cells, a second binary counter comprising a plurality of serially connected binary cells, a first bus for loading a count into said first and second binary counters, an address bus for receiving count from said first and second counters, said binary cells of said counters being connected to said address bus whereby the least significant bits of one counter correspond to the most significant bits of the other counter whereby addresses from said two counters increment in opposite directions, and address mode means for controlling the application of addresses from said first and second binary counters to said address bus.
2. The circuitry as defined by claim 1 wherein addresses from said counters can include a data block address and a data word address within a data block, said address mode means controlling addresses to said address bus to represent data in normal order, data within blocks in normal order and data blocks in bit-reverse order, and data within blocks in bit-reverse order and blocks in normal order.
3. The circuitry as defined by claim 2 wherein said address mode means include a programmed logic array for controlling block address and data word address generation from said first and second binary counters.
Patent Citations (10)
| Patent | Date | Inventor | Cited By |
|---|---|---|---|
| US3731284 | 1973-05-01 | Thies | |
| US4117541 | 1978-09-01 | Ali | |
| US4138732 | 1979-02-01 | Suzuki et al. | |
| US4181976 | 1980-01-01 | Collins et al. | |
| US4258418 | 1981-03-01 | Heath | |
| US4541048 | 1985-09-01 | Propster et al. | |
| US4583190 | 1986-04-01 | Salb | |
| US4674032 | 1987-06-01 | Michaelson | |
| US4686483 | 1987-08-01 | Isshiki et al. | |
| US4720780 | 1988-01-01 | Dolecek |