GRAPHICS ADAPTER

Abstract: A graphics adapter (GA121) of the type whose operation is controlled by control data stored therein. The graphics adapter has two sets of loadable control data, one of which is used by a graphics processor (201) in the graphics adapter and the other of which is used by the processor for the system in which the graphics adapter is used. Because each processor has its own set of control data, control of the graphics adapter is rapidly and easily switched between the processors. Included in the graphics adapter is graphics control apparatus (125) which contains storage for two sets of control data and operates under control of one or the other of them as determined by signals from the graphics adapter. The graphics control apparatus further includes state storage for retaining state necessary for resumption of operation for one processor after the other has used the graphics adapter. The graphics control apparatus can perform both byte and word operations and can emulate byte operations while operating in word mode. Further, the graphics control apparatus may employ either an external or an internal mask to mask data.

Description: GRAPHICS ADAPTER BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to digital computer systems and m specifically to apparatus used in digital computer systems to generate displays. 2. Description of the Prior Art: Fig. 1 It has long been the practice in computer systems to employ a separate subsystem to generate displays on a CRT. There are tw reasons for so doing: to simplify the interface between the CRT and the computer system and to offload at least some of the processing involved in generating a display from the remainder the computer system to the subsystem. One such separate subsys which has been popular in recent years is the enhanced graphics adapter (EGA) card for the IBM personal computer, described in "Graphic Enhancement", in PC Tech Journal, vol. 3, no. 4, April 1985, pp. 58-80. That article is hereby incorporated by referen into the present application. Figure 1 is a block diagram of a computer system employing a graphics adapter of the type of the EGA. The system contains system CPU (SCPU) 101, system memory (SMEM) 103, graphics adapte (GA) 109, and DISP 111. SCPU 101, SMEM 103, and GA 109 are connected by means of data bus (DB) 107, which transfers data between SCPU 101, SMEM 103 and GA 109, address bus (AB) 105, whi provides addresses from SCPU 101 to SMEM 103 and GA 109, and control bus (CTLB) 106 which provides signals controlling the interaction of SCPU 101, SMEM 103, and GA 109. GA 109 is furthe connected to DISP 111. In this and the other figures of the present application, control signals are indicated by dashed arrows. GA 109 further contains display processor (DPR) 119, which processes data to be displayed on DISP 111, DMEM 117, in which the data to be displayed is stored, and a set of registers CDS 115, which contain data which controls operation of DPR 119. To a programmer of SCPU 101, GA 109 appears as an I/O device. T programmer may specify CDS 115 as a destination for data and DME 117 as either a source of or destination for data. To operate G 109, the programmer first loads CDS 115 with the control data required to cause DPR 119 to perform the proper operations and then either reads data from DMEM 117 or writes it to DMEM 117 required to put the data in DMEM 117 into the proper form for display on DISP 111. In reading or writing the data, DPR 119 perform logical operations on the data and operations such as swapping, rotating, or masking. In addition to processing dat for DMEM 117, DPR 119 further provides display addresses (DA) to DMEM 117. In response to those addresses, DMEM 117 outputs data for display on DISP 111 to DPR 119, which operates on the display data as specified by CDS 115 and then outputs it to a controller for DISP 111. References to DMEM 117 in response t addresses on AB 105 are interleaved with writes from DMEM 117 i response to DA 116. Consequently, a change in the contents of DMEM 117 as a result of an operation controlled by SCPU 101 is quickly reflected on DISP 111. Because operation of GA 109 is controlled by CDS 115, each time the program executing on SCPU desires to perform a different graphics operation, it must relo CDS 115 with the control data required for the new graphics operation. While graphics adapters of the EGA type are effective, they hav number of problems. One is that there is only a single CDS 115 Consequently, CDS 115 must be reloaded each time a new graphics operation is performed. In many cases, in fact only a small number of different graphics operations are performed; nevertheless, CDS 115 must be reloaded each time, greatly reduci the speed of graphics operations. Moreover, the single CDS 115 increases the difficulty of operations such as writing character and performing vector graphics in the same display and writing simultaneously to two screens or to two windows in a screen. Another problem is that prior-art EGAs work only on 8-bit bytes, again slowing down the speed with which graphics operations can performed. Finally, the only source for a mask in the masking operations is CDS 115, thus making it necessary to reload CDS 11 in order to change a mask. These problems and others are solved by the graphics adapter of the present invention. SUMMARY OF THE INVENTION: Fig. 1A The present invention relates to graphics adapters used to generate displays in computer systems. As shown in Fig. 1A, the graphics adapter (GA 121) of the present invention includes a plurality of CDSs 115 in multiple CDS (MCDS) 125 and CDS selecti logic (CDSSEL) 123 for providing CSE signal 127, which selects one of the CDSs 115 in MCDS 125. In response to CTLB 106, a giv one of the CDSs 115 may be selected either for loading of contro data or for use in controlling operation of GA 121. Consequentl when generation of a display involves repetition of a small numb of graphics operations, one of the CDSs 115 may be loaded with control data required for each operation and GA 121 can select proper CDS 115 instead of reloading the single CDS 115 of the prior art. In some embodiments, the proper CDS 115 may be selected by the address on AB 105, i.e., DMEM 117 appears to t programmer of SCPU 101 as a plurality of sets of memory addresses. Each CDS 115 in MCDS 125 corresponds to one of the sets of memory addresses and defines the operations done on DM 117 when DMEM 117 is addressed with one of the corresponding s of memory addresses. In other embodiments, signals on CTLB 10 may select a given one of CDS 115. The plurality of CDSs 115 also makes it easier to use GA 121 i systems involving more than one processor. For example, some systems for doing graphics have a separate graphics processor i addition to SCPU 101. The separate graphics processor executes high-level graphics instructions and responds to them by settin up CDS 115 as required to perform the operation specified by th high-level graphics instructions. In GA 121 of the present invention, the graphics processor and SCPU 101 may be assigned different sets of CDSs 115 in MCDS 125, the CDSs 115 loaded as required for the operations to be performed by the processors, GA 121 can perform operations first for one processor and then other without reloading MCDS 125 in between. Again, selection a CDS 115 may be by address or by special control signals. In a preferred embodiment of the invention, MCDS 125 and CDSSEL 123 are implemented in a number of graphics control circuits in- 121. Each of the graphics control circuits performs operations a portion of DMEM 117, and each has its own MCDS 125 and CDSSEL 123. In another aspect of the invention, the graphics control circuit is able to perform both the byte operations typical of the prior art and word operations. In a novel mode of operation, the graphics control circuitry is able to emulate byte operations while performing word operations. In a further aspect of the invention, the graphics control circuitry employs a new mode of writing data to DMEM 117. In graphics control circuits in prior-art EGAs, data being written DMEM 117 could be masked using a mask stored in CDS 115 in the graphics control circuitry of the invention, the mask may be supplied directly via DB 107, thus eliminating the need to reloa CDS 115 for certain masking operations. It is thus an object of the invention to provide an improved display generating system for use in a computer system; It is another object of the invention to provide an improved graphics adapter of the type in which control data controlling processing of display data is loaded into the graphics adapter prior to processing display data; It is an additional object of the invention to provide an impr graphics adapter permitting loading of several sets of control data and selection among them for control of display data processing; It is a further object of the invention to provide improved graphics control circuitry for use in a graphics adapter. It is yet another object of the invention to provide graphics control circuitry containing several sets of control data and providing for selection among them for control of the operation the graphics control circuitry; It is a still further object of the invention to provide graphi control circuitry capable of performing word and byte operation and It is a further additional object of the invention to provide graphics control circuitry having a write mode wherein masking . data is provided from the data bus. Other objects and advantages of the present invention will be understood by those of ordinary skill in the art after referring to the detained description of a preferred embodiment and the drawings, wherein; BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram of a computer system with a prior-art graphics adapter (GA); Fig. 1A is a high-level block diagram of a GA 121 of the present invention; Fig. 2 is an overview block diagram of a preferred embodiment of GA 121; Fig. 3 is a detailed block diagram of a preferred embodiment of graphics controller (GC) 223; Fig. 4 is a conceptual block diagram of GC 223; Fig. 5 is a detail of BREG 303 of GC 223; Fig. 6 is a detail of CTLMUX 375 of GC 223; Fig. 7 is a detail of CTLS 313 of GC 223; Fig. 8 is a detail of RRA 351, RRB 357, and MUX 353 of GC 223; Fig. 9 is an overview of WFUNC 323 of GC 223; Fig. 10 is a detail of WPR 905 of WFUNC 323; and Fig. 11 is a conceptual block diagram of byte processing in GC 223. Reference numbers employed in the drawings have three or four significant digits. The two least-significant digits are a num in the drawing where the item identified by the number first appears; the most-significant digits are the drawing number; th reference number 115 refers to an item first shown in figure l 1A. DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT The following detailed description of a preferred embodiment of the graphics adapter of the present invention will first discuss the graphics adapter and its operation and will then discuss the graphics controller used in the graphics adapter and its operation. 1. Graphics Adapter 121: Fig. 2 Figure 2 is an overview block diagram of a preferred embodiment o graphics adapter (GA) 121. GA 121 is implemented on a single printed circuit board and is connected to SCPU 101 by means of D 107, AB 105, and CTLB 106. In a preferred embodiment, GA 121 includes graphics processor (GP) 201, a 16-bit NEC V30 microprocessor manufactured by Nippon Electric Corporation and c perform operations under either the direct or indirect control of SCPU 101. Direct control is used for bit-mapped graphics. In this form of control, SCPU 101 loads CDS 115 and specifies read and write operations and the relevant addresses in DMEM 117 itself. Indirect control is used for vector graphics, i.e., displays described by means of vectors. In this form of control, SCPU 101 provides high-level vector graphics instructions to GP 201, which then loads CDS 115 and specifies the addresses in D 117 and the read and write operations. Communication between 201 and SCPU 101 is by means of communications RAM (CRAM) 207, which is writable and readable by both processors. Selection o either SCPU 101 or GP 201 as the source of addresses is perfor by address selection logic (ADSEL) 212, which receives addresse from SCPU 101 via AB 105 and from GP 201 via GPAB 206 and outpu the selected address via internal address bus (IAB) 208. Selection is controlled by signals in EXT CTL 226, as will be explained in more detail below. Selection of either SCPU 101 o GP 201 as the source of data to be written to DMEM 117 is made DMUX 204, which receives data from GP 201 via GPDB 202 and from SCPU 101 via DB 107 and outputs the selected data to IDB 207. Selection is again controlled by signals in EXT CTL 226. SCPU provides the graphics instructions to GP 201 by loading them in CRAM 20. GA memory (GAMEM) 203 contains data and programs for 201 and other data used to control display 111. Emulation register file (ERF) 227 is memory which contains an address translation table which permits GA 121 to emulate an IBM EGA. Plane write enable register (PWER) 229 contains bits which spec which portions of DMEM 117 may be written to. Display 111 is controlled by CRT CTL 211 and receives the data displays from Color Palette (CP 217), which determines the colo which results from the display data. Control data required to operate CP 217 and CRT CTL 211 is received via GPCTL 202 from GP 201; CP 217 receives the display data via SB 219. CRT CTL 211 provides addresses via DA 116 to DMEM 117. The addresses have two sources: IAB 208 and CRT CTL 211 itself. Addresses received from IAB 208 are for read and write operations performed by GA 121 on the contents of DMEM 117; those generated by CRT CTL 211 itself are for reading data from DMEM 117 for display on DISP 111. Addressing operations using addresses from SCPU 101 or GP 201 are interleaved with those using addresses generated by CRT CTL 211. DMEM 17 consists of 8 planes P 237. Addresses supplied from CRT CTL 211 to DMEM 117 via DA 116 apply to all 8 plans at once. In the preferred embodiment, the address may specify either or both bytes of a 16-bit word. A picture element (PEL) appearing on display 111 is represented in DMEM 117 by 8 bits, one in each plane of DMEM 117. Displays are produced by setting the planes of DMEM 117 to the proper values, outputting bits from each plane,m and combining the bits from the planes to form PELs. Manipulation of the contents of DMEM 117 and output of the display data to CP 217 via 16-bit SB 219 is performed by four graphics controllers (GC) 223. Each GC223 operates on two planes P 237 of DMEM 117. Inputs from which a GC 223 produces data to be written to DMEM 117 may come via 16-bit IDB 207, from DMEM 217, and from within GC 223 itself. GC 223 may also provide data from DMEM 117 to IDB 207, which in turn provides it to GP 201 or SCPU 101. write operation, data is written to both planes of DMEM 117 associated with GC 223 simultaneously; depending on the mode o the read operation, data may be read from one or both planes. Input from, and output to DMEM 117 is via one 16-bit bus for e plane. Buses for even planes have the reference number 235, a those for odd planes have the reference number 233. When data written to display ill, the address on DA 116 specifies one wo on all of the planes in DMEM 117. The word is output via bus or 235 to the GC 223 for the plane, which formats the word and outputs it 2 bits at a time, one from the high byte and one fro the low byte, via bus 220 for the plane to SB 219. Correspondi bits from each of the selecte bytes are by this means output vi SB 219 to CP 217, which thus receives the PEL for a given scree position, and that PEL, modified by the contents of CP 217, is output to DISP 111. Control of each GC 223 and of DMUX 204 and ADSEL 212 is by mean of EXT CTL signals 256 and a MCD 125 internal to the GC 223. E CTL signals 226 are generated by GC controller (GCC) 224 from b of IAB 105, signals in CTLB 106, and signals on GPCTL 202 from 201. As specifically regards ADSEL 212 and DMUX 204, GPCTL 20 selects GP 201 or SCPU 101 as the source of data on IDB 207 and addresses on IAB 208. Since addresses for operations which mod DMEM 117 are interleaved with addresses for output of display d from DMEM 117 to DISP 111, EXTCTL 226 may simultaneously specify read or write operation on DMEM 117 and display of data on DISP 111. MCDS 125 contains a plurality of CDSs 115. The contents of a selected CDS 115 controls the operations which GC 223 performs o the data for its planes 237 of DMEM 117. EXTCTL 226 includes signals for selecting one of the CDSs 115 for loading from IDB 2 or for control of GC 223. When a CDS 115 is selected for loadin that CDS 115 is loaded with the same contents in each of the GCs 223; similarly, when a CDS 115 is selected for control, that CDS 115 is selected in each of the GCs 223. The CDSs 115 in all of the GCs 223 thus function as a single CDS 115 in GA 121. In a preferred embodiment, MCD 125 contains two CDSs 115, one reserve for SCPU 101 and the other for GP 201. Which will be used for a given operation is determined by a signal on GPCTL 202. Wheneve the CDS 115 corresponding to one of the processors is selected, signals in EXT CTL 226 also cause ABSEL 212 to select the addres provided by that processor and DMUX 204 to select the data provided by thatprocessor. GA 121 may thus be seen conceptually as a GA with two channels, one for GP 201 and the other for SCPU 101. In other embodiments, there may be more CDSs 115 and consequently more channels, and more than one channel may be available to a processor. Operation of GA 121 in a preferred embodiment is as follows: the commencement of operation, GP 201 executes code which initializes GA 121. Once operation has commenced, CRT CTL 211 provides addresses to DMEM 117 for display of data on DISP ill. Bits from each plane are output as described above to the GC 2 for the plane, which then provides them to CP 217, which outpu them to DISP 111 to generate the display. If a program executing on SCPU 101 wishes to inspect or modify DMEM 117 directly, it does in the same fashion as described for prior-art graphics adapter 109: it addresses CDS 115, loads it with the proper control data for the operation, and then perfor a read or write operation on DMEM 117 as required. In GA 121, when SCPU 101 addresses CDS 115, GCC logic 224 enables loading CDS 115 corresponding to SCPU 101 with data from DB 207, and wh SCPU 101 addresses DMEM 117, GCC logic 224 enables addresses fr AB 105 to go to CRTCTL 211. If a program executing on SCPU 101 wishes instead to employ GP to inspect or modify DMEM 117, it does so by writing the necess graphics instructions to CRAM 207. GP 201 then executes the instructions by loading the control data required for the instructions into GP 201 's CDS 115 and performing read or write operations as to perform the operations specified by the instructions. Selection of GP 201 as the source or destination for data and of addresses as well of CDS 115 corresponding to GP 201 is achieved by means of GPCTL 202, to which GCC 224 responds by selecting GPAB 206 as the address source, GPDB 202 as the dat source, and GCS 115 corresponding to GP 201. An advantage of multi-channel GA 121 is that any part of DMEM 11 may be modified by either channel. It is consequently possible use two different graphics techniques together in the same area DMEM 117 to produce a display which combines both techniques. F example, if a graphics display which has alphanumeric labels is desired, GP 201 l s channel may be employed to develop the graphic component of the display, while SCPU 101's channel may be employ to produce the characters using bit-map techniques. In another embodiment, GA 121 may include a processor which provides high—level character generation and may provide a channel for th processor. If all channels are employed by a single processor, the above advantages may be obtained if the single processor successively executes character generation and vector graphics generation software, using one of the channels for each. Another advantage of multi-channel GA 121 is that channels may b used to write to different areas of DMEM 117. This capability permits a channel and in some cases a processor to be associated with a given area of DMEM 117. This association permits concurrent processing of more than one screen full of data in DM 117 or of several "windows" in a single screen. 2. Concept of Graphics Controller 223: Fig. 3 As is apparent from the above description of GA 121, processin data in DMEM 117 and provision of data from DMEM 117 to CP 217 actually performed by four GCs 223. Figure 4 presents a conceptual block diagram of a single GC 223 in a preferred embodiment of GA 121. GC 223 has two main components: control logic (CTLL) 369, which controls operation of GC 223, and displ data processor (DDP) 401, which processes display data from DME 401. CTLL 369 contains a plurality of sets of control register (CREG) 409, each of which contains a CDS 115 for a channel. In to the CREGs 409 is from IDB 207 and output is to internal cont signal generator (ICSGEN) 407, which generates internal control signals (ICTLS) 309 for the devices in DDP 401. CTLL 369 furth receives external control signals from EXCTL 226. Two of these signals are of particular interest in the present context: L/R 403, which determines whether GC 223 is to load data into CREGs 409 or to operate on data from DMEM 117, and CSEL 405, which selects which of CREGS 409 is to be loaded or is to control operation of DDP 401. DDP 401 is connected to IDB 207, SB 219, PDZ 235 for GC 223 's e plane, and PDY 233 for GCC 223 's odd plane. DDP 401 provides d to and receives it from the processor or processors which contro display 111, PDY 233 and PDZ 235 provide data to and receive dat from their corresponding planes 237 of DMEM 117, and SB 219 receives bits from the planes for display on DISP 111. DDP 401 has three logical components: write logic (WL) 363, which processes data written to DMEM 117, GC read logic (GCRL) 365, which processes data read from DMEM 117 for internal use in GC 2 or return to the processor or processors via IDB 207, and displa read logic (DISPRL) 367, which processes data read from DMEM 117 for display on DISP 111 and outputs it to SB 219. Operation of GC 223 is as follows: before commencement of any operation, at least one CREG 409 must be loaded from IDB 207. During the loading operation, signals in EXTCTL 226 indicate a write operation, L/R 403 specifies a load operation, and CSEL 40 selects one of CREGs 409. Part of the data which appears on IDB 207 is interpreted as an address of a register in the selected CREG 409 and another part of the data is interpreted as the valu to be loaded into the addressed register. In a preferred embodiment, IDB 207 is a 16-bit bus, and when a register in CREG 409 is being loaded, the low byte is the address of the register and the high byte contains the value to be loaded. When the registers in CREG 409 required for the intended operati have been loaded with the proper values, signals in EXTCTL 226 indicate a read or write operation and may further indicate th t he contents of DMEM 117 are to be output to DISP 111. L/R 40 specifies a run operation and CSEL 405 selects the CREG 409 fo the operation. If output to DISP 111 is specified by EXTCTL 2 DISPRL 1367 processes the data being output from DMEM 117 to D ill as specified by the selected CREG 409; if a read operation specified, GCRL 365 processes the data being read from DMEM 11 IDB 207 as specified by the selected CREG 409; if a write operation is specified, WL 365 provides data to DMEM 117 as specified by the selected CREG 409. If more than one CREG 409 been loaded, operations may be switched simply by changing CSE 405 to select a different CREG 409. 3. Detailed Discussion of a Preferred Embodiment of GC 223: Fig. 3 Figure 3 is a detailed block diagram of a preferred embodiment GC 223. Dashed boxes in the figure indicate what portions of t figure embody the conceptual components of Fig. 4. As will be explained in more detail below, the preferred embodiment writes words or bytes of data to DMEM 117 and reads words of data from DMEM 117 to IDB 207. Beginning with CTLL 369, that portion of the preferred embodime contains two sets of registers for CDSs 115. The first set of- registers, AREG 301, contains CDS 115 for the channel reserved fo SCPU 101, termed hereinafter the A channel; the second set of registers, BREG 303, contains CDS 115 for the channel reserved fo GP 201, termed hereinafter the B channel, and further contains additional CDS 115 common to both channels. On loading, L/R 403 of EXTCTL 226 specifies loading and CSEL 405 selects one of AREG 301 or BREG 303. In the embodiment of Fig. 3, CSEL 405 is a single line whose binary value indicates which of AREG 301 or BR 303 is to be selected. The following discussion will presume tha BREG 303 has been selected. During loading, the data to be loade is in the high byte of IDB 207 and the address of the register in BREG 303 to be loaded is in the low byte. Address logic (ADL) 38 receives the low byte, decodes it, and provides a signal via RSE 386 which enables the selected register in BREG 303 to receive th data in the high byte of IDB 207. For some operations, bits are loaded on a per-plane basis; in these cases, plane bit logic (PBL 383 provides the bits. The bits from PBL 393 are input to AREG 301 or BREG 303 via PB 381. Output from AREG 301 or BREG 303 for channel-specific CDS 115 is to control mux (CTLMUX) 375, which responds to signals derived from EXTCTL 226 to select channel-specific output from AREG 301 o BREG 303 as specified by CSEL 405. The outputs from either AREG 301 or BREG 303 to CTL MUX 375 consist broadly of a mask (AM 371 and BM 373) and control data (ACTL 305 and BCTL 307). The selected mask is output from CTLMUX 375 via CTLM 377 to WFUNC 3 the selected control data goes in part to internal control sign (ICTL) 309 and in part as control data (CTLD) 379 to WFUNC 323. As shown in figure 3, other components of ICTL 309 come from EX 226 and from control state logic CTLS 313. For some operations a preferred embodiment, it is necessary to retain the state of preceding operation in the channel and use that state in the production of ICTL 309. That state for both channels and the logic used to select state for one channel and make signals in ICTL 309, is in CTLS 313. Continuing with WL 363, WL 363 produces 16 bits of data which G 223 writes to its two planes 237 of DMEM 117. WL 363 has three main components, all of which operate under control of CDS 115 the selected channel. ROT 319 rotates words of data received f IDB 207; SW 321 swaps the bytes of the data received from ROT 319. WFUNC 323 does the remainder of the processing required t produce data for DMEM 117. As may be seen from fig. 3, WFUNC 3 receives its inputs from the following 7 sources: CTLM 377 carries an 8-bit mask for the selected channel from AREG 301 or BREG 303; CTLD 379 carries control data for the selected channel fro CDS 115; PB 381 carries plane bits selected from IDB 207 by PBL 383 DM 317 receives a 16-bit data mask directly from IDB 207 for one mode of operation of WFUNC 323; RDATA 322 receives 16 bits of data from IDB 207 which has been operated on by ROT 319 and/or SW 321; and RLY 359 and RLZ 361 carry 16 bits of data which has been read from the odd and even planes associated with GC 223. As will be explained in more detail later, the operations performed by WFUNC 323 include producing words filled with l's a O's depending on values in the selected CDS 115 or provided by P 383, producing words containing the results of the rotate and sw operations performed by ROT 310 and SW 321, ANDing, ORing, or XORing the words so produced with the 16 bits previously read fr DMEM 117, and masking the results of those operations. The mask, which may be obtained either from CDS 115 for the selected channel, or from IDB 207, specifies for each bit in a word wheth the bit is to come from the data read from DM 117 or from the da produced from CTLD 379, PB 381, RDATA 322, RLY 359, and RLZ 36 described above. The word resulting from the operations is ou via PDY 233 and PDZ 235 to the planes 237 of DMEM 117 with whi GC 223 is associated. Depending on the address which DMEM 117 receives via IAB 208, either byte of the word or the entire wo may be written to DMEM 117. Continuing with GCRL 365, this portion of a preferred embodime of GC 223 reads words from the associated planes via PDY 233 a PDZ 235 and provides them to IDB 207 and WFUNC 323. The data received in read register for channel A (RRA) 351 or that for channel B (RRB) 357, depending on which channel is performing read operation. Each of the read registers has a Y portion for receiving data from the Y plane and a Z portion for receiving from the Z plane. On a read operation, the read register for t channel performing the operation receives the word from the corresponding plane 237 which contains the byte addressed by th address on IAB 208. The data in the read register is output to EDB 207 and to WFUNC 323 as determined by external signals in EXTCTL 226 and data in CDS 115 for the channel performing the operation. Output from RRA 351 or RRB 357 to WFUNC 323 is via muxes 354 an 356. Depending on the external signals and the data in CDS 115 WFUNC 323 may receive 16 bits as follows: the 16 bits contained in the read register for the channel 16 bits consisting of 2 copies of the low byte in the rea register for the channel; and 16 bits consiting of 2 copies of the high byte in the rea register for the channel. Output from RRA 351 or RRB 357 to IDB 207 is via read functions for each plane, RFY 343 and RFZ 345, and AND gate 341. Moreover, IDB 207 has open collector outputs, and consequently, when more than one GC 223 in a GA 121 is outputting to IDB 207, the output are wire ANDED together. The functions performed by RFY 343 and RFZ 345 include swapping the high and low bytes received from th read register, outputting data only from the portion of the selected read register which contains data from a selected plane 237, and, in one read mode, performing a color compare on the wo being output. Output words from the two planes are ANDed at log 341 and the resulting word is output to IDB 207. DISPRL 367, finally, provides bits from which the display in DIS 111 is generated from the planes 237 associated with GC 223. Th components of DISPRL 367 for plane 237 (Z) are display register (DRZ) 339, which receives 1 word at a time from plane 237(Z), display function (DFZ) 335, which aligns the received word, an display shift register (DSRZ) 331, a shift register which shif the word as operated on by DFZ 335 onto SB 219. The shift is performed on the high and low bytes of the word simultaneously, i.e., corresponding bits of the high and low bytes are output simultaneously onto SB 219. The components of DISPRL 367 for plane 237(Y), namely DRY 337, DFY 333, and DSRY 329 are identic to those for plane 237(Z). Loading of the shift registers and shifting of data out of them is controlled by external signals. 4. Detailed Description of BREG 303: Fig. 5 As previously explained, operation of GC 223 is controlled by C 115 contained in AREG 301 and BREG 303. AREG 301 and BREG 303 each contain channel-specific CDS 115 for their associated channels, and BREG 303 further contains common CDS 115. Detail of BREG 303 and of the logic controlling loading of BREG 303 an AREG 301 are shown in figure 5. Registers in AREG 301 and BREG 303 are addressed by means of bi 0-7 of IDB 207 provided to address logic (ADD 385. In a preferred embodiment, only bits 0-3 are actually used for addressing. As shown in figure 5, ADL 385 is subdivided into A 541, the address logic for the A channel, and BADL 543, the address logic for the B channel. Since the implementation is th same for both, only BADL 343 is shown in detail. BADL 543 has t components: B address register (BAREG) 501 and B address decoder (BADΞC) 503. BAREG 501 is loaded with bits 0-3 of IDB 207 in response to L/R 403 indicating load and to CSEL 405 indicating channel B. In response to those same signals, BADEC 503 decodes the contents of BAREG 501 to produce B register select signals (BRSEL) 545 of RSΞL 386, which enable writing to the individual registers addressed by the contents of BAREG 501. BREG 303 contains registers for two classes of CDS 115: channel-specific CDS (CSCDS) 537, which is specific to channel B and common CDS (CCDS) 539, which is common to both channels. AR 303 also contains A channel registers for CSCDS 537 and for WB 529, SW 631, NR 533, and WM3 535 of CCDS 539; GP 525, DFC 527, a R0 528 are contained only in BREG 303. Conceptually, all of CCD 539 belongs to BREG 303 in that its values may be set in a preferred embodiment only by GP 201. Data for the registers in BREG 303 comes from two sources: directly from bits 8-15 of IDB 207, and indirectly from those same bits via PDL 383. As will b explained in more detail later, some registers of CSCDS 537 control operations on individual planes 237. Which planes are t be operated on is indicated by bits 8-15 of IDB 207. PDL 383 receives these bits together with graphics position (GP) signals 525, which indicate which of the four GCs 223 in GA 121 the GC 2 receiving the signal is. In response to GP 525 and to bits 8-1 of IDB 207, PDL 383 sets the relevant register of CSCDS 537 as required for that GC 223. Understanding of the contents of BREG 303 will be aided by a sh overview of the operations performed by GC 223 under its contro There are two read modes for reading words from DMEM 117 to IDB 207. In read mode 0, words are read from one plane 237 to IDB 207. GC 223 performs the operation only if it is associated wi the selected plane 237. In read mode 1, words are read from al planes 237 and a color compare may be performed for each plane 237. The outputs from each plane in a given GC 223 are ANDed together to produce the output for that GC 223 and outputs from all GCs 223 are wire ANDed together to produce the value output IDB 207. As a side effect of a read operation, RRA 351 or RRB for the channel being read is loaded with 1 word of data from D 117; this data may then be used in write operations, as will be described in more detail below. There are four write modes for writing words or bytes to DMEM 117. In each mode, WFUNC 323 in a preferred embodiment provide 16 bits of data to DMEM 117; whether a word or byte is written depends on the address provided by CRT CTL 211'to DMEM 117. In write mode 0, each externally enabled plane 237 is written with data produced by WFUNC 323 from RDATA 322; in write mode 1, eac externally-enabled plane 237 is written with data produced using data from RRA 361 or RRB 357; in write mode 2, the entire byte or word written to each externally-enabled plane 237 is set to the. value of the bit on IDB 207 8-15 corresponding to the plane; in novel write mode 3, finally, whatever data was produced by write modes 0 or 1 is masked by the 16 bits currently on IDB 207. Wri modes 2 and 3 are mutually exclusive in a preferred embodiment. There is only a single video mode for writing data to DISP 111. Additionally, WFUNC 323 may emulate operations which write bytes of data while in fact writing words. Turning to the contents of CSCDS 537, SR 509, ESR 511, CC 513, a CDC 515 are each two-bit registers containing plane control data. Accordingly, each of these registers receives its value from PDL 383. When the register is loaded, bits 0-7 of IDB 207 specify t register and bits 8-15 indicate whether the register for a given plane is to be set. In write mode 0, the values in set/reset (S registers 509 indicate whether the words or bytes manipulated by WFUNC 323 are to contain all l's or all 0's prior to being ANDed or ORed with the data from RRB 357 and masked. SR 509(Y) contai the data for the odd plane 237 and SR 509(Z) contains the data f the even plane 237 associated with GC 223. If SR 509 for a plan 237 is set to 1, the words or bytes to be manipulated for that plane will contain all l's; if it is set to 0, they will contain all 0's. The values in enable set/reset registers (ESR 511) indicate whether the values in the corresponding registers of 509 will have the effect described above, or whether WFUNC 323 will ignore them. In the latter case, WFUNC 323 takes the dat be manipulated and written to the plane 237 from RDATA 322. T if ESR 511(Z) is set to 0, the data for plane 237(z) will be ta from RDATA 322. In read mode 1, color compare registers (CC) 513 and color don' care registers (CDC 515) perform functions similar to those performed by SR 509 and ESR 511 and are set in the same fashion In the applicable read mode, bytes or words are output from eac associated plane 237. Each bit of the byte or word being outpu for a given plane 237 is compared with the bit contained in CC for the plane. If the bit is equal to the bit in GC 513, the corresponding bit of the byte or word output to IDB 207 is set 1; if not, the bit is set to 0. The function is useful for locating the beginning of an area in DMEM 117 whose PELs indica a different color. CDC 515 enables and disables the correspond CC 513. When CDC 515 for a plane is set to 1, the output value the applicable read mode is governed by CC 513, as described above; when CDC 515 is set to 0, the output value is 1 regardle of the value of CC 513. The remaining registers in CSCDS 537 and CCDS 539 are loaded directly from the most significant 8 bits of IDB 207. BM 517 i an 8-bit bit mask. In write modes 0, 1, and 2, the mask is provided to WFUNC . 323, which makes a 16-bit mask containing two bytes of the contents of BM 517 and uses it to select bits from the words processed by WFUNC 323 and from RRB 357. Where a bit the mask is 0, the corresponding bit in the data written to DMEM 117 comes from RRB 357; where it is 1, the corresponding bit is from the value processed by WFUNC 323. ROTCTL 519 contains 5 bits. Three of those control the rotation of the data which GC 223 receives in write mode 0 in ROT 319; the other two are used write mode 0 and 1 to control whether WFUNC 323 passes the data produces through to the mask unmodified, whether it ANDs the dat with data from RRB 357, whether it ORs the data with that from R 357, or whether it XORs the data with that from RRB 357. RDSEL 521 is a three-bit register which indicates which of the 8 planes 237 is being read in read mode 0. A given GC 223 operatin in read mode 0 responds to a read signal in EXTCTL 226 only if t value in RDSEL 521 specifies a plane 237 associated with that GC 223. MODESEL 523, finally, is a five-bit register whose values determine whether GC 223 is in read modes 0 or 1, write modes 0, 1, or 2, a test mode, or an even-odd read mode. The test mode i of no interest in the present context. In the even-odd read mod WFUNC 323 operates on the even bytes from both the Y and Z portions of the selected read register and outputs the result on PDZ 235 and on the odd bytes from both the Y and Z portions of t selected read register and outputs the result on PDY 233. Continuing with CCDS 539, the values in these registers contro 223 regardless of what channel is controlling the read or writ operations. In a preferred embodiment, only GP 201 may load B 303, and consequently, only GP 201 may set these values. Grap position (GP) 525 is a two-bit register which is set to indicat which GC 223 in GA 121 a given GC 223 is. As indicated in the discussion of CSCDS 537, signals produced from GP 525 are used PDL 383 to determine which data bits to respond to in setting S 509, ESR 511, CC 513, and CDC 515. The signals are further use by GCRL 365 to determine how GC 223 is to respond to RDSEL 521. DFC 507 is a three-bit register which indicates which of eight data alignment modes is to be carried out by DISPRL 367 on data written from DMEM 117 to DISP 111. R0 528 is a single-bit register. When it is set to 0, operation of DISPRL 367 is controlled both by a signal in EXTCTL 226 and the contents of D 527; when R0 528 has the value 1, DFC 527 alone controls DISPRL 367. The remaining registers in CCDS 539 are all two-bit registers which contain 1 bit for each channel. While both bits must be loaded by GP 201, the bit for channel A is actually stored in A 301 and that for channel B in BREG 303. The bit for a given channel is selected by CTLMUX 375. In word/byte register (WB) 529, if the bit for the channel is set to 0, WFUNC 323 performs word operations which emulate byte operations; if it is set to 1, it performs ordinary word operations. In swap register (SW) 531, if a channel's bit is set, SW 321 swaps low and high bytes on words input from IDB 207 to WFUNC 323 for write operations and R 343 and RFZ 345 swap high and low bytes on words output from GCR 365 to IDB 207. In no read register (NR) 533, when the bit for channel is set, a read operation performed by the channel output all l's on IDB ' 207. In word mode 3 register (WM3) 535, if a channel's bit is set, write operations for that channel are performed using a 16-bit mask from IDB 207. Operation of a preferred embodiment of GC 223 will generally be clear from the description of figure 3 and the description of th contents of BREG 303 and their meanings. After processors GP 20 and SCPU 101 have loaded AREG 301 and BREG 303 respectively, GC 223 will respond to signals in EXTCTL 226 specifying a read operation and selecting a channel as specified by RDSEL 521, CC 513, CDC 515, and MODESEL 523 of CSCDS 537 for the selected channel and as further specified by GP 525, SW 531, and NR 533" i CCDS 539. Similarly, GC 223 will respond to signals in EXTCTL 2 specifying a write operation and selecting a channel as specifie by SR 509, ESR 511, BM 517, ROTCTL 519, and MODESEL 523 for the channel and as further specified by GP 525, WB 529, SW 531, and 3 535 in CCDS 539. Where a write operation involves data read from DMEM 217, that data will be taken from RRA 351 or RRB 357 corresponding to the selected channel. Interleaved video operations reading data to DISP 111 will be controlled by DFC and R0 528. 5. Details of Channel Selection in GC 223: Figs. 6 - 8 As previously mentioned, information required to perform operations for a given channel in GC 223 is contained in CSDS 5 for the channel in AREG 301 or BREG 303, in CCDS 539 of BREG 30 in CTLS 313, and in RRA 351 or RRB 357 for the channel. The following discussion will show in detail how the information is selected when an operation is being performed for a given chann Figure 6 is a detail of CTLMUX 375 in a preferred embodiment. CTLMUX 375 has two components: BMMUX 605, which selects BM 517 from either AREG 301 or BREG 303, and CMUX 609, which selects CSCDS 537 and the relevant bit of WB 529, SW 531, NR 533, and W in CCDS 539. from either AREG 301 or BREG 303. Those portions o CCDS 539 which are not channel-specific bypasse CTLMUX 375. BM 605 outputs the selected 8-bit mask to CTLM 377, which provides the mask to WFUNC 323. Selection of BM 517(A) or BM 517(B) is controlled by three signals: CSEL 405, specifying either the A B channel, WM3 603, derived from WM3 535 for the selected chann and WMl 604, derived from MODESEL 523 from the selected channel. As shown in figure 3, WM3 603 and WMl 604 are included on RCTL 6 of ICTL 309 from CMUX 609. A given BM 517 is output to CTLM 37.7 only if GC 233 is in neither write mode 1 nor write mode 3 and t BM 517's channel is specifed by CSEL 405. In the case of CMUX 609, the selection is controlled solely by CSEL 405, which selec the inputs from either AREG 301 or BREG 303. NAND Gate 617 produces NOT WM2 613 from inverted WM3 603 and WM2 613, which is f om MODESEL 523. The effect of the logic is to keep NOT WM2 hi as long as WM3 is high, i.e., to inhibit write mode 2 when write mode 3 applies. Continuing with figure 7, that figure is a detail of control sta (CTLS) 313, which retains per-channel state indicating whether t last operation which read data into RRA 351 or RRB 357 corresponding to the channel was a word read, whether was an odd-even read operation, whether it was a byte read, and if it was, whether it read the low byte or the high byte. The state must be retained to deal with the situation in which a read operation is performed by one channel, loading RRA 351 or RRB 35 for the channel, and then, before a write operation using the re data can be performed, an operation is performed by another channel. When the first channel resumes operation, it uses the state for that channel in CTLS 313 to determine how the data in RRA 351 or RRB 357 for the channel is to be applied in WFUNC 323 CTLS 313 consists of the following components: each channel h set of four registers, ACTLSR 711 for channel A and BCTLSR 713 channel B which contain the state needed to properly read RRA or RRB 357. Loading of the registers is controlled by latch control logic (LCTL) 701. Selection of the contents of the register corresponding to the channel currently controlling GC is performed by ACTLSMUX 723. Output from that MUX is to read register select logic (RRSEL) 735, which generates RDH 737 and 739 in response to the contents of the selected register and W/ 733, which is derived from the value of WB 529 for the controll channel in CCDS 539. RDH 737 and RDL 739 then control whether read register for the channel outputs its entire contents, 16 b containing 2 copies of the high byte from the selected read register, or 16 bits containing 2 copies of the low byte from t selected read register to WFUNC 323. Beginning with ACTLSR 711 and BCTLSR 713, each register contain the values of four signals, three, BLE 715, HLBS 717, and BHE 7 derived from EXTCTL 226, and the fourth, ODEV 721, derived from the odd/even bit in MODESEL 523 for the channel corresponding t the register. The signals have the following significance: BLE 715 and BHE 719: Together, these signals indicate wh data is being provided to WFUNC 323 from the selected rea register. If both are low, the entire contents are to be provided; if BLE only is low, two copies of the low byte are provided; if BHE only is low, two copies of the high byte are provided. ODEV 721: indicates whether an even-odd read is being performed. HLBS 717: indicates in an odd-even read whether the low bytes or the high bytes of the odd or even word are being read. These signals are loaded into ACTLSR 711 or BCTLSR 713 in respon to ACL 707 or BCL 709. Those signals are in turn produced by latch control (LCTL) 701 in response to four other signals in EXTCTL 226. Two of these, CSEL 405 and L/R 403 have already bee described; the other two have the following functions: R/W 703 indicates whether GC 223 is to perform a read or write operation. OE 703 enables data to be latched into AREG 301 and BRE 303 from IDB 207 and into RRA 351 and RRB 357 from PDY 2 and PDZ 235. LCTL 701 responds to these signals to produce ACL 707 when CSEL 405 specifies channel A, R/W 703 indicates a read operation, L/ 403 indicates that GC 223 is being run instead of loaded, and O 705 indicates that data is to be latched into RRA 351 or RRB 35 BCL 709 is produced under the same circumstances when CSEL 405 specifies channel B. Thus, ACTLSR 711 or BCTLSR 713 are loaded each time the channel with which the register is associated performs a read operation on DMEM 117. Selection of the contents of ACTLSR 711 or BCTLSR 713 is perfor by ACTLSMUX 723, which, as shown in figure 7, is in turn controlled by CSEL 405. Thus, when CSEL 405 specifies channel ACTLSMUX 723 selects ACTLSR 711. The selected values, shown in figure 7 as BLΞS 725, HLBSS 727, BHES 729, and ODEVS 731, are provided to RRSEL 735, which also receives W/B 733, derived fro WB 529 for the selected channel. RRSEL 735 in turn controls RD 737 and RDL 739 in response to those signals. In a preferred embodiment, RDL 739 causes MUXes 354 and 356 to output the low byte of the word latched in the selected read register for the plane 237 corresponding to MUX 354 or 356 to .th 8 low lines of RLY 359 or RLZ 361 or the high byte of the word those lines. The former occurs when RDL 739 has the value 1 and the latter when it has the value 0. RDH 737 operates in corresponding fashion to output the high byte to the 8 high line when it has the value 1 and the low byte to the 8 high lines whe it has the value 0. As previously indicated, the other portions of GC 223 which contain channel-dependent information are RRA 351 and RRB 357 of GCRL 365. These registers and the associated logic are shown in figure 8. RRA 351 is associated with the A channel and RRB 357 associated with the B channel. Each register has two 16-bit portions: a Y portion which in a read operation receives the currently-addressed word in the odd plane 237 associated with GC 223 and a Z portion which receives the currently-addressed word the even plane 237. The Y and Z portions are connected to PDY 2 and PDZ 235 respectively. Data is latched into RRA 351 in response to the ACL signal 707 and into RRB 357 in response to B 709. As previously explained, those signals are produced by LCT 701 in response to the CSEL 405, R/W 703, L/R 403, and OE 705 external signals. RRA 351 and RRB 357 output their data to ABMUX(Y) 353 and ABMUX( 355. ABMUX(Y) 353 receives data from the Y portions of both RRA 351 and RRB 357 and ABMUX(Z) 355 receives data from the X porti of these registers. In each case, the data is output as a hig byte and a low byte, shown by the two output paths from each portion. ABMUX(Y) 353 and ABMUX(Z) 355 are controlled by CSEL 405. When CSEL 405 specifies the A channel, both muxes take th input from RRA 351; when CSEL 405 specifies the B channel, both take their input from RRB 357. The outputs from ABMUX(Y) 353 a ABMUX(Z) 355 go to RFY 343 and RFZ 345 and to HLMUX(Y) 354 and HLMUX(Z) 356, which output 16 bits consisting of the entire wor the high byte only, or the low byte only as determined by RDH 7 and RDL 739, as previously described. Output from muxes 354 an 356 is to WFUNC 323 via RLY 359 and RLZ 361. CTLS 313 and HLMUX(Y) 354 and HLMUX(Z) 356 cooperate to provide the proper input from the selected read register to WFUNC 323 a follows: Where the read operation was performed with the odd-even bit in MODESEL 523 for the channel indicating sequential read, HLBS 71 has no effect. When WB 529 indicates byte emulation and BLE 71 and BHE 719 are both low, selecting a word, RRSEL 735 responds the BLES 725, BHES 729, and ODEVS 731 for the channel by settin RDL 739 low and RDH 737 high, resulting in two copies of the hi byte being received by WFUNC 323 for each plane. Where the sam conditions regarding the odd-even bit and WB 529 hold, but BLE only was low, RRSEL sets RDL 739 high and RDH 737 low, resulting in two copies of the low byte being received by WFUNC 323; similarly, if BHE 719 only was low, RRSEL 735 sets RDL 739 low an RDH 737 high, again resulting in two copies of the high byte bei received by WFUNC 323. The fact that two copies of the high byte are received by WFUNC 323 when a word is selected permits WFUNC 323 to emulate byte operations by performing two of the operatio in parallel on a word. Where the above conditions hold, except that WB 529 does not specify byte mode emulation, BLE 715 and BHE 719 both low on the read operation results in RRSEL 735 setting RDL 739 and RDH 737 both to 1, resulting in the entire contents of the selected read register being provided to WFUNC 323. If only BLE 715 is low or only BHE 719, the results are the same as for the case when WB 52 specifies byte emulation. When MODESEL 523 for the channel performing the read indicates a even-odd read, the values of W/B 733, BLES 725, and BHES 729 have no effect on RRSEL 735, and the values of RDH 737 and RDL 739 ar determined solely by HLBSS 727. When HLBSS 737 selects the low byte, RDL 739 is high and RDH 737 is low, resulting in WFUNC 323 receiving two copies of the low byte of the read register for th channel performing the read. When HLBSS 737 selects the high byte, RDL 739 and RDH 737 have the opposite values, resulting in WFUNC 323 receiving two copies of the high byte. 6. Detail of WFUNC 323: Figs. 9 and 10 As discussed previously in overview, WFUNC 323 produces the data written to the planes of 237 of DMEM 117 associated with GC 223. As shown in figure 9, in a preferred embodiment, WFUNC 323 has as its components MMUX 901 and two identical sets of components for each plane, bitmux (BMUX) 909 and plane WFUNC (PWFUNC) 913. Of those, figure 9 shows only BMUX 909 and PWFUNC 913 for plane 237(Y) . Each PWFUNC 913 contains four write processing components (WPR) 905, each of which receives 4 bits of input from RLY 359 and RDATA 332, 4 mask bits from MSK 903, and a single bit input from BIT 911 and processes four bits of the 16-bit word being output to plane 237 via PDY 233. Control of WPR 905 is by means of signals in WCTL 907. Mask mux (MMUX) 901 selects the mask used to mask the data produce by WFUNC 323. Mask sources are CTLM 377, carrying BM 517 for the selected channel 901 or IDB 207, carrying 16 mask bits input by th processor controlling GA 121. Selection is made according to WM3 signal 603, whose value depends on the value of the bit in WM3 535 corresponding to the selected channel. If the bit is high, MMUX selects 16 mask bits from IDB 207; otherwise, it selects the mask byte on CTLM 377. In the latter case, MMUX 901 makes the 16 bit mask is made by selecting the mask byte for CTLM 377 for both the high and low bytes, permitting emulation of byte mode operations on words. Output to the WPRs 905 is via MSK 903. Ea of the WPRs 905 receives 4 bits of the mask. Bit MUX (BMUX) 909(Y) selects the source of a single bit whose value is used in write modes 0 and 2 to form the entire word bei written to plane 237(Y) . In write mode 0, the source is SR 509 for the selected plane. In write mode 2, the source is PDL 383. The value of the bit output by PDL 383 in write mode 2 depends o a bit pattern in the low byte of IDB 207. If the bit pattern ha a 1 in the bit position corresponding to a plane, words in the corresponding plane 237 are to be written with all 1 bits. If i has an 0 in that bit position, the words are to be written with all 0 bits. Logic in PDL 383 provides the proper bit value for the plane on PB 381. Selection is controlled by NOT WM2 signal 915, which is derived from MODESEL 523 and which selects PB 381 write mode 2 and otherwise CTLD 379. Output to WPRs 905 is via B 911. Continuing with figure 10, that figure is a detail of a single W 905 in PWFUNC 913(Y). Control signals in the following discussi are all from WCTL 907. Beginning with WDMUX 1001, that mux selects as its output either the 4 bits WPR 905 receives from RDATA 332 or 4 bits which are set to the value received on BIT 911. Control is via WM2 1011, which is derived from MODESEL 523 for the selected channel and which selects BIT 911 when MODESE specifies write mode 2. ANDL 1003 and ORL 1005 are controlled the two function select bits in ROTCTL 519 for the selected channel. The four possibilities are passing the data from WDM 1001 through unchanged, ANDing it with the data on RLY 359, OR it with that data, and XORing it with that data. The result of the selected operation is output via bus 1013. MASKL 1007, finally, masks the 4 bits being output with the 4 bits receive MSK 903. If a bit position in MSK 903 has the value 0, the corresponding bit from RLY 359 is selected; if it has the value the corresponding bit from bus 1013 is selected. The result of the masking is then output to PDY 233. 7. Byte Mode Emulation in GC 223: Fig. 11 As previously indicated, the EGA reads and writes bytes to and from DMEM 117; GC 223 in a preferred embodiment permits GA 121 emulate the EGA by writing bytes to DMEM 117. Additionally, GC 223 permits GA 121 to write words to DMEM 117 and to write word while emulating byte writes. Figure 11 is a conceptual block diagram of those aspects of GC 223 which permit byte writes, wo writes, and word writes which emulate byte writes. Figure 11 shows those aspects only with regard to a single channel and a single plane; it should be remembered that in a preferred embodiment of GC 113, either channel may write to either or both planes. The two major components of figure 11 are CTLL 369 and DDP 401, both of which already have been explained in detail. Only those portions of these components are shown in figure 11 which are necessary for understanding word and byte writes. In CTLL 369 there is CDS 115 for the channel in question. In CDS 115, only two values are of interest in the present context: ODEV 1111, a bit in MODESEL 523 for the channel, which indicates whether GC 2 is to provided data from DMEM 117 to WFUNC 323 sequentially or i even-odd mode, and WB 529, which indicates whether GC 223 is doi word writes which emulate byte writes. Byte state (BS) 1101 preserves the control signals specified during a read operation for use in determining how data is to be output from the read register to WFUNC 323. In a preferred embodiment, BS 1101 receives the external signals BHE 719, BLE 715, and HLBS 717, as well as the current value of ODEV ill. The signals are latched into BS 1101 in response to R/W 703 specifying a write operation and OE 705 indicating that data is to be latched into the read register. BS 1101 in a preferred embodiment is implemented in LCTL 701 and one of ACTLSR 711 or BCTLR 713 as required for the channel. Output from BS 1101 is to RRSEL 735, which controls RD 739 and RDH 737 as previously described. The use of BS 1101 in preferred embodiment has two advantages: it permits multi-channe operation, as previously described, and it increases speed of . operation of WFUNC 323 by permitting WFUNC 323 to receive data from RR 1107 without waiting for the state of EXTCTL 226 to se In DDP 401, again, only those components relevant to word and b writing are shown. In GCRL 365, those components are RR 1107, which is the read register for the plane and channel, and HLMUX 1105, which is the byte selection mux for RR 107. L and H in R 1107 indicate the low and high bytes respectively. - RR 1107 receives 16 bits of input from DMEM 117 and provides it to HLMU 1105, which then provides 16 bits of output to WFUNC 323. RR 1 and HLMUX 1105 are implemented in a preferred embodiment by the portion of RRA 351 or RRB 357 for one plane and HLMUX 354 or HL 356 for that plane. As indicated in the discussion of those components, the 16 bits output to WFUNC 323 may be both the low and high bytes from RR 107, 2 copies of the low byte, or two copies of the high byte, as determined by the values of RDL 739 and RDH 737. When GC 223 is operating in byte mode, it may write to DMEM 117 either sequentially or in even-odd mode, as determined by ODEV 1111. When GC 223 operates sequentially in byte mode, one of B 715 and BHE 719 is high during the read operation and the other low. The signal that is low determines which byte in RR 1107 i used in WFUNC 323 to process the byte which is written to DMEM 117. If BLE 715 is low and BHE 719 is high, the low byte is use if the reverse is true, the high byte is used* In either case, HLMUX 1106 outputs 16 bits consisting of two copies of the selected byte to WFUNC 323, which uses the 16 bits to process th 16 bit output which it provides to PD 1109. The address provide to DMEM 117 for the write operation then determines which byte provided to PD 1109 is actually written to DMEM 117. When GC 223 operates in even-odd mode, it only performs byte operations. In that mode, HLBS 717 is low when the even byte is being read and high when the odd byte is being read. Output fro HLMUX 1105 to WFUNC 323 for each plane 237 when HLBS 717 is low two copies of the low byte in RR 1107; when HLBS 717 is high, th output is two copies of the high byte in RR 1107. Again, WFUNC 323 uses the output from HLMUX 1105 to process the 16 bit output which it provides to PD 1109 and the address provided to DMEM 11 for the write operation determines which byte on PD 1109 is written to DMEM 117. GC 223 operates in word mode when ODEV llll indicates sequential addressing and BLE 715 and BHE 719 are both low. ' If WB 529 indicates that there is no byte mode emulation going on, RRSEL 7 sets RDH 737 and RDL 739 so that WFUNC 323 receives the entire 1 bits contained in RR 1107. WFUNC 323 then uses the entire 16 bi in processing its output to PD 1109, and if the address provided to DMEM 117 specifies an entire word, all 16 bits on PD 1109 ar written to DMEM 117. If WB 529 indicates byte mode emulation, then RRSEL 735 sets RDH 737 and RDL 739 so that WFUNC 323 recei two copies of the high byte contained in RR 1107. WFUNC 323 ca thus use the high byte to process two bytes in parallel. The results of the processing are output to PD 1109 and written to DMEM 117 as just described. Since the bytes can be processed i parallel, GC 223 can perform certain byte operations twice as f as a graphics controller without byte mode emulation in word mode. 8. Implementation of a Preferred Embodiment of GC 223 The preferred embodiment of GC 223 as described herein is implemented in a custom CMOS gate array manufactured by LSI Log Corporation. Components of GC 223 are made of macrocell elemen as described in CMOS Macrocell Manual, September 1984, LSI Logi Corporation, 1984. For example, the registers of AREG 301 and BREG 303 are made using D latch microcell elements of the type FD4S, while BMMUX 605 is made using macrocell elements of the t A02, in which the outputs of two AND gates serve as the inputs t a NOR gate. Other logic components of GC 223 as described herei may be readily made by one skilled in the art using the macrocel elements described in the above reference or other logic elements. 9. Conclusion The foregoing Description of a Preferred Embodiment has disclose how one skilled in the art may construct and use a graphics adapter having a plurality of channels and a graphics controller which may be emplyed in such a graphics adapter and which furthe operates in either word or byte mode and permits use of a word input as data to mask a value written to the display memory. While the embodiment disclosed herein is the best mode presently known to the inventor, other embodiments are possible. For example, the graphics adapter may be implemented on more than on card or may be implemented in an integrated circuit, and the graphics controller may be implemented in discrete logic or more than one controller may be implemented in a single integrated circuit. Moreover, the- graphics adapter and graphics contr.oller may permit use of more channels than in the preferred embodiment and may perform different operations from those described herein. Thus, the preferred embodiment described herein is to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claim rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims a intended to be embraced therein.

Claims: 49 What is claimed is: 1) In graphics control apparatus for use in a graphics adapt the graphics control apparatus being of the type wher operations of the graphics control apparatus are cont at least in part by control data stored therein, the improvement comprising: means for retaining a plurality of sets of control data and control data selection means for selecting one of the sets o control data for control of operations of the graphic control apparatus. 2) In the graphics control apparatus of claim l and wherein: the control data means selects one of the sets of control da response to an external control data selection signal. 3) In the graphics control apparatus of claim 1 and wherein: the means for retaining a plurality of sets of control data is loadable; and the graphics control apparatus further includes loading means for receiving control data for loading; and selection means for selecting one of the sets of control data to be loaded with the received control data. 4) In the graphics controller of claim 3 and wherein: the loading means is responsive to an external load signal; and the selection means is responsive to an external control data selection signal. 5) In the graphics control apparatus of claim 3 and wherein: the loading means receives the control data for loading from a source external to the graphics control apparatus. 6) In the graphics control apparatus of claim 1 and wherein: the graphics control apparatus includes a set of control state for further controlling the graphic control apparatus associated with each of the sets o control data and means responsive to a first certain operation for setting the control state associated with the control data controlling the certain operation as required by the operation; and the control data selection means responds to a second certain operation by selecting the control state associated with the selected control data. 7) In the graphics control apparatus of claim 6 and wherein: the graphics control apparatus includes a display memory for storing display data to be displayed on a graphics display; the first certain operation is a read operation reading display data from the display memory; and the control state associated with a set of control data includes the last display data read from the display memory by the read operation performed under control of the set of control data with which the control state is associated. 8) In the graphics control apparatus of claim 7 and wherein: the read operation includes a plurality of types of read operations; and the control state further includes read operation type state indicating the type of read operation performed on the last display data read operation performed under control of the set of control data with which the control state is associated. 9) In the graphics control apparatus of claim 8 and wherein: the second certain operation is a write operation for producing display data to be written to the display memory. 10) In graphics control apparatus for use with a display memory permitting addressing of a single byte of n bits or a plurality of n-bit bytes, means for producing an m-bit result word where m/n is an integer for output to the display memory comprising: read data receiving means connected to the display means for receiving an m-bit word from the display means; selection means connected to the read data receiving means for selecting an n-bit byte from the received word and outputting an m-bit output word consisting of copies of th selected byte; and write data processing means connected to the selection means and the display memory for receiving the output word, producin the result word therewith, and outputting the result word to the display memory. 11) The means for producing a word of claim 10 and further comprising: signal receiving means connected to the selection means for receiving a byte selection signal and controlling output of the selection means in response thereto. 12) The means for producing a word of claim 11 and wherein: the signal receiving means includes signal retention means for retaining a byte selection signal received when the read data receiving means receives the received word and means for controlling output of the selection means in response to the retained byte selection signal. 13) The means for producing a word of claim 11 and wherein: the byte selection signal is produced externally to the graphics control apparatus. 14) The means for processsing a word of claim 11 and wherein: the graphics control apparatus further includes loadable control data including byte selection control data; and the byte selection signal is produced in response to the byte selection control data. 15) The means for producing a word of claim 11 and wherein: there are a plurality of byte selection signals including a word signal specifying all of the bytes in the received word; and a byte mode emulation signal specifying that all of the bytes in the result word are to be processed using single byte of the received word; and the signal receiving means responds to the word signal and to th byte mode emulation signal by controlling the selection means to produce an output word consisting of copies of t single byte. 16) The means for producing a word of claim 15 and wherein: the graphics control apparatus further includes loadable contr data including byte mode emulation control data; and the byte mode emulation signal is produced in response to the bye mode emulation control data. 17) In graphics control apparatus which is used with a display memory and processes m-bit words for output to the disp memory, means for emulating the processing of n-bit bytes for output t the display memory where m/n is an integer, the emulation means comprising: read data receiving means connected to the display means for receiving an m-bit word from the display means; selection means connected to the read data receiving means for selecting a byte from the received word and outputting a m-bit output word consisting of copies of the selected byte; and write data processing means connected to the selection means an the display memory for receiving the output word, produc an entire m-bit result word therewith, and outputting th result word to the display memory, whereby the result word is processed in the same fashion as a sequence of n-bit bytes. 18) In the emulation means of claim 17 and wherein: the selection means selects the most significant byte, 19) In the emulation means of claim 17 and further comprising: selection control means connected to the selection means and responsive to a byte mode emulation signal for causing th selection means to select the single byte in response to the byte mode emulation signal. 20) In the emulation means of claim 17 and wherein: the graphics control apparatus further includes loadable control data including byte mode emulation control data and the byte mode emulation signal is produced from the emulation control data. 21) In graphics control apparatus for use with display memory an having an external data input for receiving external data, apparatus for providing output display data to the display memor comprising: (1) internal data generation means for generating internal data, (2) display data input means for receiving input display data fr the display memory, and (3) mask logic connected to the external data input, the inter data generation means, and the display data input means using the external data as a mask for producing the out display data by selecting bits from the internal data generation means and the display data input means. 22) In the output display data providing apparatus of claim 21 wherein: the apparatus further includes means for retaining control dat including a control mask and a write with external mask indicator; and the mask logic includes means connected to the means for retain control data and responsive to the write with external m indicator for using the external data input as the mask when the write with external mask indicator so indicates and otherwise using the control mask therefor. 23) In the output display data providing apparatus of claim 22 wherein: the external data input means and the display data input means, receive words containg m bits; the control mask contains n bits, where m/n is an integer; and the mask logic further includes means for replicating the contro mask (n/m) times in order to produce the mask when the control mask is used therefor. 24) In a graphics adapter of the type wherein operation of the graphics adapter is controlled at least in part by contro data stored therein, the improvement comprising: means for retaining a plurality of sets of control data and control data selection means for selecting one of the sets of control data to control operation of the graphics adapter 25) In the graphics adapter of claim 24 and wherein: the means for retaining a plurality of sets of control data is loadable; and the graphics adapter further includes loading means for receiving control data for loading; and selection means for selecting one of the sets of control data to be loaded with the received control data. 26) In the graphics adapter of claim 25 and wherein: the loading means receives the control data for loading from a source external to the graphics adapter. 27) In the graphics adapter of claim 26 and wherein: the source external to the graphics adapter is an external processor associated with the graphics adapter. 28) In the graphics adapter of claim 24 and wherein: the graphics adapter includes a set of control state for further controlling the grap adapter associated with each of the sets of contr data and means responsive to a first certain operation for setti the control state associated with the control data controlling the certain operation as required by t operation; and the control data selection means responds to a second certain operation by selecting the control state associated with the selected control data. 29) In the graphics adapter of claim 28 and wherein: the graphics adapter includes a display memory for storing disp data to be displayed on a graphics display; the first certain operation is a read operation reading display data from the display memory; and the control state associated with a set of control data includes the last display data read from the display memory by the read operation performed under control of the set of control data with which the control state is associated. 30) In the graphics adapter of claim 29 and wherein: the read operation includes a plurality of types of read operations; and the control state further includes read operation type state indicating the type of read operation performed on the la display data read operation performed under control of th set of control data with which the control state is associated. 31) In the graphics adapter of claim 30 and wherein: the second certain operation is a write operation for producing display data to be written to the display memory. 32) In the graphics adapter of claim 24 and wherein: the graphics adapter further includes an internal processor; the internal processor is associated with a set of control dat the plurality of sets of control data; and the control data selection means responds to the internal processor to select the set of control data associated therewith. 33) In the graphics adapter of claim 32 and wherein: the means for retaining a plurality of sets of control data is loadable; and the graphics adapter further includes loading means responsive the internal processor for receiving control data for loading and loading the received control data into the s of control data associated with the internal processor. 34) In the graphics adapter. of claim 32 and wherein: the graphics adapter is associated with an external processor; a set of control data other than that associated with the inter processor is associated with the external processor; and the control data selection means responds to the external processor to select the set of control data associated therewith. 35) In the graphics adapter of claim 34 and wherein: the graphics adapter includes means by which the external processor provides instructions to the internal processor the internal processor responds to the instructions by employing the set of control data associated with the internal processor to control the graphics adapter; and the external processor further controls the graphics adapter at times other than when the internal processor is in contro thereof by employing the set of control data associated with the external processor to control the graphics adapter. 36) In the graphics adapter of claim 35 and wherein: the instructions to which the internal processor responds descri vector graphics operations; and the external processor performs bit-map graphics operations when the external processor is in control of the graphics adapter. 37) In the graphics adapter of claim 34 and wherein: the means for retaining a plurality of sets of control data i loadable; and the graphics adapter further includes loading means responsiv the internal processor and to the external processor f receiving first control data for loading from the inte processor and loading the first control data into the of control data associated with the internal processor receiving second control data for loading from the ext processor and loading the second control data into the of control data associated with the external processor

Inventors: LESSARD PAUL A, MCDONALD JOHN F, WANG LABORATORIES INC, LESSARD, PAUL, A., MCDONALD, JOHN, F., WANG LABORATORIES, INC.
Applicants: WANG LABORATORIES, WANG LABORATORIES, INC.
Application year: 1987
Main classification: G06F3
IPC codes: G06F3, G06T11, G09G3, G09G5