GB2246935A - An apparatus for the control of an access to a video memory - Google Patents

An apparatus for the control of an access to a video memory Download PDF

Info

Publication number
GB2246935A
GB2246935A GB9118787A GB9118787A GB2246935A GB 2246935 A GB2246935 A GB 2246935A GB 9118787 A GB9118787 A GB 9118787A GB 9118787 A GB9118787 A GB 9118787A GB 2246935 A GB2246935 A GB 2246935A
Authority
GB
United Kingdom
Prior art keywords
data
vram
sprite
register
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
GB9118787A
Other versions
GB2246935B (en
GB9118787D0 (en
Inventor
Kimio Yamamura
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hudson Soft Co Ltd
Original Assignee
Hudson Soft Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP62235483A external-priority patent/JP2610275B2/en
Application filed by Hudson Soft Co Ltd filed Critical Hudson Soft Co Ltd
Priority to GB9118787A priority Critical patent/GB2246935B/en
Publication of GB9118787D0 publication Critical patent/GB9118787D0/en
Publication of GB2246935A publication Critical patent/GB2246935A/en
Application granted granted Critical
Publication of GB2246935B publication Critical patent/GB2246935B/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/001Arbitration of resources in a display system, e.g. control of access to frame buffer by video controller and/or main processor
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • G09G5/024Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed using colour registers, e.g. to control background, foreground, surface filling
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/391Resolution modifying circuits, e.g. variable screen formats
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/40Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which both a pattern determined by character code and another pattern are displayed simultaneously, or either pattern is displayed selectively, e.g. with character code memory and APA, i.e. all-points-addressable, memory
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory

Abstract

Apparatus for the control of access to a video memory 7 comprises a memory width register (in control unit 20) storing display dot width data (in bits 0 and 1). Access timing is determined by this data, to allow for different display resolutions. Therefore, access timing is easily controlled, dependent on the memory speed of the video memory and resolutions by merely changing said content of the memory width register. When the video memory 7 is accessed (CPU -> VRAM) during a display cycle of the video memory, video data may be stored (WAIT) in a buffer memory 22, and transferred (VRAM WR or VRAM RD) from the buffer memory after the display cycle is finished. <IMAGE>

Description

AN APPARATUS FOR THE COO; O OF AN ACCESS TO A VIDEO MEMORY FIELD OF THE INVENTION The invention relates to an apparatus for the control of an access to a video memory, and more particularly to an apparatus for the control of an access to a video memory in which a dot width is controlled at the time of an access to a video memory and/or aiming of a data transfer is controlled during a display cycle of a video memory.
BACKGROUND OF THE INVENTION There has been used an apparatus for the control of an access to a video memory in which an access is allocated from a CPU to a video memory during the first half of four bits in a horizontal one character cycle of eight bits, and an access is allocated to a character generator of the video memory during the latter half of four bits therein. In the apparatus for the control of an access to a video memory, flickers are prevented from being occured on a screen because the writing and reading of data which are performed from the CPU to the video memory and the access to the character generator of the video memory are divided sequentially.
According to the apparatus for the control of an access to a video memory, however, there is a disadvantage that an access of the video memory can not be controlled in its timing because the access timing is fixed as mentioned before. In a personal computer in which a processing time is widely varIed, for instance, from 40 ns to 139 ns dependent on a resolution of the screen, therefore, a property of the video memory is not sufficiently utilized even if the video memory is a high speed memory. On the other hand, a low speed memory can not be used in an apparatus in which a high speed memory is not required in view of a specified characteristic in a case where an access timing is fixed in a high speed mode.
There is a further disadvantage that a throughput of the CPU is decreased because the CPU has to wait the writing of data into the video memory and reading of data therefrom during a display cycle of the video memory, although flickers are prevented from being occured on the screen.
SU'A#iARY OF THE INVENTION Accordingly, it is an object of the invention to provide an apparatus for the control of an access to a video memory in which an access to a video memory can be easily controlled in its timing dependent on a speed of a video memory.
It is another object of the invention to provide an apparatus for the control of an access to a video memory in which a throughput of a CPU is improved.
According to the invention, an apparatus for the control of an access to a video memory comprises, means for addressing a video memory at a predetermined timing, buffer means for storing video data which are written into said video memory and read from said video memory, and means for controlling said buffer means to store said video data, wherein said video data are stored in said buffer means when said video memory is addressed during a display cycle of said video memory, and transferred from said buffer when said display cycle of said video memory is finished.
BRIEF DESCRIPTION OF THE DRAWINGS The invention will be explained in detail in conjunction with drawings wherein, Fig. l is a block diagram showing an apparatus for displaying an image on a screen in which an apparatus for the control of an access to a video memory according to the invention is included, Fig. 2A is a block diagram showing a video display controller for the control of writing video signals into a VRAM and reading video signals therefrom, Fig. 2B is a block diagram showing an apparatus for displaying a sprite on a screen in the apparatus of Fig. 1, Figs. 3A to 3U are explanatory diagrams showing registers included in a control unit of the video display controller in Fig. 2A, Fig. 4A is an explanatory diagram showing a fictitious screen in the apparatus of Fig. 1, Fig. 4B is an explanatory diagram showing a display region on a screen in the apparatus of Fig. 1, Figs. SA and 5B are explanatory-diagrams showing a background attribute table in the VRAM in the apparatus of Fig. 1, Figs. 6A and 6B are explanatory diagrams showing a sprite attribute table in the VRAM in the apparatus of Fig. 1, Fig. 7 is an explanatory diagram explaining an operation in which a sprite is moved on a screen in the apparatus of Fig. 1, Fig. 8 is an explanatory diagram explaining an operation in which a plurality of facets are combined to provide a sprite in the apparatus of Fig.
1, Fig. 9 is an explanatory diagram showing a sprite generator in the apparatus of Fig. 1, Figs. 10A to 10E are explanatory diagrams showing an operation in which a size of a sprite is enlarged in the apparatus of Fig. 1, Fig. 11A is a block diagram showing an apparatus for the control of an access to a video memory in an embodiment according to the invention, Fig. 11B is an explanatory diagram showing a character generator in the apparatus of Fig. 11A, and Figs. 12 and 13 are timing charts shoving operations in the apparatus of Fig. 11A and a conventional apparatus for the control of an access to a video memory respectively.
DESCRIPTION OF PREFERRED EMBODIMENTS In Fig. 1, there is shown an apparatus for displaying an image on a screen which is mainly composed of a video display controller 1, a CPU 2, a video color encoder 3, and a programable sound generator 4. The video display controller 1 supplies the video color encoder 3 with image data for a story which are read from a VRAM 7 under the control of the CPU 2 reading a program stored in a ROM 5. The C#PU 2 controls a RAM 6 to store data, calculation or arithmetical results etc. temporarily in accordance with a program stored in the ROM 5. The video color encoder 3 is supplied with image data to produce RGB analog signals or video color signals including luminance signals and color difference signals to which the RGB signals are matrix-converted by using color data stored therein.The programable sound generator 4 is controlled by the CPU 2 reading a program stored in the ROM 5 to produce audio signals making left and right stereo sounds. The video color signals produced at the video color encoder 3 are of composite signals supplied through an interface 8 to a television set 9, while the RGB analog signals are directly supplied to a CRT of the television set 9 which is used as an exclusive monitor apparatus. The left and right analog signals supplied from the programable sound generator 4 are amplified at amplifiers lla and llb to make sounds at speakers 12a and 12b.
In Fig. 2A, there is shown the video display controller 1 transferring data between the CPU 2 and VRAM 7 which comprises a control unit 20 including various kinds of registers to be described later, an address unit 21, a CPU read/write buffer 22, and sprite shift register 24, a background shift register 25, a data bus buffer 26, a synchronic circuit 27, and a priority circuit 28.
The control unit 20 is provided with a BUSY terminal being "L" to keep the CPU 2 writing data into the VRAM 7 or reading data therefrom in a case where the video display controller 1 is not in time for the writing or reading of the date, an IRQ terminal supplying an interruption request signal, a CK terminal receiving a clock signal of a frequency for one dot (one picture element), a RESET terminal receiving a reset signal for initializing the video display controller 1, and an EX 8/16 terminal receiving a data bus width signal for selecting one of 8 and 16 bit data buses.
The address unit 21 is connected to terminals MAO to MAIS supplying address Fignals for the VRAM 7 which has, for instance, a special address region of 65,536 words. The address unit 21, CPU read/write buffer 22, sprite attribute table 23, sprite shift register 24, and background shift register 25 are connected to terminals MD 0 to Mud 15 through which data are transferred to and from the VRAM 7.
The sprite attribute table buffer 23 is a memory for storing X and Y display positions, pattern codes and control data of sprites each composed of 16x16 dots as described in more detail later.
The sprite shift register 24 stores pattern and color data of a sprite read from a sprite generator in the VRAM 7 which is accessed in accordance with the pattern codes stored in the sprite attribute table 23 as described in more detail later.
The background shift register 25 stores pattern data, along with CG color, read from a character generator in the VRAM 7 in accordance with an address based on a character code of a background attribute table in the VRAM 7 which is accessed in an address decided by a raster position as also described in more detail later.
The data bus buffer 26 is connected to terminals DO to D15 through which data are supplied and received.
In the video display controller 1, 8 or 16 bit interface is selected to comply with a data width of a system including the CPU2 wherein the terminals DO to D7 among the terminals DO to D15 are occupied when the 8 bit interface is selected.
The synchronic circuit 27 is connected to a DISP terminal indicating a display period, a VSYNC terminal from which a vertical synchronous signal for a CRT screen is supplied and in which an external vertical synchronous signal is received, and a HSYNC terminal from which a horizontal synchronous signal for a CRT screen is supplied and in which an external horizontal synchronous signal is received.
The priority circuit 28 is connected to terminals VD0 to VD7 through which video signals are supplied, and a SPBG (VD8) terminal being "H" when the video signals are of a sprite and being "L" when the video signals are of a background.
The aforementioned control unit 20 is also connected to a CS terminal being "L" wherein the CPU 2 is able to read data from registers therein and sprite data thereinto, a RD terminal receiving a clock signal for the reading thereof, a WR terminal receiving a clock signal for the writing thereof, and terminals A0 and Al which are connected to address bus of the CPU 2.
Further, the video display controller 1 is provided with a MRD terminal being "L" when the CPU 2 reads data from the VRAM 7, and a MWR terminal being "L" when the CPU 2 writes data into the VRAM 7.
In Fig. 2B, there is shown an apparatus for displaying a sprite on a screen which is included in the apparatus of Fig. 1 wherein the reference numerals 31 and 32 indicate a sprite attribute table and sprite generator in the VRAM 7 respectively. The sprite attribute table 31 can include, for instance, sixtyfour sprites, while the sprite generator 32 can include, for instance, one thousand and twenty-four sprites. In the sprite attribute table 31, addresses of 0 to 63 are assigned to the sixty-four sprites to give a priority thereto in the order of the address 0 > 1 > ----- > 62 > 63. Each of the sprites is composed of 16x16 bits, and includes X and Y coordinates, pattern codes and control data.As to each of the sprites, the Y coordinate is compared with a raster signal supplied from a scanning raster producing circuit 33 in a coincidence detection circuit 34 whereby sprites each having a Y coordinate coincident with a raster signal are stored into a pattern code buffer 35 which can store a maximum number of sixteen sprites by referring to a corresponding one of the addresses 0 to 63. A selector 36 selects a pattern code of the sprite attribute table 31 in accordance with an address stored in the pattern code buffer 35 to access the sprite generator 32 in regard to an address which is of a selected pattern code, thereby reading pattern data from the sprite generator 32. The pattern data thus obtained are stored into a pattern data buffer 37 along with an X coordinate corresponding thereto read from the sprite attribute table 31.The storing of sprites into the pattern code buffer 35 is performed at a horizontal display period preceding to the present horizontal display period by one scanning raster, while the storing of pattern data into the pattern data buffer 37 is performed at a following horizontal retrace period. When a scanning raster at which pattern data are displayed has come, the X coordinate thus stored in the pattern data buffer 37 is compared with a counted value of a horizontal dot clock counter 38 in a coincidence detection circuit 39 whereby pattern data having an X coordinate coincident with the counted value are supplied to a parallel/serial c-onverting circuit 40. In the parallel/serial converting circuit 40, parallel pattern data are converted into serial pattern data which are supplied through a gate circuit 42 to a CRT screen 9.The gate circuit 42 is controlled to be turned on and off in accordance with a content of a starting coordinates registration circuit 43 by the CPU 2. The content thereof is X and Y coordinates by which the starting coordinates of a display region is defined on a display screen.
In Figs. 3A to 3U, there are shown various kinds of registers included in the control unit 20 of the video display controller 1.
(a) Address register (Fig. 3A) A register number "AR" is exclusively written into the address register for designating one of memory address write register to DMA VRAM-SATB source address register as shown Figs. 3C to 3U so that data are written into the designated register or read therefrom. The address register is selected when a signal is written into the video display controller 1 under the condition that the Al and CS terminals thereof are "L".
In a case where 16 bit data bus is selected, the EX 8/16 terminal is "0", the Al terminal is "0", the R/W terminal is W, and the A0 terminal is no matter.
In a case where 8 bit data bus is selected, the EX 8/16 terminal is "1", the A0 and Al terminals are "0", and the R/w terminal is W.
(b) Status register (Fig. 3B) A bit corresponding to one of interruption jobs is set to be "H" in the status register to make the interruption active when a cause of the interruption which is enabled by an interruption permission bit of a control register and DMA control register as shown in Figs. 3G and 3Q is occured. When the status is read from the status register, the corresponding bit is cleared automatically. The status indicating bits are as follows.
(1) bit 0 (CR) ----- collision of sprites It is indicated that the sprite number 0 of a sprite is collided with any one of the sprite numbers 1 to 63 of sprites.
(2) bit 1 (OR) ----- more sprites than a predetermined number (2.1)a case where more than 17 sprites are detected on a single raster line.
(2.2) a case where data of a sprite which is designated are not transferred to a data buffer in a horizontal retrace period.
(2.3) a case where a bit of CGX in control data of a sprite by which two sprites are jointed in a horizontal direction is set so that data of the sprites are not transferred to a data buffer.
(3) bit 2 (RR) ----- detection of raster It is indicated that a value of a raster counter becomes a predetermined value of a raster detecting register.
(4) bit 3 (DS) ----- finishing of DMA transfer It is indicated that data transfer between the VRAM 7 and sprite attribute table buffer 23 is finished.
(5) bit 4 (DV) ----- finishing of DMA transfer It is indicated that data transfer between two regions of the VRAM 7 is finished.
(6) bit 5 (VD) ----- vertical retrace period It is indicated that the VRAM 7 is accessed for the writing or reading of date by the CPU 2 so that the BUSY terminal is "O " .
(c) Memory address write register (register number "00", Fig. 3C) A starting address "MAWR" is written into the memory address write register so that the writing of data begins at the starting address of the VRAM 7.
(d) Memory address read register (register number "01", Fig. 3D) A starting address "MARR" is written into the memory address read register. When the upper byte of the starting address is written thereinto, data are begun to be read from the starting address of the VRAM 7 so that data thus read are written into a VRAM data read register as shown in Fig. 3F.
Thereafter, the starting address "MARR" is automatically incremented by one.
(e) VRAM data write register(register number "02", Fig. 3ffi) Data which are transferred from the CPU 2 to the VRAM 7 are written into the VRAM data write register. When the upper byte of the data "VWR" is written there into, the video display controller 1 begins to write the data into the VRAM 7 and the address "MAWR" of the memory address write register is automatically incremented by one upon the writing of the data.
(f) VRAM data read register(register number "02", Fig. 3F) Data which are transferred from the VRAM 7 to the CPU 2 are written into the VRAM data read register. When the upper byte of the data "VRR" is read therefrom, the reading of data is performed at the following address of the VRAM 7.
(g) Control register (register number "05", Fig.
3G) An operating mode of the video display controller 1 is controlled in accordance with the following bits of the control register.
(1) bits 0 to 3 (IE) - - enable of interruption request (1.1) bit 0 ----- collision detection of sprites (1.2) bit 1 ----- excess number detection of sprites (1.3) bit 2 ----- raster detection (1.4) bit 3 ----- detection of vertical retrace period (2) bits 4 and 5 (EX) ----- external synchronism
bit content 5 4 0 O 0 VSYNC and IISYNC are inputs, and synchronous to external signals VSYNC is an input, and sychronous 0 1 to external signals, while HSYNC is an output 1 0 non-used 1 1 VSYNC and IISYNC are outputs (3) bit 6 (SB) ----- sprite blanking It is decided whether a sprite should be displayed on a screen or not. The control of the bit is effective in the following horizontal display period.
(3.1) "0" ----- blanking of a sprite (3.2) "1" ----- display of a sprite (4) bit 7 (BB) ----- background blanking It is decided whether background should be displayed on a screen or not. The control of the bit is effective in the following horizontal display period.
(4.1) "0" - - blanking of background (4.2) "1" ----- display display of background As a result, when the bits 6 and 7 are both "0" , there is resulted in "burst mode" in which the following operations can be performed.
(3.4.1) The access to the VRAM 7 is not performed for a display, but the VRAM 7 is accessed by the CPU 2.
(3.4.2) DMA between two regions of the VRAM 7 is possible to be performed at any time.
In such an occasion, the terminals VD0 to VD 7 are all "L", while the SPBG terminal is "Ei".
On the other hand, when the bits 6 and 7 are both "1", there is released from the "burst mode".
(5) bits 8 and 9 (TE) ----- selection of DISP terminal outputs
bit DISP output Content 98 DISP DISP output "II" during display O 1 BURST color burst inserting position is indicated by output "L" I O INTHSYNC internal horizontal synchronous signal ~ 1 ~ non-used (6) bit 10 (DR) ----- dynamic RAM refresh Refresh address is supplied from the terminals MAO to MAIS upon the setting of the bit in a case where a 'TRAM dot width is of 2 dots or 4 dots for background in a memory width register as shown in Fig. 3K.
(7) bits 11 and 12 (IW) - increment width selection of the memory address write register or memory address read register A width which is incremented in address is selected as follows.
bit increment width 12 11 O 0 ii 0 1 42011 1 0 4011 1 1 1 +8011 In a case of 8 bit access, an address is incremented upon the access of the upper byte.
(h) Raster detecting register (register number "06", Fig. 3H) A raster number "RCR" at which an interruption job is performed is written into the raster detecting register. An interruption signal is produced when a value of a raster counter is equal to the raster number "RCR".
The raster counter is preset to be 11641( at a preceding scanning raster line to a display starting raster line as described in more detail later, and is increased at each raster line by one.
(i) BGX scroll register (register number "07", Fig. 31) The BGX scroll register is used for a horizontal scroll of background on a screen.
When a content < 'BXR" is re-written therein, the content is effective in the following raster line.
(j) BGY scroll register (register number "08", Fig. 3J) The BGY scroll register is used for a vertical scroll of background on a screen. When a content "BYR" is re-written therein, the content is effective to be as "BYR+1" in the following raster line.
(k) Memory width register (register number "09", Fig. 3K) (1) bits 0 and 1 (VM) ----- VRAM dot width A dot width in which an access to the background attribute table and character generator, DMA and access of the CPU2 to the VRAM 7 during a horizontal display period are performed is written into the bits ct the memory width register. The dot width is decided dependent on a memory speed of the VRAM 7. When the bits 0 and 1 are re-written therein, the content is effective at the beginning of a vertical retrace period.
bit dot Disposition in one width character cycle (8 dots) 1 0 1 2 3 4 5 6 1 L2 2 # ~~ ~~ ~.~~~ 0 1 O BAT CCO CPU C#1 0 0 1 CPU DAT 0 1 2 tt 1 2 BAT CPU CGO CG1 r . 0 0 2 2 CGO CG1 -~ ; 11 4 BAT CGO/CC1 I ~~I ~ "BAT" is for background attribute table, and "CG" is for character generator.
(2) bits 2 and 3 (SM) ----- sprite dot width A dot width in which an access to the sprite generator is performed during a horizontal retrace period is written into the bits of the memory width register.
bit dot Dispos i tion in one width character cycle (8 dots) 3 2 SP2 SP3 I S1': 1 S1]3 ** 1 1 4 SPO SP1 SP2 SP3 (note) ----- (SPO SPO SP1) or (5?2 SP3) is selected dependent on LS3 bit of a pattern code.
** ----- SPO to SP3 are read in two consecutive character cycles.
(3) bits 4 to 6 (SCREEN) The number of characters in X and Y directions of a fictitious screen is decided dependent on the content of the bits. When a content is re-written into the bits, the content is effective at the beginning of a vertical retrace period.
bit Number of characters 65 0 0 0 32 32 O O 1. 64 32 O 1 O 1 128 32 0 1 1 128 32 1 0 0 32 6 4 1 0 1 64 64 1 1 O 128 64 1 1 1 128 6 4 (4) bit 7 (CM) ----- CG mode When a VRAM dot width is of 4 dots, a color blocs of a character generator is changed dependent on the bit. When a content is written into the bit, the content is effective in the following raster line.
(1) Horizontal synchronous register (register number "OA", Fig. 3L) (1) bits 1 to 4 (HSW) ----- horizontal synchronous pulse A pulse width of "L" level of a horizontal synchronous pulse is set as an unit of a character cycle. One of 1 to 32 is selected by using 5 bits to comply with a specification of a CRT display.
(2) bits 8 to 14 (HDS) ----- starting position of horizontal display A period between a rising edge of a horizontal synchronous signal and a starting time of a horizontal display is set as an unit of a character cycle. An optimum position in the horizontal direction on a CRT display is decided by a content of the 7 bits. When it is assumed that a horizontal display position (horizontal back porch) is "N", "N-1" is written into the HDS bits.
(m) Horizontal display register (register number "OB", Fig. 3M) (1) bits 0 to 6 (HDW) ----- horizontal display width A display period in each raster line is set as an unit of a character cycle, and is decided in accordance with the number of characters in the horizontal direction on a CRT screen dependent on a content of the 7 bits. If it is assumed that a horizontal display position is "N", "N-1" is written into the HDW bits.
(2) bits 8 to 11 (HDE) ----- horizontal display ending position A period between an ending of a horizontal display period and a rising edge of a horizontal synchronous signal is set as an unit of a character cycle. An optimum position of a horizontal display is set on a CRT display by the 7 bits. When it is assumed that a horizontal display ending position (horizontal back porch) is "N", "N -1" is written into the HDE bits.
(n) Vertical synchronous register (register number "OC", Fig. 3N) (1) bits 0 to 4 (VSW) ----- vertical synchronous pulse width A pulse width of a vertical synchronous signal is decided in a width of "L" level as an unit of a raster line. One of 1 to 32 is selected to comply with a specification of a CRT display.
(2) bits 8 to i5 (VDS) ----- vertical display starting position A period between a rising edge of a vertical synchronous signal and a vertical synchronous starting position is set as an unit of a raster line. When it is assumed that a vertical display starting position (vertical back porch) is "N", "N-2" is written into the bits.
(o) Vertical display register (register number "OD", Fig. 30) A vertical display period (display region) is set as an unit of a raster line. A vertical display width is decided in accordance with the number of raster lines to be displayed on a CRT display which is defined by a content of the 9 bits. When it is assumed that a vertical display width is "N", "N-1" is written into the VDW bits.
(p) Vertical display ending position register (register number "OE", Fig. 3P) A period between a vertical display ending position and a rising edge of a vertical synchronous signal is set as an unit of a raster line. When it is assumed that a vertical optimum position (vertical front porch) is "N" to be defined by the 8 bits, "N" Is written into the VCR bits.
(q) DMA control register (register number "OF", Fig. 3Q) (1) bit 0 (DSC) ~ - enable of interruption at the finishing of transfer between the VRAM7 and sprite attribute table buffer 23.
It is decided whether or not an interruption is enabled at the finishing time of the transfer.
(1.1) "0" ----- disable (1.2) "1" ----- enable (2)bit 1 (DVC) ----- enable of interruption at the finishing of transfer between two regions of the VRAM 7.
It Is decided whether or not an interruption is enabled at the finishing time of the transfer.
(2.1) "0" ----- disable (2.2) "1" ----- enable (3) bit 2 (SI/D) ----- increment/decrement of a source address One of automatical increment and decrement of a source address is selected in a transfer between two regions of VRAM 7.
(4.1) "0" ----- increment (4.2) "1" ----^ aecrement (;) bit S (DSR) ----- repetition of a transfer between the VRAM 7 and sprite attribute table buffer 23.
It is decided whether or not a repetition of a transfer between the VRAM 7 and sprite attribute table buffer 23 is enabled.
(r) DMA source address register (register number "10" , Fig. 3R) A starting address of a source address is allocated in a transfer between two regions of the VRAM 7.
(s) DMA destination address register (register number "11", Fig. 3S) A starting address of a destination address is allocated in a transfer between two regions of the VRAM7.
(t) DMA block length register (register number "12", Fig. 3T) A length of a block is defined in a transfer between two regions of the VRAM 7.
(u) DMA VRAM-SATB source address register (register number "13", Fig. 3U) A starting address of a source address is allocated in a transfer between the VRAM7 and sprite attribute table buffer 23.
In Fig. 4A, there is shown an address in a background attribute table for a character on a fictitious screen. A character and color to be displayed at each character position are stored in the background attribute table. A predetermined number of background attribute tables are stored in a region the first address of which is "0" in the VRAM 7. The fictitious screen shown therein which is one example is of 32 x 32 characters (1F =32 ).
In Fig. 4B, there is shown a screen which is framed by writing respective predetermined values into the aforementioned horizontal synchronous register, horizontal display register, vertical synchronous register and vertical display register as shown in Figs. 3L, 3M,.3N and 30. Although the respective predetermined values for the registers are not explained here, a display region is defined in accordance with "HDW+1" in the horizontal display register and "VDW+1" in the vertical display register.
In the embodiment, the starting coordinates (x,y) for the display region is indicated to be as (32, 64).
In Figs. 5A and 5B, there are shown background attribute tables (BATs) in the VRAM 7 each of 16 bits to have a character code of lower 12 bits for designating a pattern number of a character and a CG color of upper 4 bits for designating a CG color code.
In Figs. 6A and 6B, there are shown sprite attribute tables (SATs) 31 In the 'TRAM along with a sprite generator region 32. Each of the sprite attribute tables 31 is composed of 16 x 4 bits, that is, four words to define a sprite. Therefore, sixtyfour sprites are defined by 256 words. In the sprite attribute table, lower 10 bits in the first word designate a horizontal position (0 to 1023) of a sprite. For this purpose, one of 0 to 1023 is written into an X coordinate therein. In the same manner, lower 10 bits in the second word designate a vertical position (0 to 1023) of a sprite, and one of 0 to 1023 is written into a Y coordinate therein. On the other hand, lower 11 bits in the third word is for a pattern number which is an address for a sprite generator 32, while the fourth word is for control bits including Y (Xls), CGY (two bits of X13 and X12)Z X (X11) CGX(Xa ), BG/SP (X7) and a color for a sprite (four bits of X3 to Xo) in the direction of MSB to LSB.
The control bits are defined as follows.
(1) setting of Y A sprite is displayed to be reversed in the Y direction.
(2) setting of CGX Two sprites consisting of a sprite to be addressed in the sprite generator 32 and the other sprite of the following address are displayed to be joined in the horizontal direction.
(3) setting of X A sprite is displayed to be reversed in the X direction.
(4) setting of CGY The two bits Xl3 and X12 define three modes to be described in more detail later.
0 a Normal 0 I 2CGY 1 0 non-used 1 1 4 CGY (5) BG/SP The bit X7 designates a priority between displays of a background and sprite.
(5.1) "0" ----- background (5.2) "1" ----- sprite (6) sprite color The bits X3 to Xo designate an area color of a sprite.
Each sprite has four facets to be called SCO to SG3 each being of 16 x 16 dots so that one sprite occupies 64 words.
The writing of data into a sprite attribute table 31 is performed such that the data are not transferred from the CPU 2 directly to the VRAM 7, but in DMA transfer from the CPU2 to the sprite attribute table buffer 23.
Before explaining an apparatus for the control of an access to a video memory in an embodiment according to the invention, an operation in which a sprite is displayed on a screen will be described. Now, a sprite SP having standard coordinates (2,2) is displayed on a display screen 9 having 1024 display dots respectively in the X and Y directions as shown in Fig. 7. In displaying the sprite SP thereon, the Y coordinates of the sixty-four sprite attribute tables 31 are compared in turn with a raster signal supplied from the scanning raster signal producing circuit 33 at the coincidence detection circuit 34 to pick up sprites each having a Y coordinate "2" which is then stored in its sprite number among the sprite numbers 0 to 63 into the pattern code buffer 35 when a horizontal display period of a scanning raster number "1" is started in the apparatus as shown in Fig. 2B.In this occasion, sixteen of sprites can be stored in the pattern code buffer 35 at the maximum. During a horizontal retrace period before which a scanning raster number "1" is finished and after which a scanning raster number "2" is started, address signals are produced in the selector 36 in accordance with the sprite numbers stored in the pattern code buffer 35 and pattern codes in the sprite attribute tables 31 so that pattern data are read from the sprite generator 32 in accordance with the address signals thus produced. The pattern data are stored in the pattern data buffer 37 along with X coordinates corresponding thereto in the sprite attribute tables 31.When a horizontal display period of the scanning raster number "2" is started, the X coordinates stored in the pattern data buffer 37 are compared with counted values of the horizontal dot clock counter 38 at the coincidence detection circuit 39. In the comparison, pattern data for the sprite sp are read to be supplied to the parallel/serial converting circuit 40 from the pattern data buffer 37 when the counted value corresponds to x=2. The parallel pattern data are converted into serial pattern data in the parallel/serial converting circuit 40 so that a picture element (2, 2) of the sprite sp is dispiayed on the CPT screen 9 in accordance with the serial pattern data passed through the gate circuit 42.Thereafter, fifteen picture elements (3, 2), (4, 2) - (17, 2) are displayed thereon to complete the display of the sprite sp on the y=2 raster line. As a matter of course, control data of the sprite attribute table 31 corresponding to the sprite sp are used to control the display thereof. In moving the sprite sp having the standard coordinates (2, 2) to a display position having a standard coordinates (X, Y) to be a sprite sp', the X and Y coordinates (2, 2) of the sprite attribute table 31 corresponding to the sprite sp are only changed to be X and Y coordinates (x, y) without changing contents of the sprite generator 32 and necessitating the re-definition of a pattern. The sprites sp and spi are displayed In accordance with the combination of more than one facets among the four facets SGO to SG3.
Such a combination of facets SGO to SG3 is shown in Fig. 8. For instance, all of the four facets SGO to SG3 are combined to display a sprite Sp , while the facets SG0 and SG1 are combined to display a sprite sp2 . As clearly understood from the example, 24 display patterns are obtained in accordance with the calculation "4 x 3 x 2=24" so that a desired pattern can be selected from the 24 patterns in accordance with control data in a sprite attribute table. The four facets SGO to SG3 are of different colors each to be designated by an area color code.
Next, the aforementioned CGX and CGY defined by control data in a sprite attribute table 31 are explained. In Fig. 9, there is shown a sprite generator (SG) 32 comprising pattern data A, B, C ----- . In accordance with the definition of CGX and CGY as explained before, various kinds of sprite patterns each having a different color and size from others are obtained without increasing a memorizing area of the sprite generator 32 as shown in Figs. 10A to lOE.
In Fig. liy , there is shown an apparatus for the control of an access to a video memory in an embodiment according to the invention. The apparatus for the control of an access to a video memory comprises an oscillator 51 for producing oscillation signals, a frequency divider 52 for dividing a frequency of the oscillation signals by a predetermined dividing ratio to produce dot clock signals, a memory width register 3K as already explained in Fig. 3K having a content of a dot width dependent on a memory speed of the VRAM 7, a dot width decision circuit 53 for deciding a dot width in accordance with the content of the memory width register 3K, means 54, 55 and 56 for producing a CPU address signal, DMA address signal and CG address signal respectively to designate addresses in an access to the VRAM 7, an address selector 57 for selecting an address at an access timing which is set by the dot width decision circuit 53, and a data latch circuit 58 for latching data read from the VRAM 7. The VRAM 7 is shown in Fig. 11A to include a VRAM region 33 of a fictitious screen as described in Fig. 4A and a character generator region 34 which is also shown in Fig. 11B. One character of the character generator region 34 is composed of four facets CHO Ch1, CH2 and CH3 each having 8 x 8 dots by which a pattern is defined by sixteen words of eight words for the facets CHO and CH1 and other eight words for the facets CH2 and CH3. The characters are addressed by the first addresses of the facets CHOs shown by Ao, Al, A2 ----- which are defined by character codes of background attribute tables as described in Figs. 5A and 5B.
In operation, when a horizontal display of the scanning raster number "0" is started, the VM bits of the memory width register 3K are checked by the dot width decision circuit 53. If it is assumed that a content of the VM bits is "00", a dot width of an access to the 'TRAM 7 is decided to be "1" as defined in the table on page 19. Accordingly, the VRAM 7 is accessed in accordance with a CPU address signal from the CPU address signal means 54 under the control of the address selector 57 at the first dot timing among eight dots of one character cycle. Next, the 'TRAM region 33 of the VRAM 7 is accessed at an address "0" in accordance with a CG address signal from the character generator address signal means 56 at the second dot timing.At this moment, a character code and a CG color are read from a background attribute table, as shown in Figs. SA and SB, of the address "0".
Thereafter, accesses are performed from the CPU 2( Fig.
1) to the 'TRAM 7 at the third and fifth dot timings except for the fourth dot timing, and the character generator region 34 is accessed at the sixth dot timing. In the access to the character generator region 34, a CG address signal of the CG address signal means 56 is determined in accordance with a pattern number corresponding to a character code which is previously checked whereby display data are read from the facets CHO and CH1 thereof. After the seventh dot timing, display data are further read from the facets CH2 and CH3 in accordance with the same address signal at the eight dot timing. As a result, one character is formed in accordance with the display data of the four facets CHO to CH3 which are latched in the data latch circuit 58.A display of the address "0" is performed on the CRT 9 (Fig. 1) in accordance with the data thus latched in the data latch circuit 58 wherein a color of the display is determined by the CG color in the background attribute table. In the horizontal displays which follow the horizontal display of the scanning raster line "0", the same operation as explained above will be repeated.
On the other hand, if it is assumed that a content of the VM bits is "01", "10" or "11", the VRAM 7 is accessed with a dot width "2", "2" or "4". For this reason, a content of the VM bits is determined dependent on a memory speed of the VRAM 7.
In another operation, it is assumed that a content of the VM bits is "00" in the memory width register 3K to provide a dot width of one dot, and that a content of the IN bits is "00" in the control register as shown in Fig. 3G to provide an address increment width "1". An operation in which data are written into the VRAM 7 is started after the first address for writing the data is written into the memory address write register as shown in Fig. 3C. When the VRAM 7 is accessed from the CPU 2 as shown in Fig. 12 by the indication "CPU > VRAM", the data are held in the CPU read/write buffer 22 (Fig. 2A) , if the writing of the data is collided in regard to its timing with a display cycle of the VRAM 7.For this reason, the CPU2 is released from the writing of the data as changed from "0" to "1" in regard to a timing chart of "CPU VRAM". Thereafter, when the display cycle of the VRAM 7 is finished, the data thus held in the CPU read/write buffer 22 are written, as shown by the indication "VRAM WR", into the VRAM 7 at the address which is designated by the memory address write register of Fig. 3C. At this moment, a content of the memory address write register is incremented by one. On the other hand, in a case where the VRAM 7 is accessed from the CPU2 when data are held in the CPU read/write buffer 22, the condition "WAIT" becomes effective in the CPU2 so that a wait signal is produced at the BUSY terminal connected to the control unit 20 (Fig. 2A).
Therefore, the condition "WAIT" is much decreased in the number of occurrences in accordance with the provision of the CPU read/write register 22.
In the same manner as described above, the VRAM 7 is accessed from the CPU2 so that data are read from the VRAM as shown in Fig. 12 by the indication "CPU VRAM". Data which are read from the VRAM 7 at an address designated by the memory address read register as shown in Fig 3D are once held in the CPU read/write buffer 22, when the access to the VRAM7 is collided with the display cycle of the VRAM7. When the display cycle of the VRAM7 is finished, the data thus held in the CPU read/write buffer 22 are transferred to the CPU2 as shown by the indication "VRAM RD". At this moment, a content of the memory address read register is incremented by one.
Otherwise, if the CPU read/write register 22 is not provided, the condition "WAIT" is increased in the number of occurrences as shown in Fig. 13 so that a throughput of the CPU2 is decreased. In more detail, the condition "WAIT" is continued in the CPU2 until the display cycle of the VRAM7 is finished, when the VRAM7 is accessed from the CPU2 for the writing of data (CPU iVRAM) and the reading thereof (CPUs VRAM) during that cycle. When the display cycle of the VRAM 7 is finished, data are written into the VRA 7 as shown by the indication "VRAM WR", and read from the VRAM as shown by the indication "VRAM RD" whereby flickers are prevented from being occured on a screen.
Although the invention has been described with respect to specific embodiment for complete and clear disclosure, the appended claims are not to thus limited but are to be construed as embodying all modification and alternative constructions that may occur to one skilled in the art which fairly fall within the basic teaching herein set forth.

Claims (1)

1. An apparatus for the control of an access to a video memory comprising, means for addressing a video memory at a predetermined timing, buffer means for storing video data which are written into said video memory and read from said video memory, and means for controlling said buffer means to store said video data, wherein said video data are stored in said buffer means when said video memory is addressed during a display cycle of said video memory, and transferred from said buffer when said display cycle of said video memory is finished.
GB9118787A 1987-09-19 1991-09-02 An apparatus for the control of an access to a video memory Expired - Lifetime GB2246935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
GB9118787A GB2246935B (en) 1987-09-19 1991-09-02 An apparatus for the control of an access to a video memory

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP62235483A JP2610275B2 (en) 1987-09-19 1987-09-19 Video memory transfer controller
GB8818787A GB2210238B (en) 1987-09-19 1988-08-08 An apparatus for the control of an access to a video memory
GB9118787A GB2246935B (en) 1987-09-19 1991-09-02 An apparatus for the control of an access to a video memory

Publications (3)

Publication Number Publication Date
GB9118787D0 GB9118787D0 (en) 1991-10-16
GB2246935A true GB2246935A (en) 1992-02-12
GB2246935B GB2246935B (en) 1992-05-20

Family

ID=26294252

Family Applications (1)

Application Number Title Priority Date Filing Date
GB9118787A Expired - Lifetime GB2246935B (en) 1987-09-19 1991-09-02 An apparatus for the control of an access to a video memory

Country Status (1)

Country Link
GB (1) GB2246935B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0522697B1 (en) * 1991-06-10 1997-01-22 International Business Machines Corporation Video memory interface to control processor access to video memory

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0149788A2 (en) * 1983-12-14 1985-07-31 Ascii Corporation Display control system
EP0155499A2 (en) * 1984-02-20 1985-09-25 Ascii Corporation Display control unite
EP0157254A2 (en) * 1984-03-16 1985-10-09 Ascii Corporation Video display control system
US4800431A (en) * 1984-03-19 1989-01-24 Schlumberger Systems And Services, Inc. Video stream processing frame buffer controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0149788A2 (en) * 1983-12-14 1985-07-31 Ascii Corporation Display control system
EP0155499A2 (en) * 1984-02-20 1985-09-25 Ascii Corporation Display control unite
EP0157254A2 (en) * 1984-03-16 1985-10-09 Ascii Corporation Video display control system
US4800431A (en) * 1984-03-19 1989-01-24 Schlumberger Systems And Services, Inc. Video stream processing frame buffer controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0522697B1 (en) * 1991-06-10 1997-01-22 International Business Machines Corporation Video memory interface to control processor access to video memory

Also Published As

Publication number Publication date
GB2246935B (en) 1992-05-20
GB9118787D0 (en) 1991-10-16

Similar Documents

Publication Publication Date Title
US4951038A (en) Apparatus for displaying a sprite on a screen
US4324401A (en) Method and system for generating moving objects on a video display screen
EP0133903B1 (en) Display control method and display control apparatus
GB2287627A (en) Windowed graphic video display system
JPH0557599B2 (en)
EP0278526A2 (en) Graphics diplay controller having clipping function
CA1220293A (en) Raster scan digital display system
US4744046A (en) Video display terminal with paging and scrolling
JPS60158484A (en) Display memory control system
US5030946A (en) Apparatus for the control of an access to a video memory
US5319786A (en) Apparatus for controlling a scanning type video display to be divided into plural display regions
KR960014826B1 (en) An apparatus for controlling the access of a video memory
US5355175A (en) Video mixing apparatus capable of combining two input signals and varying the mixing ratio line by line
GB2210238A (en) Apparatus for the control of access to a video memory
GB2246935A (en) An apparatus for the control of an access to a video memory
JP2644503B2 (en) Sprite display control device
JPH077252B2 (en) Cursor generator
JPS6335265B2 (en)
JPH07234773A (en) Display controller
JP2623541B2 (en) Image processing device
JP2792598B2 (en) Sprite display control device for scanning display device
JP2633266B2 (en) DMA transfer controller
JP2623592B2 (en) Display control device
JPH0146072B2 (en)
JP2912765B2 (en) Display system

Legal Events

Date Code Title Description
PCNP Patent ceased through non-payment of renewal fee

Effective date: 20050808