Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
TWO-DIMENSIONAL DISCRETE COSINE TRANSFORM PROCESSOR
Document Type and Number:
WIPO Patent Application WO/1988/007725
Kind Code:
A1
Abstract:
This processor is capable of real time processing of blocks of video pixel or other two-dimensional data to yield the two-dimensional Discrete Cosine Transform (DCT) thereof. The processor can be used as part of a video bandwidth or image compression system. The circuitry comprises a first one-dimensional DCT processor (3) which simultaneously computes an entire row or column of vector inner products by using distributed arithmetic and using decimation-in-frequency to reduce the amount of memory capacity (ROM) required. Partial sums may also be used to further reduce ROM size. The one-dimensional transformed matrix from the first processor is stored in a transposition memory (5) and the transpose of the stored matrix is applied to a second one-dimensional DCT processor (7) of similar circuitry which computes the desired two-dimensional DCT of the input data matrix.

Inventors:
LIOU MING-LEI (US)
SUN MING-TING (US)
WU LANCELOT (US)
Application Number:
PCT/US1987/003347
Publication Date:
October 06, 1988
Filing Date:
December 15, 1987
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
BELL COMMUNICATIONS RES (US)
International Classes:
G06F17/14; G06T9/00; (IPC1-7): G06F15/332
Other References:
PHILIPS TECHNICAL REVIEW, Volume 38, No. 4/5, 1978/79, H. BACCHI et al., "Real-Time Orthogonal Transformation of Colour-Television Pictures", pages 119-130.
IEEE TRANSACTIONS ON COMPUTERS, Volume C-32, No. 12, December 1983, IEEE, (New York, US), P. CHOW et al., "A Pipelined Distributed Arithmetic PFFT Processor", pages 1128-1136.
IEEE TRANSACTIONS ON AUDIO AND ELECTROACOUSTICS, Volume AU-18, No. 1, March 1970, (New York, US), S. BERTRAM, "On the Derivation of the Fast Fourier Transform", pages 55-58.
Download PDF:
Claims:
What is claimed is:
1. A twodimensional Discrete Cosine Transform (DCT) processor comprising; a first Nxl DCT processor to which an NxN block of input data words is applied one column at a time, said first Nxl DCT processor comprising; means to concurrently compute N vector inner products for each of said columns of said input data by means of circuitry which implements, distributed arithmetic wherein the elements of the NxN discrete cosine matrix as well as combinations of said elements are stored in N RACs, each of which comprises a Read Only Memory (ROM) plus an accumulator, said ROMs being addressed by N/2 bit words derived from Nbit words by means of circuitry which implements a first stage decimationinfrequency, and whereby the words so retrieved from said ROMs are summed in said accumulators by n shift and add operations, where n is the number of bits in each of the said data words after the said decimationinfrequency, whereby said first Nxl DCT processor produces an intermediate transform matrix, and means to store said intermediate matrix in a transposition memory and then to read the transpose of the said stored intermediate matrix to a second Nxl DCT processor which generates the desired twodimensional NxN DCT by means of circuitry similar to that of said first DCT processor.
2. The processor of claim 1 wherein N=16 and wherein said block of input data words comprises video pixels encoded in 8bit binary words.
3. The processor of claim 2 wherein said circuitry is implemented on a single chip.
4. A twodimensional Discrete Cosine Transform (DCT) processor which uses a pair of onedimensional DCT processors to produce the twodimensional DCT of an NxN matrix of input data by a rowcolumn decomposition method, comprising; a first DCT processor which computes the one dimensional transform of said input data matrix, one column at a time, an NxN RAM array for storing the resulting intermediate NxN matrix; and a second DCT processor for computing the one dimensional transform of the transpose of the s «_aid stored intermediate matrix to yield the desired twodimensional DCT.
5. The processor of claim 4 wherein both of said DCT processors are Nxl DCT processors and comprise means for performing distributed arithmetic, first stage decimationinfrequency and partial sums to compute N inner vector products simultaneously using only registers, memories and adders.
6. A twodimensional Discrete Cosine Transform (DCT) processor comprising; first and second onedimensional DCT processors which produce the twodimensional DCT of an NxN block of input data by a rowcolumn decomposition method wherein the transpose of the said block of input data is applied to the said first DCT processor column by column to compute an intermediate NxN matrix which is stored in a RAM array and then the transpose of the said stored intermediate matrix is applied to said second DCT processor for the computation of the desired two dimensional DCT.
7. The processor of claim 6 wherein each of said onedimensional DCT processors comprises; an N stage input register to which a column of said block of input data or a row or column of said stored intermediate matrix is applied in bitparallel format, an N stage holding register to which the contents of the said input register are transferred each time that said input register is full, and means to concurrently compute N vector inner products, said means including circuitry which implements distributed arithmetic with first stage decimationin frequency and circuitry comprising N RACs (Read Only Memories with accumulators in cascade therewith) each of which stores the constants of a column of the discrete cosine matrix, and combinations thereof.
8. The processor of claim 7 wherein N is greater than 8 and wherein said means further comprises circuitry to implement partial sums.
9. A twodimensional Discrete Cosine Transform (DCT) processor comprising; first and second Nxl DCT processors and a transposition memory, means to apply the transpose of an NxN block of data to said first Nxl DCT processor, column by column, to thereby compute an intermediate NxN matrix, means to store said intermediate matrix in said transposition memory, and means to read out the transpose of said stored intermediate matrix to the input of said second Nxl DCT processor to thereby compute the twodimensional DCT of said block of data.
10. The twodimensional DCT processor of claim 9 wherein each of said Nxl DCT processors comprises means to concurrently compute N vector inner products for each column of said NxN block of data or each row or column of said stored matrix by utilizing circuitry which implements distributed arithmetic with first stage decimationin frequency and partial sums, whereby said Nxl DCT procesors comprise only registers, adders and Read Only Memories of small capacity.
11. The processor of claim 10 wherein said transposition memory comprises an NxN RAM array with separate read and write terminals, and wherein the output of said first DCT processor is alternately read in row¬ wise and columnwise and the input of said second DCT processor is alternately read out from said memory row¬ wise and columnwise in such a way that the transposition of the stored matrix is achieved.
Description:
TWO-DIMENSIONAL DISCRETE COSINE TRANSFORM PROCESSOR

Field of the Invention

This invention relates to a processor for converting spatial domain signals, e.g. video signals, into frequency domain signals by means of a mathematical procedure known as a Discrete Cosine Transform (DCT) . Background of the Invention

The DCT is considered to be the most effective technique among various transform coding methods for image compression or video bandwidth compression. A DCT is similar to a Discrete Fourier Transform (DFT) but includes only cosine terms. In achieving bandwidth compression in this way, a square block of digitally encoded picture elements or pixels can be transformed into the frequency domain by means of a two-dimensional (NxN) DCT processor to which the NxN block of pixel data is applied, and wherein the input data matrix is multiplied by an NxN discrete cosine matrix to yield an intermediate matrix, and then the transpose of the intermediate matrix is multiplied by the same discrete cosine matrix to yield the desired two-dimensional transformed matrix. The elements of the transformed matrix can then be quantized and only the most energetic terms therein need be transmitted. At the receiver an inverse transformation is performed to reconstruct the original video signal in the space domain. For the NxN DCT, larger N achieves better compression ratio but requires more computation.

Matrix multiplication involves forming the inner products of two Nxl vectors to yield a single element of the product matrix. Thus each element of a row of the input matrix must be multiplied by each of the corresponding elements of a column of the cosine matrix and the products summed to yield a single element of the product matrix. Thus, for the transformation of a 16 x 16 block of pixels, 16 products must be summed to yield a single element or coefficient of the intermediate and the

transformed matrices, each of which has 256 elements. Many fast algorithms have been derived to reduce the number of computations required. For example, the DCT matrix has been decomposed into several sparse matrices, which result in butterfly structures. These butterfly structures reduce the computation significantly but still require many high speed multipliers which require large silicon area for IC implementation and result in messy- interconnections, poor routing on chips, and irregular shape. All of these factors make VLSI (Very Large Scale Integration) implementation of butterfly structures very inefficient. An example of VLSI implementation of the DCT using such a structure is described in an article entitled, "A Discrete Fourier-Cosine Transform Chip" in the IEEE Journal on Selected Areas in Communication, Jan. '86, pp. 49-61. The resulting chip shown in FIG. 17 therein includes many multipliers, does not efficiently utilize the silicon area, and can implement only an 8x1 , one-dimensional transform. The two-dimensional transform contains two one-dimensional transforms and needs temporary storage for intermediate results and matrix transposition, thus it is much more complex than the one- dimensional transform.

Our invention is a response to a need for real time processing of two-dimensional DCT which can be efficiently implemented by state-of-the-art VLSI technology. Our invention provides real time processing σf 16 x 16 DCT on a single chip. This means that the processor must provide transformed 16 x 16 matrices for application to a quantizer at the same rate that the 16 x 16 input matrices are being generated by the video camera. The processor should be able to handle an input sample or pixel rate of 14.3 MHz which is a rate commonly used in digital video systems with present day MOS technology. Due to the large amount of computation required, real time processing at this rate can be achieved only by exploiting inherent concurrency and parallelism in the architecture.

