TW201211771A - Asymmetric transport system and method of heterogeneous dual-core - Google Patents
Asymmetric transport system and method of heterogeneous dual-core Download PDFInfo
- Publication number
- TW201211771A TW201211771A TW99129524A TW99129524A TW201211771A TW 201211771 A TW201211771 A TW 201211771A TW 99129524 A TW99129524 A TW 99129524A TW 99129524 A TW99129524 A TW 99129524A TW 201211771 A TW201211771 A TW 201211771A
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- coprocessor
- mailbox
- processor
- shared memory
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000012545 processing Methods 0.000 claims abstract description 27
- 238000004364 calculation method Methods 0.000 claims abstract description 3
- 230000005540 biological transmission Effects 0.000 claims description 36
- 230000009977 dual effect Effects 0.000 claims description 19
- 238000012546 transfer Methods 0.000 claims description 10
- 239000000463 material Substances 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 5
- 230000009471 action Effects 0.000 claims description 4
- 238000007906 compression Methods 0.000 claims description 3
- 230000006835 compression Effects 0.000 claims description 3
- 230000002195 synergetic effect Effects 0.000 claims description 2
- 241001122767 Theaceae Species 0.000 claims 1
- 238000013144 data compression Methods 0.000 claims 1
- GVVPGTZRZFNKDS-JXMROGBWSA-N geranyl diphosphate Chemical compound CC(C)=CCC\C(C)=C\CO[P@](O)(=O)OP(O)(O)=O GVVPGTZRZFNKDS-JXMROGBWSA-N 0.000 description 20
- 239000013256 coordination polymer Substances 0.000 description 18
- 230000007246 mechanism Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000002457 bidirectional effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- VPGRYOFKCNULNK-ACXQXYJUSA-N Deoxycorticosterone acetate Chemical compound C1CC2=CC(=O)CC[C@]2(C)[C@@H]2[C@@H]1[C@@H]1CC[C@H](C(=O)COC(=O)C)[C@@]1(C)CC2 VPGRYOFKCNULNK-ACXQXYJUSA-N 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 210000000078 claw Anatomy 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000013481 data capture Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- ZXQYGBMAQZUVMI-GCMPRSNUSA-N gamma-cyhalothrin Chemical compound CC1(C)[C@@H](\C=C(/Cl)C(F)(F)F)[C@H]1C(=O)O[C@H](C#N)C1=CC=CC(OC=2C=CC=CC=2)=C1 ZXQYGBMAQZUVMI-GCMPRSNUSA-N 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 229910052717 sulfur Inorganic materials 0.000 description 1
- 239000011593 sulfur Substances 0.000 description 1
Landscapes
- Advance Control (AREA)
- Multi Processors (AREA)
Abstract
Description
201211771 wu*t-ii/-vi〇 35295twf.doc/I 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種雙核心之傳輸系統與方法,且特 別是有關於一種異質雙核心之非對稱傳輸系統與方法。 【先前技術】 現有技術中,常見雙核心處理器之間的溝通是使用對 稱式的傳輸機制。例如德州儀器(Texas Instruments)的達 文西(DaVinci )處理窃架構’進階精簡指令隼機器 (Advanced RISC Machine ’簡稱為ARM)與數位訊號處 理器(Digital Signal Processor’簡稱為DSP)的核心之間 利用共享記憶體的方式來做資料的雙向傳送工作,先在共 享記憶體劃分成兩個記憶體區塊ARM-to-DSP及 DSP-to-ARM,當ARM核心傳送資料到記憶體區塊 ARM-to-DSP之後’需透過中斷通知DSP核心來讀取記憶 體區塊ARM-to-DSP的資料;相反地,當DSP核心傳送資 料到記憶體區塊DSP-to-ARM之後,則需透過中斷通知 ARM核心來讀取記憶體區塊_DSP-to-ARM的資料。 傳統的資料傳送方式中,ARM核心寫入資料至記憶 體、DSP核心讀取記憶體的資料、DSP核心寫入資料至記 憶體、或ARM核心讀取記憶體的資料都必須使用中斷才 能進行溝通。傳統技術共用記憶體做雙向溝通,並且不管 傳送資料的流量大小都需用到硬體中斷,因此會浪費記憶 體的使用空間和硬體中斷。201211771 wu*t-ii/-vi〇35295twf.doc/I VI. Description of the Invention: [Technical Field] The present invention relates to a dual core transmission system and method, and in particular to a heterogeneous dual core Asymmetric transmission systems and methods. [Prior Art] In the prior art, communication between common dual core processors is a symmetrical transmission mechanism. For example, Texas Instruments' DaVinci handles the architecture of the Advanced RISC Machine (abbreviated as ARM) and the core of the Digital Signal Processor (DSP). Using the shared memory method to do the bidirectional transfer of data, first divide the shared memory into two memory blocks ARM-to-DSP and DSP-to-ARM, when the ARM core transmits data to the memory block ARM After -to-DSP, the DSP core needs to be notified by interrupt to read the ARM-to-DSP data of the memory block. Conversely, after the DSP core transmits the data to the memory block DSP-to-ARM, it needs to pass through The interrupt informs the ARM core to read the data of the memory block _DSP-to-ARM. In the traditional data transmission method, the ARM core writes data to the memory, the DSP core reads the memory data, the DSP core writes the data to the memory, or the ARM core reads the memory data, and must use the interrupt to communicate. . Traditional technology shares memory for two-way communication, and hardware interrupts are required regardless of the amount of traffic transmitted, thus wasting memory usage and hardware interruption.
-ulO 35295twf.d〇c/I 201211771 【發明内容】 本發明提供一種晨哲雜松、 對稱傳輸系統不需要雙向、、籌對稱傳輪系統。此非 資料傳輸,以節省記==::到共享記憶體來做 本發明再提供〜硬體中斷的使用。 非對稱傳輸方法不需要雙非對稱傳輸方法,此 做資=上記體來 理器料=接共享記憶體。 接共享記憶體。協同處理己隱體。協同處理器耦 二;τ去的第,:==== 處理器與協同處理 由郵箱傳送至通用處理^一資料係先被寫入至郵箱,再 稱傳角稱3:;!一種!質雙核心之非對 3料=輸方法包括以下步驟··通用處理 第-資料· 讀體;關處理11從共享記憶體讀取 二資_ 對第—轉做運#處理,以得^ 4 ’協同處理器將第二資料寫人至郵箱,其中第二^-ulO 35295twf.d〇c/I 201211771 SUMMARY OF THE INVENTION The present invention provides a morning symmetry transmission system that does not require bidirectional and symmetrical transmission systems. This non-data transfer is done to save the memory ==:: to the shared memory. The present invention provides for the use of hardware interrupts. The asymmetric transmission method does not require a dual asymmetric transmission method, and this resource = upper memory device = shared memory. Connect to shared memory. Collaborate on the hidden body. Coprocessor coupling 2; τ to the first, :==== Processor and co-processing The transfer from the mailbox to the general processing ^ a data system is first written to the mailbox, and then called the corner said 3:;! One! The quality of the dual core is not the same as the 3 material = the input method includes the following steps: · General processing - data · reading body; off processing 11 reading the shared capital from the shared memory _ on the first - turn to do # processing, to get ^ 4 'The coprocessor writes the second data to the mailbox, the second ^
*〇 35295twf.doc/I 201211771 料的資料流量小於第一資料的 資料傳送至通用處理器。 爪薏,以及郵箱將第二 在本發明的一實施例中, ;-方向’❹—料二量Γ為 體,並由協同處理器自共享記传㈣寫入至共享記憶 共享記憶體以逆方向將同額於n第「資料’無法從 用處理器JL無法從協同處理器 f的資料再回傳至通 入至共享記憶體,其中所指的額資料的資料寫 資料的資料量大小。 _額資枓是等同或類似第- f本發明的-實施例中,第二資 卓-方向,僅由協同處理器㈣u方向為 通用處理器自郵箱讀取第二資Ί人至郵箱’並由 同額於第二資料的資料再回傳:協同,郵箱以逆方向將 f器將同額於第二資料的資料寫二 同額資料是等同或_第二㈣的資料^小其中触的 在本發明魏财,上 =;’:旗標暫存器的旗標二 Ϊ取權限、“錢_起純置與讀取記雜的終止位 理器中,上述的通用處理器與協同處 用的方式來使用共享記憶體,其中通 用處理轉據旗標暫存器的旗標 理器根據旗標暫存器的旗標内容做讀乍協同處 在本發明的一實施例中,上述的第一資料為一晝面,*〇 35295twf.doc/I 201211771 Data flow less than the first data is transferred to the general purpose processor. The claws, and the mailbox will be second. In an embodiment of the present invention, the -direction is the same as the volume, and is written by the coprocessor to the shared memory shared memory by the shared processor (4). The direction will be the same as the amount of data in the n-th "data" cannot be retrieved from the processor JL and cannot be retrieved from the coprocessor f to the shared memory, where the amount of data referred to is the amount of data written. The amount of money is equivalent or similar to the first - f - in the embodiment, the second capital - direction, only by the coprocessor (four) u direction for the general purpose processor to read the second person from the mailbox to the mailbox 'and by The same amount of information in the second data is returned: synergy, the mailbox will be in the opposite direction, the device will be the same amount of information in the second data, the same amount of data is equivalent or _ second (four) of the information ^ small touch in the invention Finance, on =; ': the flag of the flag register, the second access authority, "money_ from the pure and read end of the bit processor, the above-mentioned general-purpose processor and the way to coordinate Use shared memory, where the general processing is based on the flag of the flag register The flags flag register contents do synergistic read at a glance embodiment of the present invention, the above-described first data surface is a day,
201211771 〜l〇 35295twfdoc/I 2同J理器的運算是針對晝 第二資料為晝面中的局部圖型的確切:置檢測, f本:明的一實施例中’上述的第一資料 分析比= =連續畫面中的相鄰兩畫面: 料,協同處理器的運算是針對語音資料做=音塵資 第二資料為經壓縮的語音資料。 3縮计异, 在本發明的-實施例中,上述的第一 協同處理器的運算是針對檔案做資料壓缩,第, 壓縮的檔案。 第-資料為經 出請的關處理器向郵箱發 給通用處理上二寫=讀斷命令 ^二===== ,經共享記憶體傳至制處理器。協同處理器對=二 ,運异處理,以得出所述大量資料中的部分資料ϋ 。再經郵箱傳至通用處理器。本發明的系統 於兩處理器所傳送的資料流量呈現非對稱,不需要 ,吏用到共享記憶體來做資料傳輸,可以節省= 育源及硬體中斷的使用。 隐體 為讓本發明的上述特徵和優點能更明顯易懂 舉多個實施例,並配合所附圖式,作詳細說明如下。特 7201211771 ~ l〇35295twfdoc/I 2 with the J processor is for the second data is the exact part of the local pattern in the face: set detection, f: in an embodiment of the 'first data analysis above Ratio = = adjacent two pictures in the continuous picture: The operation of the co-processor is to make the second data of the voice data as the compressed voice data. In the embodiment of the present invention, the operation of the first co-processor is to compress the file, the compressed file, and the compressed file. The first data is sent to the mailbox by the outgoing processor to the general processing. The second write = read command ^ two =====, passed to the processor through the shared memory. The coprocessor pair = two, the different processing, to obtain a part of the data in the large amount of data. Then pass the mailbox to the general purpose processor. The system of the present invention is asymmetric in the data flow transmitted by the two processors, and does not need to use the shared memory for data transmission, which can save the use of the source and the hardware interrupt. The above-described features and advantages of the present invention will become more apparent from the following detailed description. Special 7
35295twf.doc/I 201211771 【實施方式】 在下述諸實施例中’當元件被指為Γ連接」或Γ輕接」 至另一元件時,其可為直接連接或輕接至另一元件,或可 能存在介於其間之元件。相對地,當元件被指為「直接連 接」或「直接耦接」至另一元件時,則不存在有介於其間 之元件。 、、 請參考圖1,圖1為依本發明實施例的異質雙核心 (heterogeneous dual-core)之非對稱傳輸(asynchr〇n〇us transfer)系統方塊圖。此非對稱傳輸系統丨⑻包括共享記 憶體 110、通用處理器(generalpUrp〇sepr〇cess〇r) Gpp、 協同處理器(coprocessor) CP以及郵箱(mailbox) 120。其 中的異質雙核心是兩個不同類型的處理器,亦即協同處理 器CP的類型與通用處理器GPP的類型是不同的。通用處 理器GPP可以具有執行一般的應用程式(appiicati〇n program)的處理功能,主要是控制導向,例如處理使用者 界面、中斷處理等工作。協同處理器cp主要是做數學運 舁處理,負貴即時、具規律違算特性的工作,以應付高運 算需求,例如快速傅立葉轉換、矩陣乘法等等。協同處理 器CP可以疋數位訊號處理器(Digital Signal Processor, 簡稱為DSP)、%可程式閘陣列(pr〇grammab〗e Gate Array ’簡稱為FPGA )處理器或複雜可編程邏輯裝置 (complex programmable logic device,簡稱為 CPLD )。 承上述,共享記憶體110耦接在通用處理器Gpp與協 同處理器CP之間。郵箱120也耦接在通用處理器GPp與35295 twf.doc/I 201211771 [Embodiment] In the following embodiments, when an element is referred to as a "connected" or "slightly connected" to another element, it may be directly connected or lightly connected to another element, or There may be components in between. In contrast, when an element is referred to as being "directly connected" or "directly coupled" to another element, there are no intervening elements. Please refer to FIG. 1. FIG. 1 is a block diagram of a heterogeneous dual-core asymmetric transmission (asynchr〇n〇us transfer) system according to an embodiment of the present invention. The asymmetric transmission system (8) includes a shared memory 110, a general purpose processor (generalpUrp〇sepr〇cess〇r) Gpp, a coprocessor CP, and a mailbox 120. The heterogeneous dual cores are two different types of processors, i.e., the type of the coprocessor CP is different from the type of the general purpose processor GPP. The general-purpose processor GPP can have a processing function for executing a general application (appiicati program), mainly control orientation, such as processing user interface, interrupt processing, and the like. The coprocessor cp is mainly used for mathematical operations, negative and immediate, with regular violations to cope with high computational requirements, such as fast Fourier transform, matrix multiplication, and so on. The coprocessor CP can be a digital signal processor (DSP), a % gateable array (e Gate Array 'abbreviated as FPGA) processor, or a complex programmable logic device (complex programmable logic device). Device, referred to as CPLD). In the above, the shared memory 110 is coupled between the general purpose processor Gpp and the coprocessor CP. The mailbox 120 is also coupled to the general purpose processor GPp and
ϋ 10 35295twf.docA 201211771 協同處理器CP之間》通用處理器GPP可以從外部的一資 料擷取裝置(未繪示)接收到第一資料DATA卜或是從圖 形使用者介面(graphical user interface,簡稱為GUI)接 收到第一資料。通用處理器GPP將所接收到的第一資料 DATA1寫入至共享記憶體協同處理器cp再從波享 記憶體110讀取第一資料DATA1,並對第一資料dataiϋ 10 35295twf.docA 201211771 between the coprocessor CPs, the general-purpose processor GPP can receive the first data DATA from an external data capture device (not shown) or from the graphical user interface (graphical user interface, Referred to as GUI) Received the first data. The general-purpose processor GPP writes the received first data DATA1 to the shared memory coprocessor cp and reads the first data DATA1 from the wave-capable memory 110, and reads the first data DATA1.
做數學運算處理,以得出第二資料DATA2,並且接著將第 一資料DATA2寫入至郵箱120。最後,郵箱12〇傳送第一 資料DATA2至通用處理器Gpp。 、 值付注意的疋此系統的傳輸機制:(1)傳送第一 DATA1的資料流量方向為單一方向(如粗箭頭所示) 以單-方向由朝處理器Gpp來寫人第—資❹ 共享記憶體11G,無法從共享記憶體m以逆 於第-資料DATA1的資料再回傳至通用處理、j 中此處所指的同額資料是等同或類似第 ^ 理器cp僅從共享記憶體1 = 第-資枓DATA1,無法從協同處理器cp.將 = 料DATA1的資料寫-至共享記憶體m; 資 資料DATA2的資料流量 傳送第二 示)’僅以單-方向由協同處理器CP方所 DATA2至郵箱120,無法你新狄ι〇λ、木馬入第二資料 二資料DATA2的資料再回傳二^^將同額於第 所指的同額資料是等同或類協 器CP ’其中此處 大小;以及⑷通用處理Tm—2的資料量 盗GPP僅從郵箱120讀取苐二 9A mathematical operation is performed to derive the second data DATA2, and then the first data DATA2 is written to the mailbox 120. Finally, the mailbox 12 transmits the first data DATA2 to the general purpose processor Gpp. The value of this system's transmission mechanism: (1) the first DATA1 data direction is transmitted in a single direction (as indicated by the thick arrow) in the single-direction by the processor Gpp to write the person--shared memory Volume 11G, unable to return from the shared memory m to the data of the first data DATA1 to the general processing, j the same amount of data referred to herein is equivalent or similar to the processor cp only from the shared memory 1 = - 枓 枓 DATA1, can not write from the coprocessor cp. = material DATA1 data to the shared memory m; data DATA2 data traffic transmission second indication) 'only in a single-direction by the coprocessor CP side DATA2 to mailbox 120, can not be your new Di 〇 〇, trojan into the second data two data DATA2 data and then return two ^ ^ will be the same amount of the same amount of information refers to the equivalent or classifier CP 'where the size And (4) General Processing Tm-2 data piracy GPP only reads from the mailbox 120 苐 2
35295twf.doc/I 201211771 資料DATA2 ’無法從通叹㈣Gpp將 的資料寫入至郵箱120。 、第一貧料 :注意’在此非對稱傳輪系統1〇〇中共有 動方向(如粗、細箭頭所示),第—個資料 通用處理器GPP經由共享記憶體UG至協同處理器^從 第-個資料流動方向是從協同處理器cp經由 通用處㈣GPP’其巾_—师概動方 ^ 資料咖與經第二個資料流動方向傳送的第I: DATA2減’第二資料_犧流量遠小二3 需求的技術方案,可以提供更有效的傳輸機制St 向溝通都使用共享記憶體11G做資料傳輸,從而可= 記憶體資源,以及硬體中斷的使用。 3 f參考圖2,圖2為依本發明實施例的共享記憶體ιι〇 的不思圖。初始時,可以在共享記憶體UG中_一個旗 標暫存器(Flag Registers) FR,如圖所示的旗標暫存器 FR有16個_的旗標内容,可以用來域:寫入權限、 讀取權限、寫人記憶體的起始位置與讀取記憶體的終止位 置0 例如,第1個byte可以定義為判別通用處理器Gpp 寫入權限或者協同處理器CP的讀取權限,當第i個_ 值為〇時,處理器GPP可以寫人共享記憶體n〇,而 協同處理H CP不能讀取共享記11G的㈣,當第i 20121177135295twf.doc/I 201211771 Data DATA2 'Cannot write data from the sigh (4) Gpp to the mailbox 120. First poor material: Note that 'in this asymmetric transmission system 1 共有 shared direction (as indicated by thick and thin arrows), the first data general processor GPP via shared memory UG to the collaborative processor ^ From the first data flow direction is from the coprocessor cp via the general office (four) GPP's towel_--------------------------------------------------------- The technical solution that the traffic is much smaller than the demand of 2 can provide a more efficient transmission mechanism. St. Communication uses shared memory 11G for data transmission, which can be used as memory resources and hardware interrupts. 3 f Referring to FIG. 2, FIG. 2 is a diagram of a shared memory ιι 依 according to an embodiment of the present invention. Initially, it can be in the shared memory UG_ a flag register (Flag Registers) FR, as shown in the flag register FR has 16 _ flag content, can be used for domain: write Permission, read permission, write start position of the memory and end position of the read memory 0 For example, the first byte can be defined as discriminating the write permission of the general purpose processor Gpp or the read permission of the coprocessor CP. When the ith _ value is 〇, the processor GPP can write the shared memory n〇, and the cooperative processing H CP cannot read the shared memory 11G (4), when the i 201211771
wwiv-010 35295twf.doc/I 個byte值為1時,協同處理器CP可以讀取共享記憮 的資料’而·處理器GPP不能寫人共享記憶體^。10 2〜4個byte可以定義為儲存通用處理器Gpp寫入妓, 憶體110的起始位置,第5〜7個byte可以定義為 用處理器GPP寫入共享記憶體110的終止位置f第『通 個byte可以定義為儲存協同處理器cp讀取記 二10 位置:第i Μ 3個byte可以定義為儲存協同處理器的^^Wwiv-010 35295twf.doc/I When the byte value is 1, the coprocessor CP can read the shared data] and the processor GPP cannot write the shared memory. 10 2~4 bytes can be defined as storing the general-purpose processor Gpp write 妓, the starting position of the memory 110, and the 5th to 7th bytes can be defined as the termination position f of the shared memory 110 written by the processor GPP. 『A byte can be defined as a storage coprocessor cp read record 2 10 position: the first i Μ 3 bytes can be defined as the storage coprocessor ^^
取共旱記憶體110的終止位置,其他byte則保留 5 他功能。 辑』增加其 值得一提的是,旗標暫存器FR的旗標内容定 一種選擇實施例,本領域技術者也可依其需求改 = byte大小與内容。 知 承上述,通用處理器GPP與協同處理器cp可以上、 詢旗標暫存器FR的旗標值來使用共享記憶體11〇。例二輪 用處理器GPP可以根據旗標暫存器FR的旗標内容做通 動作,協同處理器CP可以根據旗標暫存器FR的旗標·内= 做讀取動作。例如初始時,通用處理器Gpp讀取旗^各 器FR的第一個byte,若第一個byte值為〇,則通用處= 器GpP可以寫入共享記憶體110,開始將欲傳送的大量= 料(如第一資料DATA1)寫入共享記憶體11〇中,直 成寫入之後,將旗標暫存器FR的第一個byte值更改為广 以允許協同處理器CP做讀取動作。也就是在通用處理器 GPP將第一資料DATA1寫入共享記憶體110時,協 理器〇>只需要做輪詢的動作,每隔一段時間檢查第工处 11Take the end position of the co-dry memory 110, and the other byte retains its function. It is worth mentioning that the flag content of the flag register FR is an optional embodiment, and those skilled in the art can also change the byte size and content according to their needs. It is known that the general purpose processor GPP and the coprocessor cp can use the shared memory 11 上 to query the flag value of the flag register FR. For example, the processor GPP can perform the action according to the flag content of the flag register FR, and the coprocessor CP can perform the reading operation according to the flag of the flag register FR. For example, at the beginning, the general-purpose processor Gpp reads the first byte of the flag FR. If the first byte value is 〇, the general-purpose device GpP can write to the shared memory 110, and starts to transfer a large amount of data. = Material (such as the first data DATA1) is written into the shared memory 11〇, after the direct write, the first byte value of the flag register FR is changed to wide to allow the coprocessor CP to perform the read operation. . That is, when the general-purpose processor GPP writes the first data DATA1 to the shared memory 110, the coordinator 只需> only needs to perform the polling action, and checks the work site at intervals.
201211771 w.O 35295twf.doc/I byte ’確認是否可以讀取動作。 當協同處理器CP輪詢時,球認了旗標暫存器fr的第 1個byte值為1時,則讀取共享記憶體11〇的資料,直到 讀取動作完成之後,再將旗標暫存器FR的第一個1)^6值 更改為0,以允許通用處理器Gpp對共享記憶體u〇資料 做寫入動作。 值得一提的是,由於協同處理器Cp的工作只有執行 數學運鼻’所以平常空閒時間就是等待通用處理器Gpp傳 送過來的第一資料DATA1,以及將經運算後的第二資料 DATA2傳送給通用處理器GPP。這種輪詢的方式不使用 到中斷命令,可以避免協同處理器cp的數學運算處理受 到中斷而停止原先的運算工作。 此外,經運算後的第二資料DATA2傳 處理 器GPP之前需通過_ 120的機帝卜此郵箱,;;〇的機制 為:協同處理器CP需向郵箱120發出請求,以將第二資 料DATA2寫入郵箱120。接著,郵箱12〇在第二資料 DATA2寫入完成之後’郵箱.no發出中斷命令給通用處理 器GPP ’以使通用處理器GPP讀取第二資料data2。 請參考圖3,圖3為採用圖丄的異質雙核心之非對稱 傳輸系統的另-實施例。此實施例中,通用處理器Gpp從 外部的攝影機132 (也可以是照相機)接㈣第一資料 DATA1。此處的第-資料DATA1為影像圖片(或影像資 料)。協同處理HCT的鮮演算處理是絲檢測影像圖 片中的局部圖型(pattern),例如檢測出圖片中的“十字圖 12 201211771201211771 w.O 35295twf.doc/I byte ‘Check if the action can be read. When the coprocessor CP polls, the ball recognizes that the first byte value of the flag register fr is 1, and reads the data of the shared memory 11〇 until the read operation is completed, and then flags the flag. The first 1)^6 value of the scratchpad FR is changed to 0 to allow the general purpose processor Gpp to write to the shared memory. It is worth mentioning that, since the work of the coprocessor Cp only performs the mathematics, the usual idle time is to wait for the first data DATA1 transmitted by the general processor Gpp, and to transfer the second data DATA2 to the general data. Processor GPP. This method of polling does not use the interrupt command, and the mathematical operation of the coprocessor cp can be prevented from being interrupted and the original operation can be stopped. In addition, the second data DATA2 after the operation is transmitted to the processor GPP before passing through the mailbox of the _120, the mechanism is: the coprocessor CP needs to send a request to the mailbox 120 to send the second data DATA2 Write to mailbox 120. Next, the mailbox 12〇 issues an interrupt command to the general-purpose processor GPP' after the second data DATA2 is written, so that the general-purpose processor GPP reads the second data data2. Please refer to FIG. 3. FIG. 3 is another embodiment of an asymmetric dual-core asymmetric transmission system employing the diagram. In this embodiment, the general purpose processor Gpp is connected to the (four) first data DATA1 from an external camera 132 (which may also be a camera). The first data DATA1 here is an image picture (or image material). The fresh calculus processing of the cooperative processing HCT is a partial pattern in the silk detection image, for example, detecting the "cross image 12 201211771" in the image.
vvv_, *- 010 35295twf.doc/I 型”的位置。協同處理器CP將檢測到“十字圖型,,的位置座 巧…回傳給通用處理器⑽’此處的位置座標值^) P為第二資料DATA2。從此f糊來看,第_資料Datai ^張圖片的資料量’協同處理器cp執行檢測演算法, • -WDATA2為位置座標值(x,y),第二資料Data2 通過郵& 120的機制而回傳至通用處理器Gpp。其中郵箱 120發出中斷命令給通用處理器Gpp,通用 φ 巾斷服務程式接收中斷命令,接著,通用處理器GPP: 用程式接收“十字圖型,,的位置座標值(x,y) ^ 雖然上述實施例中已經對非對稱傳輸系統描述幾種可 能的型態,但所屬技術領域中具有通常知識者應當知道, 本發明的應用當不限制於上述可能的型態。換言之,只要 疋採用如圖1或圖3的異質雙核心之非對稱傳輸系統的架 構,就已經是符合了本發明的精神所在。以下再舉幾個實 施方式以便本領域具有通常知識者能夠更進一步的了解本 發明的精神,並實施本發明。 魯 請再參看圖3。在一實施例中,若傳送的第一資料 DATA1為一連續晝面,而欲要回傳的第二資料Data2為 連續晝面中的相鄰晝面的差異點,則可以將協同處理器cp 所執行的檢測演算法設計成針對連續晝面中的相鄰兩晝面 做分析比較。 _在另外一實施例,若非對稱傳輸系統100是針對語音 f料做語音壓縮計算,則可以將此系統設計成:通用處理 器GPP接收攝影機132 (或語音擷取装置。例如麥克風) 13 201211771Vvv_, *- 010 35295twf.doc/type I. The coprocessor CP will detect the "cross pattern, the location is very good... it is passed back to the general processor (10) 'where the coordinate value ^) P For the second data DATA2. From this f paste point of view, the data amount of the _data Datai ^ picture 'co-processor cp performs the detection algorithm, • -WDATA2 is the position coordinate value (x, y), the second data Data2 passes the mechanism of the post & 120 And back to the general purpose processor Gpp. The mailbox 120 issues an interrupt command to the general-purpose processor Gpp, and the general-purpose φ towel service program receives the interrupt command. Then, the general-purpose processor GPP: uses the program to receive the "cross-pattern, the position coordinate value (x, y) ^ although the above Several possible types have been described in the embodiments for asymmetric transmission systems, but those of ordinary skill in the art will appreciate that the application of the present invention is not limited to the above-described possible types. In other words, as long as 1 or the architecture of the asymmetric dual-core asymmetric transmission system of FIG. 3 is in line with the spirit of the present invention. Several embodiments are hereinafter described so that those skilled in the art can further understand the spirit of the present invention. And the invention is implemented. Please refer to FIG. 3. Referring again to FIG. 3, in an embodiment, if the transmitted first data DATA1 is a continuous plane, and the second data Data2 to be returned is adjacent in the continuous plane. The difference between the two sides, the detection algorithm executed by the coprocessor cp can be designed to analyze and compare the adjacent two faces in the continuous face. One embodiment, the transmission system 100 is symmetric if not done voice compression for voice f material calculated, this system can be designed to: (. Capturing device such as a microphone or speech) general purpose processor GPP receives camera 13213201211771
—.^*0 35295twf.doc/I 所傳送的語音資料做為第一資料DATA1,通用處理器Gpp 傳送此第一資料DATA1,協同處理器CP的數學運算是針 對語音資料做語音壓縮計算,而回傳的第二資料DATA2 為經壓縮的語音資料。 在另外一實施例,當傳送的第一資料DATA1為一檔 案,欲回傳的第二資料DATA2為經壓縮的檔案,則可以 將協同處理器CP的數學運算設計成是針對檔案做資料壓 縮。—.**0 35295twf.doc/I The voice data transmitted is used as the first data DATA1, and the general processor Gpp transmits the first data DATA1. The mathematical operation of the cooperative processor CP is to perform voice compression calculation for the voice data. The returned second data DATA2 is the compressed voice data. In another embodiment, when the transmitted first data DATA1 is a file and the second data DATA2 to be returned is a compressed file, the mathematical operation of the coprocessor CP can be designed to compress the data for the file.
呀,荩网J π僻影機僅是一種選擇性實施例 也可以疋其匕的影像擷取裝置,例如照相機,當然也可3 語音揭取裝置、麥歧、或㈣。本躺猶者也可依」 需求改變㈣錄裝置的_。因此本發_應用當不; 制於上述幾種可能的型態。 雜圖4為依本發明實施例的異質雙核心< 方法的流程圖。此非對稱傳輸方法400適用方 .在步ΐ傳輸系統。此非對稱傳輸方法400包括以1The J J J 僻 仅 仅 仅 仅 仅 仅 仅 仅 僻 僻 僻 僻 僻 僻 僻 僻 僻 僻 僻 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 This lie can also be changed according to the demand (four) recording device _. Therefore, this application is not used; it is made in several possible types. Hybrid Figure 4 is a flow diagram of a heterogeneous dual core < method in accordance with an embodiment of the present invention. This asymmetric transmission method 400 is applicable to the step-by-step transmission system. This asymmetric transmission method 400 includes 1
享記憶體';接著S41:驟通將第—資料寫入至去 憶體讀取第-L在=:3:中 資料做數學運算處理,以得出 ^ 0對第- 硫因虛理哭财你 讦出弟一貝枓’在步驟S440中, 協门處理㈣第二資料寫人至郵箱,其 資料流量遠小於傳送第—資料的資料 最-=的 ,々中,郵箱將第二資料傳送至通用處理器後,在步竭 ,布上所4 ’本發明實施例的麵稱傳輸系統與方法可 14 201211771Enjoy memory '; then S41: Suddenly write the first data to the memory to read the -L in =:3: the data is processed mathematically to get ^ 0 to the first - sulfur due to cry In the case of step S440, the second information is written to the mailbox, and the data flow is much smaller than the data of the first---the data is transmitted. After being transmitted to the general-purpose processor, in the process of exhausting, the surface transmission system and method of the embodiment of the present invention can be 14 201211771
v^ w010 35295twf.doc/I 以解決現有技術中的浪費記憶體資源與過多的硬體中斷的 技術問題,並且可以提供更有效的資料傳輸,至少具有以 下的特點: (1) 通用處理器傳送給協同處理器的資料量大,協同 處理器傳送資料給通用處理器資料量很小,不需要雙向溝 通都使用共享記憶體做資料傳輸; (2) 共享記憶體並沒有使用中斷機制; (3) 協同處理器只有做數學演算法的運算。在協同處 理器執行完演算法之後可以檢查旗標暫存器’來確認共享 記憶體是否允許其讀取資料,因此並不需要利用中斷機制 來提醒協同處理器讀取資料,可以節省中斷的使用;以及 (4) 使用郵箱機制,不需預先規劃共享記憶體的空 間’可以節省記憶體資源。 雖然本發明已以實施例揭露如上,然其並非用以限定 本發明,任何所屬技術領域中具有通常知識者,在不脫離 本發明的精神和範圍内,當可作些許之更動與潤飾,故本 籲 發明的保護範圍當視後附之申請專利範®所界定者為準。 【圖式簡單說明】 圖1為依本發明實施例的異質雙核心之非對稱傳輸系 統方塊圖。 ’、 圖2為依本發明實施例的共享記憶體的示意圖。 —圖3為採用圖1的異質雙核心之非對稱傳輸系统 一貫施例。 、’、巧乃 圖4為依本發明實施例的異質雙核心之非對稱傳輪方 15v^ w010 35295twf.doc/I to solve the technical problem of wasting memory resources and excessive hardware interruption in the prior art, and can provide more efficient data transmission, at least has the following characteristics: (1) general-purpose processor transfer The amount of data for the coprocessor is large, the amount of data transmitted by the coprocessor to the general processor is small, and the shared memory is used for data transmission without two-way communication; (2) the shared memory does not use the interrupt mechanism; The coprocessor only has the math algorithm to do the arithmetic. After the coprocessor executes the algorithm, the flag register can be checked to confirm whether the shared memory allows it to read the data, so there is no need to use the interrupt mechanism to remind the coprocessor to read the data, which can save the use of the interrupt. And (4) use the mailbox mechanism, without pre-planning the space of shared memory 'can save memory resources. The present invention has been disclosed in the above embodiments, but it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of protection of this invention is subject to the definition of the patent application. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram of an asymmetric dual core asymmetric transmission system in accordance with an embodiment of the present invention. 2 is a schematic diagram of shared memory in accordance with an embodiment of the present invention. - Figure 3 is a consistent example of the use of the heterogeneous dual core asymmetric transmission system of Figure 1. Figure 4 is an asymmetric dual-core asymmetric transfer wheel in accordance with an embodiment of the present invention.
35295twf.doc/I 201211771 W W V 1 IV %/▲ 法的流程圖。 【主要元件符號說明】 1〇〇 :異質雙核心之非對稱傳輸系統 110 :共享記憶體 120 :郵箱 132 :攝影機 CP :協同處理器 DATA1 :第一資料 DATA2 :第二資料 FR :旗標暫存器 GPP :通用處理器 400 :異質雙核心之非對稱傳輸方法 S410〜S450 :步驟35295twf.doc/I 201211771 W W V 1 IV %/▲ Flow chart of the method. [Main component symbol description] 1〇〇: heterogeneous dual core asymmetric transmission system 110: shared memory 120: mailbox 132: camera CP: coprocessor DATA1: first data DATA2: second data FR: flag temporary storage GPP: General Purpose Processor 400: Heterogeneous Dual Core Asymmetric Transmission Method S410~S450: Steps
1616
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW099129524A TWI465916B (en) | 2010-09-01 | 2010-09-01 | Asymmetric transport system and method of heterogeneous dual-core |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW099129524A TWI465916B (en) | 2010-09-01 | 2010-09-01 | Asymmetric transport system and method of heterogeneous dual-core |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201211771A true TW201211771A (en) | 2012-03-16 |
| TWI465916B TWI465916B (en) | 2014-12-21 |
Family
ID=46764412
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW099129524A TWI465916B (en) | 2010-09-01 | 2010-09-01 | Asymmetric transport system and method of heterogeneous dual-core |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI465916B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI490784B (en) * | 2013-05-16 | 2015-07-01 | Wistron Neweb Corp | Method for functional module management and electronic system |
| US9256734B2 (en) | 2012-04-27 | 2016-02-09 | Broadcom Corporation | Security controlled multi-processor system |
| CN110858187A (en) * | 2018-08-23 | 2020-03-03 | 慧荣科技股份有限公司 | Multiprocessor system with distributed mailbox structure and method for checking processor errors |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6578068B1 (en) * | 1999-08-31 | 2003-06-10 | Accenture Llp | Load balancer in environment services patterns |
| US6401175B1 (en) * | 1999-10-01 | 2002-06-04 | Sun Microsystems, Inc. | Shared write buffer for use by multiple processor units |
| ITMI20040600A1 (en) * | 2004-03-26 | 2004-06-26 | Atmel Corp | DSP SYSTEM ON DOUBLE PROCESSOR WITH MOBILE COMB IN THE COMPLEX DOMAIN |
| GB0407384D0 (en) * | 2004-03-31 | 2004-05-05 | Ignios Ltd | Resource management in a multicore processor |
-
2010
- 2010-09-01 TW TW099129524A patent/TWI465916B/en not_active IP Right Cessation
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9256734B2 (en) | 2012-04-27 | 2016-02-09 | Broadcom Corporation | Security controlled multi-processor system |
| TWI584152B (en) * | 2012-04-27 | 2017-05-21 | 恩智浦股份有限公司 | Security controlled multi-processor system |
| TWI490784B (en) * | 2013-05-16 | 2015-07-01 | Wistron Neweb Corp | Method for functional module management and electronic system |
| CN110858187A (en) * | 2018-08-23 | 2020-03-03 | 慧荣科技股份有限公司 | Multiprocessor system with distributed mailbox structure and method for checking processor errors |
| CN110858187B (en) * | 2018-08-23 | 2023-07-04 | 慧荣科技股份有限公司 | Multiprocessor system with distributed mailbox structure and processor error checking method thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| TWI465916B (en) | 2014-12-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111930676B (en) | Method, device, system and storage medium for communication among multiple processors | |
| TW386202B (en) | Programmable crypto processing system and method | |
| CN101594261B (en) | Method and system for monitoring counterfeit website | |
| TWI426392B (en) | Dual processing system and the comunicating method of the dual processing system | |
| CN103426208A (en) | Cell phone attendance system based on WiFi signals | |
| CN103064748A (en) | Method for processing communication among multiple processes in Linux system | |
| TW201237632A (en) | Buffer management scheme for a network processor | |
| CN103294420B (en) | Intelligent card printing system and control method thereof | |
| TW201211771A (en) | Asymmetric transport system and method of heterogeneous dual-core | |
| CN104408383B (en) | Private data processing system and method | |
| CN114168503A (en) | Interface IP core control method, interface IP core, device and medium | |
| TW200931246A (en) | Apparatus and method for system logging | |
| CN103885900B (en) | Data access processing method, PCIe device and user equipment | |
| TW200945033A (en) | Memory allocation and access method and device using the same | |
| CN101316145A (en) | A method and device for realizing parallel transmission and recovery of multi-channel information | |
| CN200994141Y (en) | Network encryption card with PCI interface | |
| CN115658592A (en) | RDMA-based data transmission method and device | |
| CN102455969B (en) | Method for recording Linux serial communication log | |
| CN114124497A (en) | A data verification system and method | |
| WO2013029425A1 (en) | Audio and video data transmission method | |
| CN101566975A (en) | Method for communication with safe mobile memory apparatus | |
| WO2014106464A1 (en) | Sd card and device and method for accessing sd card | |
| WO2012009996A1 (en) | Memory device and smart-phone system | |
| CN114356600A (en) | Multiplexing communication method, device, first chip and second chip | |
| CN101989250A (en) | Serial communication method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |