KR19990009905A - Graphic Data Processing Unit - Google Patents

Graphic Data Processing Unit Download PDF

Info

Publication number
KR19990009905A
KR19990009905A KR1019970032478A KR19970032478A KR19990009905A KR 19990009905 A KR19990009905 A KR 19990009905A KR 1019970032478 A KR1019970032478 A KR 1019970032478A KR 19970032478 A KR19970032478 A KR 19970032478A KR 19990009905 A KR19990009905 A KR 19990009905A
Authority
KR
South Korea
Prior art keywords
data
memory
value
storing
image
Prior art date
Application number
KR1019970032478A
Other languages
Korean (ko)
Inventor
임종원
Original Assignee
구자홍
엘지전자 주식회사
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
Application filed by 구자홍, 엘지전자 주식회사 filed Critical 구자홍
Priority to KR1019970032478A priority Critical patent/KR19990009905A/en
Publication of KR19990009905A publication Critical patent/KR19990009905A/en

Links

Abstract

본 발명은 그래픽 데이터를 처리하는 그래픽 데이터 처리방법 및 장치에 관한 것이다.The present invention relates to a graphic data processing method and apparatus for processing graphic data.

본 발명의 그래픽 데이터의 처리장치는, 데이터 전송의 제어 및 데이터의 연산을 위한 주 제어수단과, 주 제어수단에 의해 처리된 데이터를 비트맵 방식으로 저장하기 위한 메모리와, 주 제어수단의 액세스 요청에 응답하여 상기 메모리상의 임의의 장방형 저장영역에 저장된 데이터를 연속적으로 액세스 하고 상기 메모리에 저장된 이미지 데이터의 선두 어드레스를 저장하기 위한 기억소자와, 상기 메모리에 저장된 상기 이미지의 넓이 데이터를 저장하기 위한 기억소자와, 상기 메모리에 저장된 상기 이미지의 높이 데이터를 저장하기 위한 기억소자와, 액세스될 부분의 넓이 데이터를 저장하기 위한 기억소자와, 액세스될 부분의 높이 데이터를 저장하기 위한 기억소자와, 액세스 될 부분의 넓이방향데이터를 저장하기 위한 기억소자와, 액세스될 부분의 높이방향 데이터를 저장하기 위한 기억소자를 가지는 보조 제어수단을 구비한다.An apparatus for processing graphic data of the present invention includes main control means for controlling data transmission and operation of data, a memory for storing data processed by the main control means in a bitmap manner, and an access request of the main control means. A memory device for continuously accessing data stored in any rectangular storage area on the memory in response to and storing a head address of the image data stored in the memory, and a memory for storing width data of the image stored in the memory. An element, a memory element for storing the height data of the image stored in the memory, a memory element for storing the width data of the part to be accessed, a memory element for storing the height data of the part to be accessed, and A storage element for storing width direction data of the portion, and a portion to be accessed Auxiliary control means having a memory element for storing minute height data is provided.

Description

그래픽 데이터 처리장치Graphic Data Processing Unit

본 발명은 그래픽 데이터를 처리하는 그래픽 데이터 처리방법 및 장치에 관한 것이다.The present invention relates to a graphic data processing method and apparatus for processing graphic data.

현재 모든 전자기기의 환경이 멀티미디어 시대로 접어들면서 데이터양이 증가하는 추세이며, 이 데이터를 빠르게 전송하는 것이 큰 관건이 되었다. 특히 퍼스널 컴퓨터 또는 멀티미디어 기기에서는 상대적으로 많은 그래픽 데이터를 얼마나 빠르게 전송하느냐가 그 기기의 벤치마크가 되고 있는 실정이다. 또한 퍼스널 컴퓨터 또는 멀티미디어 기기에서 많이 사용되는 윈도우 시스템에서는, 시각적인 모양의 기호 및 도형을 표현하기위한 그래픽 데이터를 처리하기 위해 메인 메모리상의 각각 한비트의 위치와 그래픽 디스플레이 장치의 각각 픽셀위치를 일치시켜 화면에 나타내는 비트맵(BIT MAP)방식을 채용하고 있다.As the environment of all electronic devices enters the multimedia era, the amount of data is increasing, and the rapid transmission of this data has become a big issue. In particular, how fast a relatively large amount of graphics data transfer in a personal computer or multimedia device is the benchmark of the device. In addition, in a window system commonly used in personal computers or multimedia devices, in order to process graphic data for expressing visual symbols and figures, the position of each bit in the main memory and the pixel position of the graphic display device are matched. The bitmap (BIT MAP) method shown on the screen is adopted.

한편 그래픽 데이터의 처리속도 면에서, 중앙처리장치(Central Processing Unit ; 이하 CPU라 한다.)와 DMA콘트롤러(Direct Memory Access Controller ; 이하 DMA콘트롤러라 한다.)를 비교해보면 CPU는 직접 메모리에 액세스하여 판독할 번지를 지정하고, 메모리상의 데이터를 출력하고, 출력된 데이터를 전송하는 페치(FETCH)사이클이 개개의 비트맵 데이터(BIT MAP DATA)를 처리하는데 필요하므로 그래픽 데이터의 전송시간이 길고, 데이터 처리를 CPU연산에 의해서 수행함으로 그래픽 데이터의 처리속도가 저하되어, 그 멀티미디어 기기의 성능을 저하시키는 결과를 가져온다. 반면에 DMA콘트롤러 에서는 CPU에서 전송할 데이터의 메모리상의 선두 어드레스와 전송할 데이터의 수를 DMA콘트롤러로 전송하면, DMA콘트롤러가 메모리에 엑세스 하여, 데이터를 연속적으로 처리하므로, 그래픽 데이터를 빠르게 전송 할 수 있다. 그러므로 그래픽 데이터 처리에 있어서 DMA콘트롤러의 그래픽 데이터 처리속도가 CPU의 처리속도에 비해 빠름을 알 수 있다.On the other hand, in terms of the processing speed of graphic data, when comparing a central processing unit (CPU) and a DMA controller (Direct Memory Access Controller), the CPU directly accesses and reads the memory. A fetch cycle for specifying the address to be assigned, outputting data in memory, and transferring the output data is required to process individual bitmap data, so that the transfer time of graphic data is long, and data processing is performed. Is performed by the CPU operation, the processing speed of the graphic data is lowered, resulting in a decrease in the performance of the multimedia device. On the other hand, in the DMA controller, when the head address of the data to be transmitted from the CPU and the number of data to be transmitted are transferred to the DMA controller, the DMA controller accesses the memory and processes the data continuously, thereby enabling fast graphic data transfer. Therefore, it can be seen that the graphic data processing speed of the DMA controller is faster than that of the CPU in processing the graphic data.