Also, since the silicon area and the design effort needed for implementing an algorithm are heavily dependent on the degree of regularity of the architecture, one can see that the challenge of efficiently implementing DCT in VLSI is to develop an architecture which can realize the enormous number of multiplications required with a regular structure. Summary of the Invention

Instead of mapping fast algorithms into silicon, we utilize, in accordance with our invention, distributed arithmetic combined with decimation-in-frequency, bit- serial and bit-parallel data structures, and partial sums to implement vector inner products concurrently and with minimal ROM size. Novel input/output and efficient matrix transposition circuitry have been devised. The result is architecture (or circuitry) with a highly regular structure and nq multipliers. This is possible because of the inherent properties of transform operations, namely (1) the transform matrix coefficients are constants which permits the use of distributed arithmetic wherein memory look-up tables, or Read Only Memories (ROMs) are substituted for multipliers, and (2) the matrix-vector products are realized by several concurrent vector inner products. The decimation-in-frequency and partial sums are utilized to reduce the size of the look-up tables required. The bit-serial structure is used to implement the decimation-in-frequency so that the silicon area is minimal and the routing greatly simplified. The result is a two-dimensional DCT processor which consists only of memories, adders, and registers; no multipliers are required. The regularity of the highly concurrent operation of the circuitry allows for modular design, an ideal feature for VLSI implementation. Also, the architecture combines bit-serial and bit-parallel circuitry to maximum advantage. Our novel architecture can also be adapted for other two-dimensional linear operations.

Our two-dimensional DCT processor comprises an input one-dimensional (Nxl) Column DCT processor to which the NxN input data block is sequentially applied column by column. The input or column processor is designed to generate the column transform of the input data with circuitry which utilizes distributed arithmetic with the added features of decimation-in-frequency and partial sums to reduce the amount of ROM required. The input Nxl processor is provided with N circuits, each of which comprises Read Only Memory (ROM) and an accumulator in cascade, and called RACs. The accumulators concurrently compute the elements of the column transform by shifting and adding of the data retrieved from the ROMs. The resultant intermediate vector is stored in one row of a NxN transposition memory which comprises a RAM. Each of the columns of the data matrix is applied to the input Nxl processor in sequence to produce the NxN intermediate matrix (Y) which is the product (X C) of the transpose of the data matrix (Xt) and the discrete cosine matrix (C) represented by the constants stored in the ROM. The superscripts "t 11 indicate the transpositions of the matrices. A second or output row Nxl DCT processor is then used to compute the one-dimensional Nxl DCT for each column of X C, which is retrieved from storage in the memory. The result of this second or row transform operation is thus CtXC, which is the desired two- dimensional NxN DCT. The processor is provided with a control circuit which provides clock and other control signals to control the operations of the components described.

The input Nxl DCT processor comprises, an input register of N stages to which the input data is sequentially applied on n., parallel lines, wherein n_ is the number of bits per word or pixel of input data. As soon as the input register fills up with a column of data, the entire column is shifted simultaneously in bit- parallel format to a holding register and the input

register then starts to collect the next column of data. The data in each of the N stages of the holding register are then concurrently shifted out, one bit at a time, with the least significant bit first. The N-bit words so formed are converted into two N/2 bit words as part of a technique known as first stage decimation-in-frequency and

•_ the resultant N/2 bit words are used to address all of the ROMs of the RACs simultaneously. Since the first stage decimation changes the n_ unsigned input data to (n 1 +2)- bit 2's complement numbers, the same operation is repeated n.+2 times and the n.+2 words retrieved from each ROM are sequentially added to the contents of an accumulator comprising a shift register with a hard wired 1-bit right shift. The sign bit which is part of the data word results in subtraction instead of addition. The accumulated output of each of these RACs after each column of input data has been processed comprises a single coefficient or element of the column transform. The contents of all the RACs are transferred simultaneously and in bit-parallel format to an N-stage output register, after which the contents thereof are sequentially shifted into one row (or column) of the transposition memory on n_ parallel lines. After the NxN memory is filled up in this fashion, the second or output Nxl Row DCT processor reads out the matrix stored in the RAM memory in a column by column (or row by row) fashion so that the transpose of X C is obtained. The second Nxl DCT then generates the desired NxN two-dimensional DCT in the same way as does the first or input DCT processor. Both of the Nxl processors may comprise similar circuits, except that more bits may be required to represent the data in the second Nxl processor.

The novel two-dimensional NxN processor comprises a first Nxl DCT processor to which the transpose of an NxN block of input data is applied, by reading the original matrix column wise, the first Nxl processor comprising means to concurrently compute N inner vector

products for each column of said input data using distributed arithmetic wherein the constants of the NxN discrete cosine matrix are stored in N RACs, each of which comprises a ROM plus an accumulator, the ROMs being addressed by N/2 bit words derived from the data words of said columns of input data. The words so retrieved from the ROMs are accumulated in a shift register by a shift and add operation, the output of each of the N RACs comprising a different element or coefficient of one row (or column) of an NxN intermediate matrix which comprises the Nxl transform of the block of input data. Circuitry is provided to store the intermediate matrix in an NxN RAM array and then to read out the transpose thereof to a second Nxl DCT processor which generates the desired two- dimensional NxN DCT by means of circuitry similar to that used to generate the aforementioned intermediate NxN matrix. Suitable control circuitry is provided to generate the required control signals.

It is thus an object of the invention to provide a two-dimensional DCT processor which can generate the transform of 16 x 16 blocks of binary coded video data on a real time basis and in which the architecture, circuitry and algorithm of said processor are chosen for ease of implementation by means of state-of-the-art VLSI technology, whereby the. processor may be realized on a single CMOS chip.

Another object of the invention is to provide a one-dimensional Nxl DCT processor which can simultaneously process a column (or row) of data from an input data matrix to form a row of elements comprising the inner vector products of the column (or row) of input data and the N columns of a discrete cosine matrix which are stored in N RACs in the processor, and whereby the Nxl processor utilizes distributed arithmetic, first stage decimation- in-frequency and partial sums in computing the inner vector products, the processor comprising only registers, memories of small capacity, and adders.

A still further object of the invention is to provide a two-dimensional DCT comprising a one-dimensional DCT which comprises circuitry utilizing distributed arithmetic, RACs, decimation-in-frequency and partial sums to efficiently and simultaneously compute a plurality of elements comprising the vector inner products of a column of input data and a discrete cosine matrix which is stored in the RACs, and whereby columns of input data are thus sequentially processed to generate an intermediate NxN matrix which is stored in a RAM array and then the transpose of the intermediate matrix is read out to a similar one-dimensional DCT processor which similarly generates the desired two-dimensional NxN DCT.

A further object of the invention is to provide a 16 x 16 two-dimensional DCT capable of real time processing of blocks 16 x 16 video pixels and wherein the architecture, circuitry and algorithm of the processor are chosen to -achieve high speed, complicated computations with a minimum of structure or circuitry and with simple controls. The architecture and circuitry chosen permit simultaneous (or concurrent) computation of several vector inner products without the use of multipliers but with ROMs of small capacity, and bit-serial and bit-parallel format are used in combination to save silicon chip area and simplify routing as well as to permit high speed operation to facilitate real time processing of video signals. Brief Description of the Drawing

FIG. 1 shows the connections required when our invention is implemented on a single chip.

FIG. 2 shows an overall block diagram of one embodiment of our invention.

FIG. 3 shows a DCT processor utilizing distributed arithmetic and other features. FIG. 4 is a block diagram of a RAC.

FIG. 5 is a block diagram of a DCT processor utilizing decimation-in-frequency.

FIG. 6 is a diagram of a RAC which does not use partial sums.

FIGS. 7 and 8 are diagrams of RACs which utilize partial sums. FIG. 9 is a complete diagram of the Nxl DCTs of

FIG. 2. Detailed Description

The Discrete Cosine Transform (DCT) is an orthogonal transformation consisting of a set of basis vectors which are sampled cosine functions. The N order DCT transform matrix, C, is defined by:

for k = 1,2,3...N,1 In order to achieve bandwidth compression by means of the DCT, blocks of NxN video data in the form of unsigned binary-coded pixels must be subjected to two-dimensional transformation. The two-dimensional DCT of order N is defined as:

Y=C t X C (2)

wherein Y is the transformed matrix, X is the data or t video pixel matrix, and C is the transpose of the discrete cosine matrix, C, defined by Equation (1) .

The implementation of a two-dimensional NxN DCT can be accomplished by a prior art method known as the row-column decomposition technique; see the book entitled "Multidimensional Digital Signal Processing", by Dudgeon and Mersereau in Prentice Hall Signal Processing Series, 1984. In this prior art technique, the two-dimensional DCT is accomplished by two sequential one-dimensional DCTs wherein the data matrix is applied to the first one- dimensional DCT row-wise. In our invention, a variation of this technique is utilized wherein, as stated above, the transpose of the data matrix is obtained and applied

