TW550908B - System and method for flexibly interrupting data processing - Google Patents

System and method for flexibly interrupting data processing Download PDF

Info

Publication number
TW550908B
TW550908B TW91110598A TW91110598A TW550908B TW 550908 B TW550908 B TW 550908B TW 91110598 A TW91110598 A TW 91110598A TW 91110598 A TW91110598 A TW 91110598A TW 550908 B TW550908 B TW 550908B
Authority
TW
Taiwan
Prior art keywords
packet
input
critical
time
data
Prior art date
Application number
TW91110598A
Other languages
Chinese (zh)
Inventor
Kun-Ying Tsai
Original Assignee
Rdc Semiconductor 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
Application filed by Rdc Semiconductor Co Ltd filed Critical Rdc Semiconductor Co Ltd
Priority to TW91110598A priority Critical patent/TW550908B/en
Application granted granted Critical
Publication of TW550908B publication Critical patent/TW550908B/en

Links

Landscapes

  • Communication Control (AREA)

Abstract

A system and a method for flexibly interrupting data processing are provided. A register for receiving input data in packets is connected to a time control unit, which is used to count the interval time from packet to packet so as to determine whether to output a first interruption signal according to the result obtained by comparing the time interval with a predetermined threshold time. And, a counting control unit is used to count the number of the packets input in the register, so as to determine whether to input a second interruption signal according to the result obtained by comparing the number of the input packets with a predetermined threshold number. The first and second interruption signals are output to a processing unit, allowing the processing unit to determine whether to temporarily interrupt the input of packets in terms of a built-in program. This thus permits the processing unit to process data input in the register.

Description

550908 五、發明說明(1) 【發明領域】 本發明係有關於一種彈性中斷之資料處理系統及其方 法,特別是有關於一種可彈性的輸出中斷訊號,俾使處理 單元可有效率處理其輸入封包資料之系統及其方法。 【發明背景】 目前習知的數據資料的傳送及處理方式,以網路為 例,大多以封包(packet)之方式傳送;通常,當收到一個 封包時,即會發出一中斷訊號(i n t e r r u p t)控制暫時停止 處理單元目前之工作,並開始處理輸入之封包資料,因 此,習知的資料處理方式是每輸入一個封包即產生中斷訊 號通知處理單元處理該封包,等處理完後處理單元便回到 中斷前之狀況等待下一個中斷訊號產生再接著處理下一個 封包,此種方式較固定而不具彈性,若遇網路資料傳輸頻 繁時,將常常產生中斷使處理單元去處理輸入之封包資 料,且因為不論是中斷訊號的傳送、處理單元動作的轉換 以及資料的輸入及輸出都有一延遲時間(delay time),因 此造成處理單元處理資料的效率降低。 【發明概述】 有鑑於上述習知技術之缺點,本發明的主要目的在提 供一種可提高資料處理效率之彈性中斷之資料處理系統及 其方法。 本發明之另一目的係在提供一種可彈性的產生一中斷 訊號,俾使處理單元不論在資料傳輸頻繁或否時,皆能適 時且兼顧效能將資料處理完畢之彈性中斷之資料處理系統550908 V. Description of the Invention (1) [Field of the Invention] The present invention relates to a data processing system and method for elastic interruption, and particularly to a flexible output interruption signal, so that the processing unit can efficiently process its input. System and method for packet data. [Background of the Invention] Currently known data transmission and processing methods, taking the network as an example, are mostly transmitted in packets; usually, when a packet is received, an interrupt signal is issued. The control temporarily stops the current work of the processing unit and starts processing the input packet data. Therefore, the conventional data processing method is to generate an interruption signal for each packet input to notify the processing unit to process the packet. After processing, the processing unit returns to The situation before the interruption is to wait for the next interruption signal to be generated and then process the next packet. This method is relatively fixed and inflexible. If network data transmission is frequent, interruptions will often be generated to cause the processing unit to process the input packet data, and Because there is a delay time regardless of the transmission of the interrupt signal, the conversion of the operation of the processing unit, and the input and output of data, the efficiency of processing data by the processing unit is reduced. [Summary of the Invention] In view of the shortcomings of the above-mentioned conventional technology, the main object of the present invention is to provide a data processing system and method with flexible interruption which can improve data processing efficiency. Another object of the present invention is to provide a data processing system capable of generating an interruption signal flexibly, so that the processing unit can perform the data interruption in a timely and balanced manner regardless of whether the data transmission is frequent or not.