제1도 및 제2도를 참조하여 종래의 DMA콘트롤러에서 그래픽 데이터의 전송방법에 대하여 설명하기로 한다.A method of transferring graphic data in a conventional DMA controller will be described with reference to FIGS. 1 and 2.

제1도는 그래픽 데이터를 전송하기 위해 DMA콘트롤러를 사용한 시스템의 블록도 이다.1 is a block diagram of a system using a DMA controller to transfer graphic data.

제2도는 종래 기술의 실시예에 따른 DMA콘트롤러에서 분산된 그래픽 데이터의 전송사이클을 개략적으로 도시하는 도면이다.2 is a diagram schematically illustrating a transmission cycle of distributed graphic data in a DMA controller according to an embodiment of the prior art.

제1도는 구성에서, DMA콘트롤러를 사용한 시스템은 데이터 전송의 제어 및 데이터의 연산을 위한 CPU(2)와, 그래픽 디스플레이 장치에 그래픽 처리를 하기위한 그래픽 콘트롤러(8)와, 그래픽 콘트롤러에 의해 처리된 그래픽 데이터를 저장하기 위한 그래픽 메모리(10)와, 시스템상의 데이터를 저장하기 위한 메인 메모리(6)와, 시스템상의 데이터를 전송하기 위한 데이터 버스(12)와, CPU(2)의 제어하에 메인 메모리 또는 그래픽 메모리(6, 10)를 액세스 하는 DMA콘트롤러(4)를 구비한다. CPU(2)는 메인 메모리(6) 또는 그래픽 메모리(10)상의 저장영역의 일부를 액세스 하고자 할때, 액세스 하고자 하는 메모리상의 저장영역의 시작위치 정보와 액세스 하고자 하는 저장영역들의 수를 데이터 버스(12)를 경유하여 DMA콘트롤러(4)에 전송한다. DMA콘트롤러(4)는 메인 메모리(6) 또는 그래픽 메모리(10)상의 저장영역의 시작위치를 액세스하여 비트맵 데이터를 전송할 데이터 수만큼 연속적으로 처리하여, 1라인에 대한 데이터 전송을 완료한다. 1라인의 전송이 완료되면 CPU(2)에서는 점프할 어드레스와 다음 라인의 선두 어드레스를 연산하여, 데이터 버스(12)를 경유하여 DMA콘트롤러(4)에 전송한다. DMA콘트롤러(4)는 메모리상의 다음 라인 시작위치를 액세스하여 비트맵 데이터를 연속적으로 전송하여 해당라인의 전송을 완료한다. 한편, CPU(2)에서는 메인 메모리(6) 또는 그래픽 메모리(10)상의 저장영역 시작위치, 전송할 데이터수, 및 점프할 어드레스와 다음 라인의 시작위치를 연산하는 부분이, 제2도의 CPU사이클이 여기에 해당한다. 또한 DMA콘트롤러(4)가 메인 메모리(6) 또는 그래픽 메모리(10)에 액세스하여 비트맵 데이터를 한 라인씩 연속적으로 처리하는 부분이 제2도의 DMA사이클에 해당한다. 그러므로, 한 라인의 데이터를 전송하기 위해서는 CPU사이클과 DMA사이클이 필요하게 되며, 전송할 그래픽 데이터의 라인수 만큼 CPU사이클과 DMA사이클이 반복 수행되며, 이러한 일련의 과정을 수행하여 원하는 그래픽 데이터의 전송을 완료한다.In the configuration of FIG. 1, a system using a DMA controller includes a CPU 2 for controlling data transfer and a calculation of data, a graphics controller 8 for performing graphics processing on a graphics display device, and a graphics controller. Graphic memory 10 for storing graphic data, main memory 6 for storing data on the system, data bus 12 for transferring data on the system, and main memory under control of the CPU 2 Or a DMA controller 4 for accessing the graphics memories 6, 10. When the CPU 2 wants to access a part of the storage area on the main memory 6 or the graphics memory 10, the CPU 2 displays the start position information of the storage area on the memory to be accessed and the number of storage areas to be accessed. Transfer to DMA controller 4 via 12). The DMA controller 4 accesses the start position of the storage area on the main memory 6 or the graphics memory 10 and continuously processes bitmap data by the number of data to be transmitted, thereby completing data transmission for one line. When transfer of one line is completed, the CPU 2 calculates the address to jump to and the head address of the next line, and transfers it to the DMA controller 4 via the data bus 12. The DMA controller 4 accesses the next line start position in the memory and continuously transmits bitmap data to complete the transfer of the corresponding line. On the other hand, in the CPU 2, a portion for calculating the storage area start position, the number of data to be transferred, the address to jump to, and the start position of the next line on the main memory 6 or the graphics memory 10 includes the CPU cycle of FIG. This is the case. In addition, the portion where the DMA controller 4 accesses the main memory 6 or the graphics memory 10 and continuously processes bitmap data line by line corresponds to the DMA cycle of FIG. Therefore, a CPU cycle and a DMA cycle are required to transfer a single line of data, and the CPU cycle and the DMA cycle are repeatedly performed as many as the number of graphic data lines to be transmitted. To complete.