to the first one-dimensional DCT processor by reading the data matrix column-wise instead of row-wise so that the transpose of the data matrix is obtained. This results in simplified circuitry. Thus in the present invention the output of the first one-dimensional Nxl DCT processor is X C which is temporarily stored in the transposition memory and then another Nxl DCT is computed from the transpose of the stored matrix to yield the desired two- dimensional DCT (Y) of Equation (2) . If speed is not important the two Nxl DCT computations can be time-shared by the same circuitry, but in the present case where real time operation is required, two Nxl processors are used.

FIG. 1 is a diagram showing our invention implemented on a single chip. The connections to this chip comprise the bias voltage V , ground, a sample clock and a Start-of-Block strobe. The input data is applied in parallel via n_. parallel lines, one for each bit of the pixel words. The output transformed data may comprise n, parallel lines for the longer transformed words. The input and output data are shifted into and out of the chip continuously at the sample clock rate.

FIG. 2 shows the overall organization of our invention comprising the first or column Nxl DCT, 3, to which the.input data is applied on n 1 parallel lines; the output of DCT 3 is temporarily stored, row or column-wise, in NxN transposition memory 5, which comprises a Random Access Memory (RAM) with separate input and output ports, as shown. The n_ parallel lines from DCT 3 to memory 5 will normally comprise more bits than the input data, depending on the accuracy required. The stored matrix is applied column or row-wise (depending on how the intermediate matrix was stored) , to the second or row Nxl DCT 7 via n_ parallel lines. Thus the transpose of the stored matrix is read out. The output transformed data is obtained via n~ parallel lines from the second Nxl DCT processor. A timing and control circuit 9 has a clock signal and the Start-of-Block strobe applied thereto from

external circuitry and circuit 9 supplies several timing and control signals 11 and 12 to the processing circuitry. The read/write address and control circuit 16 receives control signals 12 from circuit 9 and applies via lines 14 appropriate read/write addresses and other control signals to the memory 5.

Each, of the aforementioned vector inner products comprises a summation of N products. It can be shown mathematically that this computation can be realized without multipliers by the use of look-up tables comprising ROMs, whereby the required coefficients of the transformed matrices are obtained by shifting and adding of look-up table values obtained from the ROMs. This computational technique, which is also known in the art, is known as distributed arithmetic. The ROMs and the accumulators in which the shifting and adding takes place comprise units called RACs, and each RAC stores the constants representing a different column of the discrete cosine matrix. FIG. 3 and 4 show an Nxl DCT illustrating how distributed arithmetic functions and also illustrating some of the circuit features utilized in our invention. In FIG. 3, input register 13 comprises N stages Q - . Each column of pixels or other two-dimensional data, x l k*** x N k' "*~ s a 1 i ed to stage Q . of register 13 in bit-parallel format at the data or clock rate of 1/T. By reading the pixel data matrix column-wise, the transpose thereof is accomplished. Video digital pixel data is normally encoded in 8-bit unsigned words, each representing the luminance of a pixel. Thus the data input would be applied to Q_ on 8 (or n.) parallel lines, and each register stage Q-J-QJ- Γ would comprise 8 (or n χ ) bits in parallel. After N clock cycles the column would be completely loaded into the N stages of register 13. At that time control signals 11a and lib from circuit 9 of

FIG. 2 would transfer in parallel all of the 8 (or n.,) bit words from Q 1 ~Q N - into the corresponding stages .-R j . of

holding register 15. The next column of input data would then begin to fill up input register 13, while the remainder of the circuitry is performing concurrent computation of N inner vector products to obtain the one- dimensional transform of the data in the» holding register. In performing this concurrent computation, the data in the holding register is shifted out, 1 bit at a time, with the least significant bit first in response to control signal lie. The N lines from the N stages of register 15 form an N-bit bus, all lines of which are applied to N different RACs (RAC(l)-RAC(N) ) . Thus at each clock cycle, a different N-bit word is used to simultaneously address the

ROMs which are part of each RAC. The RAC(l) will have in its ROM 2 N constants which represent all the possible combinations of coefficients of the first column of the matrix C. For example, if the first column coefficients are c. ^c, .,0. I'* C N 1 / then the ROM would store all of these coefficients individually and all possible sums of etc., up to and including the sum of all of these column coefficients. As an example, for N=4, the computation of each element, y. , of the column transform can be represented as follows: c. .(110101001) + c, .(00101010) + c 3 1 (11001111) + c 4 λ (10101110), wherein the eight-bit words represent different data pixels forming a column of data. In this example the least significant bits of all the data words would form the word 1010. This word would retrieve from the ROM of RAC(l) the stored value c. -,+c- , which would be applied to the shift register 25 of the RAC(l) , shown in FIG. 4. On the next clock cycle the next most significant digit of all of the data word would be applied to all of the RACs to retrieve different values therefrom depending which RAC is being addressed and what the N digit word is. This retrieved word is also applied to the shift register through ADD/SUB circuit 23 of FIG. 4 wherein it is added to the previous contents of the shift register which are fed back to the ADD/SUB circuit with a