16610.ptd 第5頁 550908 五、發明說明(2) 及其方法。 本發明之再一目的係在提供一種可動態的改變其設定 臨界值之彈性中斷之資料處理系統及其方法。 為了達成上述之目的,本發明的主要特徵係建立一彈 性中斷之資料處理系統,係包括:一暫存單元,係接收外 部輸入封包資料;一時間控制單元,係用以計算輸入封包 與前一封包之間的間隔時間;並與設定之臨界時間比較後 決定是否輸出一第一中斷訊號;一數量控制單元;係用以 計算輸入該暫存單元的封包數量並與設定之臨界數量相比 較以決定是否輸出一第二中斷訊號;一處理單元,可接收 該第一中斷訊號及該第二中斷訊號以根據内建程式決定暫 時中斷處理單元目前之工作,俾利於處理輸入至暫存單元 之資料。 根據上述再一目的,本發明更包括一動態設定單元, 可供動態的輸入另一臨界數量,並發出一第三中斷訊號至 該處理單元上,使該處理單元中斷目前的工作以開始處理 封包資料,並更改第二記憶體中的臨界數量,俾利於處理 至暫存單元之資料。 根據上述系統,本發明其彈性中斷之資料處理方法係 包括下列步驟:(1). 一封包資料輸入至一暫存單元中; (2).時間控制單元比較輸入封包間隔時間是否超過設定之 臨界時間,以決定是否通知處理單元中斷輸入目前之動作 並處理輸入之封包資料;(3).該數量控制單元比較該輸入 之封包數量是否超過設定之臨界數量,以決定是否通知處16610.ptd Page 5 550908 V. Description of the Invention (2) and its method. Still another object of the present invention is to provide a data processing system and a method thereof that can dynamically change the flexible interruption of a set threshold. In order to achieve the above object, the main feature of the present invention is to establish a flexible interruption data processing system, which includes: a temporary storage unit for receiving external input packet data; and a time control unit for calculating the input packet and the previous one. The interval between packets; and comparing with the set critical time to decide whether to output a first interrupt signal; a quantity control unit; used to calculate the number of packets input to the temporary storage unit and compare it with the set critical number to Decide whether to output a second interrupt signal; a processing unit can receive the first interrupt signal and the second interrupt signal to decide to temporarily interrupt the current work of the processing unit according to the built-in program, which is beneficial for processing the data input to the temporary storage unit . According to another object mentioned above, the present invention further includes a dynamic setting unit, which can dynamically input another critical quantity and send a third interrupt signal to the processing unit, so that the processing unit interrupts the current work to start processing packets. Data, and change the critical amount in the second memory, which is beneficial for processing the data to the temporary storage unit. According to the above system, the data processing method for flexible interruption of the present invention includes the following steps: (1). A packet data is input into a temporary storage unit; (2). The time control unit compares whether the input packet interval time exceeds a set threshold Time to determine whether to notify the processing unit to interrupt the input of the current action and process the input packet data; (3). The quantity control unit compares whether the number of input packets exceeds a set critical number to determine whether to notify the processing unit