상기한 바와 같이 종래의 DMA콘트롤러에서는 일부분의 그래픽 데이터를 전송하는 경우에, 해당 그래픽 데이터의 라인수 만큼의 CPU사이클과 DMA사이클이 필요하게 되어, 데이터 처리시간이 길어짐으로 멀티미디어 기기의 성능을 저하 시키는 단점이 있었다.As described above, in the case of transferring a part of graphic data, the conventional DMA controller requires CPU cycles and DMA cycles as many as the number of lines of the graphic data, and the data processing time becomes longer, thereby degrading the performance of the multimedia apparatus. There was a downside.

따라서 본 발명의 목적은 메모리로부터 그래픽 데이터를 연속적으로 액세스하여 그래픽 데이터의 처리속도를 향상 시킬수 있는 그래픽 데이터 처리장치를 제공하는데 있다.Accordingly, an object of the present invention is to provide a graphic data processing apparatus capable of continuously accessing graphic data from a memory to improve the processing speed of the graphic data.

도 1은 그래픽 데이터를 전송하기 위해 DMA콘트롤러를 사용한 시스템의 블록도.1 is a block diagram of a system using a DMA controller to transfer graphic data.

도 2는 종래 기술의 실시예에 따른 DMA콘트롤러에서 분산된 그래픽 데이터의 전송 사이클을 개략적으로 도시하는 도면.2 is a diagram schematically illustrating a transmission cycle of distributed graphic data in a DMA controller according to an embodiment of the prior art.

도 3는 본 발명의 실시예에 따른 DMA콘트롤러가 메인 메모리에서 데이터를 액세스 하는 방법을 설명하는 흐름도.3 is a flow chart illustrating a method for a DMA controller to access data in main memory in accordance with an embodiment of the present invention.

도 4는 본 발명의 실시예에 따른 물리적 메모리상에 저장된 비트맵 데이터의 구조를 개략적으로 도시하는 도면.4 schematically illustrates the structure of bitmap data stored on a physical memory according to an embodiment of the present invention;

도 5도는 본 발명의 실시예에 따른 DMA콘트롤러가 제1 메모리에서 제2 메모리로 그래픽 데이터를 전송하는 방법을 개략적으로 도시하는 도면.FIG. 5 is a diagram schematically illustrating a method for transferring graphic data from a first memory to a second memory by a DMA controller according to an embodiment of the present invention. FIG.

도 6도는 본 발명의 실시예에 따른 DMA콘트롤러가 제1 메모리로부터 제2 메모리로 그래픽 데이터를 전송하는 방법을 설명하는 흐름도.6 is a flow chart illustrating a method for transferring graphics data from a first memory to a second memory by a DMA controller according to an embodiment of the present invention.

도면의 주요부분에 대한 부호의 설명Explanation of symbols for main parts of the drawings

2:중앙처리장치(CPU)2: Central Processing Unit (CPU)

4:DMA 콘트롤러4: DMA controller

6:메인 메모리(MAIN MEMORY)6: MAIN MEMORY

8: 그래픽 콘트롤러(GRAPHIC CONTROLLER)8: GRAPHIC CONTROLLER

10:그래픽 메모리(GRAPHIC MEMORY)10: GRAPHIC MEMORY

12:데이터 버스(DATA BUS)12: DATA BUS

14:물리적 메모리상에 비트맵 데이터가 기록되지 않은 영역14: Area where bitmap data is not written on physical memory

16:물리적 메모리상에 비트맵 데이터가 기록된 영역16: Area where bitmap data is recorded on physical memory

상기목적들을 달성하기 위하여 본 발명의 그래픽 데이터의 처리장치는 데이터 전송의 제어 및 데이터의 연산을 위한 주 제어수단과, 주 제어수단에 의해 처리된 데이터를 비트맵 방식으로 저장하기 위한 메모리와, 주 제어수단의 액세스 요청에 응답하여 상기 메모리상의 임의의 장방형 저장영역에 저장된 데이터를 연속적으로 액세스 하고 상기 메모리에 저장된 이미지 데이터의 선두 어드레스를 저장하기 위한 기억소자와, 상기 메모리에 저장된 상기 이미지의 넓이 데이터를 저장하기 위한 기억소자와, 상기 메모리에 저장된 상기 이미지의 높이 데이터를 저장하기 위한 기억소자와, 액세스될 부분의 넓이 데이터를 저장하기 위한 기억소자와, 액세스될 부분의 높이 데이터를 저장하기 위한 기억소자와, 액세스 될 부분의 넓이방향데이터를 저장하기 위한 기억소자와, 액세스될 부분의 높이방향 데이터를 저장하기 위한 기억소자를 가지는 보조 제어수단을 구비한다.In order to achieve the above objects, the apparatus for processing graphic data of the present invention includes main control means for controlling data transmission and operation of data, a memory for storing data processed by the main control means in a bitmap manner, A storage element for continuously accessing data stored in any rectangular storage area on the memory in response to an access request of a control means and storing a head address of the image data stored in the memory, and width data of the image stored in the memory A memory for storing the height data, a memory for storing the height data of the image stored in the memory, a memory for storing the width data of the portion to be accessed, and a memory for storing the height data of the portion to be accessed. To store data on the device and its width And an auxiliary control means having a memory element for storing the height direction data of the portion to be accessed.

상기 목적외에 본 발명의 다른 목적 및 특징들은 첨부도면을 참조한 실시예에 대한 설명을 통하여 명백하게 드러나게 될 것이다.Other objects and features of the present invention other than the above object will become apparent from the description of the embodiments with reference to the accompanying drawings.

제1도 및 제3도 내지 제6도를 참조하여 본 발명의 바람직한 실시예에 대하여 설명하기로 한다.A preferred embodiment of the present invention will be described with reference to FIGS. 1 and 3 to 6.

제4도는 본 발명의 실시예에 따른 물리적 메모리상에 저장된 비트맵 데이터의 구조를 개략적으로 도시하는 도면으로써, 제1도의 제1메모리상에 저장된 비트맵 데이터의 구조를 도시하고 있다.FIG. 4 is a diagram schematically showing the structure of bitmap data stored on the physical memory according to an embodiment of the present invention, and shows the structure of the bitmap data stored on the first memory of FIG.

