Claims
- 1. In a digital processor for generating display data for rendering a graphical representation of an object on a display screen, said display screen comprising a plurality of pixels, said digital processor sequentially performing operations in synchronism with a clock signal, a method for interpolating a pixel attribute comprising the steps of:
- (a) providing a MERGE register having a plurality of bits divisible into a plurality of consecutive fields of plural bits;
- (b) retrieving a plurality of data words representing a selected attribute of a plurality of corresponding pixels, each of said data words representing a fixed point real number and having an integer portion represented by N.sub.i bits and a fractional portion represented by N.sub.f bits;
- (c) concurrently adding a predetermined interpolation constant to each of said plurality of data words, thereby providing a plurality of fixed point real number sums;
- (d) truncating each of the plurality of fixed point real number sums to an integer value with N.sub.i bits;
- (e) concurrently loading each of said plurality of truncated sums into respective non-adjacent fields of N.sub.i bits of said MERGE register;
- (f) shifting said MERGE register by N.sub.i bits so as to shift the contents of the MERGE register field by field; wherein steps (b), (c), (e) and (f) are performed substantially concurrently during a single cycle of said clock signal; and
- (g) repeating steps (b)-(e) to accumulate interleaved successive pluralities of truncated sums.
- 2. The method of claim 1 wherein said pixel attribute represents a distance from a corresponding point on said object to said display screen.
- 3. The method of claim 2 wherein said plurality of data words are retrieved from a Z-buffer.
- 4. The method of claim 1 wherein said pixel attribute represents a color intensity.
- 5. In a digital processor for sequentially performing operations on a plurality of data words in synchronism with a clock signal, a method for interpolating data values represented by said data words comprising the steps of:
- (a) providing a MERGE register having a plurality of bits divisible into a plurality of consecutive fields of plural bits;
- (b) retrieving a plurality of said data words, each of said data words representing a fixed point real number and having an integer portion represented by N.sub.i bits and a fractional portion represented by N.sub.f bits;
- (c) concurrently adding a predetermined interpolation constant to each of said plurality of data words, thereby providing a plurality of fixed point real number sums;
- (d) truncating each of the plurality of fixed point real number sums to an integer value with N.sub.i bits;
- (e) concurrently loading each of said plurality of truncated sums into respective non-adjacent fields of N.sub.i bits of said MERGE register;
- (f) shifting said MERGE register by N.sub.i bits so as to shift the contents of the MERGE register field by field; wherein steps (b), (c), (e) and (f) are performed substantially concurrently during a single cycle of said clock signal; and
- (g) repeating steps (b)-(e) to accumulate interleaved successive pluralities of truncated sums.
- 6. In a digital processor for sequentially performing operations on a plurality of data words in synchronism with a clock signal, a method for interpolating data values represented by said data words comprising the steps of:
- (a) providing a MERGE register having a plurality of bits divisible into a plurality of consecutive fields of plural bits;
- (b) retrieving a plurality of said data words, each of said data words comprising a predetermined number of bits N;
- (c) concurrently adding a predetermined interpolation constant to each of said plurality of data words, thereby providing a plurality of sums;
- (d) truncating each of the plurality of sums to a value with M bits, where 1<M<N;
- (e) concurrently loading each of said plurality of truncated sums into respective non-adjacent fields of M bits of said MERGE register;
- (f) shifting said MERGE register by M bits so as to shift the contents of the MERGE register field by field; wherein steps (b), (c), (e) and (f) are performed substantially concurrently during a single cycle of said clock signal; and
- (g) repeating steps (b)-(e) to accumulate interleaved successive pluralities of truncated sums.
Parent Case Info
This is a continuation of application Ser. No. 311,240, filed Feb. 14, 1989 now abandoned.
US Referenced Citations (4)
Continuations (1)
|
Number |
Date |
Country |
Parent |
311240 |
Feb 1989 |
|