16610.ptd 第6頁 550908 五、發明說明(3) 理單元中斷目前之動作俾處理封包之資料;(4 ).處理單元 將輸入封包處理完畢,即再重複前述步驟(1 )至步驟(3 )過 程。 因此,本發明彈性中斷之資料處理系統及其方法,利 用時間控制單元及數量控制單元處理輸入之封包資料,俾 可彈性的輸出一中斷訊號以使處理單元無論封包的產生是 否很快速或很慢,都能更有效率的處理資料。 【發明實施例】 以下即配合所附圖式之第1及第2圖,分別詳細揭露說 明本發明彈性中斷之資料處理系統及其方法的較佳實施 例。 本發明彈性中斷之資料處理系統1係包括了一暫存單 元2、一時間控制單元3、一數量控制單元4及一處理單元 5,請參閱第1圖,係為本發明一較佳實施例之架構示意 圖,各單元之功能介紹如下: 暫存單元2,係接收外部網路介面6所輸入之封包,其 中,該網路介面6係可為網際網路(internet)或内部網路 (i n t r ane t),而資料傳送係以習知之封包方式經資料匯流 排20(data bus)傳入。 時間控制單元3,係用以計算輸入封包與封包之間的 間隔時間,並與設定之臨界時間比較後決定是否輸出一第 一中斷訊號;在本較佳實施例中,該時間控制單元3更包 括有下列裝置: 一計時器3 0,係用以計算輸入該暫存單元2中之封包16610.ptd Page 6 550908 V. Description of the invention (3) The processing unit interrupts the current action and processes the data of the packet; (4). The processing unit finishes processing the input packet, and then repeats the above steps (1) to (3) )process. Therefore, the flexible interrupted data processing system and method of the present invention utilize the time control unit and the quantity control unit to process the input packet data, and can flexibly output an interrupt signal so that the processing unit can generate a packet quickly or slowly regardless of whether the packet is generated Can more efficiently process data. [Embodiment of the Invention] The following is a detailed description of the preferred embodiments of the data processing system and method for explaining the elastic interruption according to the present invention, in conjunction with the first and second figures of the drawings. The data interruption system 1 of the present invention includes a temporary storage unit 2, a time control unit 3, a quantity control unit 4, and a processing unit 5. Please refer to FIG. 1, which is a preferred embodiment of the present invention. The schematic diagram of the architecture and the functions of each unit are as follows: The temporary storage unit 2 receives the packets input from the external network interface 6. The network interface 6 can be the Internet or the internal network (intr). ane t), and the data transmission is transmitted through the data bus 20 (data bus) in a conventional packet manner. The time control unit 3 is used to calculate the interval time between the input packet and the packet, and determines whether to output a first interrupt signal after comparing with the set critical time. In the preferred embodiment, the time control unit 3 is more It includes the following devices: A timer 30, which is used to calculate the packets input into the temporary storage unit 2.

16610.ptd 第7頁 550908 五、發明說明(4) 與前一封包之相隔時間,並將該相隔時間定義為封包間隔 時間;一第一記憶體3 1,係用以儲存使用者所設定之臨界 時間;一比較器3 2,係接收該封包間隔時間以及該臨界時 間並加以比較,若該封包間隔時間大於或等於該臨界時 間,則輸出上述第一中斷訊號。 數量控制單元4,係用以計算輸入該暫存單元2的封包 數量並與設定之臨界數量相比較以決定是否輸出一第二中 斷訊號;在本較佳實施例中,該數量控制單元4更包含有 下列裝置: 一計數器40,係用以計算輸入該暫存單元2之封包數 量;一第二記憶體4 1,係用以儲存使用者所設定之臨界數 量;一比較器4 2,係接收該封包數量以及該臨界數量並加 以比較,若該封包數量大於該臨界數量,則輸出上述第二 中斷訊號。 處理單元5,可接收該第一中斷訊號及該第二中斷訊 號以根據内建程式暫時中斷處理單元5目前之工作,並處 理輸入至暫存單元2之封包資料。 於實際操作時,網路介面6上的資料以習知的封包傳 送方式逐筆的輸入至暫存單元2當中以等待處理單元5處 理,此時,計時器3 0即會偵測出輸入封包之間的封包間隔 時間,並輸出至比較器32中與儲存在第一記憶體3 1當中的 臨界時間作一比較,當該封包間隔時間大於臨界時間時即 輸出一第一中斷訊號至該處理單元5處俾令處理單元5中斷 目前之工作,並開始處理輸入暫存單元2之封包資料。計16610.ptd Page 7 550908 V. Description of the invention (4) The time interval between the previous packet and the interval time is defined as the packet interval time; a first memory 31 is used to store the user set Critical time; a comparator 32 receives the packet interval time and the critical time and compares them. If the packet interval time is greater than or equal to the critical time, the first interrupt signal is output. The quantity control unit 4 is used to calculate the number of packets input to the temporary storage unit 2 and compare it with a set critical quantity to determine whether to output a second interrupt signal. In the preferred embodiment, the quantity control unit 4 is more Contains the following devices: a counter 40 is used to calculate the number of packets input to the temporary storage unit 2; a second memory 41 is used to store the critical number set by the user; a comparator 4 2 is Receiving the number of packets and the critical number and comparing them, and if the number of packets is greater than the critical number, outputting the second interruption signal described above. The processing unit 5 may receive the first interrupt signal and the second interrupt signal to temporarily interrupt the current work of the processing unit 5 according to the built-in program, and process the packet data input to the temporary storage unit 2. In actual operation, the data on the network interface 6 is inputted into the temporary storage unit 2 in a conventional packet transmission manner and waited for processing by the processing unit 5. At this time, the timer 30 will detect the input packet The interval between packets is output to the comparator 32 for comparison with the critical time stored in the first memory 31. When the packet interval is longer than the critical time, a first interrupt signal is output to the processing. The unit 5 instructs the processing unit 5 to interrupt the current work and start processing the packet data input to the temporary storage unit 2. meter

