DISPLAY CONTROL METHOD AND DISPLAY CONTROL APPARATUS

Abstract: In the image displaying field where there is a tendency which will increase the data to be handled in accordance with the high integration of a display device, a CRT control­ ler (31) according to the present invention contemplates to improve the superposed display and the responsiveness of the display and drawing operations by dividing a unit clock into a predetermined number with a view to cope with the high speed and multifunction of the display. More specifically, when image data are to be inputted to or outputted from a refresh memory (33) corresponding to a display frame, the memory content and the display address are assigned at a ratio of 1 : n to effect the proces­ sings in parallel. As a result, the time period consumed by the display cycle of the prior art can be assigned to the drawing opera­ tion so that the processings can be speeded up while making it easier than the prior art to effect the superposed display of letters, symbols and drawings. The resultant effect is that it is unnecessary to increase the number of the refresh memory (33) corresponding to the displayed frame and that the external parts can be sim­ plified to contribute to the improvement in the reliability.

Description: The present invention relates to a display controller which is suitable for superposed display of a plurality of frames. In accordance with high integration of a memory LSI, the cost of a graphic display equipped with a high-capacity memory is dropped so that not a few letter displays are processed by a full bit map. In accordance with the high fineness of a display device, there is a tendency which will increase the quantity of information to be handled. In these displays, the display control of letters and drawings is handled by an LSI (or a CRT controller) fabricated especially therefor. Specifically, the CRT controller has a function to sequentially output memory addresses from the display starting address which is preset in conformity with the raster scan. The CRT controller has another function to output a synchronizing signal for driving the display system. As the method of displaying a plurality of independent frame data by means of the CRT controller of the prior art type, there exist methods which are shown in Figs. 1 and 2. Prior Art Example 1: Fig. 1 shows the method for controlling refresh memories having a plurality of divided banks by means of a single CRT controller 13. This CRT controller 13 is connected via an address bus 11 and a data bus 12 with a central processing unit (i.e., CPU) for generating refresh addresses for the display and a synchronizing signal for the CRT. A clock generator 14 feeds an operation clock to the CRT controller 13 and parallel-series converters 171 and 172. An address selector 15 selects the display memory address, which is fed from the CRT controller 13, during the display and the address bus 11 of the CPU during the non-display thereby to access the two refresh memory banks 161 and 162. The data read out from the memories are converted independently of each other by the parallel-series converters 171 and 172 into series signals, which are superposed in a synthesizing circuit 18. Since the two memory banks are fed with the identical display address, according to the prior art system having the construction thus far described, the two frames to be superposed have to be of the same frame construction. Even in case the superposition is conducted only in one portion of the display frame, therefore, a memory capacity for two display frames is required to raise a problem that the memory-using efficiency is deteriorated. In case the frame is shifted by rewriting the display starting address, on the other hand, the two frames cannot be shifted independently of each other. Since, moreover, the contents of the refresh memories cannot be rewritten during the display, there arises a defect that the drawing speed is slowed down. Prior Art Example 2: Fig. 2 shows a method in which a plurality of CRT controllers shown in Fig. 1 are used to individually control a plurality of memory banks. Two CRT controllers 131 and 132 conduct their synchronizing operations in response to an identical clock from the clock generator 14 and individually generate display memory addresses to access the refresh memories 161 and 162. The data thus read out are converted by the parallel-series converters 171 and 172 into series signals so that the superposed image signal is generated in the synchronizing circuit 18. Since the addresses of the two display frames are controlled independently of each other, according to this method, the frames can be shifted independently of each other, but there arises a defect that the numbers of parts and wirings required are so large that the scale of the system is accordingly enlarged. In case the superposition is conducted only in a portion of the display frame, on the other hand, the capacities of the refresh memories can be reduced. Because of the construction in which the memories for the individual frames are physically separated, however, the design has to be made in conformity with the maximum size of the superposed frame. Moreover, the drawing speed is slow because the contents of the refresh memories cannot be rewritten during the display as in the case of Fig. 1. As the prior art method belonging to that of Fig. 2, there is well known in the art the specification of Japanese Patent Laid-Open No. 52 - 95926, for example. WO-A-8201614 relates to an apparatus for generating both graphic and textual images on a raster scan display. The disclosed apparatus includes memory means for storing a representation of an image to be displayed, whereby the memory means are having two components, namely an information memory and an attribute memory. The information memory has a memory location for each position on the display defined as a picture element. The attribute memory has a lower resolution than the information memory and provides for each picture element location a foreground attribute and a back ground attribute. It is an object of the present invention to provide a display controller which can conduct the superposed display on a display frame with a simple construction. This object is achieved according to the invention by the features indicated in claim 1. According to the invention , display addresses of independent n (i.e., an integer equal to or larger than 2) systems are generated during one display period so that data stored in the corresponding addresses are sequentially read out from a refresh memory in accordance with those display addresses and used for the superposed display. These and other features objects and advantages of the invention will be better understood from the following detailed description read in conjunction with the accompanying drawing in which: Figs. 1 and 2 show the system constructions of the prior art; Fig. 3 shows the system construction using the display controller according to the present invention; Fig. 4 shows the time chart of the operations; Fig. 5 shows the internal construction of the display controller of the present invention; Fig. 6 shows the construction of the timing processor; Fig. 7 shows the time chart of the operations; Fig. 8 shows the microinstruction types of the same; Fig. 9 shows the detail construction of the microinstruction decoder; Fig. 10 shows an example of the construction of the display frame; Fig. 10-2 shows the mode of the superposed display; Fig. 10-3 shows another example of the structure of the display frame; Fig. 10-4 shows an example of the frame division; Figs. 11, 12, 13 and 14 show the examples of the process flows of the timing processor; Fig. 15 shows the construction of the display processor; Fig. 16 shows the operation time chart of the same; Fig. 17 shows the microinstruction types of the same; Fig. 18 shows the detail construction of the microinstruction decoder; Figs. 19(A) to (C) explain the operation modes of the display; Fig. 19-2 explains the detail of the same; Fig. 20 explains the relationship of the address space of the memory and the display; Fig. 20-2 shows the relationship between the address space of the frame memory and the display; Figs. 21 and 22 show examples of the process flows of the display processor; and Fig. 23 shows the drawing capacity. Table 1 tabulates the representative specifications of the display controller of the present invention. The present controller has a graphically drawing function to make a variety of drawings on a frame memory, more specifically, thirty eight kinds of drawing commands such as straight line, circle and ellipse drawing commands, painting-out commands or copying commands. An X-Y coordinate system is adopted for addressing a drawing point so that a load upon the development of an application software can be remarkably lightened. The frame memory has a high capacity of 2 Megabytes at the maximum and can support a frame size of 2,048 x 2,048 dots for a 16-color display. The display controller has various display control functions such as frame dividing, smooth scrolling, magnifying or superposing functions. Specification of Display Controller Items Specifications Operating Frequencies 1 MHz - 8 MHz 1 MHz - 6 MHz 1 MHz - 4 MHz Display Memory Capacities For graphic: 2 Mbytes For characters: 128 Kbytes Drawing Commands 38 kinds Straight lines, squares, polygons, circles, ellipses, painting-out and copying Drawing Functions Address administration on X-Y coordinates Drawing function by patterns Masking function by color conditions Drawing region administering function DMA transferring function Drawing Speed Common for monochromatic and color Linear drawing speed: 500 ns/dot (for 8 MHz) Displaying Functions Frame division: 3 horizontal + 1 window Hor. and Vert. smooth scrolling Magnified display (1 to 16 times in Hor. and Vert. directions) Superposition of frames External Synchronism Graphic cursor function (Best Mode for Carrying Out the Invention) Fig. 5 shows the internal construction of the display controller 31 according to the present invention. Moreover, an example, in which the display system is constructed by using said controller, is shown in Fig. 3, and a time chart of the superposed display for explaining the effect featuring the present invention is shown in Fig. 4. 1. Example for System Construction Fig. 3 shows an example in which the display system is constructed by using the display controller according to the present invention. In this example, the display system is constructed of a display controller 31, a clock generator 32, a refresh memory 33, a latch 34, parallel-series converters 171 and 172, and a synthesizing circuit 18. It is found that the display system has a simpler construction than that of the prior art example shown in Figs. 1 and 2. 1.1. Summary of Operations The display controller 31 is connected with the address bus 11 and the data bus 12 of the CPU to transfer a variety of control data. A refresh memory bus 3c and the CPU buses 11 and 12 are isolated so that all the accesses from the CPU side are conducted through the display controller 31. The refresh memory bus 3c provides the multiplex bus of the addresses and the data. The clock generator 32 provides a variety of clock signals to be used in the system, for example, a dot clock 3a, a drive clock 3b of the display controller 31, a first phase data load timing 3d or a second phase data load timing 3e. In the mode of superposing the two (i.e., n = 2) frames, the memory accesses are conducted twice (i.e., n times) during one display period so that the two independent picture data are sequentially read out. In the case of the three frames, thrice memory accesses are conducted during one display period. Like discussion can be made in the case of four or more frames. 1.2. Time Chart Fig. 4 shows the time chart in case the controller of the present invention is applied, as shown in Fig. 3. A 16-dot cycle is one display, in which two memory accesses are conducted. The read-out data in the first phase are temporarily stored in the latch 34 at the first phase load timing 3d. The parallel-series converter 172 is stored at the second phase load timing with the read-out data in the second phase. Simultaneously with this, the parallel-series converter 171 is loaded with the content of the latch 34. The contents of the two parallel-series converters 171 and 172 are simultaneously converted into series data and are superposed in the synthesizing circuit 18 to output a composed video signal 3f. 1.3. Characteristics As has been described with reference to Fig. 3, the controller of the present invention has an interfacing function with a general purpose microprocessor (i.e., MPU) and can be connected as one of the peripheral LSIs. All the accesses of the frame memory accompanying the display control and the drawing control are administered by the controller itself of the present invention. In order to process many data, parallel operations are conducted. These operations means separation of the system bus and the frame memory bus to conduct the software processing of the microprocessing unit and the drawing processing of the controller independently of each other. The data transfers between the main memory and the frame memory are effected through independent read and write FIFOs of 8-word construction. In many prior art examples, the increase in the overhead of the MPU bus causes a bottleneck. In the data communication between the MPU space and the frame memory, however, the load upon the MPU bus is remarkably reduced by using highly compressed data. 2. Internal Construction Fig. 5 shows the internal construction of the display controller 31. This display controller 31 is constructed of a drawing processor 51, a display processor 52, a timing processor 53, a CPU interface 54 and a display interface 55, which constitute individual blocks. The drawing processor 51 controls the operations, for example, making drawings such as lines or planes, or data transfer between the CPU and the refresh memories to output drawing addresses thereby to read and write the refresh memories. The display processor 52 outputs those display addresses of the refresh memories, which are sequentially displayed in accordance with the raster scanning operations. The timing processor 53 provides a variety of timing signals such as a CRT synchronizing signal, a display timing or a signal for switching the displaying and drawing operations. The CPU interface 54 dominates the interface with the CPU such as the synchronization between the CPU data bus and the CRT controller. The display interface 55 dominates the interface between the refresh memories and the display system such as the address switching control of the displaying and drawing operations. The three drawing, displaying and timing processors share their functions and operate in parallel thereby to improve the processing efficiency. 2.1. Drawing Processor Table 2 tabulates representative drawing commands of the drawing processor. The commands are composed of command codes of one word (i.e., 16 bits) and successive parameters of several words. The addresses of the coordinate points of the parameters can use either the addresses of absolute values with respect to an origin or the addresses of relative values with respect to a current pointer (i.e., CP). The present controller is caused to execute the command processings by transferring the command parameters from the MPU to the write FIFO. If the FIFO is vacant, a next command can be sequentially written. The command transfer from the MPU can use not only the writing function by a program I/O but also a DMA (i.e., a direct memory access) function. Representative Drawing Commands Commands Parameters Functions AMOVE X, Y Shift of current point (CP) RMOVE DX, DY ALINE X, Y Drawing of straight lines RLINE DX, DY ARCT X, Y Drawing of rectangles RRCT DX, DY APLL n, X, Y, - - -, Xn, Yn Drawing of group of straight lines RPLL n, DX, DY, - - -, DXn, DYn APLG n, X, Y, - - -, Xn, Yn Drawing of polygons RPLG n, DX, DY, - - -, DXn, DYn CRCL R Drawing of circles ELPS a, b, DX Drawing of ellipses AARC Xc, Yc, Xe, Ye Drawing of arcs RARC DXc, DYc, DXe, DYe AEARC a, b, Xc, Yc, Xe, Ye Drawing of elliprical arcs REARC a, b, DXc, DYc, DXe, DYe AFRCT X, Y Painting-out (or tiling) of square regions RFRCT DX, DY PAINT Painting-out (or tiling) of closed regions DOT Drawing of one dot PTN Drawing of patterns AGCPY Xs, Ys, DX, DY Copying of square regions RGCPY DXs, DYs, DX, DY 2.2. Timing Processor and Display Processor Now, the timing processor 53 (Fig. 5) receives the clock via the display interface 55 thereby to output a variety of timing signals necessary for the display. The detail (Fig. 6) of the internal construction of the timing processor 53 will be described hereinafter. The timing processor 53 generates synchronizing signals necessary for the display such as horizontal and vertical synchronizing signals or a letter synchronizing signal indicating a one-letter display period and a displaying address generating timing signal at such a timing as is prepared by dividing the one-letter display period by n. The period for which this timing signal is being generated is called "one memory cycle". Incidentally, how long the one memory cycle is made, i.e., how large the integer n is made is determined by the number of the frames to be superposed. The timing processor 53 is stored in its internal memories (i.e., registers) with the data n, which are sent from the CPU (although not shown) via the CPU interface 54, to generate the timing signals matching with the data n in accordance with the same. Naturally, the timing processor 53 is likewise stored in its individual internal registers with other data for generating the synchronizing signals. The display processor 52 generates the display addresses in synchronism with the display address generating timing, which is generated by the timing processor 53, and feeds them via the display interface 55 to the refresh memory 33 (Fig. 3). The detail (Fig. 15) of the internal construction of the display processor 52 will be explained hereinafter. The display processor 52 is stored with the n groups of display starting addresses so as to sequentially generate the n groups of display addresses during one-letter display period and computes the increments of the n groups of individual display address whenever the generating timing signals are generated in the timing processor 53, to generate the individual display addresses as the sums of those increments and the display starting addresses stored. The individual display addresses generated are outputted via the display interface 55 to the refresh memories. Incidentally, the data necessary for the operations in the display processor 52 are stored in the internal memories or registers via the CPU interface 54. The drawing processor 51 is used when the data to be displayed are stored in the refresh memories so as to effect the so-called "displaying (or drawing) operation". 2.3. Timing Processor (1) Construction Fig. 6 shows the detail construction of the timing processor 53. The timing processor 53 is constructed of a control unit 61, a microinstruction decoder 62 and an arithmetic unit 63. Moreover, the control unit 61 is constructed of a horizontal entry address pointer 6101, a microprogram address register 6102, a microprogram memory (of ROM) 6103, a microinstruction register 6104, registers 6105, 6106 and 6107, a vertical entry address pointer 6108, and registers 6109, 6110, 6111 and 6112. The arithmetic unit 63 is constructed of: a data RAM 6301 for storing the control data transferred from the CPU; a working register 6302; an arithmetic unit (AU) 6303; a horizontal counter 6304 for counting the timings of the horizontal system to generate the horizontal synchronizing signal; a vertical counter 6305 for counting the raster timings of the vertical system to generate the vertical synchronizing signal; and buses 6306 and 6307. The detail of the microinstruction decoder 62 itself will be described hereinafter. (2) Time Chart Fig. 7 shows a time chart corresponding to Fig. 6. At the start of the vertical synchronizing signal, the register 6109 is initialized to an initial value A(VB₁) in the first phase and to an initial value A(VW₁) in the second phase by the vertical entry address pointer. The vertical addresses in the first and second phases are stored by the closed loop of the registers 6109, 6110, 6111 and 6112. At the start of the horizontal synchronization, on the other hand, the microprogram address register 6102 is initialized to A(HB₁) in the first phase and to A(HW₁) in the second phase by the horizontal entry address pointer 6101. After that, in synchronism with the tall of a horizontal synchronizing signal (HSYNC), the microprogram operations are started so that the corresponding microinstructions are read out from the microprogram memory 6103 in accordance with the instruction of the microprogram address register 6102 and are stored in the microinstruction register 6104. The microinstructions thus read out are decoded by the microinstruction decoder 62 to feed the various control signals to the arithmetic unit 63. On the other hand, a portion of the microinstructions are stored as a subsequent address temporarily in the memory register 6106. One bit of the microprogram address is a bit indicating whether the microprogram address is that of the horizontal cycle or the vertical cycle. This bit is returned via the register 6105 to one bit of the register 6106. In the cycle ø in which the subsequent address in the first phase is taken into the register 6106, on the other hand, the microprogram address in the second phase is transferred to the microprogram address register 6102 to read out and execute the corresponding microinstructions. The subsequent address stored in the register 6106 is sent via the register 6107 to the microprogram address register 6102. Thus, the microprogram in the first phase and the microprogram in the second phase are sequentially and alternately executed. In case the microprogram of the vertical cycle is to be executed, on the other hand, the input is switched between the microprogram address register 6102 and the register 6109 in accordance with the designation from the microinstructions. Specifically, the addresses A(VB n ) and A(VW n ) of the vertical microprogram, which are stored in the registers 6109 and 6112, are sequentially sent during the one cycle between the first and second phases to the microprogram address register 6102. Simultaneously with this, the subsequent addresses A(HB m+1 ) and A(HW m+1 ) of the horizontal microprogram are sequentially sent to the register 6109 until they are stored in the loop of the registers 6109 to 6112. As a result, the independent microprograms in the totally four phases, i.e., the first and second horizontal phases and the first and second vertical phases can be executed in the time sharing manner. (3) Microprograms Fig. 8 shows the types of the microinstructions. The word length is 21 bits and has two types #0 and #1 which are selected by a bit 19. A bit 20 (HV) is one for controlling the interchange between the horizontal microprogram addresses and the vertical microprogram addresses. Bits 18 to 10 have different functions for two microinstructions. The microinstruction of the type #0 controls the operations for working register 6302. Specifically, data are read out from the register designated by a microinstruction S-REG, and the operations designated by a microinstruction AUF are conducted to write the result in the register designated by a microinstruction D-REG. The microinstructions of the type #1 control the data transfers among the data RAM 6301, the working register 6302, and the horizontal and vertical counters 6304 and 6305. The microinstruction FLAG of bits 9 to 5 designates both the control of the flag information outputted from the AU and the counters and the control of conditional branch. The microinstruction ADF of bits 4 to 0 is a field for controlling the subsequent address of the microprogram. Fig. 9 shows the detail of the microinstruction decoder 62. The microinstruction stored temporarily in the microinstruction register 6104 is sent via a control register 6201 to decoders 6202 to 6207 of individual fields. The RAM address decoder 6202 decodes the RAM field of the microinstructions of the type #1 to generate the word selecting signal of the RAM. The read register 6203 decodes the S-REG field of the microinstruction of the type #0 to output a signal for selecting the read register to the bus 6307. The read register decoder 6204 decodes both the D-REG field of the microinstruction of the type #0 and the REG field of the microinstruction of the type #1 to output the write register selecting signal from the bus 6306. Even upon the transfer from the horizontal and vertical counters to the data RAM 6301, the reading operation to the bus 6306 is controlled by the REG field. The function decoder 6205 decodes the AUF field of the microinstruction of the type #0 to control the arithmetic mode of the arithmetic unit (AU) 6303. The conditional branch decoder 6206 judges the status of the flag register in accordance with the designation of the FLAG field of the microinstruction to control the lowermost bit of the address, which is transferred from the register 6106 to the register 6107, thereby to make the conditional branch possible. The flag register 6207 temporarily stores the flag data, which are outputted from the adder (AU) 6303 or the counters 6304 and 6305, in accordance with the designation of the microinstruction. The flag register has a horizontal synchronizing signal (HSYNC), a vertical synchronizing signal (VSYNC), a horizontal base frame display timing (HBDISP), a vertical base frame display timing (VBDISP), a horizontal window frame display timing (HWDISP), and a vertical window frame display timing (VWDISP). (4) Example of Frame Structure and Flow Chart Fig. 10 shows an example of the frame structure for controlling the display controller 31. It is possible to synthesize and display two independent frames, i.e., the base frame and the window frame. These two frames can have their sizes and display positions set independently of each other. The individual parameters will be described hereinafter. In accordance with the settings of the individual parameter values, the timing processor 53 (Fig. 5) generates the various timing signals (HSYNC, HBDISP, HWDISP, VSYNC, VBDISP, VWDISP and so on). The display processor 52 proceeds its processings with reference to those timing signals. Explanations of Parameters in Fig. 10: (1) Horizontal Synchronizing Cycle (HC): the number of cycles of the horizontal synchronizing signal (HSYNC). (2) Horizontal Synchronizing Signal Pulse Width (HSW): the pulse width of the horizontal synchronizing signal for driving the CRT system. (3) Horizontal Base Frame Starting Position (HBS): the time period from the fall of the horizontal synchronizing signal (HSYNC) to the rise of the horizontal base frame display signal (HBDISP). (4) Horizontal Base Frame Width (HBW): the horizontal width of the base frame, i.e., the pulse width of the period "1" of the horizontal base frame display signal (HBDISP). (5) Horizontal Window Frame Starting Position (HWS): the time period from the fall of the horizontal synchronizing signal to the rise of the horizontal window frame display signal (HWDISP). (6) Horizontal Window Frame Width (HWW): the horizontal width of the window frame, i.e., the pulse width of the period "1" of the horizontal window frame display signal (HWDISP). (7) Vertical Synchronizing Cycle (VC): the number of cycles of the vertical synchronizing signal (VSYNC). (8) Vertical Synchronizing Signal Pulse Width (VSW): the pulse width of the vertical synchronizing signal (VSYNC) for driving the CRT system. (9) Vertical Base Frame Starting Position (VBS): the time period from the fall of the vertical synchronizing signal (VSYNC) to the rise of the vertical window frame display signal (VBDISP). (10) Vertical Base Frame (VBW): the vertical width of the base frame, i.e., the pulse width of the period "1" of the vertical base frame display signal (VBDISP). (11) Vertical Window Frame Starting Position (VWS): the period from the fall of the vertical synchronizing signal to the rise of the vertical window frame display signal (VWDISP). (12) Vertical Window Frame Width (VWW): the vertical width of the window frame, i.e., the pulse width of the period "1" of the vertical window frame display signal (VWDISP). Figs. 11 to 14 show examples of the microprogram processing flows of the timing processor 53. Fig. 11 shows the microprogram of the horizontal first phase. At the starting point of one raster, the HBDISP flag is set at "0" to check whether it is the first raster (of the frame) or not. In the case of the first raster, the vertical parameters (VDS, VDW, VWS and VWW) are transferred from the data RAM 6301 to the working register 6302 to end the process of the raster. In the case of a raster other than the first one, working registers T0 to T3 are first loaded with the corresponding horizontal control parameters (HDS, HDW, HWS and HWW). Next, the working register T0 is subjected to sequential subtraction until it takes "0". When the working register T0 takes "0", the HBDISP flag is set at "1". After that, the working register T1 is subjected to sequential subtraction until it takes "0". When the working register T1 takes "0", the HBDISP flag is set at "0". At last, the process is switched to the vertical one to end the process of one raster. Fig. 12 shows the microprogram of the horizontal second phase, which is similar to the case of Fig. 11 except that the data RAM are not loaded. Likewise, Figs. 13 and 14 show the microprogram processes of the vertical first and second phases, respectively. The vertical process conducts the subtraction of the working register and the "0" detection once for one raster. As has been described above, one arithmetic unit is used in the time sharing manner for the microprograms of four phases to generate the four timing signals HBDISP, HWDISP, VEDISP and VWDISP. 2.4. Display Processor (1) Construction The display processor outputs the display addresses. These addresses are those of the refresh memories, which are sequentially displayed in accordance with the raster scanning operation, as has been described hereinbefore. Fig. 15 shows the detail construction of the display processor 52 (Fig. 5). This display processor 52 is constructed of a control unit 151, a microinstruction decoder 152 and an arithmetic unit 153. The control unit 151 is constructed of an entry address pointer 1511, a microprogram address register 1512, a microprogram memory (of ROM) 1513, a microinstruction register 1514, and temporary memory registers 1515 and 1516. The arithmetic unit 153 is composed of: a data RAM 1531 adapted to be accessed directly from the CPU side via the CPU interface for storing control data such as the display starting addresses (BSA and WSA) of the base frame (i.e., the first frame) and the window frame (i.e., the second frame); a working register 1532 for storing the display addresses (BRS and WRS) at the head of one raster; a register 1533 for storing the display addresses (ALM and ALS) at present; a register 1534 for storing the increments (BMW and WMW) of the display addresses for each raster; an arithmetic unit (AU) 1535; a memory address register (MAR) 1536; an X-bus 1537; a Y-bus 1538; and a Z-bus 1539. (2) Time Chart Fig. 16 shows a time chart corresponding to Fig. 15. By the horizontal synchronizing signal, the microprogram address register 1512 is initialized to the content of the entry address pointer 1511. On and after the fall of the horizontal synchronizing signal (HSYNC), the microprogram ROM 1513 is accessed by the microprogram address register 1512 so that the output read out is temporarily stored in the microinstruction register 1514. This microinstruction is decoded by the microinstruction decoder 152 to feed a variety of control signals to the arithmetic unit 153. A portion of the microinstructions is returned to the temporary memory registers 1515 and 1516, the contents of which provide the addresses of the next microinstructions. Thus, the microprograms, in which addresses A(B₁) and A(W₁) initialized by the entry address pointer are used as the starting point, are executed in sequential and alternate manners. (3) Microprograms and Operation Modes Fig. 17 shows the microinstruction types of the display processor. The word length is 28 bits and has two types #0 and #1 which are selected by a bit 27. The microinstruction of the type #0 controls the operations between the registers. On the other hand, the microinstruction of the type #1 controls the data transfers among the data RAM and the individual registers. Fig. 18 shows the detail of the microinstruction decoder 152. This microinstruction decoder 152 is composed of the individual decoder units which are similar to those of the microinstruction decoder 62 of the timing processor shown in Fig. 9. The conditional branch is controlled with reference to the synchronizing timing signal fed from the timing processor. Figs. 19(A) to (C) show three kinds of operation modes for controlling the display processor 52. In accordance with the individual modes, the CRT interface 55 suitably switches and outputs the memory address (B) of the base frame, the memory address (W) of the window address, and the drawing memory address (i.e., the hatched portion of the drawing). The individual modes will be briefly explained in the following: (a) Single Access Mode (Fig. 19(A)) This is a mode in which the display cycle and the memory cycle are made identical and processed. The switching control is made such that the memory address (B) of the base frame computed in the first phase is outputted in the base frame region outside of the window whereas the memory address (W) of the window frame computed in the second phase is outputted in the window. Since, in this mode, the one-memory cycle is made identical to the one-display cycle, the data of the two independent frames can be variously synthesized and displayed although the speed of the memory and the number of parts for the system construction are identical to those of the case in which the CRT controller of the prior art type is used. In this mode, the time (as hatched in the drawing) other than the display period is used for the drawing process. (b) Dual Access Non-Superposed Mode (Fig. 19(B)) In the mode in which two memory accesses are conducted during one display cycle, the first memory access is used for the display, and the second memory access is used for the drawing. In the first display cycle, the switching control is made such that the memory address (B) operated by the microprogram in the first phase is outputted in the base frame region outside of the window whereas the memory address (W) operated in the second phase is outputted in the window. If this mode is used, the memory access time (as hatched in the drawing) for the drawing operation can be ensured even during the display period in addition to the time other than display period to effect the speed-up of the drawing process. (c) Dual Access Superposed Mode (Fig. 19(C)) During one display cycle, two memory accesses are conducted so that the memory address (B) operated by microprogram of the first phase is outputted as the first memory access in the display region of the base frame whereas the memory address (W) computed by the microprogram of the second phase is outputted as the second memory access in the window. As a result, in the window, the two display memory accesses are conducted during one display cycle so that the superposed display can be made by synthesizing the data of the two independent frames read out by means of an external circuit. The second memory cycle (as hatched in the drawing) outside of the window can be used for the drawing cycle. In order to display a stable image in a raster scan CRT, generally speaking, a frame memory access for attaining the display data has to be predominately conducted during the display period on the CRT. In a character display device handling code data, there arises no substantial trouble even if the access of the frame memory is limited to a fly-back period. In a graphic display device, however, there arises a problem of retaining sufficient drawing cycles, because the data to be handled are increased. As has been described hereinbefore, the present controller provides as an effective method the dual access mode by which the drawing cycle can be retained even during the display period. With reference to Fig. 19-2, the relationship of the frame memory access in the two kinds, i.e., (a) the single access mode and (b) the dual access mode will be supplemented. If the display is predominant in the single access mode, the drawing cycle is limited to the fly-back period. The drawing operation can be predominately conducted, which causes flickers in the case of many drawing cycles. In the dual access mode, on the other hand, one half of the display period in addition to the fly-back period can be used as the drawing cycle. In this mode, it is necessary to read out twice data (for the reading cycle for each display) as much as that of the single access mode. This necessity can be satisfied by doubling the memory cycle or the read bus width for the display. It is empirically known that the ratio of the display period usually has to be about 70 to 80% of the total period summing up the drawing period and the display period. If, in this case, the display period is set at 75%, the drawing cycle in the single access mode necessarily becomes 25%, but the drawing cycle of 62.5% can be retained in the dual access mode. The drawing capacity of the controller according to the present invention is substantially in direct proportion to the drawing cycle. The capacity can be improved to 2.5 times as large as that of the single access mode, if the read bus width is doubled, and to 5 times if the memory cycle is doubled. (4) Arrangement of Memory Space and Flow Chart Fig. 20 shows the correspondence of the display frame and the memory space. As shown, the display data of the base frame and the window frame can be set an arbitrary size in the identical address space. As a result, the degree of freedom of the frame composition is enhanced together with the memory efficiency. Fig. 20-2 shows the correspondence between the logical and physical spaces and the display frame. The same Figure corresponds to an example in the case of 4 bit/pixel (i.e., simultaneously 16 colors and 16 gradations) composed of four color planes. The physical memory has its one word composed of 16 bits and has continuous addresses assigned thereto. This physical space is displayed partially or wholly as an actual image on the display frame. The correspondence between the physical space and the logical space is administered by the correspondence between the width of the logical space (i.e., LSW: logical screen width) and origin point (i.e., ORG: origin point). Moreover, the correspondence between the logical space and the display frame is related by the display starting address (i.e., SA: start address). Figs. 21 and 22 show examples of the processing flows of the microprograms, e.g., the processing flows of the first and second phases, respectively. The explanation will be made in the following by taking up Fig. 21 as an example. Immediately after the horizontal synchronizing signal, it is first examined whether the VBDISP signal is "1" or not. In the case of "0", the raster is ended with nothing being done. In the case of "1", the head address (BRS) in the raster of the base frame is sent to the registers (ALM and ALS) for controlling the display address at present, and the increment (BMW) of each raster is then added to the BRS and is stored as the head address of the subsequent raster in the BRS. Next, the cycle becomes a waiting one until the display starting point (HBDISP = "1") of the base frame. When this display starting point is reached, the ALS is transferred to the memory address register (MAR), in which the content of the ALS is counted up by +1. This process is repeated to sequentially output the memory addresses before the horizontal synchronizing signal is reached. Similar processes are conducted, too, in the case of Fig. 22. In this example, thus, the microprograms of the two independent systems are alternately processed in so that the renewal and operation of the display addresses of the two systems can be efficiently conducted. The display system using the display controller thus far described in the foregoing embodiment can effect the superposed display, in which the memory efficiency of the refresh memories is enhanced, and can realize the superposed display having the high degree of freedom of the frame structure. (Effects of the Invention) As has been described in detail hereinbefore, according to the present invention, it is possible to provide a display controller which can conduct the superposed display with the use of the simple construction. The effects of the controller of the present invention will be specifically explained in the following. 3. Summary of the Effects The present controller has an effect that it can support both a function (i.e., the drawing function) to form a variety of drawings on the frame memory and a function (i.e., the display function) to read out the data from the frame memory and control the display on the CRT frame. The drawing process is controlled by the command of one word (i.e., 16 bits) and the parameters of the subsequent several words. There is realized a command system which can be coordinately addressed by the use of the X-Y coordinate values (i.e., the logical addresses), and the complex memory address (i.e., physical address) operations are processed inside of the ACRTC. The drawing commands include straight lines, circles, ellipses, painting-out and copying. On the other hand, the display function is controlled by the parameters which are written in the control register. The present controller has display functions of the frame division, window control, superposed display, scroll control, graphic cursor function, magnified display and so on. 3.1. High-Level Command Using X-Y Coordinates as Parameter When a graphic device is to be constructed, there arises a problem whether the frame memory is to be subjected to a linear or X-Y addressing operation. The X-Y addressing operation is more direct but has its degree of freedom restricted in the hardware construction as in that the unit of the frame structure is limited to the power of 2 or in that a special memory is required. On the other hand, the linear addressing method can enjoy a higher degree of freedom in the hardware construction but has a defect the addressing operation is complicated. In the prior art, the linear addressing operation resorts to the software processing to reduce the capacity. The present controller has a complicated linear address operating mechanism built therein and can two kinds of address spaces, e.g., the logical space based on the X-Y coordinate system and the physical space addressed linearly. In other words, the access of the frame memory is linearly addressed, but the X-Y coordinates of excellent operability can be used for coordinately addressing the frame memory. Moreover, this addressing mechanism has such a structure as to correspond to the colors or multiple gradations in which one-picture-element data are composed of plural bits. Thus, the parameters dependent upon the hardware such as the frame structure or the color bit number can be absorbed by initializing the system and can be separated from the application software. As a result, it is possible to improve the productivity of the graphic software and to describe the highly transplantable software independent upon the hardware. 3.2. Processing Mode In the controller of the present invention, the executions of the graphic drawing commands are made by the following three kinds of processing modes. (1) Area Mode (Single Access Mode) This mode has a function to check the drawing regions in accordance with the shift of the pointer when in the drawing operation and can be used for the memory protection against an abnormal processing, the clipping processing and the drawing detecting function as a result that it is set as a drawable region or a drawing stopping region. (2) Color Mode (Dual Access Non-Superposed Mode) This is a mode concerning the development of the line kind data or patterns to the color register and can select such a processing as effects hatching by making use of the background drawing. (3) Operation Mode (Dual Access Superposed Mode) This mode can assign the logical operation and the conditional substitution concerning the colors. It is possible to select the drawing mode according to the dominative order of the color data, the prohibition of drawing on a predetermined color, and the allowing mode of drawing only on a predetermined background color. The four cases as shown are based upon the assumption that the drawing is conducted in the order of yellow → red → blue on the black background and provide different expressions under the individual conditions. 3.3. Superposed Display Totally four independent frames, i.e., three horizontally divided frames and one window frame can be synthesized and displayed. Fig. 10-3 shows an example of an application of the frame division. Explanations of Parameters in Fig. 10-3 HC: Horizontal Cycle HSW: Horizontal Sync. Width HDS: Horizontal Display Start HDW: Horizontal Display Width HWS: Horizontal Window Start HWW: Horizontal Window Width VC: Vertical Cycle VSW: Vertical Sync. Width VDS: Vertical Display Start VDW: Vertical Display Width VWS: Vertical Window Start VWW: Vertical Window Width SP1: Split 1 SP2: Split 2 SA0: Start Address 0 SA1: Start Address 1 SA2: Start Address 2 SAW: Start Address of Window Fig. 10-4 shows an example of the frame division structure. A variety of frame structures can be made by controlling the parameters. The individual divided frames can establish logical spaces independently of one another. This frame division and the window function are realized by controlling the display addresses and the timings. Since it is unnecessary to change the content of the frame memories, the frame setting can be instantly changed by newly writing parameters in the control register. On the other hand, the window frame is also enabled to display the switching of another frame and the superposed display of another frame. This makes possible such an application (i.e., the superposed display) that the character frame and the drawing frame are displayed in a superposed manner in an arbitrary size and in an arbitrary position. According to the controller of the present invention, moreover, the scrolling operations in all the directions can be effected for each divided frame by controlling the start address (SA) of that frame. The present controller also has a supporting function (i.e., the scrolling control) for realizing the horizontal smooth scrolling (i.e., the smooth scrolling for each picture element unit). 3.4. Drawing Capacity The present controller can effect the drawing processing at a high speed. This representative is shown in Fig. 23. Here is shown the maximum capacity in case the drawing processing is conducted continuously at the clock frequency of 8 MHz. The one-dot drawing period is 0.5 µs/dot for the straight lines, 2 µs/dot for painting out an arbitrary drawing, and 0.75 µs/dot for copying. These drawing capacities are common for monochromatic and color operations by the special color processing mechanism and speeded up by one or two orders, as compared with those of the software processing of the prior art.