right shift of 1-bit. Thus after the second addressing of the ROM 21, the shift register 25 will have stored therein the sum of the two retrieved words with the first one weighted by 1/2 (or divided by 2) to reflect the fact that it represents a bit of the data word of less significance. This process is repeated for each bit of the data word. 'The ADD/SUB circuit 23 performs ADD for the regular data bits and SUB (subtract) for the sign-bit. The final summation of all such retrieved and weighted words from the ROM equals one coefficient of the product matrix or of the one-dimensional transform. For example, if the elements of the product matrix X C, are y k , , the output of RAC(l) after the first column of input data has been processed in this manner will be y., 1 and similarly the output of RAC(N) will be y. M . Thus the entire first row t -~ r " of the product matrix X C, will be available at the RAC outputs after completion of this computation. In response to control signal lid from circuit 9, the accumulated contents of each RAC, y, .-y. N are then simultaneously loaded in parallel on n, (or n 3 ) parallel lines into the stages, U.-U N of output register 19, which is similar to the input register with an extra two-input multiplexer. The contents of register 19 would then be sequentially shifted out from stage L, thereof on n, (or n-) parallel lines, to the transposition memory or to the two- dimensional processor output, in response to the control signal lie. For example, if N=16, 16 clock cycles would be required to load input register 13 with one column of data; thus every 16 cycles the control circuit 9 would be arranged to provide the signal lib for effecting the transfer of the column of data to holding register 15. The register 19 can serially shift out its contents, y k -, , while the RACs are computing the next row of the product matrix, and the input registers are collecting input data. As shown in FIG. 4, the output of the ROM 21 will have a word length of n 4 ~bits which is determined by the length of the words stored in the ROM. The signal llf applied to

circuit 23 from circuit 9 determines whether this circuit performs addition or subtraction. The control signals llg and llh applied to the shift register 25 are reset and parallel load signals.

The circuitry of both of the one-dimensional DCT processors are the same except for the number of bits per word. As indicated in FIG. 2, the first processor has an input word length of n., and an output word length of n„. The second DCT processor 7 has input and output word lengths of n_ and n_, respectively.

While the circuitry of FIG. 3 and 4 requires no multipliers, it has serious limitations due to the number of constants which must be stored in each ROM thereof. For example, if N=16, the number of words required for each ROM of each RAC is 2 16 or 65,536. ROMs of this size are not feasible with present day VLSI technology if the entire processor is to be implemented on a single chip. Two approaches have been adopted for reducing the ROM size, both of which require only modest additional circuitry. The first approach is a version of the decimation-in-frequency technique which has been used in the prior art in conventional Fast Fourier Transform (FFT)

+•r"_ algorithms. The (k,l) element of the product matrix Y=X C is given by;

t < N Y k,l - ϊk-Sl - x ^ x m,k c m,l ^

wherein x. is the k column vector of X and c, is the 1 column vector of C. Referring to the NxN DCT transfer matrix C defined in Equation (1) , it can be shown that for even N, c, , + c N+1 _ k -i for 1 = 1,3,...N-1, and c, , = -c N ._, , for 1 = 2,4,...N. With these relations,

Equation (3) becomes:

N/2

L k,l m=l u k,m c m,l (4)

for 1-1,3...N-l, where u^ m = k +X N-m + l,k' and

for 1 = 2,4...N, with v m = ^ ^N-m- l,^ Equations (4) and (5) imply that when the variables u and v replace the original data sequence x, the summation from 1 to N becomes a summation from 1 to N/2. Thus the number of data bits required to address each ROM is reduced by a factor of 2, and the number of required stored words is reduced by a factor of 2 ' . In principle, this decimation-in-frequency technique can be extended to more stages, as most FFT algorithms do. However, the savings may not be worthwhile because of the increasing irregularities involved. Thus to preserve the modular structure, only the first stage decimation was applied. This feature of the invention is illustrated by the circuit of FIG. 5.

In FIG. 5, N/2 serial adders 31 are provided for generating the variables u from N/2 different pairs of the original data sequence from register 15. As shown, the variable u. . is formed by adding x 1 k and N , , u, _ from