제1도, 제3도 및 제4도를 결부시켜 DMA콘트롤러가 제1메모리상에서 그래픽 데이터를 액세스 하는 방법에 관해서 설명하기로 한다.1, 3, and 4 will be described with reference to how the DMA controller accesses the graphic data on the first memory.

제1도는 그래픽 데이터를 전송하기 위해 DMA콘트롤러를 사용한 시스템의 블록도 로써, 제1도의 구성에서, 본 발명의 그래픽 데이터 처리장치는, 전체 소스 이미지의 저장영역 선두 위치를 저장하기위한 SAR(Source Address Register ; 이하 SAR이라 한다) 레지스터와, 전체 소스 이미지의 넓이를 저장하기위한 SWW(Width of Source Whole image ; 이하 SWW라 한다) 레지스터와, 전체 소스 이미지의 높이를 저장하기 위한 SHW(Heght of Source Whole image ; 이하 SHW라 한다) 레지스터와, 전송할 부분 소스 이미지의 X좌표을 저장하기 위한 SXR(Source X Coordinate ; 이하 SXR이라 한다) 레지스터와, 전송할 부분 소스 이미지의 Y좌표를 저장하기 위한 SYR(Source Y Coordinate ; 이하 SYR이라 한다)레지스터와, 부분 소스 이미지의 넓이를 저장하기 위한 SWP(Width of Source Partial image ; 이하 SWP라 한다) 레지스터와, 부분 소스 이미지의 높이를 저장하기 위한 SHP(Height of Source Partial image) 레지스터와, 데스티네이션 에서도 이에 상응하는 데이터를 저장하기 위한 레지스터들을 추가로 구비한다.FIG. 1 is a block diagram of a system using a DMA controller to transfer graphic data. In the configuration of FIG. 1, the graphic data processing apparatus of the present invention includes a SAR (Source Address) for storing a storage area head position of an entire source image. Register (hereinafter referred to as SAR) register, SWW (Width of Source Whole image) register to store the width of the entire source image, and SHW (Heght of Source Whole) to store the height of the entire source image image; hereinafter referred to as SHW) register, SXR (Source X Coordinate; hereinafter referred to as SXR) register for storing the X coordinate of the partial source image to be transferred, and SYR (Source Y Coordinate) for storing the Y coordinate of the partial source image to be transferred. A SYR register, a SWP (Width of Source Partial image) register for storing the width of the partial source image, It further includes a weight of source partial image (SHP) register for storing the height of the partial source image, and a register for storing corresponding data in the destination.

제3도는 본 발명의 실시예에 따른 DMA콘트롤러가 제1 메모리에서 데이터를 액세스 하는 방법을 설명하는 흐름도 로써, 제3도의 실시예는 제1도의 DMA콘트롤러에 의해 수행된다.FIG. 3 is a flowchart illustrating a method of accessing data in a first memory by a DMA controller according to an embodiment of the present invention. The embodiment of FIG. 3 is performed by the DMA controller of FIG.

