US 4904994 A Abstract A system to convert vector data to pixel data for drawing a vector on display screen that is divided into groups of pixels (matrices) having selected numbers of pixels in the x and y coordinate directions. The vector data is processed to define the slope of the vector and the number of matrices in the x and y directions the vector extends through. Counters are set to such numbers. Starting with the first matrix in which one end of the vector is located, a circuit defines which pixels must be enabled to draw the vector through that matrix. According to the location of the vector relative to decision points in the first matrix, a circuit identifies the next matrix through which the vector extends and causes the counter to count. This continues until the last matrix is identified and the pixels therein are enabled. An additional circuit masks those pixels, if any, in the first and last matrices that are beyond the end of the vector.
Claims(18) 1. Apparatus for vector to pixel conversion to draw a vector on a display screen having pixels thereon extending in both x and y coordinate directions, said vector having directional characteristics indicating the direction thereof, comprising:
means for dividing all of said pixels on said screen into a fixed array of matrices, each said matrix having a size defined by a given number of pixels in said x coordinate direction and by a selected number of pixels in said y coordinate direction, a first pixel of said vector being inside a first of said matrices and a last pixel of said vector being inside a last one of said matrices; means for defining the location of first and second decision points within each of said matrices of said display screen; first means for generating an exit intersection signal representing the location of an intersection of said vector with an exit side of each current matrix through which said vector extends before extending into a next matrix following each said current matrix; next matrix means responsive to said exit intersection signal and certain of said directional characteristics for generating a next matrix signal to identify which of said matrices in said fixed array is the next matrix with respect to a given current matrix, said next matrix signal being generated according to the location of said intersection relative to said first and second decision points; and matrix address means initially being effective for generating a matrix address signal for a current matrix, said matrix address means being responsive to said next matrix signals for changing said matrix address signal to that of the matrix address of each said next matrix through which said vector extends. 2. Apparatus according to claim 1, further comprising:
means for counting the number of said matrices in the respective x and y coordinate directions through which said vector extends, said counting means being responsive to said next matrix signals that indicate next matrices in said x, y or both said x and y coordinate directions such that when said next matrix is said last matrix a vector end signal is generated; and the operation of said next matrix means is interrupted in response to said vector end signal. 3. Apparatus according to claim 1, in which:
said first and second decision points are located on opposite sides of a selected pixel in each of said matrices and at the same x or y coordinate location within said selected pixel; said first means is effective to generate a first exit intersection signal for representing the location of said intersection of said vector with said exit side of a current matrix as being on the negative y side of said first decision point, said first means being effective to generate a second exit intersection signal representing the location of said intersection of said vector with said exit side of said current matrix as being on the positive y side of said second decision point, wherein said vector does not extend between said first and second decision points of said current matrix said first means being effective to generate a third exit intersection signal for representing the location of said intersection of said vector with said exit side of said current matrix as being on the positive y side of said second decision point wherein said vector does extend between said first and second decision points of said current matrix; said next matrix means is responsive to said first exit intersection signal for generating a next matrix signal identifying the matrix in the positive x coordinate direction as the next matrix relative to said current matrix; said next matrix means is responsive to said second exit intersection signal for generating a next matrix signal identifying the matrix in the positive y coordinate direction as the next matrix relative to said current matrix; and said next matrix means is responsive to said third exit intersection signal for generating a next matrix signal identifying the matrix that is in both said positive x and y coordinate directions as the next matrix relative to said current matrix. 4. Apparatus according to claim 2, further comprising:
said exit side of each said current matrix is the side through which said vector exits said current matrix as it extends into said next matrix; said vector or an extension thereof also intersects an entrance side of each said current matrix through which said vector enters each said current matrix as it extends into each said current matrix; second means for generating an entrance intersection signal representing the location of the intersection of said vector with said entrance side of said current matrix; and means responsive to said entrance and exit intersection signals and said certain directional characteristics for generating enabling signals for such pixels within a given current matrix as must be enabled so as to draw said vector on said display screen. 5. Apparatus according to claim 4, further comprising:
said vector starts or ends at a respective first or last pixel that is spaced from both said entrance side and said exit side of said respective first or last matrices; and means responsive to said enabling signals and to said vector end signals for masking those enabled pixels that are not at or between said first and last pixels in said first or last matrices so that said pixels that are masked are not drawn on said display screen. 6. Apparatus according to claim 4, further comprising:
means for storing said enabling signals for each said current matrix, said storing means being effective to store, at a selected storage address, said enabling signal that corresponds to a pixel that is at a given location in one of said matrices, said storing means being effective to store, at a different storage address, said enabling signal that corresponds to a pixel that is at said given location in a different one of said matrices; and means for adjusting said enabling signals according to the storage address relationship of said enabled pixels so that said vector is drawn on said display screen independently of the storage address relationships of said enabled pixels in said storing means. 7. Apparatus for vector to pixel conversion in which each pixel of a display screen is organized into one of a plurality of separate matrices each having a given number of pixels in an x coordinate direction and a selected number of pixels in a y coordinate direction, each said matrix being located on said screen at a fixed location relative to all other ones of said matrices, such conversion defining which pixels must be "on" in order to draw a first vector from a first pixel to a last pixel on said screen, a current matrix being one of such matrices during such conversion thereof, a matrix prior to said current matrix being one of said matrices that is adjacent said current matrix in a direction toward said first pixel, an exit side of one of said matrices being a side of said matrix that is intersected by said vector as said vector extends from said current matrix to a next matrix, each said matrix having a first decision point located therein at a selected location, comprising:
means responsive to first input signals defining the x and y coordinates of the first pixel of said vector for producing X and Y matrix address signals that define the respective X and Y matrix addresses of a first matrix that contains said first pixel of said vector; said producing means also being responsive to said first input signals and second input signals defining the x and y coordinates of said last pixel for producing delta X and delta Y signals indicating how many matrices in each of the x and y coordinate directions there are from said first matrix to a last matrix that contains said last pixel; said producing means also being responsive to said first and second input signals for producing a first directional signal representing a first directional characteristic of said vector and a first intercept signal representing the intersection of said vector with the exit side of the matrix prior to said current matrix; said producing means also being responsive to said first and second input signals for producing a major signal representing a second directional characteristic of said vector; current address means responsive to said matrix address signals for generating current matrix address signals to indicate the address of said current matrix; next matrix means responsive to said first intercept signal for generating a second intercept signal representing the relationship of said first decision point to the location at which said vector exits said current matrix, said next matrix means also being responsive to said first intercept signal and to said first directional signal for generating next matrix signals that indicate the direction of the next matrix through which said vector extends, said direction being one of the x coordinate direction or the y coordinate direction or both of said x and y coordinate directions; said current address means being responsive to said next matrix signals to change said current matrix address signals to the address of said next matrix; counter means responsive to said delta X and delta Y signals and cycled in response to said next matrix signals for producing vector end signals indicating said first and last matrices; said next matrix means being interrupted in response to one of said vector end signals that indicates that said current matrix is said last matrix; means responsive to said first intercept signal for said matrix prior to said current matrix for generating a third intercept signal representing the intersection of said vector with an entrance side of said current matrix through which said vector enters said current matrix; means responsive to the sign of said first directional signal, to said first and third intercept signals and to said major signal for generating pixel write enable signals that define these pixels within said current matrix that are to be "on" to draw said vector; and means responsive to said current matrix address signal for said current matrix and responsive to said pixel write enable signal for said current matrix for storing, at an address related to said matrix address, data representing said "on" pixels of each said current matrix through which said vector extends. 8. Apparatus according to claim 7 for vector to pixel conversion, in which said vector extends across only part of at least one of said first matrix or said last matrix, further comprising:
said producing means divides the x and y coordinate locations of said first and last pixels of said vector by the number of pixels in the respective x and y coordinate directions that are in each said matrix to produce remainder signals indicating the location of said first and last pixels in said respective first matrix and said last matrix; means responsive to said sign of said first directional signal, to said vector end signal, to said second intercept signal and to said remainder signals for generating a mask enable signal for only those pixels in said first or last matrix that are at or between said first pixel and said last pixel of said first vector; and means responsive to said mask enable signals for modifying said pixel write enable signals to prevent the writing to said storage means of write enable signals for such pixels in said first and last matrices as are not at or between said first pixel and said last pixel of said vector. 9. Apparatus according to claim 8, in which:
different ones of said matrices have different storage address relationships between a given pixel in a selected location in one of said different matrices and the location in which said write enable data for said given pixel is stored in said storage means; means are provided for producing matrix type signals according to said storage address relationship of said matrices; and said modifying means also responds to said matrix type signals for modifying said pixel write enable signals according to said storage address relationship. 10. Apparatus according to claim 7, in which:
said first and second input signals are in a selected order to indicate which represents said first pixel and said last pixel of said vector, but said first and second input signals are not ordered in respect to which represents a selected end of said vector; said producing means is effective to identify said selected end of said vector and produce a top flag signal; and said current address means is also responsive to said top flag signal so that one of said current matrix address signals is for said matrix that contains said selected end of said vector. 11. Apparatus according to claim 7, wherein a second vector is drawn after drawing said first vector from said first pixel to said last pixel, said second vector starting at said last pixel and continuing to a third pixel, in which:
said current addrress means is rendered effective, upon processing of said pixels of said first vector in said last matrix, to identify the matrix address of said last matrix as the matrix address of a first matrix of said second vector. 12. Apparatus according to claim 11, in which:
said first and second input signals are in a selected order to indicate which represents said first pixel and said last pixel of said vectors, but said first and second input signals may not be ordered in respect to which represents a selected end of said vector; said producing means is effective to identify said selected end of said vector and produce a top flag signal; said current address means is also responsive to said top flag signal so that one of said current matrix address signals is for said matrix that contains said selected end of said vector; and said current address means identifies said first matrix of said second vector in response to said top flag signal. 13. Apparatus according to claim 7, in which:
said first vector is either an x major vector in which the path of said first vector from said first pixel to said last pixel always requires an increment of one whole pixel in the x direction and may require an increment of one whole pixel in the y direction, or a y major vector in which the path of said first vector from said first pixel to said last pixel always requires an increment of one whole pixel in the y direction and may require an increment of one whole pixel in the x direction; said producing means is also effective to subtract said delta X signal from said delta Y signal for generating an x major flag signal corresponding to delta X being larger than delta Y and a y major flag signal corresponding to delta Y being larger than delta X; and said pixel write enable signal generating means is also responsive to said x and y major flag signals. 14. Apparatus according to claim 7, in which:
said next matrix signal separately indicates a next matrix in the x coordinate direction or in the y coordinate direction or indicates a diagonal next matrix in both the x and y coordinate directions; and said current address means includes separate counters for each of said X and Y matrix addresses, wherein each such counter is respectively separately responsive to said next matrix signals indicating a next matrix in one or both of the x coordinate direction and the y coordinate direction such that said current matrix address signals are separately varied to indicate the X and Y matrix addresses of said next matrix. 15. A method of converting a vector to pixel enable data for displaying said vector on a display screen having pixels extending in x and y coordinate directions, said vector being defined by a first pixel having a first x and y coordinate address on said screen and by a last pixel having a last x and y coordinate address, said vector having a directional characteristic, which comprises:
organizing all of said pixels on said screen into selected separate matrices, each said matrix being at a different fixed location on said display screen and having a given number of pixels in said x coordinate direction and a selected number of pixels in said y coordinate direction; converting said x,y coordinates of said first pixel that defines one end of said vector into matrix coordinates that define the location of a first matrix in which said first pixel is located; determining first and second quantities equal respectively to the number of said matrices in each of said x and y coordinate directions that are between said first matrix and a last matrix in which said last pixel is located, said last pixel defining the end of said vector; determining the locations of said vector with respect to opposite sides of a given pixel in a current one of said matrices as said vector extends from said current matrix into a next matrix; identifying the direction of said next matrix through which said vector extends upon exiting said current matrix according to said locations of said vector relative to decision points positioned at a predetermined location on each of said opposite sides of said given pixel; reducing said first quantity by one if said next matrix is in said x coordinate direction and reducing said second quantity by one if said next matrix is in said y coordinate direction; and for each matrix through which said vector extends, defining which pixels are to be enabled in order to display said vector. 16. The method according to claim 15, in which:
said second determining step and said identifying step are repeated until said reducing step results in said first and second quantities in respect to both said x and y coordinate directions being zero. 17. The method according to claim 16, wherein said vector extends across only part of at least one of said first matrix and said last matrix, in which:
said step of determining said first and second quantities is performed for said matrix through which said vector partially extends by multiplying the x coordinate value of said first or last pixel by the reciprocal of the number of pixels in the x coordinate direction in said matrix and by multiplying the y coordinate value of said first or last pixel by the reciprocal of the number of pixels in the y coordinate direction in said matrix, to obtain said first and second quantities equal to an integer number of matrices in each said respective x and y coordinate direction and a remaining number of pixels, if any, in each of said x and y coordinate directions, said remaining number of pixels identifying the x and y coordinate addresses of said first or last pixel within said matrix; and masking said enabled pixels that are in said matrix beyond said first or last pixel to define said vector by enabling only those pixels that are at or between said first and last pixels. 18. A method according to claim 15, including:
identifying which of said first and last pixels is closest to a selected side of said display screen; and identifying as said first matrix the matrix in which said closest pixel is contained so that said vector is drawn from said selected side of said display screen. Description 1. Field of the Invention The present invention relates to the field of computer graphics and more particularly to the field of displaying objects on the screen of a display device. 2. Description of the Prior Art Computer graphics systems for displaying objects on the screen of a display device require very rapid processing of large amounts of data to enable the displayed object to be moved or shading of the surface of the object to vary with variations in the location of a source of light that is shining on the object. This need for rapid computation has resulted in reduction of the time required to specify the object to be displayed in terms of the many points or vertices that are used to define the surface of the object. With the location of such points defined, when the display device is a cathode ray tube (CRT), the next step in displaying the object is to rapidly convert such points into data indicating which picture elements ("pixels") on the screen of the CRT must be illuminated or turned ON in order to display the object. This involves the steps of processing pairs of vertices that define a line. The processing indicates which pixels on the screen must be turned ON to draw the line between the pairs of vertices. Also, because the screen may have hundreds of pixels in each of the x and y coordinate directions (such as 1280 by 1024), the data defining which pixels must be turned ON must be stored in a manner suitable for controlling the video function of the CRT. For example, when the CRT functions on a scan line by scan line basis as is customary, the manner in which the pixels of the screen are processed for drawing lines and for data storage purposes must be specially related to the scan lines so as to minimize storage requirements without reducing the speed of the scanning operation. To achieve some of these objectives, in the past the screen of the CRT has been divided into blocks, where each block has a given row address (a DRAM row address) within a DRAM chip that stores the pixel ON data. Such blocks of the screen have been related to column addresses within the DRAM (DRAM column addresses), such as by having a given screen block for a given DRAM row address extend 128 DRAM column addresses in the x direction on the screen and two rows of screen blocks in the y direction on the screen. To reduce the number of times that a given line drawn on the screen of the CRT requires a new DRAM row address (which slows down addressing), others have related the DRAM row addresses to the screen blocks more symmetrically by providing, for a given DRAM row address, a screen block that extends in the x direction 16 columns and 16 columns in the y direction. As a result, regardless of the direction of the line, it is more likely that the line will extend through more DRAM column addresses before a new DRAM row address must be addressed. Having reduced the number of times that a new DRAM row address is required as the line is drawn from screen block to screen block, others have then organized the pixels within a given screen block into groups, such as groups of 64 pixels formed by 8 pixels in the x direction on the screen and 8 pixels in the y direction on the screen. Others have used groups of 20 pixels formed by groups of 5 pixels in the x direction and 4 pixels in the y direction. Such group of pixels has been referred to as a "matrix". Each matrix in a given screen block has a specific DRAM column address and has the DRAM row address common to the entire screen block. Such pixel group or matrix has been used in the past to define a unit or group of pixels that are written into the DRAM at the same time. Initially, the determination of which pixel out of the 20 pixels in such 5 by 4 matrix will be ON has been performed on a pixel-by-pixel basis using a number of machine cycles, where one machine cycle occurs for every one clock cycle of a bit slice processor, for example. Once the pixel-by-pixel determination has been completed for all of the pixels in the matrix, then the entire matrix, representing the pixels that should be ON and OFF of the group of 20 pixels, is written into the DRAM in one or more additional machine cycles. In this approach, there is no need to determine which matrix the line will extend into next (the "next matrix") during the computation of the pixels for a particular or ("current") matrix. Rather, only when the next "ON" pixel of the next matrix is identified is the next matrix identified. This occurs after the writing of the current matrix into the DRAM. In this prior method, it may be understood that it required 5 machine cycles to identify the 5 pixels that must be turned on in order to have a line completely cross a given matrix. Thus, 5 machine cycles were required to identify such 5 ON pixels and one (or more) additional cycle to write them into the DRAM. In contrast to the prior art that required a number of machine cycles to determine which pixels within a matrix of pixels would be ON and then one or more additional cycles to write same to storage, and in which no "next matrix" determination was made during every machine cycle, the preferred embodiment of the present invention processes all of the pixels within a given matrix every machine cycle, and defines the next matrix during each machine cycle to enable rapid line drawing between points. Line drawing apparatus and method according to the present invention reduce the time required to define the pixels that are "ON" within a given matrix of pixels so that an object may be displayed on the screen of a CRT more quickly. The present invention also identifies, during each machine cycle after set up, that next matrix into which the line being drawn will extend as it leaves the current matrix, such that the next matrix is defined each clock cycle after set up. Apparatus and method for drawing lines according to the present invention also simplify line drawing by using a lookup table to define the "ON" pixels in a given matrix in response to data defining the entry and exit intercepts of the matrix, whether the line is a major or minor line and the sign of the slope of the line. To assure that the same pixels are ON regardless of whether the line is drawn from a first point P1 to a second point P2 or is drawn from the second point P2 to the first point P1, the first-drawn point of a line is always defined as the top point. Thus, the lookup table is always used to provide pixel ON data for a line drawn from top to bottom, even though the second point P2 may be at the top. Line drawing apparatus and method of the present invention also identify the first and last matrices through which a line extends. In the event that the line only partially extends through either of such matrices, a masking operation is performed to avoid turning ON those pixels that are beyond the ends of the line being drawn. Line drawing apparatus and method of the present invention also adjust the pixel ON data according to the storage address relationship between a given pixel in a selected location in one of the matrices and the location in storage at which the pixel ON data is written for the given pixel. With these objects in mind, the present line drawing apparatus and method include an input processor for receiving an input signal. The input signal may include a "move" signal that defines a first point P1. The input signal also may include a "draw" signal to provide an instruction that a line be drawn between the point P1 and a point P2, for example. Considering the points P1 and P2, those points identify the endmost two pixels on the screen that must be ON to display the line. The screen is divided into groups of pixels, such as rectangular groups having 5 pixels in the x direction and 4 pixels in the y direction of an x,y pixel coordinate system. The pixel that corresponds to the point P1, for example, is located in terms of what number pixel it is along the x and y axes from a 0,0 reference point or coordinate of the pixel coordinate system. The matrix in which that pixel is located on the screen is identified by multiplying the x axis pixel number by 1/5 and the y axis number by 1/4. The resulting integers are the X and Y coordinates of the matrix. The resulting remainders, or fractional parts of the matrix in the x and y directions, represent the coordinates of the pixel within that matrix. The input processor responds to the input signals and performs set-up operations. Such operations include determining the X and Y integer matrix coordinates of a first matrix (that includes the pixel or point P1) and of a last matrix (that includes the pixel or point P2). Also, the input processor determines the remainder, if any, that results from such multiplication of the x and y coordinates by 1/5 and 1/4, respectively. Integer storage receives a signal representing the integer coordinates of the first and last matrices. Fractional storage receives the fractional parts or remainders in the x and y directions. A flag indicates whether the beginning and end points are the top or bottom points. The input processor also determines whether the line is drawn from the point P1 to the point P2 or from the point P2 to the point P1 and outputs delta signals indicating the integer (or whole number) of matrices along the x axis and the integer (or whole number) of matrices along the y axis that are between the P1 and P2 pixels. The input processor also outputs a signal representing a directional characteristic of the line P1P2, such as the slope S. The input processor obtains the difference between Δx and Δy in the pixel coordinate system and, depending on which is greater, generates an x MAJOR or y MAJOR flag signal, representing another directional characteristic of the line P1P2. In response to the coordinate location of the P1 pixel in the first (or M1) matrix and the slope S, a next matrix identification circuit generates intercept signals representing the intercepts B A current matrix address circuit is responsive to the X and Y integer matrix coordinate signals representing the address of the current matrix for generating current matrix address signals for each matrix as the pixel write enable signals are output for each current matrix. In response to the exit intercept and the slope S, the next matrix identification circuit determines the position of the line P1P2 relative to a pair of decision points positioned at predetermined spaced locations within the current matrix. Depending upon whether the line extends above, below, or between the decision points, the next matrix identification circuit determines either that the next matrix is in the x direction or in the y direction or is diagonally in the x and y directions. The next matrix identification circuit causes the current matrix address circuit to increment the X and/or Y integer matrix address signals according to the direction of the next matrix. A succession of current matrix address signals identifies the sequence, such as M1, M2, M3 and M4, of the matrices through which the line P1P2 is drawn. The write enable signals from the write enable circuit are output for each current matrix to identify which pixels are to be ON with each current matrix. In response to the delta signals, a counter circuit is set. With each next matrix identification, the counter circuit adjusts the X matrix count and/or the Y matrix count according to the location of the next matrix. When both such counts reach a predetermined value, a vector end signal interrupts the next matrix identification circuit to indicate that the current matrix is the last matrix through which the line P1P2 extends. In response to the address of the first matrix, identification of such matrix as the first matrix and the sign of the slope of the line, a mask enable signal is input to a mask circuit. The write enable signals that identify the pixels within the first matrix that are ON are also input to the mask circuit to provide write enable signals for only those pixels within the first matrix that are between the point P1 and the point P2. Similarly, the mask circuit is responsive to the vector end signal identifying the last matrix and to the identification of the ON pixels within the last matrix for masking those pixels that are not between the points P1 and P2. This is done by inhibiting the write enable signals for those pixels, such that mask enable signals correspond to only those pixels that are ON. The write enable signals for the M2 and M3 matrices that are between the M1 and M4 end matrices allow color data to be stored in a bit plane memory according to the address of the particular matrix and the address therein of the ON pixels. Similarly, the mask enable signals allow color data to be written into the bit plane memory. However, to be compatible with reading such data from the bit plane memory on a scan line basis, for different rows of the matrices there are different storage address relationships between a given pixel in a selected location in one of the different matrices and the location in which the write enable signals for the given pixel is stored in the bit plane memory. To adjust the write enable signals and the mask enable signals according to such storage address relationship, the write enable signals and the mask enable signals are input to a matrix adjust circuit. The matrix adjust circuit varies the write enable signals of each current matrix according to the storage address relationship of that current matrix. For each current matrix the matrix adjust circuit generates final write enable signals that are written into a buffer and that then allow color data to be written into the bit plane memory. In the method of the present invention for converting the line P1P2 to the write enable signals for displaying the line P1P2, the x,y coordinates of the first pixel which define one end of the line P1P2 are converted into matrix coordinates that define the address of the first (M1) matrix in which the first pixel is located. The number of matrices in the x and y directions between the M1 matrix and the M4 matrix in which an end pixel is located are identified. The x and y directions of the next matrix through which the line P1P2 extends upon exiting the M1 matrix are identified according to the location of the line P1P2 relative to two decision points in the first matrix. The next matrix is defined in terms of the x, y or both the x and y directions. The identifying step is repeated relative to two decision points in each next current next matrix until there are no more matrices through which the line P1P2 extends. Other objects, features and advantages of the present invention will be apparent from an examination of the following detailed descriptions which include the attached drawings in which: FIG. 1 is an enlarged front view of a portion of a cathode ray tube showing a display screen having pixels divided into groups of matrices for drawing a line on the display screen; FIG. 2 is an enlarged view of a portion of the display screen of FIG. 1 showing in detail a series of matrices through which the line passes as it extends between two points; FIGS. 3A and 3B when joined at lines (a) to (j) form a block diagram of the line drawing apparatus of the present invention; FIG. 4 is a front view of a portion of the display screen showing the pixels with letters identifying the relationship between a pixel location on the display screen and a DRAM chip in memory at which data for the pixel is stored; FIG. 5 is a block diagram of a control circuit of the present invention; FIG. 6 is a block diagram of an input processor circuit for supplying certain signals to set up a line drawing apparatus for processing the line; FIGS. 7A and 7B form a diagram showing the processing paths that can be taken in response to move and draw input signals to set up the line drawing apparatus to draw a line; FIG. 8 is a schematic diagram of a current matrix address circuit showing an integer RAM and a Y matrix counter; FIG. 9 is a schematic diagram of an X matrix counter of the current matrix address circuit; FIG. 10 is a schematic diagram of a parameter register that supplies control signals to the circuits shown in FIGS. 8 and 9; FIG. 11 is a diagram illustrating two of twenty storage devices of a bit plane memory; FIG. 12 is a diagram showing lines that can be drawn by the present line drawing system, where the lines have various slopes; FIG. 13 is a schematic diagram of x and y fractional storage circuits; FIG. 14 is a diagram depicting how mask enable signals for the rows and the columns of a matrix on the screen combine to mask certain pixels in a given matrix; FIG. 15 is a schematic diagram of a mask enable circuit for generating the mask enable signals and a loop counter circuit that counts as each next matrix is identified in the x and y directions; FIG. 16 is a schematic diagram showing a mask and a matrix adjust circuit; FIG. 17 is a schematic diagram showing a constant register and a slope register of a next matrix circuit; FIG. 18 is a schematic diagram of intercept registers for storing signals representing where the line enters a given matrix; FIG. 19 is a schematic diagram of a write enable circuit for identifying the pixels that should be ON in order to draw the line through a given matrix; FIG. 20 is a schematic diagram of a portion of a next matrix circuit showing two adders for providing signals representing where the line exits a matrix and where it enters a decision pixel in such matrix, and showing decision direction logic that identifies the next matrices through which the line extends; FIG. 21 is a schematic diagram of the entire next matrix circuit; and FIG. 22 is a schematic drawing of a number of matrices, showing how the intercepts are valued for use in calculating pixel ON data using a pixel In the schematic drawings, a number in a small box to the left or right of input or output lines designates the FIGURE to which that line is connected. In FIG. 21, a number without a lead line located generally at the upper right corner of a large box (representing a schematic), indicates the FIGURE that discloses that schematic in detail. Organization of Pixels of Display Screen Referring now to FIG. 1 of the drawings, the preferred embodiment of the present invention is shown in connection with a display screen 30, which may be of a cathode ray tube (CRT) 31, for example. The display screen 30 is shown enlarged to illustrate numerous picture elements (pixels) 32. The CRT 31 is capable of selectively turning each of such pixels 32 either ON or OFF, and preferably according to a range of intensity that extends from light to dark and according to a selected color, such as red, blue, or green. The line drawing apparatus and method of the present invention are effective to identify those pixels 33 (shown in cross hatch) that must be illuminated or turned ON to draw a line 34 on the display screen 30 from point P1 to P2 (the P1P2 line 34) and then a line 35 from point P2 to point P3 (the P2P3 line 35). The remainder of the pixels 32 are OFF as shown by the pixel 36. For purposes of description, the coordinate system used to identify locations on the display screen 30 is indicated by "+x" extending from left to right and "+y" extending from top to bottom. The x=0, y=0 coordinate is at the upper left corner of the display screen 30. A given pixel 32 is related to the x,y screen coordinate system according to the location of the upper left hand corner of the pixel 32. Thus, the pixel address of the point P1 is "1,6" representing the x and y screen coordinates of the upper left hand corner of a P1 pixel 37. The pixels 32 on the display screen 30 are divided up into groups or matrices 38, where each matrix 38 is formed from four pixels 32 in the y direction and five pixels 32 in the x direction. The coordinate system used to identify the location of a particular matrix 38 is also the x,y screen coordinate system. However, the units of such matrix coordinate system are "matrices" and the matrix address is indicated by "X" and "Y". For example, the X address of the matrix 38 containing the point P1 is the 0 matrix integer. This is obtained by the x pixel address of "1" divided by 5 (since there are 5 pixels per matrix) which is "1/5" or 0 matrix integers. The y pixel address of the point P1 is 6, which yields a Y matrix address of "1" since 6 divided by 4 (pixels per matrix in the y direction) is an integer of 1. Thus, the first or M1 matrix 39 has a matrix address of 0,1 in the X,Y matrix coordinate system. Referring in detail to FIG. 2, for purposes of describing the P1P2 line 34 drawn in the +y direction from the point P1 to the point P2, it may be understood that the point P1 is formed by the pixel 37 that is located within the matrix 38 that is designated as the first (or M1) matrix 39. The P1P2 line 34 to be drawn from the point P1 to the point P2 is seen as extending into a second (or M2) matrix 40 that is displaced from the first M1 matrix 39 in only the +y direction. This second M2 matrix 40 is the "next matrix" with respect to the first or M1 matrix 39 since it is the next matrix through which the P1P2 line 34 extends. For each of description, a next matrix is identified by an "N" following the reference number. The P1P2 line 34 is seen extending from the second (or M2) matrix 40 into a third (or M3) matrix 41 which is located in the +x direction from the second (or M2) matrix 40, such that the third (or M3) matrix 41N is the "next matrix" with respect to the second (or M2) matrix 40. The P1P2 line 34 is shown ending in a fourth (or M4) matrix 42 that is displaced from the third (or M3) matrix 41 in both the +x and the +y directions, such that with respect to the third (or M3) matrix 41, the fourth (or M4) matrix 42N is the "next matrix". The P1P2 line 34 is defined on the display screen 30 by the series of croshatched pixels 33-33 that extend from the P1 pixel 37 to a P2 pixel 43, it being understood that dark solid lines 44-44 in FIGS. 1 and 2 are shown only for purposes of illustration. As indicated, the locations of the respective pixels 37 and 43 that represent the points P1 and P2 are referenced to the x,y screen coordinate system, which has its x=0 and y=0 values at the upper left hand corner of the display screen 30. Since FIG. 2 is an enlarged, partial view of FIG. 1, the point P1 shown in FIG. 2 has an x pixel value of +1 and a y pixel value of +6. An x,y coordinate system of the matrix 39, is also used. In this matrix coordinate system, the x pixel value is also +1 and the y pixel value is +2. Similarly, the point P2 (pixel 43) has a +x value of 12 and a +y value of 13 in the x,y screen coordinate system, and a +x value of 2, and a +y value of 1 in the matrix coordinate system. The slope S of a line is the number of pixels 32 between the beginning and end points along the "minor" axis divided by the number of pixels 32 between the beginning and end points along the "major" axis. The minor axis is the y axis and the major axis is the x axis for the P1P2 line 34 since the line 34 always moves from one pixel 32 to the adjacent pixel 32 in the x direction as it extends from point P1 to P2, but doesn't always move from one pixel 32 to the adjacent pixel 32 in the y direction. Thus, the slope S of the P1P2 line 34 is defined by the number of pixels 32 in the y direction from point P1 to point P2 divided by the number of pixels 32 in the x direction from point P1 to point P2 or: ##EQU1## To determine which matrix 38 is the next matrix 38 for a given line, such as the line 34, the location of the line 34 is related to a designated or current one of the matrices 38. For ease of description, a current matrix is referred to by a "C" following the reference number. Referring to FIG. 2, the line 44-44 representing the P1P2 line 34 is shown extended to the left so that it intersects the left side 45 of the current M1 matrix 39C at an intercept "b
b With respect to the matrix 39, when the x,y matrix coordinates (x=+1, y=+2) are substituted into Equation (1), the value of b
b To determine what next matrix 38N the P1P2 line 34 extends into as it exits from the current M1 matrix 39C, a lower right hand corner or decision pixel 47 of each current matrix 38C, here the M1 matrix 39C, is identified. A reference line R is drawn horizontally through the center of the corner pixel 47, which, for the M1 matrix, is referred to as the reference line R1. The reference line R1 provides a new coordinate system or zero reference in the y direction for next matrix identification purposes, including specifying where the P1P2 line 34 enters the current M1 matrix 39C and where the P1P2 line 34 exits the current M1 matrix 39C. This is referred to as the decision point coordinate systems because the reference line R1 intersects the extended right side 46 of the matrix 39C and forms a first decision point D1. Similarly, a second decision point D2 is formed where the reference line R1 intersects the left side 48 of the corner pixel 47. The above value of b
B
Bex0=+1.36-3.5=-2.14. (3) Having B
B
B Then, B
B It may be understood that once a next matrix 38N is identified, the zero reference line R for the current matrix 38C, which is the M1 matrix 38 shown in FIG. 2, must be transferred to the next matrix 38N. When the next matrix is the M2 matrix 40N, the reference line R (now shown as R2) is translated +4 in the y direction from the location of the reference line R1, such that the new B
B
B
B
B These values of B Similarly, when the next matrix 38N is the M3 matrix 41N relative to the current M2 matrix 40C, the reference line R2 does not translate in the y direction, but there is a translation of 5 pixels in the +x direction. Thus, B
B It is noted that B
B This calculation of B With this background in mind, it may be understood that in the translation from the M3 matrix 41 to the M4 matrix 42, there is both an x direction translation and a y direction translation, such that both the A and B constants are involved. Thus:
B
B
B
B
B
B Such translation of the next matrix 38N and the conversion of B Referring to FIGS. 2, 3A and 3B, line drawing apparatus 49 of the present invention includes an input circuit 50 for providing an input signal 51, such as one indicating to "MOVE" to the point P1 represented by the P1 pixel 37. The next input signal 51 may be one indicating to "DRAW" a line, such as the line 34, between the points P1 and P2, for example. The "set-up" of the line drawing apparatus 49 in response to the "MOVE" and "DRAW" input signals 51 is described below with respect to FIG. 7A. An input processor circuit 52 responds to the input signals 51 for producing signals 53 that represent the X and Y integer-matrix coordinates (or address) of the first M1 matrix 39 that contains the P1 pixel 37 and of the last M4 matrix 42 that contains the P2 pixel 43. The integer-matrix coordinates are obtained by multiplying the x coordinate of the pixel by 0.2 for the integer-matrix coordinate X and by multiplying the y coordinate of the pixel by 0.25 for the integer-matrix Y coordinate as described above with respect to the P1P2 line 34 shown in FIG. 1. There, the M1 integer-matrix 39 has 0,1 matrix coordinates. The "integer-matrix coordinates" are referred to below as "matrix coordinates". The number of pixels 32 that are remainders in such multiplication represents the address of the P1 pixel 37 within the M1 matrix 39 and of the P2 pixel 43 within the M4 matrix 42, and are referred to as fractional matrix values. Also, the input processor circuit 52 determines the direction in which the P1P2 line 34 moves from the P1 pixel 37 to the P2 pixel 43 and outputs delta signals 54 indicating the number of integer (or whole number of) matrices 38 along the x axis and the number of integer matrices 38 along the y axis that are between the P1 pixel 37 and the P2 pixel 43. The input processor circuit 52 also outputs a signal 55 representing the slope S of the P1P2 line 34. The input processor circuit 52 obtains the difference between Δx and Δy in the pixel coordinate system and, depending on which is greater, generates an x MAJOR or y MAJOR flag signal 56. In response to the coordinate location of the P1 pixel 37 in the first M1 matrix 39 and the slope S, a next matrix identification circuit 57 generates intercept signals 58 representing the intercepts B In response to the respective signals 58 and 55 for the exit intercept B In response to the delta signals 54, a loop counter circuit 64 is set. With each next matrix identification, the next matrix signal 63 causes the loop counter circuit 64 to adjust the X matrix count and/or the Y matrix count according to the location of the next matrix 38N. When both such counts reach a predetermined value, a vector end signal 65 interrupts the next matrix identification circuit 57 to indicate that the current matrix 42C is the last matrix (e.g. the M4 matrix 42) through which the P1P2 line 34 extends. With the identification of the integer-matrix coordinates of the first matrix 39, the input processor circuit 52 also generates fractional signals 66 that represent both the x and y coordinates (of the address within the first matrix 39) of the pixel 37 that represents the point P1 of the P1P2 line 34. Since the P1P2 line 34 starts at the first pixel 37, the pixels 36 beyond the P1P2 line 34 should not be write enabled. However, the write enable signals 60 represent the path of the P1P2 line 34 across the entire first (M1) matrix 39. Thus, the write enable signals 60 for the pixels 36 beyond the P1P2 line 34 must be disabled or "masked". For this purpose, a mask enable circuit 67 having separate X and Y sections 68 and 69, respectively, responds to a vector end signal 65 from a prior line that had the point P1 as the last point. In the example of the P1P2 line 34 in which the P1 point is not a last point of a prior line, upon starting the operation of the line drawing system the loop counter circuit 64 is set so as to immediately generate the vector end signal 65. In this manner, the mask enable circuit 67 will be effective to prevent the enabling of the pixels 38 beyond the beginning of the P1P2 line 34. Similarly, the vector end signal 65 representing the last (M4) matrix 42 of the P1P2 line 34 initiates a masking operation. The mask enable circuit 67 also responds to the fractional signals 66 and to the slope signal 55 to generate x and y mask enable signals 71. The mask enable signals 71 represent the ON pixels 33 in the first, M1 matrix 39 that were write enabled and that are not beyond the end pixel 37 of the P1P2 line 34. The mask enable circuit 67 also generates the mask enable signals 71 for the last or M4 matrix 42. The write enable signals 60 for the respective M2 and M3 matrices 40 and 41 that are between the respective M1 and M4 end matrices 39 and 42 are effective to cause color data to be stored in a bit plane memory 72 according to the address of the particular matrix 38. Referring now to FIG. 4, to be compatible with reading such data from the bit plane memory 72 on a scan line basis, there are different memory chip relationships between the pixels 33 in one matrix 38 and the pixels 33 in another matrix 38. There are four such different relationships; referred to as types 0 through 3. For example, the upper left hand matrix 38 has a pixel 33 identified by an "A" memory chip relationship (Type 0), whereas the adjacent matrix 38' to the right has a pixel 33' in the same location in that matrix 38' as was the prior pixel 33 in the matrix 38, but the memory chip relationship is shown as "F" (Type 1). The same concept applies to the pixel 33" in the matrix 38" (memory chip relationship "K") and to the pixel 33'" in the matrix 38'" (memory chip relationship "P". To adjust the write enable signals 60 and the mask enable signals 71 according to such storage relationships, the write enable signals 60 and the mask enable signals 71 are input to a matrix adjust circuit 73 (FIGS. 3B and 16). The matrix adjust circuit 73 varies the write enable signals 60 of each current matrix 38C according to the memory chip relationship of that current matrix 38C and generates final write enable signals 74 for each current matrix 38C. The final write enable signals 74 pass through a buffer 75 and are then applied to the bit plane memory 72. In the method of the present invention for converting the P1P2 line 34 to the final write enable signals 74 for displaying the line P1P2, the x,y coordinates of the first pixel 37 (which defines one end of the P1P2 line 34) are converted into matrix coordinates that define the address location of the first (M1) matrix 39 in which the first pixel 37 is located. The number of matrices 38 in the x and y directions between the first (M1) matrix 39 and the last (M4) matrix 42 in which the end pixel 43 is located are identified. The end pixel 43 defines the end of the P1P2 line 34. The x and y directions of the next matrix 40N through which the P1P2 line 34 extends upon exiting the first (M1) matrix 39 are identified according to the location of the P1P2 line 34 relative to the decision points D1 and D2 (FIG. 2) in the first (M1) matrix 39C. The next matrix 40N is defined in terms of the x, y or both the x and y directions. The identifying step is repeated relative to two decision points in each next current matrix until there are no more matrices 38 through which the P1P2 line 34 extends. Referring now to FIG. 5, the line drawing apparatus 49 of the present invention includes a control circuit 76 that stores computer programs set forth in Appendix A. The circuit 76 outputs instructions for a given current state and a next address. The next address identifies the state to be processed after the current state. The control circuit 76 includes a control register 77 that is connected to a writable control store (WCS) 78 that stores the various programs in the form of microcode. The control register 77 controls the selection of words or commands from the WCS 78 in conjunction with a next address register 79 and a this address register 80. In response to a reset command, the address in the next address register 79 is reset to 0. This causes the WCS 78 to output a signal 81 representing an instruction ("instruction 0" at address 0) into the control register 77. At the next clock cycle, the instruction 0 is sent to the rest of the line drawing apparatus 49, such as the input processor circuit 52 described in detail below. Also, a signal 82 representing the next address associated with the instruction 0 is loaded into the this address register 80. In the same cycle, a resulting new next address signal 82 also addresses the WCS 78. At the next cycle, the WCS 78 outputs into the control register 77 an instruction signal 81 associated with the next address, such that on the next cycle the instruction signal 81 corresponding to the next address will be output to the line drawing apparatus 49. As the cycling continues, this operation continues by successively outputting the instruction signals 81 from the WCS 78 to the control register 77 to the line drawing apparatus 49. Also, to take into consideration events that should modify the next address, a branch logic circuit 84 is connected to enable modification of the next address signal 82 of each instruction based upon the occurrence of a condition, such as the MAJOR flag signal 56. The branch logic circuit 84 outputs a modify signal 85 that modifies the next address signal 82 that is transferred to the this address register 80. As a result, the WCS 78 outputs the instruction signal 81 that corresponds to the modified next address. An example of this is discussed later in connection with the masking operation. In addition, a flag register 86 is provided for setting various flags for various conditions. The flag register 86 is connected to a flag RAM 87 that stores signals, such as the MAJOR flag signal 56, representing such flags. The flag RAM 87 is connected to a parameter register 88 which generates flag signals, such as the MAJOR flag signal 56 for access during processing to control how certain operations are to be performed. Also provided is a loop counter 89 that can be set to an initial value and then decremented each time an event occurs. The loop counter 89 outputs a signal 90 when it decrements to 0. For example, it will input the signal 90 to the branch logic circuit 84 which, if programmed to perform this function, will modify the next address signal 82 to access an appropriate next instruction. A push/pop stack RAM 91 is used in conjunction with a subroutine that is called by the control register 77. The push/pop stack RAM 91 stores the particular next address that follows the subroutine. The stack RAM 91 outputs the next address signal 82 to the WCS 78 to cause it to output to the control register 77 the instruction signal 81 that corresponds to that next address. This is done because a particular subroutine may be called at different times during the various operations, such that there is no particular next address associated with a given subroutine. Also, with respect to the next address following a particular subroutine, a conditional pop-logic circuit 92 is connected to both the push/pop stack RAM 91 and the branch logic circuit 84. In this case, the use of the instruction at the next address in the push/pop stack RAM 91 is conditional upon an event happening, which event controls the conditional pop-logic circuit 92. If the event occurs, the conditional pop-logic circuit 92 outputs a signal 93 to instruct the push/pop stack RAM 91 to output the next address signal 82 to the WCS 78, which then outputs the instruction signal 81 corresponding to that next address. If the event does not occur, then the conditional pop-logic circuit 92 does not permit the next address signal 82 to be read from the push/pop stack RAM 91. Instead, a second signal 94 from the conditional pop-logic circuit 92 is applied to the branch logic circuit 84 to modify the next address signal 82 that is transferred to the this address register 80 of the control register 77. The instruction signal 81 corresponding to that modified next address is then output from the WCS 78 to the control register 77. Referring to FIG. 6, the input processor circuit 52 includes a general purpose, bit slice processor 95 with additional circuitry 95 Referring to FIGS. 7A and 7B, various branches of the computer program of Appendix A are shown. The instructions for such branches are used to control the initial operation, or set-up, of the line drawing apparatus 49. With the control circuit 76 in its normal idle (or poll loop) mode, the input signal 51 for the MOVE command word causes a branch to MOVE ENTRY 1, which causes the WCS 78 to output instructions for path 97. Data may also be received from the register 96, which causes a branch to path 98. A MOVE command that branches to path 97 may result in state 20 or 24 depending on the activity of the pull loop. For MOVE ENTRY 1, the input signals 51 are received from a first-in-first-out memory (or FIFO) 99 in y and x coordinates across the entire screen. The WCS 78 outputs a MOVE instruction signal 81 for the path 97. In response to the MOVE instruction signal 81, the poll loop calls one of the next addresses 3020, 0020 and 0040 (path 97). For example, in response to the 0020 next address for the 0020 state, the WCS 78 outputs the instructions of the 0020 state. Similarly, the MOVE instruction signal 81 may call states 3020, 0040 or 0020. Each of states 3020, 0020 and 0040 sets up the input processor circuit 52 to cause a multiplier 100 to multiply by 0.25 to yield the y integer-matrix coordinate signal 53 and the y fractional signal 66 for the M1 current matrix 39C. Each of states 3020, 0020 and 0040 has a 5234 or 5235 next address that is used for "absolute" or "relative" cases as described below. Depending upon whether the "MOVE" instruction signal 81 is an initial set-up or whether a given point has been previously processed, an ABSOLUTE or a RELATIVE flag is set before ENTRY. An absolute point is not related to a previous point. A relative point is defined relative to the x and y coordinates of a previous point. Thus, the input signals 51 are either for an absolute, exact point or for delta amounts relative to the coordinates of a previous point. In particular, each word of a MOVE command signal 51 for either MOVE ENTRY 1 or 2 has an absolute or relative code associated with it. If the input point (such as P1) is an absolute point, an ABSOLUTE flag is set in the flag register 86 and an absolute path 101 (FIG. 7A) of the algorithm is processed. For example, in MOVE ENTRY 1, at the end of the state 3020, the next address 5234 calls a relative path 102, whereas the next address 5235 call the absolute path 101. This is depicted in FIG. 7A, where parallel absolute (ABS) and relative (REL) paths 103 and 104 are also shown for the MOVE ENTRY 2 path 98. Whichever of the respective absolute or relative paths 101 or 103 and 102 or 104 is taken, the processor 95 generates an output signal 105 (FIG. 6) that is written into the register 96 in terms of the absolute y and x values for the particular point, such as P1 or P2. These paths 97 and 98 converge at state 5210, which is described in the "state map". State 5210 is shown in detail in Appendix A. State 5210 completes the processing of the x and y values of the point P1 by causing the multiplier 100 to multiply by 0.2 and 0.25 respectively to determine the integer-matrix coordinate locations of the M1 matrix 39 in which the point P1 is located and the number of fractional pixels 32 associated with that M1 matrix 39. In particular, in states 5210 through 5213, the processor 95 is controlled to save the results of multiplying the y input signal 51 for the point P1 by 0.25 by storing the integer-matrix address signal 53 in the current matrix address circuit 61 state 5212, instruction "MBUS.increment.INTEGER RAM") and to store the fractional signal 66 in a y section 106 (FIG. 3A) of a fractional storage circuit 107 (see rest of same instruction). Similar storing is done in an x section 108 (FIG. 3A) with respect to the x input signal 51 (state 5213). The X and Y integer-matrix coordinate signals 53 for the M1 matrix 39 and the M4 matrix 42 are written into the current matrix address circuit 61. The current matrix address circuit 61 shown in FIG. 3A includes integer RAMs 109 and 110 (shown in detail in FIG. 8) that together have eight storage locations. Referring to FIG. 8, MBUS 3 through 10 input 8 bits of the integer-matrix coordinate signals 53 to the integer RAMs 109 and 110. The integer RAMs 109 and 110 store the X and Y integer-matrix coordinate signals 53 to represent the X and Y matrix addresses of the points P1 and P2 of the P1P2 line 34. To increase processing speed, the RAMs 109 and 110 can receive data representing the P2P3 line 35 while the P1P2 line 34 is being processed. The X and Y integer-matrix coordinate signals 53 are related to whether the point P1 is the beginning or the end point of the line 34. In particular, memory locations in the RAMs 109 and 110 store the following signals 53 as shown in Chart I.
Chart I______________________________________Location Data Stored______________________________________.0. x integer value BEG or END point1 y integer value BEG or END point4 x integer value END or BEG point5 y integer value END or BEG point______________________________________ The selection of the beginning (BEG) or end (END) point is under the control of a SELBEGEND signal 111, whereas IRA0 and IRA1 signals 112 control the 0,1 and 4,5 storage location addressing, such that if 0,1 is BEG, then 4,5 is END; and if 0,1 is END, then 4,5 is BEG. Referring to FIG. 10, the IRA0 and IRA1 signals 112 are shown as outputs from the parameter register 88, which is a programmable array logic circuit having sections shown as 88' and 88". In response to outputs from the processor 95 on CBUS0 and CBUS1, the parameter register section 88' outputs the IRA0 and IRA1 signals 112 to control the address in the integer RAMs 109 and 110 (FIG. 8) at which the X and Y integer-matrix coordinate signals 53 are stored. The processor 95 output is loaded into the parameter register 88 in response to an *LDIRADR instruction signal 81. In response to a BETOGGLE signal 113 from the processor 95, the parameter register section 88" outputs the SELBEGEND signal 111 to identify the point P1 or P2 as the beginning or the end of the P1P2 line 34. Referring again to FIG. 8, the RAMs 109 and 110 also receive a *WEIR signal 114 and an *ENIRAM signal 115 that enable the integer signals 53 to be written into the RAMS 109 and 110. The *ENIRAM signal 115 enables the RAMs 109 and 110 to output the X integer-matrix coordinate signal 53 to an X matrix counter 116 (FIG. 9) of the current matrix address circuit 61 and the Y integer-matrix coordinate signal 53 to a Y matrix counter 117 (FIG. 8) of the circuit 61. As indicated above, the X and Y integer signals 53 represent the address of the current matrix 38C that is being processed. The X and Y matrix counters 116 and 117 produce the current matrix address signals 62 in terms of rows and columns that address the bit plane memory 72. XMC0 through XMC7 lines 118 in FIG. 9 output the X current address signal 62 and YMC0 through YMC7 lines 119 output the Y current address signal 62 (FIG. 8). The eight lines 118 and 119 carry the eight bits of the signals 62, with the lower two bits indicating the type (0, 1, 2 or 3) of matrix (see discussion of FIG. 4 below). Thus, the current matrix address signals 62 output by the X matrix counter 116 and the Y matrix counter 117 are in terms of storage addresses to the buffer 75 and the bit plane memory 72. Referring to FIG. 11, the bit plane memory 72 includes twenty storage devices or chips 120, such as the devices 120' and 120", so that data for each pixel 32 of a given matrix 38 is written into a separate device 120', 120", etc. Each device 120 has 65536 storage locations, such that data from 65536 matrices 38 can be stored in the twenty devices 120, 120', etc. Each given matrix 38 represents a different storage address in each device 120 in terms of a row and a column address. Such row/column storage address is output by the X and Y matrix counters 116 and 117 based on the first or "TOP" address acquired from the integer RAMs 109 and 110. The M1 row address and a "C1" column address are shown corresponding to the first M1 matrix 39. In particular, one of the devices 120 corresponds to each of the A through T pixel locations shown in FIG. 4. Thus, as shown in FIG. 11, the device 120' stores data for the A pixel 33 and the device 120" stores data for the B pixel 33 of the M1 matrix 39. Referring again to FIG. 8, the Y matrix counter 117 is shown as having two sections 121 and 122, one for such row address and one for such column address. Lines 123 receive the 8 bits of the integer-matrix signals 53 from the Y integer RAMs 109 and 110 and input them to the Y matrix counter 117. The counter 117 is loaded from the integer RAMs 109 and 110 in response to a *LDYMC signal 124. The *ENY next matrix signal 63 output by the next matrix circuit 57 (see FIGS. 3A and 15) is applied to an OR circuit 126 to cause each section 121 and 122 of the Y matrix counter 117 to step one matrix address in the Y direction. The Y matrix counter 117 thus outputs the Y matrix address signal 62 on the YMC0 through YMC7 lines 119 to represent the row and column storage address of the next matrix 38N. Referring to FIG. 9, the X matrix counter 116 is shown having a section 116' and a section 116" for receiving the eight bit X integer-matrix coordinate signal 53 from IR0 through 7 lines 123. The sections 116' and 116" are loaded in response to a *LDXMC signal 127. Still referring to FIG. 9, the section 116' is for the row address and the section 116" is for the column address. The sections 116' and 116" respond to an XMCDOWN flag signal 125 from the parameter register 88' that indicates whether the line 34 goes in the (+) x direction or the (-) x direction according to whether the signal is 0 or 1. The row section 116' is set for the M1 row address and the column address stored by the column section 116" is variable until the line 34 extends into a new row address block. With the line 34 in the same matrix 38, the section 116" shifts in the appropriate +X or -X direction in response to the XMCDOWN next matrix signal 63. In response to the *ENX next matrix signal 63, the sections 116' and 116" output the current X matrix signal 62 to the XMC0 through 7 lines 118. Also shown in FIG. 9 is a paging circuit 128 that includes a register 129 that stores the matrix row address of the prior matrix 38. The current matrix row address signal 62 is applied by XMC4 through 7 and YMC4 through 7 lines 130 to a comparator 131 that is also supplied with the prior matrix row address via lines 132. The comparator 131 generates a change page signal 133 when the current row address is for the next row in the bit plane memory 72. Referring to the state map in conjunction with FIGS. 7A and 7B, the DRAW command input signal 51 causes a branch to one of three states 24, 44 and 3024 to DRAW ENTRY 1. These are shown in FIG. 7A as a left path 134. Referring to state 3024, for example, the corresponding instructions set up the input processor circuit 52 for the next relative (state 5034, path 135) and absolute (state 5035, path 136) computations as described above in respect to the MOVE ENTRY 1 state. Similarly, the DRAW ENTRY 2 state shown in FIG. 7A at a right hand path 137 results in processing state 5000 for set up, and then calls states 5002 (relative, path 138) or 5003 (absolute, path 139). These states converge at state 5010 in a manner similar to MOVE ENTRY 1, such that the point P2 is processed in a manner similar to how state 5210 processes the MOVE command signal 51. Similarly, the integer-matrix address signals 53 and the fractional signals 66 for the point P2 are stored in the respective current matrix address circuit 61 and the respective y and x fractional storage sections 106 and 108. In particular, in state 5012, instruction "MBUS→INTEGER RAM, Y FRACTION REG" causes the Y integer-matrix address signal 53 and the y fractional signal 66 to be stored. Referring to FIG. 7B, in states 5121, 5120, and 5176 (which are processed in respective paths 140, 141 and 142 that are taken separately depending on the value of ΔX) the X integer-matrix address signal 53 and the x fractional signal 66 are stored for the point P2 in the respective current matrix address circuit 61 and fractional storage section 108. As shown in FIG. 7A and in the state map, the DRAW ENTRY 1 and 2 paths 134 and 137 converge at state 5010 into a path 143. At that time, the values of the x and y coordinates of the points P1 and P2 are known. At state 5010 and in the next state 5011, the processor 95 (FIG. 6) is instructed to subtract the Y address of the last M4 matrix 42 from the Y address of the first M1 matrix 39 to obtain ΔY and the sign of ΔY is noted to produce the ΔY signal 54. The ΔY signal 54 is loaded into the processor register 96. Referring to FIG. 7B, there are three paths 144, 145 and 146 based on the sign of ΔY. This branching according to the sign of ΔY simplifies the determination of the sign of the slope S of the P1P2 line 34. In particular, state 5020 for ΔY greater than 0 (path 144), can branch to any one of three states 5121 (path 140), 5120 (path 141) and 5122 (path 142). Since the value of ΔY is known for each of these states, the positive or negative sign of the slope S then depends upon the value of ΔX. Since ΔX was calculated in state 5012 (Page A25) the slope S of the P1P2 line 34 is determined according to the sign of ΔX in the various states 5121, 5120 and 5122. Similarly, if ΔY is equal to 0, the path 140 for state 5021 is taken and the sign of the slope S determined according to the states listed. These are shown in FIG. 7B as 5220 (path 147), 5221 (path 148) and 5222 (path 149). Similarly, for ΔY<0, the path 146 for state 5022 branches to state 5320 (path 150), 5321 (path 151) and 5322 (path 152) with similar results as to the sign of the slope S. Referring to path 144 for state 5020, the determination of ΔX that was started in state 5012 is completed by writing ΔX into RAM location 400 of RAM 153 (FIG. 6). The next addresses called at the end of state 5020 are conditional states 5120, 5121 and 5122 according to the value of ΔX, as noted above. Considering state 5121 for the ΔY>0 and ΔX=0 (path 140), the line 34 represented in this case is a vertical line 154 having a 0 slope as shown in FIG. 12. The SELECT FLAGS2 and LOAD FLAG REG instructions cause a slope flag signal 70 to be saved in the flag register 86 (FIG. 5) as a positive slope flag. The next address signal called by state 5121 is for state 5500, discussed later. The state in which the SELECT FLAGS2 and LOAD FLAG REG instructions are processed depends upon whether the P1P2 line 34 in question is an X MAJOR line 156 or Y MAJOR line 155 (FIG. 12). For example, considering state 5120 (path 141, FIG. 7B), since ΔY>0 and ΔX> 0, the slope S is positive (see lines 155 and 156 in FIG. 12). For the X MAJOR line 156, the SELECT FLAGS2 and LOAD FLAG REG instructions are processed in state 5132 (path 157) to which the algorithm has branched. Similarly, for the ΔY>0, ΔX<0 situation, which is indicated in FIG. 1 by the Y MAJOR P3P2 line 34, state 5142 (path 158) is branched to the Y MAJOR P3P2 line 34 and the instructions SELECT FLAGS2 and LOAD FLAG REG are used to cause the negative flag signal 70A that corresponds to the P3P2 line 35 to be stored in the flag register 86 (FIG. 5). The processor 95 also computes the slope S signal 55 during the operations that are initiated under the respective states 5020, 5021 and 5022 (FIG. 7B). In particular, state 5020 includes a sixth instruction that sets up ΔX as the denominator for the slope S. If ΔX>0, then the path 141 is taken and in state 5120 (Page A26) the fourth instruction performs this same function. Similarly, if ΔX<0, state 5122 calls next address 5177 and in state 5177 the second instruction causes this function to be performed. Considering the branch to state 5120 again, the next address is to state 5170. The eleventh instruction in state 5170 is for a setup for the slope calculation. Branching to path 157 for states 5132 and 5160 following state 5170, there are set-ups for the slope denominator. Further, in state 5700 there are instructions for the normalized ΔY and ΔX signals 54 to be input to the multiplier 100. Between states 5700 and 5751, the multiplier 100 carries out the multiplication of the ΔY times the inverse value of ΔX to obtain the slope. In states 5720 and 5721, the output signal 55 for the slope S is enabled onto the MBUS. Initially, it is understood that the line drawing system 49 does not necessarily receive the input signals 51 for the points P1 and P2 in the order in which they are to be drawn. Rather, referring to FIGS. 1 and 3A, the first of the input signals 51 (for either of the points P1 and P2) received by the input processor circuit 52 is identified as "BEG" and the second as "END". Since the line drawing system 49 draws the P1P2 line 34 in the +y direction, the BEG point (the first one received or the "move to" point) may not be the top point P1 (pixel 37 in FIG. 1) that is drawn from. To identify the BEG or END point as the TOP point P1, the following calculation is performed:
y(end)-y(beg) Therefore: If NEGATIVE, y(end)<y(beg), then TOP=END If POSITIVE, y(end)≧y(beg), then TOP=BEG. This calculation is performed by the input processor in state 5011 (FIG. 7A). Initially, it is noted that in state 5012, there is a LOAD FLAG REG command. The sign of this calculation is output by the processor 95 as a NEG flag signal 70A that can be negative or positive. The LOAD FLAG REG command causes the NEG flag signal 70A to be stored in the flag register 86 prior to inputting it to the parameter register 88. The writing to the parameter register 88 occurs in state 5020 (instruction LOAD PREG). The determination of NEG TOP flag signal 70A that is input to the flag register 86 is dependent upon the sign of the ΔY calculation. In state 5011, this is indicated by instruction PROC:RA1.-.RB17→B. This instruction causes the processor 95 (FIG. 6) to read the y coordinate of the END point P2 from the RA1 processor register 96 and to read the y coordinate value of the BEG point P1 from the RB17 processor register 96. The two are subtracted by the processor 95 and then the resulting ΔY is written into the RB17 processor register 96 again. The processor 95 also outputs the sign of the result as the NEG flag signal 70A that can be negative or positive. The flag signal 70A is stored in the flag register 86, which outputs a FREGDAT1 signal 70B that is stored in the parameter register 88. If the NEG flag signal 70A is negative, the YMAJ signal 56 is output by the parameter register 88", whereas if the NEG flag signal 70A is positive, the XMAJ signal 56 is output by the parameter register 88" and a TOP flag signal 70 is output by the parameter register 88'. The identification of the BEG or END point P1 or P2 as the TOP point P1 is done to insure consistent accuracy of the lines drawn by always drawing from top to bottom regardless of the order in which the points P1 and P2 are input to the line drawing system 49. Another aspect of the identification of the BEG and END points and their relationship to the TOP and BOTTOM points of a line, such as the line 34, relates to the transition from drawing one line to the next line where the lines are continuous and separated by a middle point, such as P2, that is common to both lines. For example, as shown in FIG. 1, P1P2 line 34 is drawn and then P2P3 line 35 is drawn. The point P2 is common to both lines 34 and 35. Therefore, the data for the point P2 is in the integer RAM 109 (FIG. 8) identified as "END" along with the fractional data in the fractional storage circuits 107 and 108. Thus, at the start of processing the second P2P3 line 35, a readdressing is done so that the previous END point P2 becomes the beginning (BEG) point. For this purpose, the BETOGGLE toggle signal 113 (FIGS. 5 and 10) is input to the parameter register 88". Referring to FIG. 10, the BETOGGLE signal 113 causes the parameter register 88" to output the SELBEGEND signal 111 to an inversion gate 159 (FIG. 8) connected to the END section 109 of the current matrix address circuit 61. The inverter 159 also receives a TOPINVERT signal 160. Referring to FIG. 8, it may be understood that at the end of the processing of the P1P2 line 34, when it is desired to draw to point P3 from point P2, the integer RAMs 109 and 110 will have received the X and Y integer-matrix signals 53 representing the matrix addresses for both the points P2 and P3. Also, as noted above, the SELBEGEND signal 111 is addressed to the point P2 as the last END point. Based on the sign of ΔY that was previously calculated and stored in the parameter register 88 (FIG. 10) as the TOP flag, and ith the SELBEGEND signal 111 pointing to the point P2 as the END, the parameter register 88' generates the TOPINVERT signal 160 in the event that the point P3 is above the point P2, which it is in the example shown in FIG. 1. The TOPINVERT signal 160 coincides with the SELBEGEND signal 111 in this example. However, if the point P2 is above the point P3, no TOPINVERT signal 160 is output. Thus, the TOPINVERT signal 160 either switches that address of the point P2 or not depending upon whether the beginning (BEG) point (P2) is the TOP POINT (switch, since "the draw point" is always the end point) or the BEG point P2 is the BOTTOM point (no switch). Thus, the TOPINVERT signal 160 controls the inversion gate 159 (FIG. 8) to select as the TOP point either the beginning point (BEG) or the ending point (END) depending upon which one has the least y value. The integer X and Y signals 53 that are output as the TOP values are output into the X matrix counter 116 (FIG. 9) and the Y matrix counter 117 (FIG. 8) to provide the address of the specific matrix 38 in which the TOP point P3 is located. The fractional storage circuit 107 is designed to receive the x and y fractional signals 66, if any, for each of the BEG and END points P1 and P2 of the line 34. As described above, the x and y fractional signals 66 represent the pixels 32, if any, that remain after the X and Y integer-matrix addresses are determined. Referring to FIG. 13, the fractional storage circuit 107 is shown including a programmable array logic (PAL) circuit 161 for the x fractional of the BEG point P1 (pixel 37) and a PAL circuit 162 for the y fractional of the BEG point P1 (pixel 37). The PALs 161 and 162 are loaded in response to appropriate *LDXFRAC and *LDYFRAC signals 163. This occurs in response to the MOVE command (input signal 51) described above. In FIG. 7A (path 164), this is shown in states 5212 and 5213 where the "save y/4 result" and "save x/5 result" comments indicate that the y and x fractionals for the BEG point P1 are stored. The SEL-BEGEND signal 111 is applied to the PALs 161 and 162 and to indicate that the signal 66 represents the BEG point P1. As noted above, after the MOVE command, the input signal 51 provides the DRAW command. In FIG. 7A, the END point P2 is processed in states 5010 through 5012 (path 143) to obtain the x and y fractional signals 66 for the END point P2. The *LDXFRAC and *LDYFRAC signals 163 and the SELBEGEND signal 111 cause the x and y fractional signals 66 to be loaded into the PALs 161 and 162 to represent the END point P2. Referring again to FIG. 13, two additional PALs 165 and 166 respond respectively to the X PAL 161 and to the Y PAL 162. The PALs 161 and 162 identify the BEG and END points P1 and P2 as the top and bottom points in response to a SELBEGENDTOP signal 167 (FIG. 8) generated by the inverter gate 159 in response to the SELBEGEND signal 111 and the TOPINVERT signal 160. The PAL 161 outputs three signals 169 and three signals 170 that represent either BEG or END fractional x values. The PAL 162 outputs two signals 171 and 172 that represent either the BEG or END fractionals. Thus, when the signals 169 and 171 represent BEG, the signals 170 and 172 represent END. The PALs 165 and 166 generate the x and y fractional signals 66, that are shown as *XT0 through *XT2 and *XB0 through *XB2 for the top and bottom x fractional, and as *YT0, *YT1, *YB0 and *YT1 for the top and bottom y fractional values. The input processor 52 sets up the next line 34 while the current line 34 is being processed through the matrices 38. The fractional signals 66 for the current line 34 are stored in the registers 165 and 166, whereas at that time the PALs 161 and 162 store the BEG and END fractional signals 66 for the next line. Multiplexers 168' and 168" respond to the SELBEGENDTOP signal 167 for reading the TOP fractional signals 66 for the next line 34 from the PALs 161 and 162. Such signals 66 are output onto IBUS to the processor 95 so that B As indicated above with respect to FIG. 7B, the branch according to the sign of ΔY can be taken into path 144, 145 or 146. Referring to Appendix A, the operations for determining the X MAJOR signal 56 and Y MAJOR signal 56 are summarized under states 5020 (path 144), 5021 (path 145) and 5022 (path 146). In each of paths 144, 145 and 146, a further branch can be taken according to the sign of ΔX. Considering the path 144, the subsequent path 141 corresponds to ΔX>0 and relates to state 5120, which branches to state 5170, which in turn branches to next addresses 5130 and 5132 according to the relative values of ΔY and ΔX. Considering state 5120 (path 141) that corresponds to an X MAJOR line 34, the processor 95 is instructed to perform the ΔX-ΔY operation by instruction "PROC: RA16 .-. RB17→-". According to the results of processing this instruction, either an X MAJOR flag or a Y MAJOR flag is set. If an X MAJOR flag, in state 5170 the "SELECT FLAGS1" instruction saves the X MAJOR flag and in state 5130 an X MAJOR flag signal 56 (FIG. 3A) is output. If Y MAJOR, the "DISP" instruction in state 5170 indicates a dispatch to state 5132 (path 157, FIG. 7B) where the SELECT FLAGS2 instruction indicates that the flag signal 56 is for the Y MAJOR line. The flag register 86 (FIG. 5) is loaded in state 5751, for example. Thus, it is seen that at the end of state 5170 the relative value of ΔX and ΔY has been determined. The path 141 branch from the path 144 is typical of the other branches to states 5122 (path 142), 5320 (path 150) or 5322 (path 152), for example. During the set-up processing, as ΔY was obtained, branching occurred according to the sign of ΔY. This sign of ΔY is also used in the calculation of the number of matrices in each of the x and y direction that the P1P2 line 34 passes through in extending from point P1 to point P2. In particular and referring to FIGS. 3A, 6 and 15, the sign of ΔY determines which of the Y matrix addresses (for the point P1 or the point P2) is subtracted from the other to develop the number of Y matrices 38 through which the P1P2 line 34 extends so as to obtain the delta signal 54 (FIG. 3A) in the form of a Y delta signal 173 having a negative value. The Y delta signal 173 is input into a Y loop counter 174 of the loop circuit 64. In response to such negative Y delta signal 173, the Y loop counter 174 is set to its minimum value. As discussed below, as the Y loop counter 174 is incremented, it counts up to its maximum value and outputs a YDONE signal 175 to a vector end circuit 176 (FIGS. 3B and S38). The YDONE signal 175 indicates that the processing of the P1P2 line 34 in the y direction has been completed. The use of the sign of ΔY in this manner is indicated in state 5020 where the instruction "PROC: RA3 .-. D-1→RB3" indicates that the Y integer for the M4 matrix 38 has subtracted from it the Y integer for the M1 matrix 38 at the beginning of the P1P2 line 34. This ΔY delta signal 173 is written into the RB3 location of the register 96 and in response to the next instruction ("LOAD PREG") is written into a processor register 177. In state 5121, the Y delta signal 173 is output to the OBUS and in the next instruction is written into the Y loop counter 174 (FIGS. 3A and 13). Referring to FIG. 7B, in a similar manner for the ΔX>0 and ΔY>0 situation, the fifth instruction of state 5170 results in the subtraction to generate an X delta signal 178 (FIG. 15), which is written into the processor register 177. Then, in state 5130 the X delta signal 178 is written into the OBUS and in the next instruction is written from the OBUS into an X loop counter 179 (FIG. 15). The X loop counter 179, as a result of the X and Y delta signals 178 and 173, each of the X and Y loop counters 179 and 174 is set to a negative counter value according to the number of matrices 38 in each of the respective x and y directions through which the P1P2 line 34 extends. As discussed below, as the X loop counter 179 is incremented, it counts up to its maximum value and outputs an X done signal 180 that is applied to the vector end circuit 176. As shown in detail in FIG. 15, other inputs to each of the X and Y loop counters 179 and 174 include the respective *LDXLR and *LDYLR signals 182 and 183 for loading the register (not shown) of the respective loop counter 179 and 174. An *LDXYLC signal 184 is input to both of the X and Y loop counters 179 and 174 for loading the counters from the registers. The respective X and Y loop counters 179 and 174 also receive the *ENX next matrix signal 63 that enables the X loop counter 179 to increment (count up) by one. A similar *ENYLP next matrix signal 63 enables the Y loop counter 174 to increment by one. Having been initially loaded with the appropriate ΔX and ΔY values, the X or Y loop counter 179 or 174 that receives the *ENX or *ENYLP next matrix signal 63 from the next matrix circuit 57 increments up one unit. When the particular X or Y loop counter 179 or 174 has reached its or their maximum value(s), it or they output the respective XDONE or YDONE signal 180 or 175 indicating that the maximum value has been achieved and that the last M4 matrix 42 has been reached in the respective x or y direction. In response to the coincidence of the respective XDONE and YDONE signals 180 and 175, an AND gate 186 of the vector end circuit 176 generates the vector end signal 65 and outputs same to the mask enable circuit 67 and to the next matrix circuit 57. Referring now to FIG. 3B, the respective X and Y sections 68 and 69 of the mask enable circuit 67, function in respect to both the first (M1) matrix in a line, such as the M1 matrix 39 of the P1P2 line 34, and the last (M4) matrix for the line, such as the M4 matrix 42 of the P1P2 line 34. As noted above with respect to FIGS. 1 and 2, since the P1P2 line 34 starts at the first pixel 37, the pixels 36 beyond the P1P2 line 34 should not be write enabled. However, the write enable signals 60 represent the path of the P1P2 line 34 across the entire first (M1) matrix 39, thus, the write enable signals 60 for the pixels 36 beyond the P1P2 line 34 must be disabled or "masked". The mask enable signals 71 represent the pixels 33 in the first, M1 matrix 39 that are write enabled. Such pixels 33 are not beyond the end pixel 37 of the P1P2 line 34. Similarly, the vector end signal 65 representing the last (M4) matrix 42 of the P1P2 line 34 initiates a masking operation. The mask enable circuit 67 also generates the mask enable signals 71 for the last or M4 matrix 42. Referring to FIGS. 14 through 19, the x and y mask enable signals 71 are shown in FIG. 15 as being generated by the mask enable circuit 67 in the form of nine signals 71, such as the *YABCDE signal 187 that corresponds to the A through E row of pixels 32 and such as the *XAFKP signal 188 that corresponds to the A through P column of pixels 32. As illustrated in FIG. 14, the signals 187 and 188 combine to prevent or "mask" the A pixel 33 if either of the signals 187 or 188 is "1", whereas if both are not "1", then the A pixel 33 will be enabled to be written. It may be understood that the signals 187 and 188 are controlled so as to mask the pixels 36 that are beyond each end of the P1P2 line 34. Considering FIG. 15 in detail, the x mask enable section 68 and the y mask enable section 69 include respective programmable array logic (PAL) circuits 189 and 190, each of which is programmed to generate the appropriate signals 187 and 188 to combine to perform such masking. The PAL circuits 189 and 190 receive the vector end signal 65 from the AND gate 186. The SLOPENEG signal 55 is applied to the PAL circuit 189 and controls whether masking will occur to the left or right of the x address of the BEG point, e.g. for the P1P2 line 34 the masking will be to the left. A MASKBEG signal 191 is applied to the PAL circuits 189 and 190 to initiate masking with respect to the M1 matrix 39. *YT0 through *XT2, *XB0 through *XB2, *YT0 through *YT1, and *YB0 through *YB1 signals 192 representing the top and bottom pixels 32 in a matrix 38 are applied to the corresponding x and y PAL circuits 189 and 190 to identify the pixel 32 from which masking is referenced. The PAL circuits 189 and 190 respond to the vector end signal 65 and, according to the data represented by the signals 55, 191 and 192, generate the mask enable signals 187 and 188. Referring again to FIG. 14, A may be understood that if the "H" pixel 32 is the end of a line that is to be drawn through the "H", "N", "T" pixels 32, then the *XAFKP and *XBGLQ signals 188 are "1" and the *YABCDE signals 187 are "1". The PAL circuit 190 also responds to *XEN and *YEN signals 193 from the next matrix circuit 57 for generating the *ENX signal 63 and a *ENYLP signal 194 and a *ENY signal 195. As shown in FIG. 4 and described above, there are four types of matrices 38. The pixel write enable circuit 59 shown in FIG. 3B always outputs the pixel ON or write enable signals 60 for the Type 0 matrix 38 where the pixels 32 are designated A through E in the top row and F through T in the remaining three rows. As noted above with respect to FIG. 11, the bit plane memory 72 has one of the storage devices 120, etc. for each of the pixels A through T. Referring to FIG. 16, the matrix adjust circuit 73 receives the write enable signals 60 for a given matrix 38 and adjusts them according to the pattern of A through T storage devices 120 that exists for the particular matrix 38. Thus, depending on where the current matrix 38C is on the screen 30, the write enable signal 60 is adjusted for one of the four different matrix Types 0 through 3. The matrix adjust circuit 73 is shown in FIG. 16, including five programmable array logic circuits 196 through 200 that together receive twenty *WRT A through T write enable signals 60 from the write enable circuit 59 shown in FIGS. 3B and 19. Each of the five programmable array logic circuits 196 through 200 is effective to selectively transpose the write enable signals 60 for the matrix Type 0 into any one of the four matrix Types 0 through 3 that must be output depending upon which matrix Type is being processed as the current matrix 38C. Also, *XMC0 and *XMC1 signals 201 and 202 are input to the matrix adjust circuit 73 to indicate which matrix Type is the type for the current matrix 38C. These *XMC0 and *XMC1 signals 201 and 202 are the least significant bits from the X matrix counter 116 (FIG. 9). There is no output of this type from the Y matrix counter 117 (FIG. 8) because there is no change in the matrix types as one proceeds in the +y direction. The *XMC0 and *XMC1 matrix type signals 201 and 202 from the X matrix counter 116 cause each of the programmable array logic circuits 196 through 200 to convert the *WRT A through T write enable signals 60 as necessary depending on the Type of the current matrix 38C. The programmable array logic circuits 196 through 200 collectively output the final write enable signals 74 for the selected ones of the pixels of a given current matrix 38C that must be ON in order to draw the P1P2 line 34 from point P1 to point P2. These write enable signals 74 are passed through the write enable buffers 75 (FIG. 3B) and represent the final signals that are output by the line drwing system 49 to enable each of the twenty storage devices 120 that are used to store the pixel data for each pixel of the current matrix 38C. Referring also to FIGS. 2 and 19, the need to perform the masking operation may be appreciated. In particular, the write enable circuit 59 is effective to enable all twenty pixels of each current matrix 38C. Thus, the input that determines which pixel 32 within a given matrix 38 should be ON is determined by the output signal 60 from the write enable circuit 59. However, with respect to the first (M1) matrix 39 and the last (M4) matrix 42, the masking operation must occur if the first pixel 37 is not at an edge of the matrix 39. In particular, referring to FIG. 16, in addition to adjusting the twenty write enable signals 60 (*WRT A through T) according to the matrix Type, the matrix adjust circuit 73 receives the mask enable signals 187 and 188 (FIG. 15) in the form of the separate *XAFKP *XBGLQ, *XCHMR, *XDINS, *XEJOT signals 187 and the separate *YABCDE, *YFGHIJ, *YKLMNO, *YPQRST signals 188 that were generated by the mask enable circuit 67. Each PAL 196 through 200 (FIG. 16) receives one of the X enable signals 188 and all of the above Y enable signals 187. Thus, as shown in FIG. 16, the particular programmable array logic device 196 through 200 responds to one of the five X mask enable signals 188 and all of the Y mask enable signals 187 that indicate which column of pixels 33 within the given current M1 or M4 matrix 39 or 42, respectively, is to be enabled. With respect to a given column, the particular programmable array logic device 196 through 200 will enable a particular pixel 32 according to whether the write enable signal 60 indicates whether that particular pixel 32 (A, F, K, or P for the programmable array logic device 196) is ON or OFF. The input processor 52 (FIG. 3A) performs additional processing for set-up. In particular, after the slope signal 55 for the line 34 is enabled to the CBUS and then to the MBUS (see state 5600, Page A53), it is written into a slope register 203 (shown in two sections 203' and 203") of the next matrix circuit 57 (FIGS. 3A and 17). The slope register 203' is shown in FIG. 17 as receiving the slope signal 55 for the line 34 from the MBUS. The slope register 203 receives a *LDSLOPE signal 205 that controls the writing of the slope signal 55 into the slope register 203. To enable the line drawing system 49 to process two lines, such as the successive lines 34 and 35, a second slope register (not shown) is provided for receiving the slope signal 55 for the line 34. CBUS supplies such slope signal 55. Referring to FIG. 2, it may be appreciated that the slope S must be a negative value because the slope is only used in a calculation to determine the y value of the P1P2 line 34 at x=4 within the current matrix 38C (see FIG. 2). Such y value is shown in FIG. 2 as "B As is evident from FIGS. 7A and 7B, the line drawing system 49 has a separate path for each of thirteen situations in which there may be various combinations of ΔY values, ΔX values, X MAJOR and Y MAJOR situations, and the slope S (being 0 or not 0). Each of these 13 output paths leads to one of five further states, namely states 5400, 5500, 5600, 5601 and 5700. Referring to Page A4, these five states, and the resulting four paths 209, 210, 211 and 212 are described. These five states enable the processing of a line 34, such as the line P1P2, that is in any one of six directional conditions. Referring to FIG. 12, these six conditions include a line 213 that is X MAJOR with (-) slope S, a line 214 that is Y MAJOR with (-) slope S, the line 154 that is Y MAJOR with slope S=0 (which for purposes of the SLOPENEG signal 207 (FIG. 17) is treated as being (+)), the line 155 that is Y MAJOR with (+) slope S, the line 156 that is X MAJOR with (+) slope S, and a line 215 that is X MAJOR with slope s=0. The path 209 corresponds to the X MAJOR line 215 having a slope=0, such that the line 215 is horizontal. The path 210 corresponds to the vertical, Y MAJOR line 154 treated as having a positive slope. The path 211 relates to the X MAJOR line, such as the P1P2 line 34 where the slope S is positive. (This is shown in FIG. 12 as the line 156.) The path 211 also relates to the X MAJOR line 213 with a negative slope S. The path 212 corresponds to a Y MAJOR line, such as the P3P2 line 35 (FIG. 1), in which the slope S is not equal to 0 and is positive. (See also line 155 in FIG. 12.) The path 212 also corresponds to the Y MAJOR line 214 with a negative slope S. It is to be understood that no matter which of the paths 209, 210, 211, and 212 is taken, the input processor circuit 52 is effective to supply the next matrix circuit 57 with the "A", "B", and "AB" constants that are used in the next matrix processing. As discussed previously, these constants were defined in respect to the P1P2 line 34 as shown in FIG. 2, which is an X MAJOR line. For such X MAJOR line, it was noted previously that the "A" constant is -4 for the P1P2 line 34 and that the "A" constant is used when the next matrix 38N is the M2 matrix 40 relative to the M1 matrix 39, for example. Also, the "B" constant is +3.2 for the P1P2 line 34 and is used when the next matrix 38N is the M3 matrix 41 relative to the M2 matrix 40, for example. The "AB" constant is -0.8 for the P1P2 line 34 and is used when the next matrix is the M4 matrix relative to the M3 matrix, for example. From the computational standpoint, the "A" constant is known once the number of pixels 32 in a matrix 38 is known. As to the "B" constant, the slope S must be multiplied by 5, which is also known from the number of pixels 32 in the matrix 38. The "AB" constant results from the addition of the "A" and "B" constants. For a Y MAJOR line, the constants are shown in Chart II when the matrix 38 is 5 by 4 pixels as shown in FIG. 1:
Chart II______________________________________ Constant Value______________________________________ A -5 B +4S AB -5 + 4S______________________________________ Also, the amount used in the translation to a new reference line R is 4.5 rather than 3.5. A constant register 208 is shown in FIG. 17 as including two chips 216 and 216'. The chip 216 has three registers (not separately shown but) identified as "AB", "B" and "A". The AB register of the chip 216 stores the lower 8 bits of the AB constant, the B register stores the lower 8 bits of the B constant and the A register stores the lower 8 bits for the A constant. The chip 216' also has three registers (not separately shown but) identified as "AB", "B" and "A". The AB register of the chip 216' stores the upper 8 bits of the AB constant, the B register stores the upper 8 bits of the B constant and the A register stores the upper 8 bits for the A constant. To enable set up for one line 34 while the current line is being processed, duplicate chips 217 and 217' are provided, each having the same functions as the chips 216 and 216'. The loading of the chips 216 and 216' is done via MBUS0 through 15 in response to the *LDCONSTANT signal 218. The constants "A" and "B" are supplied to the registers 216, 216', 217 and 217' via respective MBUS0 through 7 and 8 through 15. Each of the four paths 209 through 212 (FIG. 7B) results in writing the next matrix constants into the constant register 208. For example, when in the two situations in which the slope is 0, the constant register 208 is loaded with a 0 value in both cases. On the other hand, when considering the X MAJOR path 209, values are written to all three of the AB, B and A registers 216 and 216' of the constant register 208. These values that are written into the constant register 208 have been processed by the input processor 52 as indicated on Page A13. Referring to FIG. 16 and to Page A13, the "AB CONSTANT REG" notation indicates that the "(-5×slope S)+(-4)" computation is the result of combining the A and B constants. Thus, because of the direction in which the M4 matrix 42 appears relative to the M3 matrix 41, translations in both the (+)x and the (+)y direction are required. Referring to Appendix A, an example of the processing of the "A", "B", and "AB" constants is shown starting in state 5652 which results in loading a product register 220 (FIG. 6) of the multiplier 100 as a setup for the "(-5) * slope S" operation for the "AB" and "B" constants. The output from the product register 220 (the B constant) is enabled to the MBUS in state 5653. The constant register 208 is loaded from the MBUS (state 5653). Also, in state 5653 the B constant is loaded into the processor register 96 where it is added to the A constant in state 5654. In state 5654 the sum (the AB constant) is loaded in PREG 177. In state 5637 the AB constant is loaded into the constant register 208. _{ex0} Referring to FIG. 2, the P1P2 line 34 is shown as an X MAJOR line. As discussed previously under the heading "Line 34/Matrix 38 Relationship", because the line 34 does not intersect the left hand side of the M1 matrix 39, the intercept b The next matrix circuit 57 includes the intercept B Referring to FIG. 2, it may be understood that the B As to the translation from the M1 to the M2 matrices 38 and from M3 to the M4 matrices 38, there is a translation of y=-4 in each case since a new reference line, respectively R2 and R4, is used. In the preferred embodiment, the B The intercept signal 58 (FIG. 3B) in the form of the B The PROMs 234 through 238 are programmed with data for each possible combination of input, including MAJOR flag signal 56, slope signal 55, intercept B Referring now to FIG. 21, the next matrix circuit 57 is shown generally including the intercept B The adder 239 is shown in detail in FIG. 20 as having four sections 239A, 239B, 239C, and 239D that receive different bits of different signals input thereto. The adder 239 initially receives the B
B for the matrix 39 as shown in FIG. 2. The other functioning of the first adder 239 (FIG. 20) is described below with respect to the operation of the next matrix circuit 57 in respect to the P1P2 line 34. There are two outputs from the adder 239, one being the NEXTINTB0 through 15 signal 227 that, as described above, represents the next B Still referring to FIGS. 20 and 21, the NEXTINTB0 through 15 signal 227 is applied to the second adder 240, that is shown in FIG. 20 having sections 240A, 240B, 240C and 240D. The slope sign signal 206 from the slope register 203 (FIGS. 16 and 21) is also applied to the section 240D of the adder 240. The slope register 203 also outputs the slope signal 55 to the adder 240. Referring to FIG. 2, with these inputs the section 240D of the adder 240 is effective to determine the position of the intersection b
B Such position, or B The sign bit signal 244 from the first adder 239 indicated the position of the B Still referring to FIG. 20, the next matrix circuit 57 is shown in detail including the DDL circuit 242 that receives the vector end signal 65 and the X MAJOR signal 56. The sign bit signal 244 and the sign signal 245 are input to the DDL circuit 242 from the respctive first adder 239 and the section 240D of the second adder 240. In response to the sign bit signal 244 and the sign signal 245, the DDL circuit 242 outputs a decision signal according to the following sign inputs:
Chart III______________________________________ DDL Circuit 57Sign of Sign of DecisionSignal 244 Signal 245 Signal______________________________________(-) (-) A (signal 246)(+) (-) A/B (signals 233 & 246)(+) (+) B (signal 233)______________________________________ As described in Chart IV below, the decision may also be expressed in terms of the position of the P1P2 line 34 relative to the points D1 and D2 and the direction of the next matrix 38N. The decision signals 233 and 246 are input to the decision register 241 and to the B The DECISION A and B signals 246 and 233 output by the decision register 241 as the respective DECISION A and B signals 246' and 233' and are applied to the constant registers 216, 216', 217 and 217' (FIG. 17) to cause the appropriate "A", "B" or "AB" constant signals 243 to be the output to the first adder 239 (FIG. 21). The input processor circuit 52 receives the input signals 51 representing "MOVE" to point P1 and "DRAW" to point P2. The input processor circuit 52 sets-up the line drawing apparatus 49 so that the next matrix circuit 57 can determine the next matrices 38N through which P1P2 line 34 extends and can generate the respective B The "MOVE" input signal 51 causes the multiplier 100 to multiply the y coordinate value of the P1 point 37 by 0.25 to generate the y integer matrix coordinate signal 53 and the y fractional signal 66 (see MOVE ENTRY 1 and FIG. 7A, state 5253). The y integer-matrix coordinate signal 53 is written into the integer RAMs 109 and 110 (FIG. 8) via MBUS3 through 10. The "MOVE" input signal 51 causes the input processor 52 to multiply the x coordinate of the point P1 by 0.20 to generate the x integer-matrix coordinate signal 53 and the x fractional signal 66 (see MOVE ENTRY 1, path 164 and FIG. 7A, state 5212). The x integer-matrix coordinate signal 53 is also written into the integer RAMs 109 and 110 (FIG. 8) via MBUS3 through 10. The IRA0 and IRA1 signals 112 and the SELBEGEND signal 111 from the parameter registers 88' and 88" (FIG. 10) are applied to the current matrix address circuit (FIG. 8) to identify the P1 point 37 as the BEG point of the P1P2 line 34. The *WEIR signal 114 and the *ENIRAM signal 115 (FIG. 8) are applied to the integer RAMs 109 and 110 to enable the X and Y integer-matrix signals 53 to be written into the respective X and Y matrix counters 116 (FIG. 9) and 117 (FIG. 8). The *LDYMC signal 124 causes the Y integer-matrix signal 53 to be written into the Y matrix counter 117. The corresponding *LDXMC signal 127 causes the X integer-matrix signal 53 to be written into the X matrix counter 116 so that the counters 116 and 117 combine to represent the matrix address of the P1 point 37. The input processor circuit 52 then responds to the "DRAW" input signal 51 and similar processing occurs and the results in loading the X and Y integer-matrix coordinate signals 53 into the integer RAMs 109 and 110. However, the IRA0 and IRA1 signals 112 and the SELBEGEND signal 111 now identify the signals 53 as being for the END point P2. The *WEIR signal 114, the *ENIRAM signal 115, the respective *LDYMC and *LDXMC signals 124 and 127 also control the writing of the signal 53 for the P2 point 37 to the X and Y matrix counters 116 and 117. The x and y fractional signals 66 are loaded into respective PALs 161 and 162 in response to *LDXFRAC and *LDYFRAC signals 163 (FIG. 13). This occurs for each of the P1 and P2 points 37, with the SELBEGEND signal 111 indicating which point is the BEG point. The y (end)-y (beg) calculation (the delta Y calculation) is performed by the input processor circuit 52 (state 5011, FIG. 7A, path 143). Based on the sign of the delta Y calculation, the top flag signal 70 is generated (to indicate that the point P1 is the top point) by the parameter register 88' (FIG. 10). The delta Y signal 54 also provides the basis for selecting one of paths 144, 145 and 146 in FIG. 7B. Since delta Y>0 for the P1P2 line 34, the path 144 is selected. Delta X is also processed in path 143 by the input processor circuit 52. The Y delta signal 173 and the X delta signal 178 are processed (see state 5020 and state 5130, for example) and input via the OBUS0 through 7 to the respective Y and X loop counters 174 and 179 (FIG. 15). When the line drawing system 49 is first operated, an initial MASKBEG mask begin signal 191 is output by loading the X and Y loop counters 179 and 174 with their maximum values. This causes the vector end signal 65 to be output from the AND circuit 186 (FIG. 15) so that the register 241 (FIG. 20) outputs the MASKBEG signal 191 when the BEG point 32 is processed by the X and Y mask enable PALs 189 and 190 (FIG. 15). Once a line 34 has been processed, the vector end signal 65 (FIG. 15) for that line 34 is stored in the register 241 (FIG. 20) and output as the MASKBEG signal 191 for the next BEG point P1. Referring to FIG. 15, in the processing of the P1P2 line 34, the loop counters 174 and 179 are loaded in response to the *LDXYLC signal 184, which results in setting each counter to a negative value equal to the number of matrices in the y and x directions, respectively, through which the P1P2 line 34 extends. The processor 95 of the input processor circuit 52 computes the slope S signal 55 starting at state 5020 (FIG. 7B, path 144). As described above, the sloppe for the P1P2 line 34 is: ##EQU2## The slope S signal 55 is enabled to the CBUS (FIG. 17) ad the MBUS. In response to the *LDSLOPE signal 205, the slope S signal 55 is then written into the slope registers 203' and 203". At the same time, the CBUS loads the SLOPESIGN signal 206 into the slope register 203' and the SLOPENEG signal 207 into the slope register 203". The slope registers 203' and 203" are thus conditioned to generate the SLOPENEG signal 207, the SLOPESIGN signal 206, and the slope signal 55 (output on the SLOPE 3 through 7 and SLOPE 8 through 14 lines). The processing starting at (path 141, FIG. 7B) also results in the positive slope signal 55 being stored in the flag register 86 (FIG. 5). The processor 95 branches from path 141, FIG. 7B according to whether the line 34 is XMAJOR or YMAJOR, such that the XMAJOR flag 56 is generated and loaded into the flag register 86 (FIG. 5, state 5751). The constants "A", "B" and "AB" are processed (see for example, FIG. 6). Since the matrices 38 are 4 by 5 pixels 32, the "A" constant is determined to be (-)4, the "B" constant is (+) 5*+0.64=+3.2 and the "AB" constant is -0.8. Via MBUS0 through 15, the "A", "B" and "AB" constants are loaded into the respective A, B and AB registers of the constant register 208. To complete the set-up operation, the intercept B Upon outputting of the vector end signal 65 for the last line drawn, the address to the constant register 208 was forced by the vector end signal 65 to point to the "B" constant register of the constant register 218. Accordingly, at the beginning of the next line, which is described here as the P1P2 line 34, the constant register 208 will be addressed to the "B" constant register 217 (FIG. 17), which stores the signal 243 representing 5 times the slope S. In the example shown in FIG. 2, the P1P2 line 34 is an X MAJOR line. Therefore, as noted above, the value of the "B" constant is -5 times the slope or:
(-5*-0.64)=+3.2. To assist in the understanding of the operation of the next matrix circuit 57, reference is made to Chart IV in conjunction with the Next Matrix Algorithm set forth following Chart IV.
__________________________________________________________________________CHART IV First Deci- Con- Adder Second X, Y X, Y sion Deci- stant Next Adder Matrix Loop FromB
______________________________________Next Matrix AlgorithmStep Compute______________________________________1. B Chart IV has a first column entitled "Cycle" that indicates the cycle number in which the data shown in the rest of the Chart is output. The next column is identified as "B Referring in detail to Chart IV and FIGS. 2 and 21, the set up operation has input the -2.14 B The X,Y integer matrix is originally 0,1 to reflect the location of the matrix 39 and the X,Y loop counters 178 and 174 are set to the FD,FD code. The B Since B The B The decision A is used in Cycle 1, where the B In Cycle 2, the B In Cycle 2, the B Referring to Step 2 of the Next Matrix Algorithm, since B In Cycle 3, in response to the B decision in Cycle 2, the B In Cycle 3, the B The vector end signal 65 initiates a masking operation in the mask enable circuit 67 for the M4 matrix 42. The mask enable signal 71 and the write enable signal 60 for each of the matrices 39 through 42 are combined in the matrix adjust circuit 73 and the final write enable signals 74 are input to the buffer 75. In Step 5, since the end of the P1P2 line 34 is reached, the processing stops. In summary, when the line 34 extends relative to the decision points D1 and D2 in any of the three ways listed in Chart V, the next matrix 38N is identified as stated in Chart V.
CHART V______________________________________LINE RELATIVE THEN NM IS THISTO WAY IN MATRIX DDL CircuitDECISION POINTS COORDINATES 57______________________________________Below both Move +y = DECISION Apoints D1 & D2 MINOR Direction and *YENBetween Points Move +x and +y = DECISION A/BD1 & D2 MAJOR and MINOR & *XEN & *YENAbove both Move =x = DECISION Bpoints D1 & D2 MAJOR Direction and *XEN______________________________________ Referring again to Appendix A, it may be understood that each of the paths 209 through 212 ends with a last instruction shown as "Go to [done]". The "Go to [done]" instruction is in effect the next address for the final operation that is performed in each path 209 through 212. When the last matrix of the P1P2 line 34 has been completely processed, i.e. "DONE", the next address register 79 (FIG. 5) outputs the "IF DONE THEN" instructions. Initially and referring to FIGS. 8 and 9, this involves shifting from the integer RAMs 109 and 110 (FIG. 8) the X value for the top point (P3) of the next P2P3 line 35 which is written into the X matrix counter 116" (FIG. 9). Further, the Y coordinate value for the top point (P3) of the next (or P2P3) line 35 is read from the integer RAMs 109 and 110 and written into the Y matrix counter sections 121 and 122. At this juncture, the X matrix counter sections 109 and 110 (FIG. 8) and the Y matrix counter sessions 121 and 122 respectively hold the matrix coordinate locations of a first or top matrix 224 (FIG. 1) of the next P2P3 line 35 to be drawn. _{--} Prom ProgramWith the above-description in mind, the pixel Referring to FIG. 22, to illustrate how the data for the PROMS 234 through 238 is generated, a line 249 to be drawn is shown intersecting the left side 250 of a matrix 252 that is located between adjacent matrices 251 and 253. Part of another matrix 254 is also shown. The line 249 also intersects the right side 255 of the matrix 253 after exiting the matrix 252. Four columns of data are shown, three to the left of the matrices 251 through 254 and one to the right. Also, two rows of data are shown beneath the matrices 251 through 254. Column 1 entitled "Pixel Y" identifies the "Y" address of pixels 32 in the matrix 252. The rows identify the "X" address of the pixels 32 in the matrix 252, for both positive and negative slope S. Column 2 indicates that the left side 250 is divided into sixteen B The pixel With these selections of input values for B Referring to FIG. 22, five bit accuracy allows 32 numbers from 7.5 to -8.0. (See Column 4.) 0 is at the decision points D1 and D2 within the matrix 252 to be generated. Two boundary lines 256 and 257 are drawn to show the minimum and maximum values of the B Now considering the pixel The inputs to the pixel "ppi" means pixel prom input; "pr" means parameter register 88; "pp" means pixel PROM (one of proms 234-238):
______________________________________Input Comment______________________________________i2 --ppi Intercept out (B The following are the variables used in the pixel
______________________________________Variable Comment______________________________________maj --matrix --max --pp Maximum value of the major axis minus 1. 4 for X major and 3 for Y major.min --matrix --max --pp Maximum value of the minor axis minus 1. 3 for X major and 4 for Y major.maj --point --pp The coordinate of the matrix major axis starting .0. and going to maj --matrix --max --pp. This is used to keep track of what pixel 32 is being processed in the matrix 252 with respect to the major axis.min --point --pp The coordinate of the matrix mi- nor axis starting at .0. and going to min --matrix --max --pp. This is used to keep track of what pixel 32 is being processed in the ma- trix 252 with respect to the mi- nor axismajor --cnt Same as maj --point --pp.i,j Miscellaneous variables.slope --pp Same as slope --pr.slope --pp Same as slope --pr.intercept2 --pp Same as i2 --ppi.intercept1 --pp i1 --ppi minus 8 (to compensate for the missing sign bit).e --pp This corresponds to the error term used in Bresenham's algor- ithm. This keeps track of the distance gone in a minor direc- tion. For every step in the ma- jor direction the change in the minor direction is the value of the slope (which is less than 1.) When e --pp goes above .0..5 a step is taken in the minor direction (min --point --pp is incremented) and 1 is substracted from e --pp to keep it less than 1.p[i,j] This is a 2.0. pixel (5 by 4) array that holds the pixel data for the matrix 252. The i index corres- ponds to the x coordinate of the pixel 32 and the j index corres- ponds to y coordinate of the pixel 32. Initially this array is set to have all OFF pixels.______________________________________ Using the line 249 and the intercept data shown in FIG. 22 as an example, the input to the pixel i1 i2 major slope up=1 (previous matrix was not in the minor direction) This would also correspond to the input to the PROMS 234 through 238 for drawing the line 249 using the data calculated by the pixel The pixel
______________________________________1. intercept 1 --pp: = i1 --ppi - 8 = 6 - 8 = -22. intercept2 --pp: = i2 --ppi; = 1______________________________________ Instruction 1 adjusts the non-signed input to be signed. Instruction 2 is just an assignment of 1 variable to another.
______________________________________3. for i: = 1 to 5 do for j: - 1 to 4 do p[i,j]= 1______________________________________ Instruction 3 initializes the 20 pixel array to no pixels "ON". This instruction can be related to the x,y coordinates of the matrix 252 by considering the i as an x and the j as a y. This would then correspond to the 5 "x" pixel by 4 "y" pixel matrix 252.
______________________________________4. if major = X then begin5. major --matrix --max --pp: = 4;6. min --matrix --max --pp: = 3;7. maj --point --pp: = .0.;8. intercept 1 --pp: = intercept1 --pp - 3.5 =-2 + 3.5 = 1.59. intercept2 --pp: = intercept2 --pp - 3.5 = 1 + 3.5 = 4.5 end;______________________________________ Since major=X, instruction 4 is used and not the instruction that reads:
IF (major Instructions 5 and 6 set up the maximum values (minus 1) of the matrix 252 in the major and minor directions. The minus 1 is used because the pixel address numbers in FIG. 22 range from 0 to 4 and from 0 to 3 instead of 1 to 5 and 1 to 4. The matrix 252 has five pixels 32 in the x direction and four in the y direction. Instruction 7 assigns the first major (or X point in this example). Instructions 8 and 9 re-adjust the coordinate system to the lower left corner of the matrix 252 instead of at the decision points D1 and D2.
10. if (up=0) then intercept1 Instruction 10 is only used if the previous matrix computed prior to the matrix 252 was in the minor direction for which the coordinate system was adjusted by -4 or -5 to get the new intercepts. If that happended, the B 11. slope Instruction 11 calculates the slope of the line 249 between the two intercepts B 12. if intercept1 13. if intercept1 One of the above instructions is used depending on whether intercept1 14. e Bresenham's algorithm always increments the major (maj
______________________________________15. if e --pp >= .5 then begin16. min --point --pp: = min --point --pp + 1;17. e --pp: = e --pp - 1;18. end;______________________________________ The start of the loop begins with a check of the error term. If the error term is greater than or equal to 0.5 (instruction 15) then the min 19. if min 20. if min 21. if maj Instruction 19 determines whether the minor coordinate is within the matrix 252. If not, there is a branch around plotting of the points. In the FIG. 22 example, it is within the matrix 252 and this branch is not taken. Instructions 20 and 21 determine if the address is outside the maximum boundaries of the matrix 252. If so, then the computation is done (see 99). The "plot points" section next assigns the ON value to the x,y pixel coordinate. If the slope is negative then the x coordinate is mirrored around the y axis. After plotting, the major point is incremented, the slope is added to the error term and there is a loop back and the next pixel location is determined. This is summarized in Chart VI using the data shown in FIG. 22, using a simplified version of the pixel
______________________________________CHART VIBasic Computation Using Pixel Prom Algorithms______________________________________Step 1: if e --pp > = .5 then incr min --point and subtr 1 from e --pp plot pointsStep 2: incr maj --point, add slope to e --pp and loop to step 1Continue this until last pixel 32 is out of matrix 252. ##STR1##______________________________________* .0. 1 .5 initialization1 .0. 2 -.5 e --pp was >= .5, e --pp + .5 - 1, incr min --point PLOT!2 1 2 .1 e --pp = -.5 + .6, incr maj --point1 1 2 .1 e --pp was not >= .5, e --pp, min --point = no change PLOT!2 2 2 .7 e --pp = .1 + .6, incr maj --point PLOT!1 2 3 -.3 e --pp was > - .5, e --pp = .7 - 1, incr min --point PLOT!2 3 3 .3 e --pp = -.3 + 6, incr maj --point1 3 3 .3 e --pp was not >= .4, e --pp, min --point = no change PLOT!2 4 3 .9 e --pp = .3 + .6, incr maj --point1 4 4 -.1 e --pp was >= .5, e --pp = .9 - 1, incr min --point DO NOT PLOT because the min --point is outside the matrix______________________________________ Resulting addresses of the pixels 32 that define the line 249 are: .0.,2 1,2 2,3 3,3. The last address (4,4) is not plotted becasue the y coordinate is outside the matrix 252. With this description of the pixel As an example of a list of data that is to be input to the PROM generator after conversion to hexascii form, reference is made to the last listing in Attachment B, entitled "Example of Inputs To and Outputs From Pixel Int. 1 is 4 bits, which ranges from 0 to 7.5. Int. 2 is 5 bits (a sign and 4 bits) and it ranges from -8 to 7.5. All possible cominations of the twelve inputs to the PROMS 234 through 236 are then determined. For each address then the pixel While the preferred embodiment has been described in order to illustrate the fundamental relationships of the present invention, it should be understood that numerous variations and modifications may be made to these embodiments without departing from the teachings and concepts of the present invention. Accordingly, it should be clearly understood that the form of the present invention described above and shown in the accompanying drawings is illustrative only and is not intended to limit the scope of the invention to less than that described in the claims. ##SPC1## Patent Citations
Non-Patent Citations
Referenced by
Classifications
Legal Events
Rotate |