Graphic data processing system

Abstract: Herein disclosed is a graphic data processing system comprising: an image memory (l2) for storing a character pattern as font data composed of binary informations and for displaying the graphic data of the character pattern; first and second color registers (l407, l408) for holding color informations corresponding respectively to the "O" and "l" signals of the font data stored in the image memory (l2); data extending means (l402, l4l5) for ex­ tending the one bit of the font data, which are stored in the image memory (l2), for one word into n bits on the basis of the bit number n composing one pixel; a multi­ plexer (l409) for multiplexing the color informations, which are latched in the first and second color registers (l407, l408), independently at respectively corresponding bit units on the basis of the data extended by the data extending means; and means (l4l0) for masking and writing the data of the one word, which are multiplexed by the multiplexer, as the graphic data at the bit units in the image memory, whereby a plurality of pixels in one word are processed simultaneously in parallel.

Description: The present invention relates to a graphic data processing system and, more particularly, to a graphic data processing system which is appropriate for increasing the processing rate. A system of the prior art is constructed as follows, as is disclosed in EP-A- 0146961 (July 3, 1985): Pixel addresses composed of address informations for designating addresses of an image memory and pixel position designating informations for designating pixel positions in one word, which are designated by the addresses, are sequentially calculated. The one-word graphic data designated by the address informations of the pixel addresses calculated are read out from the image memory. Then, with informations decoded from the pixel position designating informations of the pixel addresses for designating a plurality of bit positions corresponding to the designated pixel positions, only a predetermined bit expressing one pixel of the graphic data read out is subjected to a graphic logical operation. The result of this logical operation is written again in the image memory so that it may be displayed. In the prior art described above, the one-word graphic data in the image memory are considered such that the processing performance may be equivalent to that for a monochromatic image irrespective of the bit number composing one pixel. In case the one-word graphic data in the image memory have informations of plural pixels, no consideration is taken into the point that those plural pixels are processed simultaneously in parallel. When the plural pixels in one word are to be continuously processed, the graphic data in the same address of the image memory have to be accessed and processed a plurality of times, thus raising a problem that the processing rate is decreased. EP-A-0 071 744 describes a method for operating a computing system to write text characters onto a graphics display. Therein a processor writes a character to a display by selecting and loading into a graphics video display buffer a text character dot pattern retrieved from the main storage, and expanded to a selected pixel and color format, and reads a character previously written by comparing a dot pattern retrieved from the display buffer with dot patterns retrieved from the main storage. The font data in a bit map format is expanded to a format having n = 2 bits per pixel for the purpose of writing a text character in color. An object of the present invention is to provide a graphic data processing system which can draw an image at a processing rate as high as that in the case in which one word of an image memory has a single pixel, even in case the one word has a plurality of pixels. This object is achieved according to the present invention by the features indicated in claim 1. The data extending means extends the data in the image memory into one word simultaneously, and the multiplexer multiplexes the color information independently at each bit on the basis of the extended data. As a result, the graphic data processing system according to the present invention processes the plural pixels in one word simultaneously in parallel. Other objects and features of the present invention will become apparent from the following description to be made in connection with the embodiment. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing the major portion of the graphic data processing system according to one embodiment of the present invention; Fig. 2 is a block diagram showing the overall structure of the graphic data processing system according to the embodiment; Fig. 3 presents the bit layouts of the image data used in the graphic data processing system according to the embodiment; Fig. 4 presents the bit layouts of the pixel addresses used in the graphic data processing system according to the embodiment; Fig. 5 is a diagram for explaining the operations of the graphic data processing system according to the embodiment; Fig. 6 is a block diagram showing the color data arithmetic unit of the graphic data processing system according to the embodiment; and Figs. 7 to 9 are individual diagrams for explaining the operations of the graphic data processing system according to the embodiment. DETAILED DESCRIPTION OF THE EMBODIMENT The embodiment of the present invention will be described in the following with reference to the accompanying drawings. Fig. 2 is a block diagram showing a graphic data processing system according to the embodiment of the present invention. A processor 10, which may preferably be formed on a single semiconductor substrate, is connected on one hand with a central processing unit (i.e., CPU) 11, which may preferably be formed on the other single semiconductor substrate, and on the other with an image memory 12 formed of a font data region and a display region. This image memory 12 is connected through a display conversion device 13 with either a image output device 14 such as a cRT, a liquid crystal display or an EL display or an image output device 14 represented by a printer or the like. The processor 10 is constructed of an arithmetic device 100 for reading, rewriting and writing the data of the image memory 12, and a control device 110 for controlling the arithmetic device 100 in a constant sequence. The arithmetic device 100 is further divided into a logical addressing unit 120, a physical addressing unit 130 and a color data arithmetic unit 140. The data stored in the font region of the image memory 12 are arithmetically processed by the arithmetic device 100 of the processor 10. More specifically, where a drawing point is in the display frame is logically and arithmetically calculated in the logical addressing unit 120 mainly in accordance with a drawing algorithm. The actual physical address of the image memory 12 is made in the physical addressing unit 130. The color data to be written in the image memory 12 are calculated in the color data arithmetic unit 140. The result calculated by the arithmetic device 100 is sent to the display region of the image memory 12 in accordance with the instruction of the central processing unit (CPU) 11. Moreover, the data of the image memory 12 are converted by the display conversion device 13 into display data, which are sent to the display device 14. Next, the fundamental items concerning the graphic data processing system according to the present embodiment will be described with reference to Figs. 3 to 5. Of these: Fig. 3 presents diagrams showing the bit structures of one word in individual pixel modes of the image memory 12; Fig. 4 presents diagrams showing pixel addresses corresponding to the pixel modes, respectively; and Fig. 5 is a diagram showing the spacial arrangement of the image memory 12. First of all, five bit structures can be selected as the pixel modes, as shown at (a) to (e) in Fig. 3: (a) One Bit / Pixel Mode: This is the mode which is used in case one pixel is expressed with one bit, as in a monochrome image. Data of a series of sixteen pixels are stored in the one word of the image memory 12. Moreover, this mode corresponds to a GBM signal "000" indicating the bit number composing one pixel. (b) Two Bits / Pixel Mode; This mode expresses one pixel with two bits and is used to display four colors or tones at the maximum. Data of a series of eight pixels are stored in one word of the image memory 12. Moreover, the GBM signal is "001". (c) Four Bits / Pixel Mode; This mode expresses one pixel with four bits, and data of a series of four pixels are stored in one word of the image memory 12. Moreover, the GBM signal is "010". (d) Eight Bits / Pixel Mode: This mode expresses one pixel with eight bits, and data of two pixels are stored in one word of the image memory 12. Moreover, the GBM signal is "011". (e) Sixteen Bits / Pixel Mode: This mode expresses one pixel with sixteen bits, and one word of the pixel memory 12 corresponds to one-pixel data. Moreover, the GBM signal is "100". Secondly, a pixel address is adopted. This pixel address is constructed, as shown in Fig. 4, of address information MAD for designating the address of the image memory 12, and pixel position designating information WAD for designating what the position is in one word designated with the address. The pixel position designating information WAD is prepared as a bit address, i.e., a part of a physical address in the less significant four bits of the pixel address and is calculated by the physical addressing unit 130. Moreover, the pixel position designating information WAD at the less significant four bits is used to designate the pixel position in one word in accordance with each bit / pixel mode. On the other hand, symbols "*" appearing in Fig. 4 indicate bits having no relation to the arithmetic. Thirdly, the image data in one word at the address of the image memory 12 designated with the address information MAD in the pixel address are read out all at once from the image memory 12. Then, only a predetermined bit part of the image data is modified on the basis of the pixel position designating information in the pixel address, the GBM signal indicating the bit number composing one pixel, and the information indicating the number of pixels to be updated. The image data thus modified are written in the corresponding address of the image memory 12. Thus, a plurality of bits corresponding to one or plural pixels are processed simultaneously in parallel. The spacial arrangement of the image memory 12 in case the pixel mode is the four bits / pixel mode is shown in Fig. 5. The address of the image memory 12 is assigned as a linear address, as shown in a memory map (A) of Fig. 5, and is displayed as a two-dimensional image, as shown at (B) in Fig. 5. The Memory Width MW of the display frame indicates how many bits the horizontal width of the display frame is composed of. In the case of the four bits / pixel mode, therefore, a MW/4 pixel is displayed in the horizontal direction. Since one pixel is displayed with four bits, moreover, one-word data are displayed as data of a series of four pixels in the horizontal direction, as shown at (C) in Fig. 5. The number of the bits composing one pixel may be added or subtracted so as to shift the physical address one pixel in the horizontal direction, whereas the value of MW may be added or subtracted so as to move the same one pixel in the vertical direction. On the other hand, the bit number of one word may be added or subtracted so as to process the plural pixels of one word. Considering the fundamental items thus far described, the major portions of the graphic data processing system according to the present embodiment will be described in the following. Figs. 1 and 6 are block diagrams showing the major portions of the graphic data processing system according to the present invention, respectively. In Fig. 1, the font data region of the image memory 12 is connected with the input of the color data arithmetic unit 140 of the image memory 12, and the output of this color data arithmetic unit 140 is connected with the display region of the image memory 12. In Fig. 6, on the other hand, the color data arithmetic unit 140 is constructed of a font data register (FDR) 1401, a data extending circuit 1402, a source latch (SLSFT) 1403, a barrel shifter (BARREL SFT) 1404, a destination latch 1 (DLC1) 1405, a destination latch 2 (DLC1) 1406, a color register 0 (CL0) 1407, a color register 1 (CL1) 1408, a multiplexer (MPX) 1409, a graphic mask register (G MASK) 1410, a drawing mode register (DM) 1411, a color data comparator (CLCMP) 1412, a coincidence detecting circuit 1413, a condition judging circuit 1414, a signal extending circuit 1415, a logical arithmetic unit (LU) 1416, a write data buffer (WDBR) 1417, a read data buffer (RDBR) 1418, and a memory address register (MAR) 1419. Next, the operations will be described with reference to Figs. 7 to 9. First of all, as shown in Fig. 1, a character pattern is stored as (k × ℓ) (k = 5 and ℓ = 7 in Fig. 1) monochromatic bit patterns, i.e., font data composed of "0" and "1" signals in the font data region. And, this font data are inputted from the font data region to the color data arithmetic unit 140. The font data thus inputted are first read in the read data buffer (RDBR) 1418 of the color data arithmetic unit 140 and then latched in the font data register (FDR) 1401. Next, the font data thus latched are extended (simultaneously by one word) by the data extending circuit 1402 in response to the GBM signal indicating the bit number composing one pixel. For example, as shown in Fig. 7, each bit of the font data is extended into four bits (n = 4), which are latched in the source latch (SL SFT) 1403. These extended data are shifted by the barrel shifter (BARREL SFT) 1404 to a bit position indicated by a written pixel address so that their bits may be arranged with those of the written data. This shifted result is temporarily stored in the (M) of the destination latch 1 (DLCl) 1405, and the (M) data are composed with the previous shift result (the (S) of the destination latch 1) to generate information corresponding to the write data. Moreover, the font data are judged for each bit whether the signal is at "0" or "1". The values of color data 0 and 1 are selected for the "0" and "1" signals, respectively. Color data 0 and 1 are latched in the color registers 0 (CL0) 1407 and the color register 1 (CL1) 1408, respectively. Moreover, the data composed in the destination latch 1 (DLC1) 1405 are used as multiplex signals for selecting the color data 0 and 1 which are latched in those color register 0 (CL0) 1407 and color register 1 (CL1) 1408, respectively. As shown in Fig. 8, the multiplexer 1409 for selecting one bit is used for one word to select the color data 0 and 1, which are latched in the color register 0 (CL0) 1407 and the color register 1 (CL1) 1408, respectively, and the data of the destination latch (DLC1) 1405 independently for each bit, thus producing the write data. These write data are sent to the logical arithmetic unit (LU) 1416 so that their logical arithmetic with the written data may be performed. This logical arithmetic unit (LU) 1416 is enabled to select the kind of the logical arithmetic operations in accordance with the mode designated by the drawing mode register (DM) 1411 and to designate a no-operation at each bit. In this no-operation case, the written data are outputted as they are. As a result, the case in which one word has bits left unwritten can be coped with by designating that bit with a no-operation signal. This no-operation signal is set in the graphic mask register (G MASK) 1410 by the control device 110 on the basis of the GBM signal and the information of the number of pixels to be processed. The output of the logical arithmetic unit (LU) 1416 are set in the write data buffer (WDBR) 1417 and written in the display region of the image memory 12. On the other hand, the no-operation signal is connected with the output signal of a color condition comparator which is constructed of the color data comparator (CLCMP) 1412, the coincidence detecting circuit 1413, the condition judging circuit 1414 and the signal extending circuit 1415. The magnitudes of the write data and the written data are judged for one word at the unit of pixel. Each bit of the pixel having failed to match the condition designated by the drawing mode register (DM) 1411 is used as the no-operation signal. Thus, the drawing can be accomplished without deteriorating the background color of the character. The relation between the color condition comparator and the logical arithmetic unit (LU) 1416 is such that the color data comparator (CLCMP) 1412 of the color condition comparator makes a judgement of the magnitudes at the unit of each pixel while deemping the bits in one pixel as a binary code, as shown in Fig. 9. The color data comparator (CLCMP) 1412 outputs the bits of the "1" signal, if the condition is satisfied, and otherwise the bits of the "0" signal. The logical arithmetic unit (LU) 1416 performs a logical arithmetic operation of only the portion of the "1" signal of that judged output bit and transfers the result to the write destination. The data thus transferred to the display region of the image memory 12 are converted into a multi-bit value, e.g., four bits / pixel, as shown in Fig. 1, although the font data stored in the font data region of the image memory 12 are monochromatic. Thus, according to the present embodiment, data of a plurality of pixels can be processed all at once by one reading, updating and writing process so that a drawing can be accomplished in a high memory accessing efficiency. Since, moreover, the font extension can be controlled in accordance with the bit length of one pixel, the structure can have a wide use. According to the present invention, there can be attained an effect that the drawing process can be speeded up because the data of a plurality of pixels in one word can be changed by the single reading, updating and writing process.