DMA콘트롤러(4)가 메인 메모리상의 분산된 비트맵 데이트를 액세스하고자 할 경우, CPU(2)에서는 부분소스 이미지의 X좌표(SXR)값과, 부분소스 이미지의 Y좌표(SYR)값과, 부분소스 이미지의 넓이(SWP)값과, 부분소스 이미지의 높이(SHP)값과, 전체소스 이미지의 저장영역 선두위치(SAR)값과, 전체소스 이미지의 넓이(SWW)값과, 전체소스 이미지의 높이(SHW)값 각각의 데이터를 DMA콘트롤러(4)에 전송한다. (제34단계) DMA콘트롤러(4)는 전체소스 이미지의 넓이(SWW)값과 부분소스 이미지의 Y좌표(SYR)의 곱의 값에 전체소스 이미지의 저장영역 선두위치(SAR)값과 부분소스 이미지의 X좌표(SXR)값을 더하여 부분 소스 이미지의 저장영역 선두위치(Axy)를 연산하고, X방향 카운터 값과 Y방향 카운터 값을 1로 초기화 한다. (제36단계) 제38단계에서, DMA콘트롤러(4)는 제1 또는 제2메모리(6, 10)상에서 부분소스 이미지의 저장영역 선두위치(Axy)값에 해당하는 데이트를 액세스한다. 제40단계에서, DMA콘트롤러(4)는 X방향 카운터 값과 부분소스 이미지의 넓이(SWP)값을 비교하여 일치하는 경우에는 한 라인에 대한 비트맵 데이터의 액세스를 종료하고, X방향 카운터 값이 작은 경우에는 제42단계를 수행한다. 한편, X방향 카운터값이 부분소스 이미지의 넓이(SWP)값보다 작은 경우, X방향 카운터 값과 부분소스 이미지의 저장영역 선두위치(Axy)값을 1씩 증가 시킨다. (제42단계) 그리고 제38단계 내지 제42단계는 제40단계의 조건을 만족할때 까지 반복 수행된다. 제44단계에서 DMA콘트롤러(4)는 Y방향 카운터 값과 부분소스 이미지의 높이(SHP)값을 비교하여 일치하는 경우에는 제1메모리(6)상에 비트맵 데이터의 액세스를 종료하고, Y방향 카운터 값이 작을 경우에는 제46단계를 수행한다. 한편, Y방향 카운터 값이 부분소스 이미지의 높이(SHP) 값보다 작은 경우에는, DMA콘트롤러(4)가 부분소스 이미지의 저장영역 선두(Axy)값에 전체소스 이미지의 넓이(SWW)값과 부분소스 이미지의 넓이(SWP)값의 차를 더하여 점프할 어드레스 값을 구한다. 상기 점프할 어드레스 값에 Y방향 카운터 값에 1을 더한값을 더하여, 다음 라인의 비트맵 데이터의 메모리 선두 어드레스 값을 연산한다. 또한 Y방향 카운터 값을 1씩 증가 시키고, X방향 카운터 값은 1로 초기화 시킨다. (제46단계) 그리고 제38단계 내지 제46단계는 제44단계의 조건을 만족 할때까지 반복 수행된다. 위에서, 제34단계 및 제46단계는 제5도 도면의 제1메모리(6)상에 비트맵 데이터가 기록되지 않은 영역(14)에 해당되며, 그외의 나머지 단계는 제5도 도면의 제1메모리(6)상에 데이터가 기록된 영역(16)에 해당된다.When the DMA controller 4 wants to access the distributed bitmap data on the main memory, the CPU 2 uses the X coordinate (SXR) value of the partial source image, the Y coordinate (SYR) value of the partial source image, and the partial. The width (SWP) value of the source image, the height (SHP) value of the partial source image, the storage area leading position (SAR) value of the entire source image, the width (SWW) value of the entire source image, The data of each height SHW is transmitted to the DMA controller 4. (Step 34) The DMA controller 4 stores the storage area leading position (SAR) value and the partial source of the entire source image by the product of the width (SWW) value of the entire source image and the Y coordinate (SYR) of the partial source image. The X coordinate (SXR) value of the image is added to calculate the storage area head position (Axy) of the partial source image, and the X direction counter value and the Y direction counter value are initialized to one. (Step 36) In step 38, the DMA controller 4 accesses data corresponding to the storage area head position (Axy) value of the partial source image on the first or second memories 6 and 10. In step 40, the DMA controller 4 compares the X-direction counter value with the width (SWP) value of the partial source image and ends the access of the bitmap data for one line if the X-direction counter value is matched, and the X-direction counter value is In case of small, step 42 is performed. On the other hand, when the X-direction counter value is smaller than the width (SWP) value of the partial source image, the X-direction counter value and the storage area head position (Axy) value of the partial source image are increased by one. (Step 42) And steps 38 to 42 are repeated until the condition of step 40 is satisfied. In step 44, the DMA controller 4 compares the Y-direction counter value with the height (SHP) value of the partial source image and ends the access of the bitmap data on the first memory 6, if it matches. If the counter value is small, step 46 is performed. On the other hand, when the Y-direction counter value is smaller than the height (SHP) value of the partial source image, the DMA controller 4 determines the width (SWW) value of the entire source image and the partial value at the storage area (Axy) value of the partial source image. The difference of the width (SWP) value of the source image is added to obtain an address value to jump to. The memory head address value of the bitmap data of the next line is calculated by adding the value obtained by adding 1 to the Y-direction counter value to the address value to be jumped. Also, increase Y direction counter value by 1 and reset X direction counter value to 1. (Step 46) And steps 38 to 46 are repeated until the condition of step 44 is satisfied. In the above, steps 34 and 46 correspond to an area 14 in which bitmap data is not written in the first memory 6 of FIG. 5 and the remaining steps are described in FIG. It corresponds to the area 16 in which data is recorded on the memory 6.

상기와 같은 방법으로 DMA콘트롤러(4)는 CPU(2)에서 부분소스 이미지의 X좌표(SXR)값과, 부분소스 이미지의 Y좌표(SYR)값과, 부분소스이미지의 넓이(SWP)값과, 부분소스 이미지의 높이(SHP)값과, 전체소스 이미지의 저장영역 선두위치(SAR)값과, 전체소스 이미지의 넓이(SWW)값과, 전체소스 이미지의 높이(SHW)값 각각의 데이터를 전송받아, 제1 메모리(6)상의 여러 라인의 그래픽 데이터를 한번의 DMA사이클로 액세스 할 수 있다.In the same manner as described above, the DMA controller 4 uses the X coordinate (SXR) value of the partial source image, the Y coordinate (SYR) value of the partial source image, and the width (SWP) value of the partial source image. Data of the partial source image height (SHP), the storage source head position (SAR) value of the entire source image, the width (SWW) value of the entire source image, and the height (SHW) value of the entire source image By receiving the data, several lines of graphic data on the first memory 6 can be accessed in one DMA cycle.

그리고, 제5도 및 제6도를 결부시켜 DMA콘트롤러가 제1 메모리로부터 제2 메모리쪽으로 비트맵 데이터를 전송하는 방법에 대하여 설명하기로 한다.5 and 6 will be described how the DMA controller transfers bitmap data from the first memory to the second memory.

제5도는 본 발명의 실시예에 따른 DMA콘트롤러가 제1 메모리에서 제2 메모리로 그래픽 데이터를 전송하는 방법을 개략적으로 도시하는 도면으로써, 제5도의 실시예는 제1도의 DMA콘트롤러에 의해 수행된다.FIG. 5 is a diagram schematically illustrating a method for transferring graphic data from a first memory to a second memory by a DMA controller according to an embodiment of the present invention. The embodiment of FIG. 5 is performed by the DMA controller of FIG. .

제5도의 구성에서, DMA콘트롤러는 소스 메모리의 비트맵 데이터를 전송하기 위해 부분소스 이미지의 X좌표(SXR1)값과, 부분소스 이미지의 Y좌표(SYR1)값과, 부분소스이미지의 넓이(SWP1)값과, 부분소스 이미지의 높이(SHP1)값과, 전체소스 이미지의 저장영역 선두위치(SAR1)값과, 전체소스 이미지의 넓이(SWW1)값과, 전체소스 이미지의 높이(SHW1)값, 각각의 레지스터와, 데스티네이션 메모리의 비트맵 데이터를 처리하기 위한 부분목적 이미지의 X좌표(SXR2)값과, 부분목적 이미지의 Y좌표(SYR2)값과, 부분 목적 이미지의 넓이(SWP2)값과, 부분목적 이미지의 높이(SHP2)값과, 전체목적 이미지의 저장영역 선두위치(SAR2)값과, 전체목적 이미지의 넓이(SWW2)값과, 전체목적 이미지의 높이(SHW2)값 각각의 레지스터를 구비한다.In the configuration of FIG. 5, the DMA controller uses the X coordinate (SXR1) value of the partial source image, the Y coordinate (SYR1) value of the partial source image, and the width (SWP1) of the partial source image to transfer bitmap data of the source memory. ), The height (SHP1) value of the partial source image, the storage area head position (SAR1) value of the entire source image, the width (SWW1) value of the entire source image, the height (SHW1) value of the full source image, Each register, the X coordinate (SXR2) value of the partial object image for processing bitmap data of the destination memory, the Y coordinate (SYR2) value of the partial object image, the width (SWP2) value of the partial object image, Registers of the height of the partial-purpose image (SHP2), the storage area head position (SAR2) of the full-purpose image, the width of the full-purpose image (SWW2), and the height (SHW2) of the full-purpose image. Equipped.