X 2,k P 1US X N-l,k' and U k,N/2 frθm X N/2,k P 1US ' X N/2+l,k- The same pairs of input data elements are subtracted from each other in N/2 one-bit serial subtractors 33 to yield the ' new variables v. .,v k 2** " v k N/2 * Tnus pairs of data elements of each column of input data comprise the elements from the first and last row of the columns, the elements from the second and next to last row of the columns, the elements from the third and third to last row of the columns, etc. The input data bits k , of FIG. 5 would be obtained one bit at a time (in bit-serial format) from a holding register similar to that of FIG. 3 and the outputs of the serial adders and subtractors 31 and 33 would appear one bit at a time to form two N/2 line buses with each bus forming the inputs of two different groups

of N/2 RACs. The N/2 line bus 34 associated with the adders 31 has the odd numbered RACs, 1,3, N-l connected thereto and these RACs compute all of the elements of the inner vector products of the odd numbered columns, e.g., YT, -I. Y . 3 . YT- N __ L ' The N/2 - L - Lne us 3δ associated with the subtractor circuits 33 has the even numbered RACs, 2,4, N connected thereto which compute the elements of the even numbered columns of the vector inner products.

The use of a first stage decimation circuit such as that of FIG. 5 will reduce the size of each ROM to 256 words for a 16 x 16 matrix, since each RAC is now addressed by 8-bit words.

The invention utilizes an additional technique to further reduce the ROM sizes. This additional techniques is based on the observation that the summations over index m, the number of data points in Equations (4) and (5) , may be split into partial sums. If we chose to split (3) into two partial sums, then;

N ^ X m,k C m,l " F l ^I'^k ) + F 2 <≤l'ϊ]c>

(6) where

Note that the summations in F. and F„ contain only N/2 input samples instead of N samples. By splitting in this way each ROM with 2 N words is replaced by two smaller ROMs with 2 N/2 words. More precisely, the data words at the inputs of each RAC are split into two groups, the first groups consists of the bits from 1 to N/2 and the second group the bits from data numbers (N/2) + 1 to N. Thus the words used normally to address the RAC are split into two equal parts comprising the first and last halves thereof.

Each of the smaller words is used to address separate

ROMs, and the ROM outputs are added in parallel and the sum applied to the accumulator. The number of partial sums using this splitting technique can be any even

5 numbe -. For N=16, each ROM is replaced by two smaller

ROMs. If N=32, each ROM can be replaced by four ROMs, in which case an additional stage of addition is required.

For N=8, no splitting is needed because the ROM size is already very small.

ID The implementation of the RACs using both the partial sum and first stage decimation-in-frequency techniques is shown in FIG. 6, 7 and 8 for 8x1, 16x1 and

32x1 DCTs, respectively. The RAC of FIG. 6 for an 8x1 DCT with a first stage decimation-in-frequency feature like

15~ that of FIG. 5 would include two four digit buses addressing the ROMs. Each ROM 37 storers only 2 or 16 words and thus no partial sums are needed, the output of

ROM 37 being applied through the ADD/SUB circuit 39 and shift register 11 to the output 43. The 16x1 DCT RAC of

20 FIG. 7 would have as a result of the decimation feature two eight bit buses which would be split as explained above into 2 4-bit words which are applied to two similar 16 word ROMs, 45 and 47. The adder 49 would sum the retrieved n.-bit words from the two ROMs to yield a single

23 n.,+1 bit word which is applied to the accumulator comprising the ADD/SUB circuit 51, the shift register 53 and the 1-bit right shift feedback path between the output of the shift register and the adder-subtractor 51. The RAC output at 55 would comprise words of n 2 (or n_)-bits,

3O which would be somewhat longer than n.+l bits.

The 32x1 DCT RAC of FIG. 8 includes a 16 bit line input bus which is split into 4 4-bit words for addressing four similar ROMs 61, 63, 65 and 67 each of which store 16 words. The n.-bit words at the output of

35 ROMs 61 and 63 are added in adder 69 and the similar words from ROMs 65 and 67 are applied to adder 71. These two adders have their outputs in turn applied to adder 73

which has its output applied to the accumulator which functions the same as those previously described to compute one of the elements of an inner vector product.

By combining these two techniques, the required ROM size can be reduced significantly with only a modest increase in circuitry. For example, for N=16, direct implementation of a 16 x 16 two-dimensional DCT requires

2 16xl6x2 = 221 words of ROM. On the other hand, using the two techniques described above, the circuitry of FIG. 7 requires only 2 4X2xl6x2 = 210, approximately IK words of