16610.ptd 第8頁 550908 五、發明說明(5) 數器4 0則用以偵測傳入該暫存單元2之封包數量,若並輸 出至比較器42中與儲存在第二記憶體41當中的臨界數量作 一比較,當該封包數量大於臨界數量時即輸出一第二中斷 訊號至該處理單元5處俾令處理單元5中斷目前之工作,並 開始處理輸入暫存單元2之封包資料。 第2圖即為藉由上述系統所實施彈性中斷之資料處理 方法其流程示意圖,係包括下列步驟: 首先,在步驟Si中,網路介面上的資料以習知的封包 傳輸方式輸入至暫存單元中。 步驟S2>1、S2.2,當有封包傳入暫存單元中時,計數器 即加1 ;同時,計時器偵測並計算兩輸入至該暫存單元中 的封包相隔的時間,並定義為封包間隔時間。 步驟S3. i,判斷計數器中之數值是否超過臨界數量; 在本實施例中,當計數器加一後,即輸出至比較器中與儲 存在第二記憶體中的臨界數量作一比較判斷,若封包數量 超過設定之臨界數量,則進入步驟S4,若尚未超過,則進 入步驟S5。 同時間,步驟S3.2,判斷該封包間隔時間是否超過設 定之臨界時間;在本實施例中,當計時器偵測出輸入封包 資料之間的封包間隔時間後,即輸出至比較器中與儲存在 第一記憶體中的臨界時間作一比較判斷,若封包間隔時間 大於或等於臨界時間,則進入步驟S4,若尚未超過,則進 入步驟S5。 步驟S4,當接收到該第一中斷訊號或第二中斷訊號16610.ptd Page 8 550908 V. Description of the invention (5) The counter 40 is used to detect the number of packets sent to the temporary storage unit 2, and if it is output to the comparator 42 and stored in the second memory 41 The critical number is compared. When the number of packets is greater than the critical number, a second interrupt signal is output to the processing unit 5 to instruct the processing unit 5 to interrupt the current work and start processing the packet data input to the temporary storage unit 2. . Figure 2 is a schematic flow chart of the data processing method implemented by the above system with flexible interruption, which includes the following steps: First, in step Si, the data on the network interface is input to the temporary storage by the conventional packet transmission method. Unit. Steps S2 > 1, S2.2, when a packet is transferred to the temporary storage unit, the counter is incremented by one; at the same time, the timer detects and calculates the time interval between two packets input to the temporary storage unit, and is defined as Packet interval time. Step S3. I, determine whether the value in the counter exceeds the critical number; in this embodiment, when the counter is incremented by one, it is output to the comparator and compared with the critical number stored in the second memory. If the number of packets exceeds the set critical number, the process proceeds to step S4; if the number of packets has not exceeded, the process proceeds to step S5. At the same time, step S3.2, it is determined whether the packet interval time exceeds a set critical time. In this embodiment, when the timer detects the packet interval time between the input packet data, it is output to the comparator and The critical time stored in the first memory is compared and judged. If the packet interval time is greater than or equal to the critical time, the process proceeds to step S4, and if not, the process proceeds to step S5. Step S4, when the first interrupt signal or the second interrupt signal is received