또한, 제6도는 본 발명의 실시예에 따른 DMA콘트롤러가 제1 메모리에서 제2 메모리로 그래픽 데이터를 전송하는 방법을 설명하는 흐름도로써, DMA콘트롤러(4)가 제 1메모리(6)로부터 제2 메모리(10)로 비트맵 데이터를 전송하고자 할 때, CPU(2)에서는 제1 메모리(6)상의 전체소스 이미지의 선두위치(SXR1)값과, 부분소스 이미지의 X좌표(SXR1)값과, 부분소스 이미지의 Y좌표(SYR1)값과, 부분소스이미지의 넓이(SWP1)값과, 부분소스 이미지의 높이(SHP1)값과, 전체소스 이미지의 저장영역 선두위치(SAR1)값과, 전체소스 이미지의 넓이(SWW1)값과, 전체소스 이미지의 높이(SHW1)값 각각의 데이터 값과 제2 메모리(10)상의 전체목적 이미지의 선두위치(SXR2)값과, 부분목적 이미지의 X좌표(SXR2)값과, 부분목적 이미지의 Y좌표(SYR2)값과, 부분목적 이미지의 넓이(SWP2)값과, 부분목적 이미지의 높이(SHP2)값과, 전체목적 이미지의 저장영역 선두위치(SAR2)값과, 전체목적 이미지의 넓이(SWW2)값과, 전체목적 이미지의 높이(SHW2)값 각각의 데이터 값을 DMA콘트롤러(4)에 전송한다. (제48단계) 제50단계에서, DMA콘트롤러(4)는 전체소스 이미지의 넓이(SWW1)과 부분소스 이미지의 Y좌표(SYR1)의 곱의 값에 전체소스 이미지 저장영역의 선두위치(SAR1)값과 부분소스 이미지의 X좌표(SXR1)값을 더하여 제 1메모리(6)상의 부분소스 이미지의 저장영역 선두위치(Axy1)값과, 전체목적 이미지의 넓이(SWW2)와 부분목적 이미지의 Y좌표(SYR2)의 곱의 값에 전체목적 이미지의 선두위치(SAR2)와 부분목적 이미지의 X좌표(SXR2)값을 더하여 제2메모리(10)상의 부분목적 이미지의 저장영역 선두위치(Axy2)값을 연산하고, X방향 카운터 값과 Y방향 카운터 값을 1로 초기화 시킨다. DMA콘트롤러(4)는 제1 메모리(6)로부터 부분소스 이미지의 저장영역 선두위치(Axy1)에 해당하는 데이터를 리드 한후, 제2 메모리(10)쪽의 부분목적 이미지의 저장영역 선두위치(Axy2)에 해당하는 어드레스에 데이터를 기록한다. (제52단계 내지 제54단계) 제56단계에서, DMA콘트롤러(4)는 X방향 카운터 값과 부분소스 이미지의 넓이(SWP)값을 비교하여 일치하는 경우에는, 한 라인에 대한 비트맵 데이터를 제1 메모리(6)로부터 리드하여, 제2 메모리(10)에 기록하고, X방향 카운터 값이 작은 경우에는 제58단계를 수행한다. 한편 X방향 카운터 값이 작은경우에는, 부분소스 이미지의 저장영역 선두위치(Axy1)값과 부분목적 이미지의 저장영역 선두위치(Axy2)값을 각각 1씩 증가 시키고, X방향 카운터 값을 1씩 증가 시킨다. (제58단계) 그리고, 제52단계 내지 제58단계는 제56단계의 조건을 만족 할 때까지 반복 수행된다. 제60단계에서, DMA콘트롤러(4)는 Y방향 카운터 값과 부분소스 이미지의 높이(SHP)값을 비교하여 일치하는 경우에는 비트맵 데이터를 제 1메모리(6)로 부터 리드하여, 제2메모리(10)로 기록한후, 데이터 전송을 완료하고 Y방향 카운터 값이 작은 경우에는 제62단계를 수행한다. 한편 Y방향 카운터 값이 작은 경우에는, DMA콘트롤러(4)는 부분소스 이미지의 저장영역 선두위치(Axy1)값에 전체소스 이미지의 넓이(SWW1)값과 부분소스 이미지의 넓이(SWP1)값의 차를 더하여 제1 메모리(6)상의 점프할 어드레스와, 부분목적 이미지의 저장영역 선두위치(Axy2)값에 전체목적 이미지의 선두위치(SWW2)값과 부분목적 이미지의 높이(SWP2)값의 차를 더하여 제2 메모리(10)상의 점프할 어드레스 값을 구한후, 상기 점프할 각각의 어드레스 값에 Y방향의 값에 1을 더한 값을 더하여 다음 라인의 비트맵 데이터의 메모리 선두 어드레스 값을 연산한다. 또한 Y방향 카운터 값을 1씩 증가 시키고, X방향 카운터 값은 1로 초기화 시킨다. (제62단계) 그리고, 제52단계 내지 제62단계는 제60단계의 조건을 만족 할 때까지 반복 수행된다.6 is a flowchart illustrating a method in which a DMA controller transfers graphic data from a first memory to a second memory according to an embodiment of the present invention, wherein the DMA controller 4 is connected to the second memory from the first memory 6. When the bitmap data is to be transferred to the memory 10, in the CPU 2, the head position SXR1 value of the entire source image on the first memory 6, the X coordinate SXR1 value of the partial source image, The Y coordinate (SYR1) value of the partial source image, the width (SWP1) value of the partial source image, the height (SHP1) value of the partial source image, the storage area head position (SAR1) value of the full source image, and the total source The width SWW1 value of the image, the data value of the height SHW1 value of the entire source image, the head position SXR2 value of the full-purpose image on the second memory 10, and the X-coordinate SXR2 of the partial-object image. ), The Y-coordinate (SYR2) value of the partial-object image, the width (SWP2) value of the partial-object image, and the partial-object image. The data value of each of the height (SHP2) value, the storage area head position (SAR2) value of the full-purpose image, the width (SWW2) value of the full-purpose image, and the height (SHW2) value of the full-purpose image are stored in the DMA controller ( 4) to transmit. (Step 48) In step 50, the DMA controller 4 determines the first position SAR1 of the entire source image storage area by a product of the width SWW1 of the entire source image and the Y coordinate SYR1 of the partial source image. Value and the X coordinate (SXR1) value of the partial source image, the storage area head position (Axy1) value of the partial source image on the first memory 6, the width (SWW2) of the full-purpose image, and the Y-coordinate of the partial-object image. The value of the product of (SYR2) is added to the head position (SAR2) of the whole object image and the X coordinate (SXR2) value of the partial object image to obtain the storage area head position (Axy2) value of the partial object image on the second memory 10. Calculate and initialize the X direction counter value and Y direction counter value to 1. The DMA controller 4 reads data corresponding to the storage area head position Axy1 of the partial source image from the first memory 6, and then stores the head position Axy2 of the partial-object image on the second memory 10 side. Write the data to the address corresponding to). (Steps 52 to 54) In step 56, the DMA controller 4 compares the X-direction counter value and the width (SWP) value of the partial source image and compares the bitmap data for one line with each other. The method reads from the first memory 6, writes to the second memory 10, and performs step 58 when the X-direction counter value is small. On the other hand, when the X direction counter value is small, the storage area head position (Axy1) value of the partial source image and the storage area head position (Axy2) value of the partial object image are each increased by 1, and the X direction counter value is increased by 1, respectively. Let's do it. (Step 58) Then, steps 52 to 58 are repeatedly performed until the condition of step 56 is satisfied. In step 60, the DMA controller 4 compares the Y-direction counter value with the height (SHP) value of the partial source image and reads bitmap data from the first memory 6 when the value matches and the second memory. After writing to (10), if the data transfer is completed and the Y-direction counter value is small, step 62 is performed. On the other hand, when the Y-direction counter value is small, the DMA controller 4 differs between the width (SWW1) value of the entire source image and the width (SWP1) value of the partial source image from the storage area head position (Axy1) value of the partial source image. In addition, the difference between the address to jump on the first memory 6, the start position (SWW2) value of the full-purpose image and the height (SWP2) value of the partial-object image is added to the storage area head position (Axy2) value of the partial-object image. In addition, after obtaining an address value to jump on the second memory 10, a value of 1 in the Y direction is added to each address value to be jumped to calculate the memory head address value of the bitmap data of the next line. Also, increase Y direction counter value by 1 and reset X direction counter value to 1. (Step 62) Then, steps 52 to 62 are repeatedly performed until the condition of step 60 is satisfied.

