201145034 六、發明說明: 【發明所屬之技術領域】 本發明係有關於一種實現多埠儲存媒體的系統及其方法,尤指 一種基於USB 3.0規範中的UASP協定實現多埠儲存媒體的系統及 其方法。 【先前技術】 以往通用序列匯流排的傳輸是採用序列傳輸,一次傳送一個資 料或指令,所以通用序列匯流排的傳輸效能相當有限。因此,USB 3 〇 規範了-種通用序列匯流排連接SCSI協定(USB她制SCSI Protocol),其中UASP協定係以類似小型電腦系統介面(smau computer system interfaee,scs⑽方式额複數雜令或資料(亦即 在UASPI^T’通財顺流排可支援多埠的儲存媒體),不需等 待上-筆指令或倾完成才能送出下—賴令或資料,因此通用序 列匯流排的傳輸效能顯著提升。 耳多,、、'第1圖’第1圖係先前技術說明在協定中,通用 序顺流排和單-儲存媒體之間的錢交換細dshakmg)之示意 圖士第1圖所不’通用序列匯流排1〇2先傳送一讀取資料指令⑽2 及一寫人:細旨令聰至-儲存媒體1(Κ,其中讀取:細旨令腿 包含一指令標籤“1.28,,和埠號“Q”,而寫入資料指令觀包含-指令賴“129,,和埠號“◦,,。儲存媒體刚接收讀取資料指令 201145034 傳送帶有指令標籤“ 128’, 士 判斷帶有指令標籤“ 128’通用序列匯流排102將會無法 是儲存媒體2〇6。而先前括/抖聽是要寫入至儲存媒體2〇4或 法對應到特定儲存媒體包含之埠號無 號,故僅能·僅包含齡_而無槔 2〇6中的其中之一儲存^非202和儲存媒體腦或是儲存媒體 (即完成寫人資料指A、寫/彳如儲存媒體2G攸完成信號交換之後 用序列匯流排_另令、以及傳送資料),再處理通 題。 私㈣之間的信號錢,轉決上述問 【發明内容】 實現USB 3·0規範令的_協定 貫現多埠儲存媒體的系統 m疋 儲存媒體及-儲存裝置,=通用序列匯流排、至少-㈣資料指令,其令每:用f列匯流排係用以傳遞至少一寫入 於該浐入俨 入貝料私令包含一指令標籤和-映射 二〆日7 V ’其中每-琿號對應-儲存媒體;该至少一儲 體2接於該通用序舰流排,每—儲存媒體用以触 寫回應,緒㈣, /、心、入/?尤、撼令包含對應該寫入資料指令的咳指Α;ρ籤. 序職排,該儲存裝置依齡二 、_=丨^ 令標籤與相對應琿號之—映射表,其中當該 二,依據_人就緒指令傳送—包含該指令標籤之資料 賴純置依據純令___紐出獅令標籤所映射 201145034 入資料指令1024後,回傳一讀取就緒指令1042及一寫入 :指二=通用序列其中讀取就緒指令_包 而寫人雜&令1G44包含指令賴“129,,〇 寫I29” _1Q26_W__ ;;4存媒體1〇4,以及可經由通用序列匯流排搬從儲存媒體 104碩取帶有指令標籤“128”的資料1046 、 ,如第1圖所示,在UASP協定中’通用序列匯流排ι〇2可同時 傳运至少—讀取資料指令及/或至少一寫人資料指令至單一儲存媒 體1〇4目此’儲存媒'體104可同時進行一次讀取資料指令及一次 寫入資料指令。 請參照第2圖,第2圖係先前技術說明在UASp協定中,通用 序列匯流排和二儲存媒體之間的信號交換(handshaking)之示意圖。 如第2圖所示,通用序列匯流排202分別傳送一寫入資料指令2022 至一儲存媒體204及一寫入資料指令2024至一儲存媒體206,依據 既有UASP協定,其中寫入指令2〇22包含一指令標籤“ 128”和埠 號〇 ’而寫入資料指令2024包含指令標籤“129”和琿號 ‘〇 。儲存媒體204接收寫入資料指令2022後’回傳一寫入就緒 指令2042至通用序列匯流排202,以及儲存媒體206接收寫入資料 指令2024後,回傳一寫入就緒指令2062至通用序列匯流排202, 其中寫入就緒指令2042包含指令標籤“128” ,而寫入就緒指令 2062包含指令標籤“129” 。因此,當要經由通用序列匯流排102 201145034 之該琿號 ’並將該資祕送至料號所對應线儲存媒體 定實實施例提供一種基於USB 3·0規範中的騰協 存ί置媒體的糸統。該系統包含—通用序列匯流排及—儲 子裝〜用序列匯流排係用以傳遞-第-寫入(讀 一第一儲存媒體與傳遞—第二寫人( 二至 ^ ^ ^ ^ 、叼貝科才曰令至一第二儲存媒 ==::_ 令包 一冩入貝枓才曰令包含一第二 弗 應該第-儲存媒體且%二弟車號’該第一埠號對 获署如Γ 阜號對應該第二儲存媒體;以及·广 咖亥通用序列匯流排,該儲存裝置儲存—映财 (mappmg,,_織包含該第— _表 關係與該第二指令標鐵和該第二埠號之_==—埠號之映射 匯流排傳送一資料時, 、、’其中當通用序列 容與該映射表,將據1"資料所包含之指令標鐵内 崎編彻—蝴項存媒體。 —本發明的另—實施例提供—種基於咖3 定貫現多埠儲存媒體的方法。該八—、轨中的UASP協 少一寫入資料指令至至少—儲存脾U—通用序列匯流排傳送至 v 保存媒體;該至少—点 -寫入就緒資料指令至該通用序列匯錯存媒體回應至少 資料和對應於該資料所:’丄由-儲存裴置查閱— 該資料至細物賴她物;及寫入201145034 VI. Description of the Invention: [Technical Field] The present invention relates to a system for implementing a multi-layer storage medium and a method thereof, and more particularly to a system for implementing a multi-layer storage medium based on the UASP protocol in the USB 3.0 specification and method. [Prior Art] In the past, the transmission of the general-purpose serial bus was transmitted in sequence, and one data or instruction was transmitted at a time, so the transmission efficiency of the universal serial bus was rather limited. Therefore, USB 3 〇 specifies a general-purpose serial bus connection SCSI protocol (USB SCSI Protocol), in which the UASP protocol is similar to a small computer system interfaee (scs (10) method for multiple complications or data (also That is to say, the UASPI^T's pass-through can support a large number of storage media), and the transmission performance of the universal serial bus can be significantly improved without waiting for the up-pen command or the dumping to send out the next-order or data.耳多,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, The busbar 1〇2 first transmits a read data command (10)2 and a writer: the purpose of the order is Congzhi-storage media 1 (Κ, where the read: the decree of the leg contains an instruction tag "1.28,, and nickname" Q", while the data command view contains - the command "129,, and the nickname "◦,. The storage medium just received the read data command 201145034 transmitted with the instruction tag "128', the judge with the instruction tag "128 'Universal sequence convergence 102 will not be the storage medium 2〇6. The previous bracketing/shake is to be written to the storage medium 2〇4 or the method corresponds to the nickname without the number contained in the specific storage medium, so only the age can be included. One of the innocents 2〇6 stores the non-202 and the storage media brain or the storage medium (ie, completes the writing of the data, refers to A, writes/such as the storage medium 2G, completes the handshake after using the serial bus _ another order And transfer the data), and then deal with the whole problem. The signal money between the private (four), turn to the above question [invention content] The realization of the USB 3.0 specification order _ agreement to achieve more storage media system storage media and - storage device, = general sequence bus, at least - (four) data command, which causes each: use f column bus to pass at least one written in the intrusion into the bedding private order containing an instruction tag and - mapping On the second day, 7 V 'each of the 珲 对应 corresponds to the storage medium; the at least one storage 2 is connected to the general-order ship flow, each storage medium is used to write a response, (4), /, heart, into /尤, 撼令 contains a cough finger that should be written to the data instruction; ρ sign. The storage device is based on the age of two, _= 丨 ^ order label and the corresponding nickname - mapping table, wherein when the second, according to the _ person ready command transmission - contains the information of the instruction label Lai Chun set according to the pure order ___ New Zealand After the lion order label is mapped 201145034, after entering the data command 1024, a read-read instruction 1042 and a write: refers to the second = universal sequence in which the read-ready instruction _ packet is written and the person is mixed & 1G44 contains the command 129,, write I29" _1Q26_W__;; 4 storage media 1 〇 4, and can retrieve the data 1046 with the instruction tag "128" from the storage medium 104 via the general sequence bus, as shown in FIG. In the UASP protocol, the 'general sequence bus 〇2 can simultaneously transmit at least—read data commands and/or at least one write data command to a single storage medium. The 'storage medium' body 104 can be simultaneously performed once. Read data instructions and write data instructions at once. Please refer to FIG. 2, which is a schematic diagram of the handshaking between the universal sequence bus and the two storage media in the UASp protocol. As shown in FIG. 2, the universal sequence bus 202 transmits a write data command 2022 to a storage medium 204 and a write data command 2024 to a storage medium 206, respectively, according to the existing UASP protocol, wherein the write command 2〇 22 contains an instruction tag "128" and an apostrophe 〇' and the write data instruction 2024 contains the instruction tag "129" and the apostrophe '〇. After receiving the write data command 2022, the storage medium 204 'returns a write ready command 2042 to the universal sequence bus 202, and the storage medium 206 receives the write data command 2024, and returns a write ready command 2062 to the universal sequence summary. Row 202, wherein write ready instruction 2042 includes instruction tag "128" and write ready instruction 2062 includes instruction tag "129". Therefore, when the nickname 'to be sent to the line corresponding to the item number via the universal sequence bus 102 201145034, the storage medium is provided. The embodiment provides a media based on the USB 3.0 specification. Sis. The system includes - a universal sequence bus and - a storage device - a serial bus system for transmitting - first-writing (reading a first storage medium and transmitting - a second writer (two to ^ ^ ^ ^, 叼Becco ordered the second storage medium ==::_ to make the package into the Bellow order, including the second second should be the first - storage media and the % second brother number 'the first nickname The Γ Γ 对 corresponds to the second storage medium; and the 广 亥 通用 通用 通用 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , The second nickname _==- 之 之 映射 之 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 传送 映射 映射 映射 映射 映射 映射 映射 映射 映射 映射 映射 映射 映射The present invention provides a method for determining a plurality of storage media based on the coffee beans. The UASP protocol in the eight-tracks writes a data command to at least the storage spleen U. - the universal sequence bus is transferred to the v save medium; the at least - point-write ready data command to the universal Storage media response error exchange column at least the information and the information corresponding to: 'the Shang - PEI storage opposing Now - depends on the materials to her fines thereof; and write
本發明提供—種基於USB 3·〇規範 中的UASP協定 實現多埠 儲 201145034 :係根據儲存裝置,將每-指令標籤映射 至母-#曰4鐵相對應的錯存媒體的埠號。所以,帶有一指令標鐵 的^料可正似姆軸侧_她。如 可基於腦3.0規範中㈣柳協定實現多璋儲存媒體的功能。 f實施方式】 請參照第3圖,第3圖将兔★旅叩ΛΑ 一 規範㈣UASP協定實現乡埠错存=織於USB 3 0 包含,序列_:===圖。系統 用序列匯流細係用以傳遞至少一讀取資料指令咬一 二广每一讀取資料指令或每-寫入資鍵 係用以於接收-續取細二存媒體3。4、306 :口寫入就緒指令包含對應於讀取資料指令或寫入資料;旨= Τ置308 _於通用序列_3Q2, 映射m入資料指令,儲存每—指令標藏與相對應蜂就之〆 指人^^通用序列匯流排3〇2依據寫入就緒指令傳送-包含 二二=Γ寺’儲存裝置308依據指令標籤與映射表3〇82找出 另夕魏,並將㈣傳送輯朗對應,存媒體。 並不受限=3〇6僅係用以清楚說明本發明,亦即本發明 二記憶㈣存媒體。此外’二儲存媒體3Q4'3Q6係為二硬碟、 、—或上迷硬碟、記憶體相關的一組合。 201145034 序列匯流排3〇2的驅動程式可以利用“G趣 少儲存媒體與通用相匯流排糊接,並將 耦接數里傳給作業糸統。當作業系統要將第 304與第二資料寫入儲存媒體3〇6時 貝科冩入齡媒體 用序列匯流排迎則分別傳送一寫入龍指令體 及一寫入諸指令3024至儲存媒體3〇6,其、— 包”指令標籤“128”存 。儲存舰304接收寫人細旨令地 以及儲存心收= 心令3〇24後,回傳—寫人就緒指令3% =科 其中寫入就緒指令3G42係對應於寫入 ^ ^細, 令標籤加,而寫入就緒指令3%2f_ 含指 3〇24,因此包含指令賴“ 129”。 罵入貝W曰令 請參照第4圖,第4圖係說明儲存裝置 产 圖所示,每-指令標籤映射每 L。如第4 號,也就是說,每-指令標籤對應儲細體的璋 籤“128’,_至對麵存媒體3G4的錢“Q t如指令標 映射至對應儲存媒體3G6的埠號“丨〜、心令標籤“129” 並不受限於4個指令標籤和4 _存媒體。置观 僅包含指令標藏而無蜂號,當帶有指令標藏“哪= 傳=料 201145034 3026通過通用序列匯流排3〇2後,帶有指令標 據儲雜置308中的映射表3082’得知係映射至埠號“〇,,,、而埠 號〇乃對應儲存媒體304,故可將帶有指令標籤“ 128,,的第一 資料3026寫入至儲存媒體304。同理’帶有指令標籤‘⑽”的第 二資料3028通過通用序列匯流排3〇2後,帶有指令桿籤“⑵,,的 資料根據儲存裝置308’得知係映射至埠號“丨,,,而τ璋號“1”乃 對應儲存媒體廳,故可將帶有指令標籤“m,,的第二資料期 寫入至儲存媒體鄕。另外,指令標籤“ 129,,和指令標藏‘⑽” 僅係用以清楚制本發明,亦即本剌並不受限於齡標攻, 和指令標籤“128”中的號碼。 請參照第5圖,第5圖係為本發明的另一實 的方法的流程圖。第5圖之方法係利用第3圖的系心。丄= 細步驟如下: 步驟500 : 步驟502 : 步驟504 : 步驟506 : 步驟508 : 開始;The present invention provides a UASP protocol based on the USB 3·〇 specification to implement multi-storage storage. 201145034: According to the storage device, the per-instruction tag is mapped to the nickname of the mis-stored media corresponding to the parent-#曰4 iron. Therefore, the material with an instruction standard can be just like the side of the um. For example, the function of multiple storage media can be realized based on the (four) Liu agreement in the Brain 3.0 specification. f implementation method] Please refer to Figure 3, Figure 3 will be the rabbit ★ travel a specification (four) UASP agreement to achieve nostalgia = woven in USB 3 0 contains, sequence _: === map. The system uses a serial stream sequence to transmit at least one read data command. Each read data command or each write-write key is used to receive-continued fine memory 2. 3, 306: The port write ready instruction includes an instruction corresponding to reading data or writing data; the purpose is to set 308 _ in the general sequence _3Q2, map m into the data instruction, store each instruction and the corresponding bee ^^General sequence bus 3〇2 is transmitted according to the write ready command - including the second two = Γ temple' storage device 308 according to the instruction tag and the mapping table 3 〇 82 to find out the other day, and (4) transmission media. It is not limited to 3 〇 6 to clarify the invention, that is, the second memory (four) storage medium of the present invention. In addition, the 'second storage medium 3Q4'3Q6 is a combination of a hard disk, a hard disk, and a memory. 201145034 The driver of the serial bus 3〇2 can use the “G less storage media and the general-purpose communication bus to connect and transfer the number of couplings to the operating system. When the operating system wants to write the 304th and second data When entering the storage medium 3〇6, the Becco age-age media serial bus welcomes a write dragon command body and a write command 3024 to the storage medium 3〇6, respectively, the -pack" instruction tag "128" "Save. The storage ship 304 receives the writer's decree and the storage heart = the heart command 3〇24, the return-write person ready command 3% = the department writes the ready command 3G42 corresponds to the write ^ ^ fine, the label Plus, the write ready command 3%2f_ contains the finger 3〇24, so the command is included in the "129". Please refer to Figure 4, Figure 4 shows the storage device production diagram, per-instruction label mapping per L. For example, No. 4, that is, each-instruction label corresponds to the volume of the storage volume "128', _ to the opposite memory 3G4 money "Q t as the instruction mark is mapped to the corresponding storage medium 3G6 nickname "丨~ The heart tag "129" is not limited to 4 command tags and 4_storage media. The view contains only the command mark without the bee number, when there is an instruction tag "Which = pass = material 201145034 3026 through the universal After the sequence bus 3〇2, the mapping table 3082' in the instruction label storage 308 is learned to map to the nickname “〇,,,, and the 埠 〇 corresponds to the storage medium 304, so the tape can be taken The first data 3026 having the instruction tag "128," is written to the storage medium 304. Similarly, the second data 3028 with the instruction tag '(10)' passes through the universal sequence bus 3〇2, and the data with the command bar "(2), according to the storage device 308' is mapped to the nickname "丨, ,, and the τ 璋 "1" corresponds to the storage media hall, so the second data period with the instruction tag "m," can be written to the storage medium. In addition, the instruction tag "129," and the instruction tag '(10)" are only used to clarify the invention, that is, the number is not limited to the age mark, and the number in the instruction tag "128". Please refer to Fig. 5, which is a flow chart of another practical method of the present invention. The method of Fig. 5 utilizes the center of Fig. 3.丄= The detailed steps are as follows: Step 500: Step 502: Step 504: Step 506: Step 508: Start;
寫入資料指令至至少 通用序列匯流排3〇2傳送至少 一儲存媒體; 至少一儲存媒體回應至少一 匯流排迎; 寫入就緒指令至通用序列 將所要傳岭_崎㈣軸 含的齡_與_之蚊彳轉雜稱號; 寫入貝姑財此埠树_體,錢具有此轉 10 201145034 的儲存媒體讀取資料; 步驟510: 結束。 π籤母心令包含對應於每—讀取資料指令的指令 才示戴和對應特疋儲存媒體的埠號。如第3圖所示,寫入資料指人搬 “128”和對應儲存媒體姻物二寫入 “Γ=包含指令標籤“129”和對應儲存媒⑽的璋號 。依據母-齡中指令賴和埠號 糊映射表搬建立供後續查尋之用。在步驟^^一裝讀置取 就緒指令對應於一讀取資料指令, 4 貝 的讀取資料指令的指令 母^取就緒指令包含所對應 才匕人 :寫入就緒指令對應於一寫入資料 ^如令包含所對應的寫入資料指令的指令標 3022 L Γ 指令购係對應於寫人資料指令 指人斷30)42包懈標籤“128,,,而寫入就緒 m 帶有二 ;曰4喊128的貧料寫入至儲存 標鐵、,,的資料寫人至齡媒體篇。叹將#心令 =所述,本發明所提供的基於刪3 〇規範中的⑽ ^現夕埠儲存舰料統及其方法,餘據指令麵和轉映射 將每-指令標籤映射至每一指令標籤相對應的儲存媒體的璋 ^所以,帶有指令標細料可正確寫人相物令賴的館存 201145034 :存::的:即可基於 3_。規範中的UASP協定實現多 以上所雜林發私触實補,凡依本㈣ 所做之均等變化與_ ’皆應屬本發明之涵蓋範圍。如圍 【圖式簡單說明】 儲 第1圖係先前技術說明在UASP協定中,通用序列匯流排和單 存媒體之間的信號交換之示意圖。 儲存 第2圖係先術制在UASp協定中,_序舰流排和二 媒體之間的信號交換之示意圖。 第3 ^為本發明的一實施例說明基於咖3 〇規範中的⑽p協 疋貫現多埠儲存媒體的系統的示意圖。 第4圖係說明指令標籤和埠號映射表的示意圖。 第5圖係為本發明的另—實施例等化訊號的方法的流程圖。 善 【主要元件符號說明】 通用序列匯流排 系統 儲存媒體 指令標籤和蟑號映射表 讀取資料指令 寫入資料指令 102、202、302 300 104、204、206、304、306 308 1022 1024 、 2022 、 2024 、 3022 、 3024 12 201145034 1042 讀取就緒指令 1044、2042、2062、3042、3062 寫入就緒指令 1026、1046、2026、3026、3028 資料 500-510 步驟Writing a data command to at least the universal sequence bus 3 〇 2 to transfer at least one storage medium; at least one storage medium responding to at least one bus welcoming; writing the ready command to the universal sequence will be the _ _ saki (four) axis containing the age _ and _ The mosquito 彳 turns the miscellaneous title; Writes the 姑 财 埠 _ _ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , The π sign is included in the command corresponding to each read data command to indicate the nickname of the corresponding storage medium. As shown in Fig. 3, the written data refers to the person's "128" and the corresponding storage medium, and the second is written with the nickname "including the instruction label "129" and the corresponding storage medium (10). And the nickname paste mapping table is set up for subsequent searching. In step ^^, the read-and-read ready command corresponds to a read data instruction, and the 4-bump read data instruction command parent ready read command contains the corresponding Only the person who writes: the write-ready instruction corresponds to a write data. If the instruction contains the corresponding instruction to write the data, the instruction mark 3022 L Γ the instruction purchase corresponds to the write data command. 128,,, and write ready m with two; 曰 4 shout 128 of the poor material written to the storage standard, ,, the information written by the age-old media articles. According to the sighing #心令=, the present invention provides a (10) 现 埠 埠 埠 埠 埠 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其The storage medium corresponding to the instruction label 所以^ Therefore, with the instruction standard, the library can be correctly written to the library. 201145034: Save:: can be based on 3_. The UASP agreement in the specification realizes more than the above, and all the changes and _'s made in accordance with this (4) are within the scope of the present invention. For example, the following figure is a schematic diagram of the signal exchange between the universal sequence bus and the single-storage media in the UASP protocol. Storage Figure 2 is a schematic diagram of the signal exchange between the sequel and the second media in the UASp protocol. 3 is a schematic diagram of a system for coherently storing a plurality of storage media based on (10)p in the specification of the present invention. Figure 4 is a schematic diagram showing the instruction tag and nickname mapping table. Figure 5 is a flow chart of a method for equalizing signals in another embodiment of the present invention. Good [Main component symbol description] Universal serial bus system storage media instruction tag and nickname mapping table read data instruction write data instruction 102, 202, 302 300 104, 204, 206, 304, 306 308 1022 1024, 2022, 2024, 3022, 3024 12 201145034 1042 Read Ready Commands 1044, 2042, 2062, 3042, 3062 Write Ready Commands 1026, 1046, 2026, 3026, 3028 Data 500-510 Steps