16610.ptd 第9頁 550908 五、發明說明(6) 後,處理單元即停止目前之工作,並開始處理儲存在該暫 存單元中之封包資料。 步驟S5,若封包數量未超過臨界數量、或封包間隔時 間未超過臨界時間,則繼續接收下一封包輸入至記憶裝置 中’再重複82.1、82.2或83.1、83.2之步轉。 步驟S6,當產生中斷後,即重置記數器及計時器,並 完成一次彈性中斷產生之步驟。 第3圖所示係為本發明彈性中斷之資料處理系統1另一 較佳實施例,除包括前述暫存單元2、時間控制單元3、數 量控制單元4及處理單元5外,更包括有一動態設定單元 7,可供使用者輸入欲改變之臨界數量,藉以改變數量控 制單元4中第二記憶體41的臨界數量,並輸出一第三中斷 訊號至處理單元5中,俾令處理單元5中斷處理單元5目前 之工作,並開始處理輸入暫存單元2之封包資料;同時重 置(RESET)計數器40及計時器30。 結論 綜而言之,本發明提供了 一種彈性中斷之資料處理系 統及其方法,其特點如后所述: (1 )利用設定一臨界時間及一臨界數量,當網路資料頻 繁,資料傳輸的負載重時,每一封包進來的時間間隔相當 短,遠低於設定的臨界時間,有可能輸入5個封包僅需1 ms 的時間,此時即以封包輸入的數量為中斷的判斷依據;但 若資料傳輸的負載輕時,可能輸入5個封包要1 0 s甚至更 久,若等設定的封包數量全部傳進來再中斷處理反而更16610.ptd Page 9 550908 V. Description of the invention (6), the processing unit stops the current work and starts processing the packet data stored in the temporary storage unit. Step S5, if the number of packets does not exceed the critical number, or the packet interval does not exceed the critical time, continue to receive the next packet and input it to the memory device ', and then repeat the steps of 82.1, 82.2 or 83.1, 83.2. In step S6, when an interrupt is generated, the counter and the timer are reset, and a step of generating the flexible interrupt is completed. FIG. 3 shows another preferred embodiment of the data processing system 1 with flexible interruption according to the present invention. In addition to the foregoing temporary storage unit 2, time control unit 3, quantity control unit 4, and processing unit 5, it also includes a dynamic The setting unit 7 allows the user to input a critical quantity to be changed, thereby changing the critical quantity of the second memory 41 in the quantity control unit 4 and outputting a third interrupt signal to the processing unit 5 to instruct the processing unit 5 to interrupt The processing unit 5 is currently working, and starts processing the packet data input to the temporary storage unit 2; at the same time, the counter 40 and the timer 30 are reset (RESET). Conclusion In summary, the present invention provides a data processing system and method with flexible interruption, the characteristics of which are described below: (1) By setting a critical time and a critical amount, when the network data is frequent, the data transmission When the load is heavy, the time interval for each packet to come in is quite short, which is far below the set critical time. It may take only 1 ms to input 5 packets. At this time, the number of input packets is used as the basis for judging the interruption; but If the load of data transmission is light, it may take 5 s or even longer to input 5 packets. If the set number of packets are all transmitted and then the processing is interrupted, it will be more difficult.

16610.ptd 第10頁 550908 五、發明說明(7) 慢,此時即判定先中斷處理再接收,俾使網路傳輸及處理 貧料之效能提局。 (2 )連接一動態設定單元,使使用者可動態的輸入設定 數值,俾使設定更即時且具彈性。 以上所述僅為本發明之較佳實施例而已,並非用以限 定本發明之實質技術内容的範圍。本發明之實質技術内容 係廣義地定義於下述之申請專利範圍中,任何他人所完成 之技術實體或方法,若是與 下述之申請專利範圍所定義者為完全相同、或是為一種等 效的變更,均將被視為涵蓋於此專利範圍之中。16610.ptd Page 10 550908 V. Description of the invention (7) Slow. At this time, it is determined to interrupt processing before receiving, so as to improve the efficiency of network transmission and processing of poor materials. (2) A dynamic setting unit is connected, so that the user can dynamically input the setting value, so that the setting is more real-time and flexible. The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the scope of the essential technical content of the present invention. The essential technical content of the present invention is broadly defined in the scope of patent application described below. Any technical entity or method completed by others is completely the same as or equivalent to the definition of the scope of patent application described below. Changes in the above are deemed to be covered by this patent.