상기와 같은 방법으로 DMA콘트롤러(4)는 CPU(2)에서 제1메모리(6)상의 부분소스 이미지의 X좌표(SXR1)값과, 부분소스 이미지의 Y좌표(SYR1)값과, 부분소스이미지의 넓이(SWP1)값과, 부분소스 이미지의 높이(SHP1)값과, 전체소스 이미지의 저장영역 선두위치(SAR1)값과, 전체소스 이미지의 넓이(SWW1)값과, 전체소스 이미지의 높이(SHW1)값 각각의 데이터 값과 제2 메모리(10)상의 전체목적 이미지의 선두위치(SXR2)값과, 부분목적 이미지의 X좌표(SXR2)값과, 부분목적 이미지의 Y좌표(SYR2)값과, 부분목적 이미지의 넓이(SWP2)값과, 부분목적 이미지의 높이(SHP2)값과, 전체목적 이미지의 저장영역 선두위치(SAR2)값과, 전체목적 이미지의 넓이(SWW2)값과, 전체목적 이미지의 높이(SHW2)값 각각의 데이터 값을 전송받아 제1 메모리(6)로 부터의 비트맵 데이터를 한 번의 DMA사이클로 제2 메모리(10)쪽으로 전송 할 수 있다. 또한 상기와 동일한 방법으로 DMA콘트롤러(4)는 제1 메모리(6)로 부터 출력장치쪽으로 그래픽 데이터를 전송 할 수 있다.In the same manner as described above, the DMA controller 4 uses the CPU 2 to determine the X coordinate SXR1 value of the partial source image on the first memory 6, the Y coordinate SYR1 value of the partial source image, and the partial source image. Width (SWP1) value, the height of the partial source image (SHP1), the storage area head position (SAR1) value of the entire source image, the width (SWW1) value of the entire source image, and the height of the entire source image ( SHW1) value, the first position SXR2 value of the whole object image on the second memory 10, the X coordinate SXR2 value of the partial object image, and the Y coordinate SYR2 value of the partial object image. , The width of the partial-object image (SWP2), the height of the partial-object image (SHP2), the storage area leading position (SAR2) of the whole-object image, the width of the whole-object image (SWW2), and the total-object Receives the data value of each height SHW2 value of the image and transfers the bitmap data from the first memory 6 to the second message in one DMA cycle. Li can transport up (10). In the same manner as above, the DMA controller 4 may transfer graphic data from the first memory 6 to the output device.