ROM. With this size of ROM, the novel circuitry of the present invention is not only feasible but very efficient in terms of IC realization.

FIG. 9 is a complete block diagram of the Nxl DCT with the decimation-in-frequency feature. The diagram of FIG. 9 emphasizes the regularity and modularity of this circuit design. In this FIG. the input register comprises N stages Q* ι ~Q N , each comprising n 1 (or n,) bits, depending on whether the circuit comprises the first or second Nxl DCT Processor, respectively, of FIG. 2 the input columns of data, x 1 τ-.x 2 k**'* x N k' -° e --- n< ? applied to Q . on n. (or n 2 ) parallel lines. N/2 serial adders 81 and a like number of serial subtactors 83 are provided and each has a pair of single lines from the stages R-,"- N of the holding register connected thereto. The N/2 bit bus 85 comprises bits derived from adders 81, and N/2 bit bus 87 bits from the subtractors 83. Note that the adder and subtractor which produce the first bits, u. 1 and v k 1 of both N/2 bit buses are both connected to the first and last holding register stages, R. and R N . Similarly the adder and subtractor which produce the second bit of each of the words on the two buses are connected to the second and the next to last holding register stages, R_ and R N __, and so on. Following this logical rule the last bit on each bus is derived from the adder and subtractor connected to the holding register stages N/2 and (N/2)+l. The N RACs of FIG. 9 are lined up in numerical order with the odd

numbered ones connected to the bus 85 which is connected to all of the adders 81 and all even numbered RACs are connected to all of the subtractors 83 via bus 87. The column transform coefficients, y. - ^ t Yr,. 2'* " " -^k N are *°---^~ parallel shifted from the RAC outputs to the stages U--U N of the output register simultaneously as in the previous embodiment and the contents of this register then sequentially shifted out.

The provision of input, output and holding registers as part of the Nxl DCT Processors minimizes the number of chip (or IC) input/output pins and simplifies the routing since each register array communicates only with its neighbors. Also, this circuitry facilitates concurrent operation in which almost all of the circuits are continually in operation performing different tasks. This is essential if real time processing is to be achieved on a single chip. Further, the use of bit-serial structure to implement the first stage decimation-in- frequency reduces the circuitry required and simplifies routing.

By suitable control of the read and write addresses of the Transposition Memory, only NxN words of RAM are required for both the storing of the intermediate results (or matrix) and performing in the matrix transposition required upon the reading out of the stored - intermediate results. The Transposition Memory (or RAM) will contain 16 by 16 words if N=16 and will have separate read and write ports as shown in FIG. 2. Since the intermediate results of the current block are continuously being written into memory from the first Nxl Processor while the intermediate results of the previous block are continuously being read out to the second Nxl Processor, the read/write operation must be arranged so that no information is destroyed before it is read out. One way to achieve this is to arrange the read/write control and the addresses so that each sample (or word) is written into the same location from which the sample of the

previous block has been read out. In this way, each read and write operation takes a half of a clock cycle (T/2) . Another way is to arrange it so that the write address lags the read address by one row or one column. In this way, each read and write operation can take a full cycle (T) , however two sets of address decoders have to be used. To achieve the desired matrix transposition, the data are read out of memory 5 column-wise if the previous block were written into the RAM row-wise, and vice-versa. So, for example for N=16, if the data of the previous block were written into the RAM in the sequence 0,1,2,3,...etc. , then the data are read out in the sequence 0,16,32,48, ...etc. , and at the same time the data of the present block are written into the RAM in the same sequence (0,16,32,48, etc.,). In the next block, the data will read/write in the sequence 0,1,2,3...etc. , again, and the operation repeats. The addresses can be generated by an eight bit counter and the change of the sequence can be achieved easily by exchanging the 4 most significant bits and the 4 least significant. This circuitry would be part of circuit 16 of FIG. 2. The Start-of-Block strobe is used to reset the address of the read/write operation. Note that the counter needed for controlling the RAM address in this way can be built using an adder and a register, with the control signal generated by a ROM.

In this two-dimensional processor, n. is 8 for most applications. The word lengths for n 2 , n_ and n 4 were determined by computer simulation of the circuit in which many images were digitized and the pixels thereof transformed according to the present circuitry and the inverse transformation then performed and the images reproduced. It was found that with n 2 =12, n =16 and n =9, very high precision is obtained. For some applications such as low bit rate video where such high precision is not required, the number of bits for n_, n_, and n 4 can be reduced by 1 or 2.

While the invention has been described in

connection with illustrative embodiments, obvious variations therein will be apparent to those skilled in the art without the exercise of invention, accordingly the invention should be limited only by the scope of the appended claims.