16610.ptd 第11頁 550908 圖式簡單說明 【圖式簡述】 以下茲以較佳實施配合所附圖式進一步詳細說明本發 明之特點及功效: 第1圖係為本發明彈性中斷之資料處理系統一較佳實 施例之方塊示意圖; 第2圖係為本發明彈性中斷之資料處理方法一較佳實 施例之流程示意圖; 第3圖係為本發明彈性中斷之資料處理系統其另一較 佳實施例之方塊示意圖; 【圖式標號】 1 資 料 處 理 系統 2 暫 存 單 元 20 資 料 匯 流 排 3 時 間 控 制 單 元 30 計 時 器 31 第 一 記 憶 體 32 比 較 器 4 數 量 控 制 單 元 40 計 數 器 41 第 二 記 憶 體 42 比 較 器 5 處 理 單 元 6 網 路 介 面 7 動 態 設 定 單 元16610.ptd Page 11 550908 Brief description of the drawings [Brief description of the drawings] The following is a detailed description of the features and effects of the present invention with a better implementation in conjunction with the attached drawings: Figure 1 is the data processing of the elastic interruption of the present invention A block diagram of a preferred embodiment of the system; FIG. 2 is a schematic flowchart of a preferred embodiment of the data processing method of the flexible interruption of the present invention; FIG. 3 is another preferred embodiment of the data processing system of the flexible interruption of the present invention Block diagram of the embodiment; [Schematic symbols] 1 data processing system 2 temporary storage unit 20 data bus 3 time control unit 30 timer 31 first memory 32 comparator 4 quantity control unit 40 counter 41 second memory 42 Comparator 5 Processing unit 6 Network interface 7 Dynamic setting unit

16610.ptd 第12頁16610.ptd Page 12

Claims (1)

