TW202411821A - Touch data processing method, driver chip and touch display performing a touch data processing program on a frame of touch sensing data stored in a memory area by utilizing the composite operation circuit - Google Patents
Touch data processing method, driver chip and touch display performing a touch data processing program on a frame of touch sensing data stored in a memory area by utilizing the composite operation circuit Download PDFInfo
- Publication number
- TW202411821A TW202411821A TW111133586A TW111133586A TW202411821A TW 202411821 A TW202411821 A TW 202411821A TW 111133586 A TW111133586 A TW 111133586A TW 111133586 A TW111133586 A TW 111133586A TW 202411821 A TW202411821 A TW 202411821A
- Authority
- TW
- Taiwan
- Prior art keywords
- touch
- data processing
- memory area
- unit
- operation circuit
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 239000002131 composite material Substances 0.000 title abstract 3
- 238000000034 method Methods 0.000 claims description 14
- 230000003287 optical effect Effects 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 description 26
- 238000012545 processing Methods 0.000 description 20
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 4
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000012552 review Methods 0.000 description 2
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Advance Control (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
本發明係有關於觸控資料處理,特別是關於一種以一專用ALU執行觸控資料處理之方法。The present invention relates to touch data processing, and more particularly to a method of performing touch data processing with a dedicated ALU.
TDDI(touch and display driver integration;觸控顯示驅動整合)是一種將觸控掃描與顯示驅動集成於同一塊晶片內的觸控、顯示一體化方案。該方案需要在特定的顯示間隙中完成觸控面板的掃描,同時為了保證觸控效果,觸控報點的頻率普遍為顯示幀率的兩倍以上。隨著當前螢幕高刷新率的普及推廣,TDDI晶片對觸控資料處理速度的要求也更高,其處理方式為利用MCU(microcontroller unit;微控制器)向ALU (architecture logic unit ;算數邏輯單元)發送相應指令並由ALU對記憶體中的感測器陣列資料進行資料運算,所述資料運算包括資料搬移、算數運算(加、減、乘、除、取模)、比較運算(大於、等於、小於)和移位元運算(邏輯移位元、算數移位)等基本運算,以及由基本運算組成的專用於觸控需求的複合運算。所述複合運算的功能可為尋找陣列資料極值點的數值及行列位置、求解大於或小於某一特定閾值的資料個數及累加和、對陣列資料進行均值濾波或求解單行或單列感測器陣列資料中由於各種因素影響而產生的異常上升的直流分量。TDDI (touch and display driver integration) is a touch and display integration solution that integrates touch scanning and display driver into the same chip. This solution requires the touch panel to be scanned within a specific display gap. At the same time, in order to ensure the touch effect, the frequency of touch reporting is generally more than twice the display frame rate. With the popularization of high refresh rate screens, TDDI chips have higher requirements for touch data processing speed. The processing method is to use MCU (microcontroller unit) to send corresponding instructions to ALU (architecture logic unit) and the ALU performs data operations on the sensor array data in the memory. The data operations include basic operations such as data movement, arithmetic operations (addition, subtraction, multiplication, division, modulus), comparison operations (greater than, equal to, less than) and shift operations (logical shift, arithmetic shift), as well as complex operations composed of basic operations dedicated to touch requirements. The functions of the complex operation can be to find the value and row and column position of the extreme point of the array data, to solve the number and cumulative sum of data greater than or less than a certain threshold, to perform mean filtering on the array data, or to solve the abnormally rising DC component generated by various factors in the single row or single column sensor array data.
根據實際應用的需求,TDDI晶片中內置有多塊的獨立儲存單元,其中每一儲存單元都可以用於存放觸控採樣的原始資料或經過專用ALU處理計算後的中間值或最終運算結果。TDDI晶片在工作時,其觸控掃描所得到的連續多幀感測器陣列資料,按照應用的需求可能放於同一塊或不同塊的儲存單元內,而MCU會通過發送指令控制ALU以對該些獨立儲存單元中的單幀或多幀原始及中間資料的整體或部分進行上述的處理和運算,並將結果寫回指定儲存單元的指定位置上。According to the requirements of actual applications, TDDI chips have multiple independent storage units built in, each of which can be used to store the original data of touch sampling or the intermediate value or final calculation result after processing and calculation by a dedicated ALU. When the TDDI chip is working, the continuous multi-frame sensor array data obtained by its touch scanning may be placed in the same or different storage units according to the requirements of the application, and the MCU will control the ALU by sending instructions to perform the above-mentioned processing and calculation on the single frame or multiple frames of original and intermediate data in these independent storage units in whole or in part, and write the results back to the specified location of the specified storage unit.
如上所述,專用ALU的處理物件為來自感測器的資料矩陣,而其處理方式為運用基本運算或由基本運算組合而成的複合運算。另外,由於當前大多數的基本運算IP(矽智財)均可以實現基於流水線(pipeline)的連續運算,因此,最終限制專用ALU處理速度的往往是由ALU連續進行儲存單元訪問的效率決定,如果其儲存單元不能連續高效地給出運算的運算元並寫回運算結果,基本運算的流水線就會不斷地被打斷,致使整體的資料處理時間被拉長。As mentioned above, the processing object of the dedicated ALU is the data matrix from the sensor, and its processing method is to use basic operations or complex operations composed of basic operations. In addition, since most of the current basic operation IPs (Intellectual Property) can realize continuous operations based on pipelines, the ultimate limit to the processing speed of the dedicated ALU is often determined by the efficiency of the ALU's continuous access to the storage unit. If its storage unit cannot continuously and efficiently provide the operation elements and write back the operation results, the basic operation pipeline will be continuously interrupted, resulting in the overall data processing time being extended.
為解決上述的問題,本領域亟需一新穎的觸控資料處理方案。To solve the above problems, a novel touch data processing solution is urgently needed in this field.
本發明之一目的在於揭露一種觸控資料處理方法,其可在一觸控專用ALU執行一流水線觸控資料處理程序時,配合各運算所需時間自一記憶體區讀入運算元和將運算結果寫回該記憶體區,從而極大化該流水線觸控資料處理程序的處理速度。One purpose of the present invention is to disclose a touch data processing method, which can read operation elements from a memory area and write operation results back to the memory area according to the time required for each operation when a touch-specific ALU executes a pipeline touch data processing program, thereby maximizing the processing speed of the pipeline touch data processing program.
本發明之另一目的在於揭露一種觸控資料處理方法,其可藉由一可規畫的ALU提供不同的流水線觸控資料處理程序,從而提供相容性與可維護性。Another object of the present invention is to disclose a touch data processing method, which can provide different pipeline touch data processing procedures through a programmable ALU, thereby providing compatibility and maintainability.
本發明之另一目的在於揭露一種驅動晶片,其可藉由前述的方法極大化所述流水線觸控資料處理程序的處理速度,及依不同的應用需求在一可規畫的ALU中規劃出不同的流水線觸控相關運算,從而提供相容性與可維護性。Another object of the present invention is to disclose a driver chip that can maximize the processing speed of the pipeline touch data processing program through the aforementioned method, and plan different pipeline touch related operations in a programmable ALU according to different application requirements, thereby providing compatibility and maintainability.
本發明之又一目的在於揭露一種觸控顯示器,其可藉由前述的驅動晶片優化觸控資料的處理速度,及依不同的應用需求在一可修改的ALU中規劃出不同的流水線觸控資料處理程序,從而提供相容性與可維護性。Another object of the present invention is to disclose a touch display that can optimize the processing speed of touch data through the aforementioned driver chip, and plan different pipeline touch data processing procedures in a modifiable ALU according to different application requirements, thereby providing compatibility and maintainability.
為達前述目的,一種觸控資料處理方法乃被提出,其係由一算數邏輯單元執行,該方法包括: 利用該算數邏輯單元內之一規劃單元接收一組規劃參數;以及 依該組規劃參數在該算數邏輯單元內之多個基本運算電路中選擇至少一所述基本運算電路以組成一複合運算電路,及利用該複合運算電路對儲存在一記憶體區中之一幀觸控感測資料執行一觸控資料處理程序。 To achieve the above-mentioned purpose, a touch data processing method is proposed, which is executed by an arithmetic logic unit, and the method includes: Using a planning unit in the arithmetic logic unit to receive a set of planning parameters; and Selecting at least one of the basic operation circuits in the arithmetic logic unit according to the set of planning parameters to form a complex operation circuit, and using the complex operation circuit to execute a touch data processing program on a frame of touch sensing data stored in a memory area.
在一實施例中,該組規劃參數包括一運算電路組態參數以據以組成該複合運算電路。In one embodiment, the set of planning parameters includes a computing circuit configuration parameter to configure the complex computing circuit.
在一實施例中,該組規劃參數進一步包括一次數參數,且該次數參數係用以決定該觸控資料處理程序之執行次數。In one embodiment, the set of planning parameters further includes a time parameter, and the time parameter is used to determine the execution times of the touch data processing program.
在一實施例中,該組規劃參數進一步包括至少一組基本運算參數,各該組基本運算參數均包括至少一運算元儲存位址及一運算結果儲存位址以供該複合運算電路在執行該觸控資料處理程序時,自該記憶體區載入所需的運算元資料及將所產生的運算結果資料寫入該記憶體區中。In one embodiment, the set of planning parameters further includes at least one set of basic operation parameters, each of which includes at least one operation element storage address and an operation result storage address for the complex operation circuit to load the required operation element data from the memory area and write the generated operation result data into the memory area when executing the touch data processing program.
在一實施例中,該複合運算電路中之各所述基本運算電路均具有至少一運算元暫存單元、一運算結果暫存單元及一對應的執行時間,且當該複合運算電路進行操作時,其內部各所述基本運算電路均係依該對應的執行時間產生至少一第一延遲時間及一第二延遲時間,所述至少一第一延遲時間係用以決定將該記憶體區之所述至少一運算元儲存位址所儲存的所述運算元資料載入所述至少一運算元暫存單元的時間,及該第二延遲時間係用以決定將所述運算結果資料寫入該記憶體區之所述運算結果儲存位址的時間。In one embodiment, each of the basic operation circuits in the complex operation circuit has at least one operation element temporary storage unit, an operation result temporary storage unit and a corresponding execution time, and when the complex operation circuit is operated, each of the basic operation circuits inside it generates at least one first delay time and a second delay time according to the corresponding execution time. The at least one first delay time is used to determine the time to load the operation element data stored in the at least one operation element storage address of the memory area into the at least one operation element temporary storage unit, and the second delay time is used to determine the time to write the operation result data into the operation result storage address of the memory area.
為達前述目的,發明進一步提出一種驅動晶片,其包括一控制單元、一記憶體區及一算數邏輯單元以執行一觸控資料處理方法,該方法包括: 利用該算數邏輯單元內之一規劃單元接收該控制單元所輸出之一組規劃參數;以及 該算數邏輯單元依該組規劃參數在該算數邏輯單元內之多個基本運算電路中選擇至少一所述基本運算電路以組成一複合運算電路,及利用該複合運算電路對儲存在該記憶體區中之一幀觸控感測資料執行一觸控資料處理程序。 To achieve the above-mentioned purpose, the invention further proposes a driver chip, which includes a control unit, a memory area and an arithmetic logic unit to execute a touch data processing method, the method comprising: Using a planning unit in the arithmetic logic unit to receive a set of planning parameters output by the control unit; and The arithmetic logic unit selects at least one of the basic operation circuits in the arithmetic logic unit according to the set of planning parameters to form a complex operation circuit, and uses the complex operation circuit to execute a touch data processing program on a frame of touch sensing data stored in the memory area.
在一實施例中,該組規劃參數包括一運算電路組態參數以據以組成該複合運算電路。In one embodiment, the set of planning parameters includes a computing circuit configuration parameter to configure the complex computing circuit.
在一實施例中,該組規劃參數進一步包括一次數參數,且該次數參數係用以決定該觸控資料處理程序之執行次數。In one embodiment, the set of planning parameters further includes a time parameter, and the time parameter is used to determine the execution times of the touch data processing program.
在一實施例中,該組規劃參數進一步包括至少一組基本運算參數,各該組基本運算參數均包括至少一運算元儲存位址及一運算結果儲存位址以供該複合運算電路在執行該觸控資料處理程序時,自該記憶體區載入所需的運算元資料及將所產生的運算結果資料寫入該記憶體區中。In one embodiment, the set of planning parameters further includes at least one set of basic operation parameters, each of which includes at least one operation element storage address and an operation result storage address for the complex operation circuit to load the required operation element data from the memory area and write the generated operation result data into the memory area when executing the touch data processing program.
在一實施例中,該複合運算電路中之各所述基本運算電路均具有至少一運算元暫存單元、一運算結果暫存單元及一對應的執行時間,且當該複合運算電路進行操作時,其內部各所述基本運算電路均係依該對應的執行時間產生至少一第一延遲時間及一第二延遲時間,所述至少一第一延遲時間係用以決定將該記憶體區之所述至少一運算元儲存位址所儲存的所述運算元資料載入所述至少一運算元暫存單元的時間,及該第二延遲時間係用以決定將所述運算結果資料寫入該記憶體區之所述運算結果儲存位址的時間。In one embodiment, each of the basic operation circuits in the complex operation circuit has at least one operation element temporary storage unit, an operation result temporary storage unit and a corresponding execution time, and when the complex operation circuit is operated, each of the basic operation circuits inside it generates at least one first delay time and a second delay time according to the corresponding execution time. The at least one first delay time is used to determine the time to load the operation element data stored in the at least one operation element storage address of the memory area into the at least one operation element temporary storage unit, and the second delay time is used to determine the time to write the operation result data into the operation result storage address of the memory area.
為達前述目的,發明進一步提出一種觸控顯示器,其具有一觸控顯示模組及用以驅動該觸控顯示模組之如前述之驅動晶片。To achieve the above-mentioned object, the invention further proposes a touch display having a touch display module and a driving chip as mentioned above for driving the touch display module.
在一實施例中,該觸控顯示模組具有一觸控感測模組,且該觸控感測模組可為一電容式觸控感測模組、一電磁式觸控感測模組或一光學式觸控感測模組。In one embodiment, the touch display module has a touch sensing module, and the touch sensing module can be a capacitive touch sensing module, an electromagnetic touch sensing module or an optical touch sensing module.
為使 貴審查委員能進一步瞭解本發明之結構、特徵及其目的,茲附以圖式及較佳具體實施例之詳細說明如後。In order to enable the Review Committee to further understand the structure, features and purpose of the present invention, the following are attached with drawings and detailed descriptions of preferred specific embodiments.
本發明的原理在於: (一)可根據不同的應用需求在一ALU中規劃出不同的流水線觸控相關運算;以及 (二)可根據不同的應用需求規劃用以儲存運算元和運算結果的儲存單元的不同流水線存取模式,以合理分配不同模式下各儲存單元的訪問延時數值,從而在ALU進行一流水線觸控相關運算時優化其運算效率以降低整體耗費時間,從而實現更好的觸控效果或更高的觸控報點率。 The principle of the present invention is: (i) different pipeline touch-related operations can be planned in an ALU according to different application requirements; and (ii) different pipeline access modes of storage units used to store operation elements and operation results can be planned according to different application requirements to reasonably allocate the access delay values of each storage unit under different modes, thereby optimizing the operation efficiency when the ALU performs a pipeline touch-related operation to reduce the overall time consumption, thereby achieving better touch effect or higher touch reporting rate.
請參照圖1,其繪示本發明之驅動晶片之一實施例的方塊圖。如圖1所示,一驅動晶片100包括一控制單元110、一記憶體區120及一算數邏輯單元130,其中,記憶體區120具有多個基本儲存區121以儲存一幀觸控感測資料D
TCH,且算數邏輯單元130具有一規劃單元131、一組態控制單元132及一基本運算電路模組133。驅動晶片100以執行一觸控資料處理程序,該程序包括:
(一)利用規劃單元131接收控制單元110所輸出之一組規劃參數;以及
(二)規劃單元131依該組規劃參數中之一運算電路組態參數驅使組態控制單元132產生一組對應的連接信號S
CONN,基本運算電路模組133依該組連接信號S
CONN之控制在其所含之多個基本運算電路(可包含資料搬移電路、算數運算(加、減、乘、除、取模) 電路、比較運算(大於、等於、小於) 電路和移位元運算(邏輯移位元、算數移位) 電路等基本運算電路)中選擇至少一所述基本運算電路以組成一複合運算電路,及利用該複合運算電路對儲存在記憶體區120中之該幀觸控感測資料D
TCH執行一觸控資料處理程序,其中,該幀觸控感測資料D
TCH可來自一電容式觸控感測模組、一電磁式觸控感測模組或一光學式觸控感測模組。
Please refer to FIG1, which shows a block diagram of an embodiment of the driver chip of the present invention. As shown in FIG1, a
另外,該組規劃參數可進一步包括一次數參數D NUM,且該次數參數D NUM係用以決定該觸控資料處理程序之執行次數。 In addition, the set of planning parameters may further include a number parameter D NUM , and the number parameter D NUM is used to determine the execution times of the touch data processing program.
另外,該組規劃參數可進一步包括至少一組基本運算參數ADDR,各該組基本運算參數ADDR均包括至少一運算元儲存位址及一運算結果儲存位址以供該複合運算電路在執行該觸控資料處理程序時,自記憶體區120之多個基本儲存區121中之至少一基本儲存區載入所需的運算元資料D
IN,及將所產生的運算結果資料D
OUT寫入記憶體區120之多個基本儲存區121中之一基本儲存區。
In addition, the set of planning parameters may further include at least one set of basic operation parameters ADDR, each of which includes at least one operation element storage address and an operation result storage address for the complex operation circuit to load the required operation element data D IN from at least one basic storage area among the multiple
另外,該複合運算電路中之各所述基本運算電路均具有至少一運算元暫存單元、一運算結果暫存單元及一對應的執行時間,且當該複合運算電路進行操作時,其內部各所述基本運算電路均係依該對應的執行時間產生至少一第一延遲時間及一第二延遲時間,所述至少一第一延遲時間係用以決定將記憶體區120之所述至少一運算元儲存位址所儲存的所述運算元資料D
IN載入所述至少一運算元暫存單元的時間,及該第二延遲時間係用以決定將所述運算結果資料D
OUT寫入記憶體區120之所述運算結果儲存位址的時間。例如,假設一乘法運算需要3個執行週期,則本發明會使該乘法運算有兩個所述第一延遲時間以決定將記憶體區120之兩個運算元儲存位址所儲存的兩個運算元資料D
IN載入兩個運算元暫存單元的時間,及一所述第二延遲時間以決定將所述運算結果資料D
OUT寫入記憶體區120之所述運算結果儲存位址的時間,俾以使該乘法運算能夠順暢地以流水線的方式重複進行。
In addition, each of the basic operation circuits in the complex operation circuit has at least one operation element temporary storage unit, an operation result temporary storage unit and a corresponding execution time, and when the complex operation circuit is operated, each of the basic operation circuits inside it generates at least one first delay time and a second delay time according to the corresponding execution time. The at least one first delay time is used to determine the time to load the operation element data D IN stored in the at least one operation element storage address of the
由上述的說明可知,本發明揭露了一種觸控資料處理方法。請參照圖2,其繪示本發明之觸控資料處理方法之一實施例的流程圖,且其係由一算數邏輯單元執行。如圖2所示,該方法包括:利用該算數邏輯單元內之一規劃單元接收一組規劃參數(步驟a);以及依該組規劃參數在該算數邏輯單元內之多個基本運算電路中選擇至少一所述基本運算電路以組成一複合運算電路,及利用該複合運算電路對儲存在一記憶體區中之一幀觸控感測資料執行一觸控資料處理程序(步驟b)。As can be seen from the above description, the present invention discloses a touch data processing method. Please refer to FIG. 2, which shows a flow chart of an embodiment of the touch data processing method of the present invention, and it is executed by an arithmetic logic unit. As shown in FIG. 2, the method includes: using a planning unit in the arithmetic logic unit to receive a set of planning parameters (step a); and selecting at least one of the basic operation circuits in the arithmetic logic unit according to the set of planning parameters to form a complex operation circuit, and using the complex operation circuit to execute a touch data processing program on a frame of touch sensing data stored in a memory area (step b).
在上述的步驟中,該組規劃參數可包括:一運算電路組態參數以據以組成該複合運算電路;一次數參數以決定該觸控資料處理程序之執行次數;以及至少一組基本運算參數,各該組基本運算參數均包括至少一運算元儲存位址及一運算結果儲存位址以供該複合運算電路在執行該觸控資料處理程序時,自該記憶體區載入所需的運算元資料及將所產生的運算結果資料寫入該記憶體區中。In the above steps, the set of planning parameters may include: an operation circuit configuration parameter to form the complex operation circuit; a number parameter to determine the number of times the touch data processing program is executed; and at least one set of basic operation parameters, each of which includes at least one operation element storage address and an operation result storage address for the complex operation circuit to load the required operation element data from the memory area and write the generated operation result data into the memory area when executing the touch data processing program.
另外,該複合運算電路中之各所述基本運算電路均具有至少一運算元暫存單元、一運算結果暫存單元及一對應的執行時間,且當該複合運算電路進行操作時,其內部各所述基本運算電路均可依該對應的執行時間產生至少一第一延遲時間及一第二延遲時間,所述至少一第一延遲時間係用以決定將該記憶體區之所述至少一運算元儲存位址所儲存的所述運算元資料載入所述至少一運算元暫存單元的時間,及該第二延遲時間係用以決定將所述運算結果資料寫入該記憶體區之所述運算結果儲存位址的時間。In addition, each of the basic operation circuits in the complex operation circuit has at least one operation element temporary storage unit, an operation result temporary storage unit and a corresponding execution time, and when the complex operation circuit is operated, each of the basic operation circuits inside it can generate at least one first delay time and a second delay time according to the corresponding execution time. The at least one first delay time is used to determine the time to load the operation element data stored in the at least one operation element storage address of the memory area into the at least one operation element temporary storage unit, and the second delay time is used to determine the time to write the operation result data into the operation result storage address of the memory area.
詳細而言,本發明的算數邏輯單元可進行四種流水線操作模式,而其基本運算的典型場景為:從相同或不同的儲存單元中取得運算元A與運算元B,進行運算後將運算結果C寫回與兩個運算元相同或不同的儲存單元中。值得一提的是,本發明的運算元數目不限於兩個,其亦可為一個。In detail, the arithmetic logic unit of the present invention can perform four pipeline operation modes, and the typical scenario of its basic operation is: obtain operator A and operator B from the same or different storage units, perform the operation, and write the operation result C back to the same or different storage units as the two operators. It is worth mentioning that the number of operators of the present invention is not limited to two, and it can also be one.
承上,假設運算元A、運算元B、運算結果C所存放的儲存單元分別為單元A、單元B、單元C,且本發明之四種流水線操作模式為mode0-mode3,則以下的說明將給出各流水線操作模式所牽涉之相關參數的具體定義及該些相關參數在具體控制時序中的意義:Assume that the storage units where the operator A, operator B, and operation result C are stored are unit A, unit B, and unit C, respectively, and the four pipeline operation modes of the present invention are mode0-mode3. The following description will give the specific definition of the relevant parameters involved in each pipeline operation mode and the meaning of these relevant parameters in the specific control timing:
(1)存取控制計數器初始裝載值mem_ctrl_cnt_init: 本發明通過賦以計數器初始值並倒計時,並在計數器輸出不同計數值時控制ALU進行單元A、B、C的訪問,計數器從初始值到0的過程視為一次小計算週期,整體而言,每個計算週期將完成一次各單元的訪問。 (1) Access control counter initial load value mem_ctrl_cnt_init: The present invention controls the ALU to access units A, B, and C by assigning an initial value to the counter and counting down, and when the counter outputs different count values, the process of the counter from the initial value to 0 is regarded as a small calculation cycle. Overall, each calculation cycle will complete a visit to each unit.
(2)寫/讀空計數器初始裝載值wr_rd_blk_cyc_init: 存取控制計數器初始裝載值mem_ctrl_cnt_init描述的是每個小計算週期的迴圈初始值,但在實際應用中,在給出運算元A與運算元B後,運算單元往往無法在本次的計算週期內給出運算結果C,而往往要在下一個乃至後幾個迴圈週期後才能給出結果。因此,初始的幾個計算週期只需要給出運算元而不需要寫回結果,而最後的幾個計算週期則只需要寫回結果而不需要讀入運算元。描述該寫空和讀空週期數的數值即為其初始裝載值。在ALU開始工作後,寫空計數器被賦予初始值並隨著計算週期遞減,在寫空計數器為0前認為運算單元尚未給出結果,因此不進行單元C的訪問;同時類似的,在最後一次計算開始時,讀空計數器被賦予初始值並隨著計算週期遞減,此時認為所有的運算元都已經給出,不進行單元A、B的訪問;以及在讀空計數器為0後,認為本次ALU運算已結束,存取控制計數器不再工作。 (2) Write/read empty counter initial load value wr_rd_blk_cyc_init: The access control counter initial load value mem_ctrl_cnt_init describes the loop initial value of each small calculation cycle. However, in actual applications, after the operator A and operator B are given, the operation unit often cannot give the operation result C in this calculation cycle, and often has to give the result after the next or even the next few cycles. Therefore, the initial few calculation cycles only need to give the operator without writing back the result, while the last few calculation cycles only need to write back the result without reading the operator. The value describing the number of write and read cycles is its initial load value. After the ALU starts working, the write empty counter is assigned an initial value and decreases with the calculation cycle. Before the write empty counter is 0, it is considered that the operation unit has not yet given a result, so unit C is not accessed; similarly, at the beginning of the last calculation, the read empty counter is assigned an initial value and decreases with the calculation cycle. At this time, it is considered that all the operation elements have been given, and units A and B are not accessed; and after the read empty counter is 0, it is considered that this ALU operation has ended, and the access control counter no longer works.
(3)單元存取延時ramb_ce_dly_cyc/ramc_ce_dly_cyc: 如上(1)中的描述,在計數值的不同值時ALU會進行儲存單元A、B、C的訪問,其中單元A固定在計數值為初始值時進行,而視各單元實際佔用儲存單元配置的不同,單元B與單元C訪問相較於單元A的延時也不同,該數值由單元存取延時週期決定。 (3) Unit access delay ramb_ce_dly_cyc/ramc_ce_dly_cyc: As described in (1) above, the ALU will access storage units A, B, and C at different count values, where unit A is fixed at the initial count value. Depending on the actual storage unit configuration occupied by each unit, the access delay of unit B and unit C is different from that of unit A. This value is determined by the unit access delay cycle.
(4)運算結果延時ramc_wdata_dly_cyc: 本發明基於存取效率的角度定義了各種存取模式下單元C的訪問時刻,即運算結果的寫回時刻,但由於各種運算單元耗費時間不定,除了需要寫空週期計數器來進行計算週期的調整外,還需要配合運算結果延時週期對運算結果的時刻進行微調,從而在規定的寫回時刻將資料寫回。寫/讀空計數器裝載值及運算結果延時週期的設置拉長了單次運算的實際耗費時間,但滿足了存取的流水線條件,故能在類似於觸控資料處理的連續運算時取得最優的整體運算時間。 (4) Calculation result delay ramc_wdata_dly_cyc: Based on the access efficiency, the present invention defines the access timing of unit C under various access modes, that is, the write-back timing of the calculation result. However, since the various calculation units take varying amounts of time, in addition to the need to write the empty cycle counter to adjust the calculation cycle, it is also necessary to fine-tune the timing of the calculation result in conjunction with the calculation result delay cycle, so that the data is written back at the specified write-back timing. The setting of the write/read empty counter loading value and the calculation result delay cycle lengthens the actual time consumed by a single calculation, but meets the access pipeline conditions, so that the optimal overall calculation time can be obtained in continuous calculations similar to touch data processing.
給出模式配置參數後,下面對儲存單元的四種存取模式具體介紹如下:After giving the mode configuration parameters, the following are the specific introductions to the four access modes of the storage unit:
mode0:全流水模式,其條件為單元A、單元B及單元C來自于完全不同的基本存放裝置單元,或其中某個運算元固定或缺失時形成的各個單元可以完全無衝突的並行訪問情況。在該情況下,當基本運算可以進行完全流水運算時,單元A和單元B將進行連續無空隙的運算元讀取,並在基本運算完成後連續無空隙的寫回單元C而不產生儲存單元訪問衝突。因此,該模式整體能夠實現單個週期完成一次基本的ALU運算。對於耗費週期為n的運算,其參數配置如下表1所示。由於三單元均為連續訪問,因此各參數配置為0,其實際的寫空讀空週期本應為n,但由於初始值為0,因此mode0時單元C的訪問直接基於單元C延時n週期完成,不通過計數器數值實現。該模式的儲存單元訪問時序如圖3所示。
表1
mode1:半流水模式,其條件為單元A與單元B來自於不同的儲存單元或其中某個運算元缺失或固定,而運算結果C與運算元中的某一個來自相同儲存單元。此時單元A與單元B可以完全無衝突的並行訪問,而單元C避開與其相同單元的訪問衝突。該模式下整體能夠實現兩個週期完成一次基本的ALU運算,對於耗費週期為n的運算,其參數配置如表2,其中,[n/2]代表取最接近n/2的整數值,MOD((n+1), 2)代表(n+1)/2的餘數。以n取5為例,該模式的儲存單元訪問時序如圖4所示。
表2
mode2:半流水模式,其條件為單元A與單元B來自於相同的儲存單元,但其均與單元C的儲存單元不同。此時單元A與單元B需要進行錯開訪問,先訪問單元A,並在下一週期訪問單元B;同時在第三個週期時可以同時訪問單元A以讀取運算元A及訪問單元C以寫回運算結果。另外,為了保證運算元A與運算元B同時輸入運算單元,運算單元A的讀數據需要延時一個週期。該模式下整體仍為兩個週期完成一次基本ALU運算,對於耗費週期為n的運算,其參數配置如表3。其中wr_rd_blk_cyc_init不為整數時向下取整數。以n取5為例,該模式的儲存單元訪問時序如附圖5所示。
表3
mode3:半流水模式,條件為單元A、B、C均配置為同一儲存單元。該模式下三個單元均需要分時訪問從而避免存取衝突,與mode2類似,運算元A也需要延時一個週期以保證與運算元B同時給到運算單元。該模式下整體需要3個週期完成一次基本ALU運算,對於耗費為n的運算,其參數配置如表4,其中,f(MOD(n,3)) = (MOD(n,3)-1)*(3*MOD(n,3)-2)/2,亦即,當MOD(n,3)為0時,f(MOD(n,3)) = 1,當MOD(n,3)為1時,f(MOD(n,3)) = 0,且當MOD(n,3)為2時,f(MOD(n,3)) = 2。以n取5為例,該模式的儲存單元訪問時序如附圖6所示。
表4
實際上,對於無法進行流水線的運算演算法,也可以使用mode3的模式參數而在演算法和存取間取得最佳效率,但需要結合實際問題具體分析並給出具體參數,以在下一輪計算開始前提前訪問儲存單元從而完成運算處理的無縫銜接。In fact, for operation algorithms that cannot be pipelined, the mode parameters of mode3 can also be used to achieve the best efficiency between the algorithm and access. However, it is necessary to analyze the actual problem and give specific parameters in combination to access the storage unit in advance before the next round of calculation starts, so as to complete the seamless connection of the operation processing.
另外,值得一提的是,圖3-6是根據本發明實施例的四種流水模式下演算法延時為5的ALU存取時序示例,其分別展示了本發明所述的四種流水模式下ALU運算的寫空流水和讀空過程,其中opa與opb為發起存儲訪問後ALU得到對應運算元的時間;outc代表ALU產生運算結果後將其寫回存儲區域的時間;以及dly代表為滿足本發明所規定的運算時序,運算元或運算結果需要等待的時延。In addition, it is worth mentioning that Figures 3-6 are examples of ALU access timings with an algorithm delay of 5 under the four pipeline modes according to the embodiments of the present invention, which respectively show the write-to-empty pipeline and read-to-empty process of the ALU operation under the four pipeline modes described in the present invention, where opa and opb are the time it takes for the ALU to obtain the corresponding operand after initiating storage access; outc represents the time it takes for the ALU to write the calculation result back to the storage area after generating it; and dly represents the delay that the operand or calculation result needs to wait for in order to meet the calculation timing specified by the present invention.
由上述可知,本發明針對運算元和運算結果存放於儲存單元配置的不同,基於存取衝突設計了不同的ALU存取模式,通過在不同模式下結合運算單元耗費週期配置存取計數器裝載值、讀空/寫空計數器裝載值、單元存取延時及運算結果延時等參數,從而在演算法可流水運算的條件下,在記憶體訪問層面保證最優的連續運算的總體時長,從而在各種靈活的觸控資料處理場景下保持最優的ALU處理效率,以取得更好的觸控效果或更高的觸控報點率。As can be seen from the above, the present invention designs different ALU access modes based on access conflicts in view of the different configurations of the operation elements and operation results stored in the storage units. By combining the operation unit consumption cycle configuration in different modes, the access counter load value, read/write empty counter load value, unit access delay and operation result delay and other parameters are configured. Under the condition that the algorithm can be pipelined, the optimal overall duration of continuous operation is guaranteed at the memory access level, thereby maintaining the optimal ALU processing efficiency in various flexible touch data processing scenarios to obtain better touch effects or higher touch reporting rates.
依上述的說明,本發明進一步提出一種觸控顯示器。請參照圖7,其繪示本發明之觸控顯示器之一實施例之方塊圖。如圖7所示,一觸控顯示器200具有一觸控顯示模組210及用以驅動觸控顯示模組210之一驅動晶片220,其中,驅動晶片220係由驅動晶片100實現。According to the above description, the present invention further proposes a touch display. Please refer to FIG. 7, which shows a block diagram of an embodiment of the touch display of the present invention. As shown in FIG. 7, a
另外,觸控顯示模組210具有一觸控感測模組,且該觸控感測模組可為一電容式觸控感測模組、一電磁式觸控感測模組或一光學式觸控感測模組。In addition, the
藉由前述所揭露的設計,本發明乃具有以下的優點: 一、本發明之觸控資料存取方法可在一ALU進行一流水線觸控相關運算時有效縮短運算元和運算結果的存取時間,從而大幅提升該流水線觸控相關運算的速度。 二、本發明之觸控資料存取方法可藉由一可規劃的ALU規劃出不同的流水線觸控相關運算,從而提供相容性與可維護性。 三、本發明之驅動晶片可藉由前述的方法大幅提升觸控資料的處理速度,及依不同的應用需求在一可規劃的ALU中規劃出不同的流水線觸控相關運算,從而提供相容性與可維護性。 四、本發明之觸控顯示器可藉由前述的驅動晶片大幅提升觸控資料的處理速度,及依不同的應用需求在一可規劃的ALU中規劃出不同的流水線觸控相關運算,從而提供相容性與可維護性。 Through the above disclosed design, the present invention has the following advantages: 1. The touch data access method of the present invention can effectively shorten the access time of the operation element and the operation result when an ALU performs a pipeline touch-related operation, thereby greatly improving the speed of the pipeline touch-related operation. 2. The touch data access method of the present invention can plan different pipeline touch-related operations through a programmable ALU, thereby providing compatibility and maintainability. 3. The driver chip of the present invention can greatly improve the processing speed of touch data through the above method, and plan different pipeline touch-related operations in a programmable ALU according to different application requirements, thereby providing compatibility and maintainability. 4. The touch display of the present invention can greatly improve the processing speed of touch data through the aforementioned driver chip, and plan different pipeline touch-related operations in a programmable ALU according to different application requirements, thereby providing compatibility and maintainability.
本案所揭示者,乃較佳實施例,舉凡局部之變更或修飾而源於本案之技術思想而為熟習該項技藝之人所易於推知者,俱不脫本案之專利權範疇。The invention disclosed in this case is a preferred embodiment. Any partial changes or modifications that are derived from the technical concept of this case and are easily inferred by people familiar with the art do not deviate from the scope of the patent rights of this case.
綜上所陳,本案無論目的、手段與功效,皆顯示其迥異於習知技術,且其首先發明合於實用,確實符合發明之專利要件,懇請 貴審查委員明察,並早日賜予專利俾嘉惠社會,是為至禱。In summary, this case shows that its purpose, means and effects are all different from the known technology, and it is the first invention that is practical and indeed meets the patent requirements for invention. We sincerely request the review committee to examine this carefully and grant a patent as soon as possible to benefit the society. This is our utmost prayer.
100:驅動晶片 110:控制單元 120:記憶體區 121:基本儲存區 130:算數邏輯單元 131:規劃單元 132:組態控制單元 133:基本運算電路模組 200:觸控顯示器 210:觸控顯示模組 220:驅動晶片 步驟a:利用該算數邏輯單元內之一規劃單元接收一組規劃參數。 步驟b:依該組規劃參數在該算數邏輯單元內之多個基本運算電路中選擇至少一所述基本運算電路以組成一複合運算電路,及利用該複合運算電路對儲存在一記憶體區中之一幀觸控感測資料執行一觸控資料處理程序 100: driver chip 110: control unit 120: memory area 121: basic storage area 130: arithmetic logic unit 131: planning unit 132: configuration control unit 133: basic operation circuit module 200: touch display 210: touch display module 220: driver chip Step a: using a planning unit in the arithmetic logic unit to receive a set of planning parameters. Step b: Select at least one basic operation circuit from the multiple basic operation circuits in the arithmetic logic unit according to the set of planning parameters to form a complex operation circuit, and use the complex operation circuit to execute a touch data processing program on a frame of touch sensing data stored in a memory area
圖1繪示本發明之驅動晶片之一實施例的方塊圖。 圖2繪示本發明之觸控資料處理方法之一實施例的流程圖。 圖3繪示本發明所採之一全流水模式的儲存單元訪問時序圖。 圖4繪示本發明所採之一半流水模式的儲存單元訪問時序圖。 圖5繪示本發明所採之另一半流水模式的儲存單元訪問時序圖。 圖6繪示本發明所採之另一半流水模式的儲存單元訪問時序圖。 圖7繪示本發明之觸控顯示器之一實施例之方塊圖。 FIG. 1 is a block diagram of an embodiment of a driver chip of the present invention. FIG. 2 is a flow chart of an embodiment of a touch data processing method of the present invention. FIG. 3 is a timing diagram of a storage unit access in a full pipeline mode adopted by the present invention. FIG. 4 is a timing diagram of a storage unit access in a half pipeline mode adopted by the present invention. FIG. 5 is a timing diagram of a storage unit access in the other half pipeline mode adopted by the present invention. FIG. 6 is a timing diagram of a storage unit access in the other half pipeline mode adopted by the present invention. FIG. 7 is a block diagram of an embodiment of a touch display of the present invention.
步驟a:利用該算數邏輯單元內之一規劃單元接收一組規劃參數 Step a: Utilize a planning unit in the arithmetic logic unit to receive a set of planning parameters
步驟b:依該組規劃參數在該算數邏輯單元內之多個基本運算電路中選擇至少一所述基本運算電路以組成一複合運算電路,及利用該複合運算電路對儲存在一記憶體區中之一幀觸控感測資料執行一觸控資料處理程序 Step b: Select at least one basic operation circuit from the multiple basic operation circuits in the arithmetic logic unit according to the set of planning parameters to form a complex operation circuit, and use the complex operation circuit to execute a touch data processing program on a frame of touch sensing data stored in a memory area
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111133586A TWI831359B (en) | 2022-09-05 | 2022-09-05 | Touch data processing method, driver chip and touch display |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111133586A TWI831359B (en) | 2022-09-05 | 2022-09-05 | Touch data processing method, driver chip and touch display |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI831359B TWI831359B (en) | 2024-02-01 |
TW202411821A true TW202411821A (en) | 2024-03-16 |
Family
ID=90824539
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW111133586A TWI831359B (en) | 2022-09-05 | 2022-09-05 | Touch data processing method, driver chip and touch display |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI831359B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880341B (en) * | 2012-08-29 | 2015-08-05 | 北京集创北方科技有限公司 | Touch screen data disposal system, method and special ALU |
TWI721705B (en) * | 2019-04-12 | 2021-03-11 | 禾瑞亞科技股份有限公司 | Touch sensitive processing method, apparatus and touch system |
US10175839B2 (en) * | 2016-12-30 | 2019-01-08 | Qualcomm Incorporated | Highly configurable front end for touch controllers |
KR20210156057A (en) * | 2020-06-17 | 2021-12-24 | 삼성전자주식회사 | Touch screen controller and touch screen driving circuit and touch screen system comprising thereof |
-
2022
- 2022-09-05 TW TW111133586A patent/TWI831359B/en active
Also Published As
Publication number | Publication date |
---|---|
TWI831359B (en) | 2024-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Cong et al. | A fully pipelined and dynamically composable architecture of CGRA | |
KR101120398B1 (en) | Thread optimized multiprocessor architecture | |
Liu et al. | A PRET microarchitecture implementation with repeatable timing and competitive performance | |
JP6092649B2 (en) | Arithmetic unit, array type arithmetic unit, control method therefor, and information processing system | |
JP5431003B2 (en) | Reconfigurable circuit and reconfigurable circuit system | |
Ramirez et al. | The SARC architecture | |
EP3349114B1 (en) | Efficient data selection for a processor | |
JP6967597B2 (en) | An image processor with a configurable number of active cores and an internal network that supports it | |
US20200257510A1 (en) | Automatic compiler dataflow optimization to enable pipelining of loops with local storage requirements | |
US20190286971A1 (en) | Reconfigurable prediction engine for general processor counting | |
US7725843B2 (en) | Behavioral synthesis apparatus, behavioral synthesis method, method for manufacturing digital circuit, behavioral synthesis control program and computer-readable recording medium | |
US8914612B2 (en) | Data processing with time-based memory access | |
TWI831359B (en) | Touch data processing method, driver chip and touch display | |
Wang et al. | STAR: Synthesis of stateful logic in RRAM targeting high area utilization | |
KR100863080B1 (en) | Low-Power Configuration Cache and Reconfigurable Processing System Containing It | |
CN112486907A (en) | Hardware implementation method for multi-layer circulation task on reconfigurable processor | |
EP2137617A1 (en) | Processor instruction set | |
EP2137618A1 (en) | Processor instruction set | |
CN113228113A (en) | Merged data path for triangle and cube intersection testing in ray tracing | |
Geng et al. | An access-pattern-aware on-chip vector memory system with automatic loading for SIMD architectures | |
Akram et al. | C-slow technique vs multiprocessor in designing low area customized instruction set processor for embedded applications | |
US11429851B1 (en) | Neural network controller | |
Park et al. | ShortcutFusion++: optimizing an end-to-end CNN accelerator for high PE utilization | |
CN100383729C (en) | Arithmetic unit | |
US20060200648A1 (en) | High-level language processor apparatus and method |