Claims: A display controller (31) for inputting and outputting signals to and from a computer to control a drawing operation used for inputting signals for storage in a refresh memory (33) and to control a display operation used for reading out the signals stored in said refresh memory for display on a display device during a display period corresponding to a line of a display raster in response to an output signal from a clock generator (32), characterized in that n-times (n is an integer) of one memory cycle which is the period for accessing said refresh memory (33) are determined as one display cycle occurring in response to an output signal (3b) from said clock generator (32); m-times (m is an integer and 1 ≦ m < n) of the memory cycles in one display cycle are utilized for the display; and the remaining (n-m)-times of the memory cycles and the period corresponding to at least continuous twice of the memory cycle in a fly back period are utilized for the drawing operation. A display controller according to claim 1, wherein m is 1 and n is 2. A display controller according to claim 1, wherein n is the number of frames to be superposed in the display. A display controller according to claim 1, wherein said clock generator (32) provides a variety of clock signals (3a, 3b, 3d, 3e) to be used as a dot clock (3a), as drive clock (3b), as a first or a second phase data load timing (3d, 3e), respectively. A display controller according to claim 1, wherein in the mode of superposing a plurality of frames (i.e. n=2) the memory accesses are conducted a number of times corresponding to the number of frames (i.e. two-times) during one display period so that the plurality of independent picture data are sequentially read out. A display controller according to claim 1, wherein input and output signals to and from said refresh memory (33) for a display are controlled by address selecting means (51, 52); and m number of signal paths are provided for converting the output signals of said refresh memory in parallel or series either through a temporary storage memory (34) or in a manner that the converted output signals are synthesized (18) for the display. A display controller according to claim 1, wherein are provided: a timing processor (53) responsive to the clock signals from said clock signal generator (32) for generating timing signals (6304, 6305, 6307, 6207) for a plurality of displays at least two of which are overlapping; and a display processor (52) which generates display addresses (1531-1534, 1536) in synchronism with the horizontal (1512) and vertical synchronizing signals (6304, 6305) from the timing processor (53), and which feeds the display addresses to said refresh memory for the plurality of displays. A display controller according to claim 7, wherein said timing processor (53) includes: generating means (6304, 6305) for generating in response to a clock signal horizontal and vertical synchronizing signals; storage means (6109 - 6112; 6301, 6302) for storing a horizontal and vertical display position and a width of a first display, and a horizontal and vertical display position and a width of a second display; and control means (62, 63, 6207) for controlling the horizontal and vertical position and width of the first and second displays independently (Figs. 11 to 14). A display controller according to claim 7, wherein said display processor (52) includes: a plurality of storage means (1531) for storing display starting addresses before a raster ahead of each display; and renewal means (1532 - 1535) for sequentially renewing display starting addresses in synchronism with the display timing signals from the timing processor of each of the displays, and means (1536) for providing the display addresses to the refresh memory (33) for reading the display. A display controller according to claim 7, wherein said display processor (52) further includes: means (1535) for computing increments of the display addresses whenever the display timing signals are generated from said timing processor (53); and means (153) for providing the display starting addresses which comprise generating means (1532 - 1534) for generating the individual display addresses as a sum of increments of the stored display starting addresses and the stored display starting addresses. A display controller according to claim 10, wherein said display processor (52) outputs (1536) the display addresses to said refresh memory (33) in a time multiplexed manner.

Inventors: KATSURA, KOYO, MAEJIMA, HIDEO, TAKEDA, HIROSHI
Applicants: HITACHI, LTD.
Application year: 1984
Main classification: G09G1
IPC codes: G09G5, G06F3, G09G1