550908 六、申請專利範圍 1. 一種彈性中斷之資料處理系統,係包括: 一暫存單元,係接收外部資料以封包方式逐筆輸 入; 一時間控制單元,係用以接收輸入至該暫存單元 中封包與封包之間的封包間隔時間並與設定之臨界時 間相比較,以輸出一第一中斷訊號; 一數量控制單元,係用以接收計算輸入該暫存單 元的封包數量並與設定之臨界數量相比較,以輸出一 第二中斷訊號;及 一處理單元,可接收該第一中斷訊號及該第二中 斷訊號以根據内建程式決定暫時中斷處理單元目前之 工作,俾利於處理輸入至暫存單元之資料。 2. 如申請專利範圍第1項所述之彈性中斷之資料處理系統 ,其中,該時間控制單元係包括: 一計時器,係用以計算輸入該暫存單元中之封包 資料與前一封包資料之相隔時間,並將該相隔時間定 義為封包間隔時間; 一第一記憶體,係用以儲存使用者所設定之臨界 時間;及 一比較器,係接收該封包間隔時間以及該臨界時 間並加以比較,若該封包間隔時間大於該臨界時間, 則輸出上述第一中斷訊號。 3. 如申請專利範圍第2項所述之彈性中斷之資料處理系統 ,其中,該數量控制單元係包括:550908 6. Scope of patent application 1. A data processing system with flexible interruption, which includes: a temporary storage unit, which receives external data input by packet in a packet; a time control unit, which is used to receive input to the temporary storage unit The packet interval between the middle packet and the packet is compared with the set critical time to output a first interrupt signal; a quantity control unit is used to receive and calculate the number of packets input to the temporary storage unit and the set threshold Compare the quantities to output a second interrupt signal; and a processing unit that can receive the first interrupt signal and the second interrupt signal to temporarily interrupt the current work of the processing unit according to the built-in program, which is beneficial for processing input to the temporary Store the unit's information. 2. The data processing system with flexible interruption as described in item 1 of the patent application scope, wherein the time control unit includes: a timer for calculating the packet data and the previous packet data input into the temporary storage unit The interval time, and defines the interval time as the packet interval time; a first memory for storing the critical time set by the user; and a comparator for receiving the packet interval time and the critical time and adding In comparison, if the packet interval time is longer than the critical time, the first interrupt signal is output. 3. The flexible interruption data processing system as described in item 2 of the scope of patent application, wherein the quantity control unit includes: 16610.ptd 第13頁 550908 六、申請專利範圍 一計數器,係用以計算輸入該暫存單元之封包數 量; 一第二記憶體,係用以儲存使用者所設定之臨界 數量;及 一比較器,係接收該封包數量以及該臨界數量並 加以比較,若該封包數量大於該臨界時間,則輸出上 述第二中斷訊號。 4. 如申請專利範圍第1、2或第3項所述之彈性中斷之資料 處理系統,更包括有一動態設定單元,可供動態的輸 入另一臨界數量,並發出一第三中斷訊號至該處理單 元上,使該處理單元中斷處理單元目前之工作以開始 處理封包資料,並更改第二記憶體中的臨界數量,俾 利於處理至暫存單元之資料。 5. —種彈性中斷之資料處理方法,係包括下列步驟: (1 )封包資料逐筆輸入至一暫存單元中; (2)時間控制單元比較輸入封包間隔時間是否超過 設定之臨界時間,以決定是否通知處理單元中斷輸入 封包之動作並處理輸入之封包資料; (3 )該數量控制單元比較該輸入之封包數量是否超 過設定之臨界數量,以決定是否通知處理單元中斷封 包之動作俾處理封包之資料;及 (4 )處理單元將輸入封包處理完畢,即再重複前述 步驟(1 )至步驟(3 )過程。 6. 如申請專利範圍第5項所述彈性中斷之資料處理方法,16610.ptd Page 13 550908 VI. Patent application scope A counter is used to calculate the number of packets input into the temporary storage unit; a second memory is used to store the critical number set by the user; and a comparator It receives the number of packets and the critical number and compares them. If the number of packets is greater than the critical time, the second interrupt signal is output. 4. The data processing system with flexible interruption as described in the scope of patent application 1, 2, or 3, further includes a dynamic setting unit that can dynamically input another critical quantity and send a third interruption signal to the On the processing unit, the processing unit is caused to interrupt the current work of the processing unit to start processing the packet data, and to change the critical amount in the second memory, which is beneficial for processing the data to the temporary storage unit. 5. — A flexible interruption data processing method, which includes the following steps: (1) packet data is input into a temporary storage unit one by one; (2) the time control unit compares whether the input packet interval time exceeds a set critical time, and Decide whether to notify the processing unit to interrupt the action of the input packet and process the input packet data; (3) The quantity control unit compares whether the number of the input packets exceeds a set critical number to determine whether to notify the processing unit to interrupt the action of the packet and process the packet Data; and (4) the processing unit finishes processing the input packet, that is, repeat the process from step (1) to step (3). 6. The data processing method of flexible interruption as described in item 5 of the scope of patent application, 16610.ptd 第14頁 550908 六、申請專利範圍 其中,該時間控制單元包括有一計時器、一第一記憶 體及一比較器,而在步驟(2 )中,更包括有下列步驟·· (1 )計時器偵測出輸入封包資料之間的封包間隔時 間後,即輸出至比較器中與儲存在第一記憶體中的臨 界時間作一比較判斷;及 (2 )封包間隔時間大於臨界時間時,即輸出一第一 中斷訊號至該處理單元處俾令處理單元中斷封包傳入 暫存單元中,並開始處理輸入暫存單元之封包資料; 及 (3 )封包間隔時間未超過設定之臨界時間,則繼續 自外部輸入下一封包至暫存單元中。 7.如申請專利範圍第5或第6項所述彈性中斷之資料處理 方法,其中,該數量控制單元包括有一計數器、一第 二記憶體及一比較器,而在步驟(3 )中,更包括有下列 步驟: (1 )當計數器輸出封包數量後,即輸出至比較器中 與儲存在第二記憶體中的臨界數量作一比較判斷; (2 )封包數量大於臨界數量時,輸出一第二中斷訊 號至該處理單元處俾令處理單元中斷封包傳入暫存單 元中,並開始處理輸入暫存單元之封包資料;及 (3 )封包數量未超過設定之臨界設量,則繼續自外 部輸入下一封包至暫存單元中。16610.ptd Page 14 550908 6. The scope of patent application Among them, the time control unit includes a timer, a first memory and a comparator, and in step (2), it further includes the following steps ... (1 ) The timer detects the packet interval time between the input packet data, then outputs it to the comparator and compares it with the critical time stored in the first memory; and (2) when the packet interval time is greater than the critical time That is, output a first interrupt signal to the processing unit to instruct the processing unit to interrupt the packet to the temporary storage unit and start processing the packet data of the input temporary storage unit; and (3) the packet interval does not exceed the set critical time , Continue to input the next packet from the outside into the temporary storage unit. 7. The data processing method for flexible interruption according to item 5 or 6 of the scope of patent application, wherein the quantity control unit includes a counter, a second memory and a comparator, and in step (3), more It includes the following steps: (1) After the counter outputs the number of packets, it is output to the comparator to make a comparison judgment with the critical number stored in the second memory; (2) When the number of packets is greater than the critical number, a first 2. The interrupt signal is sent to the processing unit to instruct the processing unit to interrupt the packet and transfer it to the temporary storage unit, and start processing the packet data input to the temporary storage unit; and (3) the number of packets does not exceed the set critical set amount, then continue from the outside Enter the next packet into the staging unit. 16610.ptd 第15頁16610.ptd Page 15
TW91110598A 2002-05-21 2002-05-21 System and method for flexibly interrupting data processing TW550908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW91110598A TW550908B (en) 2002-05-21 2002-05-21 System and method for flexibly interrupting data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW91110598A TW550908B (en) 2002-05-21 2002-05-21 System and method for flexibly interrupting data processing