Claims: A graphic data processing system comprising: an image memory (12) for storing a character pattern as font data composed of at least monochromic information and for storing the graphic data of the character pattern; first and second color registers (1407, 1408) for holding information corresponding respectively to "0" and "1" values of the font data stored in said image memory (12); and means (1410) for masking and writing data which are selected as the graphic data; characterized in that data extending means (1402) are provided for simultaneously extending m bits of font data representing m pixels, stored in said image memory (12), into m x n bits of font data where n is the number of bits representing one pixel; and a multiplexer (1409) is provided for selecting the color data from said color registers (1407, 1408), "0" and "1" values of the extended data being used to provide control signals for said multiplexer (1409). A graphic data processing system according to claim 1, further comprising means for designating the bit number n at will. A graphic data processing system according to claim 1, wherein said font pattern is formed in (k x 1) binary bit patterns. A graphic data processing system according to claim 1, wherein an image output device is provided for outputting image data written in said image memory (12). A graphic data processing device according to claim 4, wherein said image output device is a display device. A graphic data processing system according to claim 4, wherein said image output device is a printer.

Inventors: KATSURA KOYO, KIKUCHI MASAHIKO, MATSUO SHIGERU, SATO JUN, KATSURA, KOYO, KIKUCHI, MASAHIKO, MATSUO, SHIGERU, SATO, JUN
Applicants: HITACHI ENG CO LTD, HITACHI LTD, HITACHI ENGINEERING CO., LTD., HITACHI, LTD.
Application year: 1987
Main classification: G09G1
IPC codes: G09G5, G09G1