상술한 바와같이, 본 발명의 그래픽 데이터 처리장치는, 그래픽 데이터의 처리속도를 빠르게 할 수 있는 장점이 있다.As described above, the graphic data processing apparatus of the present invention has an advantage of speeding up the processing speed of graphic data.

이상 설명한 내용을 통해 당업자 라면 본 발명의 기술사상을 일탈하지 아니하는 범위에서 다양한 변경 및 수정이 가능함을 알수 있을 것이다. 따라서, 본 발명의 기술적 범위는 명세서의 상세한 설명에 기재된 내용으로 한정되는 것이 아니라 특허 청구의 범위에 의해 정하여 져야만 할 것이다.Those skilled in the art will appreciate that various changes and modifications can be made without departing from the technical spirit of the present invention. Therefore, the technical scope of the present invention should not be limited to the contents described in the detailed description of the specification but should be defined by the claims.

Claims (1)

그래픽 데이터의 처리장치에 있어서,In the graphic data processing apparatus, 데이터 전송의 제어 및 데이터의 연산을 위한 주 제어수단과;Main control means for controlling data transmission and for calculating data; 상기 주 제어수단에 의해 처리된 데이터를 비트맵 방식으로 저장하기 위한 메모리와;A memory for storing data processed by the main control means in a bitmap manner; 상기 주 제어수단의 액세스 요청에 응답하여 상기 메모리상의 임의의 장방형 저장영역에 저장된 데이터를 연속적으로 액세스 하기 위하여, 상기 메모리 저장된 비트맵 데이터의 선두 어드레스를 저장하기 위한 기억소자와, 상기 메모리에 저장된 상기 비트맵 데이터의 넓이 데이터를 저장하기 위한 기억소자와, 상기 메모리에 저장된 상기 비트맵 데이터의 높이 데이터를 저장하기 위한 기억소자와, 액세스될 장방향의 저장영역의 넓이 데이터를 저장하기 위한 기억소자와, 액세스될 장방향의 저장영역의 높이 데이터를 저장하기 위한 기억소자와, 액세스 될 비트맵 데이터의 저장영역의 어드레스를 저장하기 위한 기억소자와, 점프횟수를 저장하기 위한 기억소자를 가지는 보조 제어수단을 구비하는 것을 특징으로 하는 그래픽 데이터 처리장치.A memory element for storing the head address of the memory stored bitmap data for continuously accessing data stored in any rectangular storage area on the memory in response to an access request of the main control means, and the memory stored in the memory; A storage element for storing the width data of the bitmap data, a storage element for storing the height data of the bitmap data stored in the memory, a storage element for storing the width data of the long-term storage area to be accessed; An auxiliary control means having a memory element for storing the height data of the long-term storage area to be accessed, a memory element for storing the address of the storage area of the bitmap data to be accessed, and a memory element for storing the number of jumps Graphic data processing apparatus comprising a.
KR1019970032478A 1997-07-12 1997-07-12 Graphic Data Processing Unit KR19990009905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970032478A KR19990009905A (en) 1997-07-12 1997-07-12 Graphic Data Processing Unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970032478A KR19990009905A (en) 1997-07-12 1997-07-12 Graphic Data Processing Unit

Publications (1)

Publication Number Publication Date
KR19990009905A true KR19990009905A (en) 1999-02-05

Family

ID=66039418

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970032478A KR19990009905A (en) 1997-07-12 1997-07-12 Graphic Data Processing Unit

Country Status (1)

Country Link
KR (1) KR19990009905A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR860002047A (en) * 1984-08-06 1986-03-26 루이스 피·엘빈저 Automatic pattern generator for graphic display
KR880700378A (en) * 1985-07-09 1988-03-15 Bitmap graphic terminal device
JPH0612054A (en) * 1993-01-25 1994-01-21 Hitachi Ltd Picture display control method for graphic display device
JPH06176163A (en) * 1992-12-07 1994-06-24 Nec Corp Graphic plotting system
KR950007531A (en) * 1993-08-31 1995-03-21 배순훈 2-D digital filter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR860002047A (en) * 1984-08-06 1986-03-26 루이스 피·엘빈저 Automatic pattern generator for graphic display
KR880700378A (en) * 1985-07-09 1988-03-15 Bitmap graphic terminal device
JPH06176163A (en) * 1992-12-07 1994-06-24 Nec Corp Graphic plotting system
JPH0612054A (en) * 1993-01-25 1994-01-21 Hitachi Ltd Picture display control method for graphic display device
KR950007531A (en) * 1993-08-31 1995-03-21 배순훈 2-D digital filter

Similar Documents

Publication Publication Date Title
US5299309A (en) Fast graphics control system capable of simultaneously storing and executing graphics commands
US9811873B2 (en) Scaler circuit for generating various resolution images from single image and devices including the same
JP2889149B2 (en) Image display control method and image display control device
JPH0687189B2 (en) Display device
KR19990009905A (en) Graphic Data Processing Unit
KR100472478B1 (en) Method and apparatus for controlling memory access
JP3088564B2 (en) Image processing device
US20090094420A1 (en) Data access method and memory using the same
JPH04295918A (en) Liquid crystal display controller
KR920008958B1 (en) Display control apparatus
KR880011645A (en) Video subsystem
JPH0427571B2 (en)
JPH01169622A (en) Display device
JPS6258509B2 (en)
JPS6165292A (en) Graphic display unit
JPH0553548A (en) Display controller
JPH03105438A (en) Memory control method
JPH0520410A (en) Picture processor
JPH10254423A (en) System and method for controlling display
JPH06214749A (en) Plotting controller
JPS592074A (en) System of writing character into image memory
JPS60172087A (en) Display control system for virtual large screen type display unit
JPH0228869B2 (en) GURAFUITSUKUDEISUPUREISOCHINONYURYOKUFUIIRUDOSEIGYOHOSHIKI
JPS6286391A (en) Display unit
JPH0588660A (en) Graphic data plotting device

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application