Publications (1)

Publication Number Publication Date
TW550908B true TW550908B (en) 2003-09-01

Family

ID=31713527

Family Applications (1)

Application Number Title Priority Date Filing Date
TW91110598A TW550908B (en) 2002-05-21 2002-05-21 System and method for flexibly interrupting data processing

Country Status (1)

Country Link
TW (1) TW550908B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI578235B (en) * 2012-01-30 2017-04-11 三星電子股份有限公司 System-on-chip and power control method thereof, and multi-core system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI578235B (en) * 2012-01-30 2017-04-11 三星電子股份有限公司 System-on-chip and power control method thereof, and multi-core system

Similar Documents

Publication Publication Date Title
JP4219818B2 (en) A computer that dynamically determines interrupt delay.
TWI283977B (en) Adaptive interrupts coalescing system with recognizing minimum delay packets
US6981084B2 (en) Apparatus and method for packet ingress interrupt moderation
JP3127523B2 (en) Communication control device and data transmission method
WO2014000450A1 (en) Method, device, and system for performing scheduling in multi-processor core system
US20080259821A1 (en) Dynamic packet training
WO2009030130A1 (en) A method and system for transmitting data
EP1199641B1 (en) Data processing device used in serial communication system
WO2015089824A1 (en) Method and apparatus for switching polling and interruption
US20070053301A1 (en) Network hardware device
TW550908B (en) System and method for flexibly interrupting data processing
JP2001014243A (en) Reception interrupt processor
JP2002351813A5 (en)
CN117097679A (en) Aggregation method and device for network interruption and network communication equipment
JP2004295701A (en) Serial communication device
JP4349636B2 (en) Packet processing apparatus and program
JP2008217821A (en) Computer for dynamically determining interrupt delay
JP2002183078A (en) Device and method for transferring data
WO2024016622A1 (en) Timeout parameter determination method and apparatus and communication device
JP4601657B2 (en) Traffic shaping apparatus and method
CN114003362A (en) Multidimensional dynamic interrupt aggregation method, system, equipment and storage medium
CN110928698A (en) Data transmitting and receiving control method and device, computing equipment and storage medium
JP3934099B2 (en) Packet processing apparatus and program
JPS60183659A (en) Information transfer control system
JP2002252667A (en) Processor device and method for calculating processor loading

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MK4A Expiration of patent term of an invention patent