TW407232B - Data transferring/separating controller - Google Patents
Data transferring/separating controller Download PDFInfo
- Publication number
- TW407232B TW407232B TW87118832A TW87118832A TW407232B TW 407232 B TW407232 B TW 407232B TW 87118832 A TW87118832 A TW 87118832A TW 87118832 A TW87118832 A TW 87118832A TW 407232 B TW407232 B TW 407232B
- Authority
- TW
- Taiwan
- Prior art keywords
- bus
- control
- data
- buffer
- scope
- Prior art date
Links
Landscapes
- Bus Control (AREA)
Abstract
Description
407232407232
本發明係有關於一種資料傳輸/隔離控制裝置(data transferring/separating controller),特別有關於一 種可在高速直接記憶體存取模式(Ultra DMA m〇de)下提供 熱抽換(hot swap)功能之資料傳輸/隔離控制裝置。 一般而言,周邊設備(device),像是磁碟(driye)或 硬碟(HD .hard disk)等資料儲存裝置,其與主系統 (host)如電腦之間必須透過一個標準介面(丨 傳輸資料’而資料傳輸、控制方式等相互溝通的協來 (protocol)即稱為介面規格(interface pr〇t〇c〇1)。目前 個人電腦常用的磁碟介面規格是所謂的IDE介面 (Integrated Device Electronics),而隨著 CPU 速度的加 快以及應用軟體的日趨複雜,加強型(Enhanced)EIDE介面 被用來取代傳統的IDE介面。其特點包括以lba( l〇gicai block addressing)定址模式使儲存容量達到Giga聆忱等 級,於資料傳輸速度方面,最高傳輸速度在Ultra ])^模 式下,則可高達33. 3MBps。 一般來說,資料傳輸方式包括PI0模式(Pr〇gramine(1 I/O mode)和DMA 模式(direct memory access) 如第 13圖 所示,一般週邊設備1 5如資料儲存裝置包括記憶體和硬 碟、軟碟等磁碟機設備,ΡΙ0模式則是透過匯流排(bus)1:3 和I/O埠(port) 12而直接利用中央處理器(CPU : central process unit)l〇來處理資料、指令碼或指令參數等非資 料(non-data.)指令傳輸的工作,因此,在存取動作未完成 前’ CPU1 0並無法執行其他的工作,至於資料傳輸率以The present invention relates to a data transfer / separating controller, and more particularly, to a method capable of providing a hot swap function in a high-speed direct memory access mode (Ultra DMA Mode). Data transmission / isolation control device. Generally speaking, a peripheral device (device), such as a data storage device such as a driye or a hard disk (HD.hard disk), and a host system such as a computer must be transmitted through a standard interface (丨Data 'and protocols that communicate with each other, such as data transmission and control methods, are called interface specifications. The current disk interface specification commonly used in personal computers is the so-called Integrated Device Interface (Integrated Device). Electronics), and with the acceleration of CPU speed and the increasing complexity of application software, the Enhanced (EIDE) interface is used to replace the traditional IDE interface. Its features include lba (l0gicai block addressing) addressing mode to make storage capacity 3MBps。 Giga listening level, in terms of data transmission speed, the highest transmission speed in Ultra]) ^ mode, it can reach up to 33.3MBps. Generally speaking, data transmission methods include PI0 mode (Pr0gramine (1 I / O mode) and DMA mode (direct memory access). As shown in Figure 13, general peripheral devices 15 such as data storage devices include memory and hardware Disk drives, floppy disks, and other disk drive devices, PI0 mode uses the bus 1: 3 and I / O port 12 to directly use the central processing unit (CPU) to process data. , Instruction codes, or instruction parameters such as non-data (non-data.) Instruction transmission tasks, therefore, before the access action is not completed 'CPU10 0 can not perform other tasks, as for the data transmission rate to
C:\ProgramFiles\Patent\0356-3759-E.ptd第 4 頁 407232 五、發明說明(2) PIO模式4(PI0 mode 4)為例,每秒大約為16. 6MByte。 而如第lb圖所示,DMA模式則是CPU10將一些啟始設定 父給DMA控制晶片(DMA control ler)ll ,然後由DMA控制晶 片Π負責資料傳輸,因此,使用DMA模式不僅可以減輕cpu 的負擔’同時可以加快執行的速度。 另一種Ultra DMA模式是由英代爾(Intel)等公司發展 出來其不僅具有和傳統IDE介面的相容性,且内建 (built-in)錯誤檢查(crc :Cyclical Redundancy Check 1 ng)功能,一旦檢查到資料傳輸中的錯誤,資料即 進行重傳的動作,同時Ui tra DMA模式的資料傳輸率可從 16.6Mbyte/sec 提高到33. 3Mbyte/sec。 其中原有PI0模式4之資料傳輸率是16. 6Mbyte/sec, 其資料發生在方波信號的上昇邊緣,而在Ultra DMA模式 下,則是同時以(方波)信號的上昇和下降邊緣來觸發資料 的傳送,所以最大傳輸率為16.6x2=:33.3 Mbyte/sec。 至於目前介面協定“以^““卩^比⑶”所定義的主 要信號名稱係如第1表所示:C: \ ProgramFiles \ Patent \ 0356-3759-E.ptd page 4 407232 V. Description of the invention (2) PIO mode 4 (PI0 mode 4) is taken as an example, which is approximately 16. 6MByte per second. As shown in Figure lb, the DMA mode is that the CPU 10 sets some initial settings to the DMA control chip (DMA control ler), and then the DMA control chip Π is responsible for data transmission. Therefore, using the DMA mode can not only reduce the CPU Burden 'can also speed up execution. Another Ultra DMA mode is developed by companies such as Intel. It not only has compatibility with traditional IDE interfaces, but also has built-in (crc: Cyclical Redundancy Check 1 ng) function. Once an error in data transmission is detected, the data is retransmitted, and the data transmission rate of Ui tra DMA mode can be increased from 16.6Mbyte / sec to 33.3Mbyte / sec. The data transmission rate of the original PI0 mode 4 is 16. 6 Mbyte / sec. Its data occurs at the rising edge of the square wave signal, and in the Ultra DMA mode, it uses the rising and falling edges of the (square wave) signal at the same time. Trigger the transmission of data, so the maximum transmission rate is 16.6x2 =: 33.3 Mbyte / sec. As for the main signal names defined in the current interface agreement "^" "卩 ^ 比 ⑶" are shown in Table 1:
407232 五、發明說明(3) 第1表407232 V. Description of Invention (3) Table 1
定義(description) Host DIR Device 信號(acronym) 晶片選擇 CS0-CS1 資料位元 DD0-DD15 周邊裝置位址位元 —> DA0-DA2 DMA認可 -> DMACK DMA要求 <- DMARQ 中斷要求 INTRQ I/O讀取 DIOR Ultra DMA資料輸入快#期間 之DMA備妥 HDMARDY Ultra DMA資料輸出快傳期間 之資料選通 HSTROBE I/O備妥 <r- IORDY Ultra DMA資料輸出快傳期間 之DMA備妥 <r- DDMARDY Ultra DMA資料輸入快傳期間 之資料選通 DSTROBE I/O寫入 DIOW Ultra DMA資料快傳期間終止 STOP 又為使主系統(host system)與周邊裝置(peripheral device)能在電源未關閉(power on )的情況下進行熱抽換 (hot swap),例如目前常用之抽取式硬碟(removable hard disk),一般解決的方法是在主系統與周邊裝置間之 匯流排插入緩衝器(bu f f er)以避免傳輸資料的遺失。例如 第5圖所示,一個IDE匯流排510透過IDE排線(flat cable)Definition (Description) Host DIR Device signal (acronym) Chip selection CS0-CS1 Data bits DD0-DD15 Peripheral device address bits— > DA0-DA2 DMA approval- > DMACK DMA requirement <-DMARQ interrupt request INTRQ I / O reads DIOR Ultra DMA data input fast # DMA is ready during HDMARDY Ultra DMA data output fast transmission data strobe HSTROBE I / O is ready < r- IORDY Ultra DMA data output fast transmission DMA is ready < r- DDMARDY Ultra DMA data strobe during data input fast transfer DSTROBE I / O write DIOW Ultra DMA data fast transfer terminates STOP and enables host system and peripheral device Perform hot swap without power on, such as removable hard disks commonly used today. The general solution is to insert a buffer into the bus between the main system and peripheral devices. (Bu ff er) to avoid loss of transmission data. For example, as shown in Figure 5, an IDE bus 510 passes through an IDE flat cable.
C:\ProgramFiles\Patent\0356-3759-E.ptd第 6 頁 __407232 五、發明說明(4) 520、530可連接兩個周邊裝置如IDE磁碟機54〇、550 ’緩 衝器 600a、60 0b 則設置在11)1:排線(flat cable) 520、530 上’以使CPU50 0和磁碟機540、5 50能在電源未關閉(power on)的情況下進行熱抽換。 然而傳統DMA模式和u 1 tra DMA模式卻因有如下列的差 異’故無法僅以單純讀/寫信號來控制前述緩衝器之傳輸 方向。 (1)如第2表所示,就前述傳統相關技術而言,由於傳 統直接s己憶體存取(direc.t memory access)之DMA資料傳 輸模式’係僅利用單純的讀/寫信號(U/W ; Read/Write signals)來控制緩衝器的傳輸方向,但讀/寫信號(R/W)在 Ultra DMA模式下卻有不同的定義,因此敢無法同樣僅以 單純讀/寫信號來控制緩衝器之傳輸方向。 第2表 傳統模式之讀/寫信號定義 Ultra DMA模式之讀/寫信號定義 PIO 讀/寫(READ/WRITE) Ultra DMA READ Ultra DMA WRITE DIOW STOP STOP DIOR HDMARDY hstrobe IORDY DSTROBE "一 - ddmardy _ ------ (2)如第‘2a圖所示,一傳統DMA讀/寫模式之時序圖如 下列說明,當周邊裝置向主系統發出DMARQ要求信號,且 inrai i^m C:\ProgramFiles\Patent\0356-3759-E. ptd第 7 頁 --4072^¾----- 五、發明說明(5) 由主系統表示DMACK認可信號後,便在DI〇R/DI〇w信號的上 升邊緣21時’進行有效(Vand)資料DATA的傳輸。 然而U1 tra DMA模式有所不同,例如在第2b圖之U1 tr a DMA讀取模式之時序圖中更包括一輸入選通(str〇be_in)信 號DSTR0BE,且在第2c圖之Ultra DMA寫入模式之時序圖中 包括一輸出選通(^1;1'〇56~〇111;)信號115丁1?06£。其中,在前 述Ultra DMA讀/寫模式下為求加倍資料傳輸,故在第21)圖 之Ultra DMA讀取模式’係以輸入選通信號1)51<1?(^£之上升 邊緣 22(riSing edge)和下降邊緣 23(falling edge)來分 別進行有效資料DATA的傳輸。而在第2c圖之ϋΗι^ MA寫 入模式,則以輸出選通信號HSTR〇BE之上升邊緣24(rising edge)和下降邊緣25 (fal 1 ing edge)來分別進行有效資料 DATA的傳輸。 、C: \ ProgramFiles \ Patent \ 0356-3759-E.ptd page 6 __407232 V. Description of the invention (4) 520, 530 can connect two peripheral devices such as IDE disk drive 54, 550 'buffers 600a, 60 0b is set on 11) 1: flat cables 520, 530 'so that CPU50 0 and drives 540, 5 50 can be hot-swapped without power on. However, the conventional DMA mode and the u 1 tra DMA mode cannot control the transfer direction of the aforementioned buffer with a simple read / write signal due to the following differences. (1) As shown in Table 2, as far as the aforementioned conventional technologies are concerned, since the conventional DMA data transfer mode of direct direc.t memory access uses only pure read / write signals (U / W; Read / Write signals) to control the transmission direction of the buffer, but the read / write signals (R / W) have different definitions in the Ultra DMA mode, so dare you ca n’t just use the simple read / write Signal to control the transmission direction of the buffer. Table 2 Definition of read / write signals in traditional mode Definition of read / write signals in Ultra DMA mode PIO read / write (READ / WRITE) Ultra DMA READ Ultra DMA WRITE DIOW STOP STOP DIOR HDMARDY hstrobe IORDY DSTROBE " a-ddmardy _ ------ (2) As shown in Figure '2a, the timing diagram of a conventional DMA read / write mode is as follows. When the peripheral device sends a DMARQ request signal to the main system, and inrai i ^ m C: \ ProgramFiles \ Patent \ 0356-3759-E. Ptd page 7--4072 ^ ¾ ----- V. Description of the invention (5) After the DMACK approval signal is indicated by the main system, it will be in DI〇R / DI〇w At the rising edge of the signal at 21 ', transmission of Vand data DATA is performed. However, the U1 tra DMA mode is different. For example, in the timing chart of U1 tr a DMA read mode in Figure 2b, an input strobe (str0be_in) signal DSTR0BE is included, and the Ultra DMA write in Figure 2c The timing diagram of the mode includes an output strobe (^ 1; 1'〇56 ~ 〇111;) signal 115? 1? 06. Among them, in the aforementioned Ultra DMA read / write mode, in order to double the data transmission, the Ultra DMA read mode in FIG. 21) is based on the input strobe signal 1) 51 < 1? (^ £ of rising edge 22 ( riSing edge) and falling edge 23 (falling edge) respectively for effective data DATA transmission. In the ^^ MA write mode of Figure 2c, the rising edge 24 (rising edge) of the strobe signal HSTR is output. And falling edge 25 (fal 1 ing edge) to transmit valid data DATA, respectively.
(3)在前述Ultra DMA模式傳輸結束之前,不論是第2b 圖之Ultra DMA讀取模式,或第2c圖之UUra DMA寫入模 式,均會在認可信號DMACK到達上升邊緣26時,由主系統 寫入一筆CRC錯誤檢查資料至周邊裝置,並以之與周邊裝 置自身產生之錯誤檢查CRC資料進行比對,藉此判斷傳 資料DATA之正確性。然而第2a圖之傳統DMA模式則不1 ^ 寫入CRC資料之時序週期。 W 另外需特別說明的是,在第2b圖之讀取模式中, 包括有傳輸資料DATA之讀取週期及CRC資料之寫入 ' :::者之資料傳輸方向為反向;反之L圖之寫入 模式中,則由於傳輸資料DATA &CRC錯誤檢查資料者均焉屬(3) Before the end of the aforementioned Ultra DMA mode transfer, whether it is the Ultra DMA read mode in Figure 2b or the UUra DMA write mode in Figure 2c, the main system will be recognized by the main system when the recognition signal DMACK reaches the rising edge 26. Write a piece of CRC error check data to the peripheral device and compare it with the error check CRC data generated by the peripheral device itself to judge the correctness of the transmitted data DATA. However, the traditional DMA mode shown in Figure 2a does not have a 1 ^ timing cycle for writing CRC data. W In addition, it should be noted that in the reading mode in Figure 2b, the reading period of the transmission data DATA and the writing of the CRC data are included. In the write mode, no one belongs to the data transmission due to data DATA & CRC error check.
407232 五、發明說明(6) 寫入週期,因此兩者之資料傳輪 傳統DMA模式則無此問題。】β為同向。在第2a圖之 因此綜合上述,匯流排上外加 之DIOR/DIOtf信號來控制資料钱& & ^衝器並無法以單獨 傳輸方向。 …枓…時機及緩衝器的資料 有,於此,本發明之目的係為了解決 供-種資料傳輸/隔離控制裂置,其對匯流排指 commands)進行解譯(interpreting)以產生對應之 號,並藉此控制資料傳輸之方向和正確性。/ 工制仏 為達成上述目的,本發明提供一種資料傳輸/隔離控 制裝置,係在高速直接記憶體存取模式(UHra DMa 下提供熱抽換(hot swap)之功能,其包括一匯流排緩 置和一匯流排指令監控(moni toring)裝置。其中,匯流 緩衝裝置位於主系統和周邊裝置之間,匯流排指令監控裝 置則以一匯流排指令解譯器對來自主系統的匯流排指令解 碼,接著透過一匯流排控制器來輸出對應匯流排指令的控 制信號’包括方向信號和致能信號,以控制匯流排緩衝裝 置之傳輸方向、傳輸模式和進行熱抽換時之資料隔離如 此可確保主系統和周邊裝置間之資料傳輸正確性,並可在 高速直接記憶體存取模式(Ultra DMA mode)下提供熱括換 (hot swap)之功能。 ' 以下’就圖式說明本發明之資料傳輸/隔離控制襄置 的實施例’其中,在不同圖示中使用相同之參考符號,係 指示相同或同義之元件407232 V. Description of the invention (6) The write cycle, so the data transfer wheel of the two does not have this problem in the traditional DMA mode. ] Β is the same direction. In Figure 2a, therefore, combined with the above, the DIOR / DIOtf signal on the bus to control the data money & amps cannot be transmitted in a separate direction. ... 枓 ... the timing and buffer data are there. The purpose of the present invention is to solve the problem of data transmission / isolation control split, which interprets the bus (commands) to generate corresponding numbers. , And to control the direction and accuracy of data transmission. In order to achieve the above purpose, the present invention provides a data transmission / isolation control device, which provides a hot swap function under the high-speed direct memory access mode (UHra DMa), which includes a bus buffer And a bus instruction monitoring (moni toring) device, wherein the bus buffer device is located between the main system and the peripheral device, and the bus instruction monitoring device decodes the bus instruction from the main system with a bus instruction interpreter , And then output a control signal corresponding to the bus command through a bus controller, including a direction signal and an enable signal, to control the transmission direction, transmission mode, and data isolation of the bus buffering device so as to ensure that The correctness of the data transmission between the main system and the peripheral devices, and can provide a hot swap function in the Ultra DMA mode. 'The following' illustrates the information of the present invention in a diagrammatic manner. An embodiment of transmission / isolation control, where the same reference symbols are used in different illustrations to indicate the same or synonymous elements
C:\ProgramFiIes\Patent\0356-3759-E.ptd第 9 頁 07232 五、發明說明(7) 圖式簡單說明 ,圖係顯示-種PI0模式之資料傳輸。 第lb圖係顯示一種DMA模式之資料傳輸。 第2 a圖係顯卜傳賴A f料傳輪模^之脈波時序 第2b圖係顯_tra DMA資料讀取模式之脈波時序 第2c圖係顯示ultra DMA資料耷λ γ j 叶冩入杈式之脈波時序 第3圖係顯示本發明之資料傳輪 号掬/隔離控制裝置方塊C: \ ProgramFiIes \ Patent \ 0356-3759-E.ptd page 9 07232 V. Description of the invention (7) Brief description of the diagram. The diagram shows a kind of data transmission in PI0 mode. Figure lb shows data transmission in a DMA mode. Figure 2a shows the pulse timing of the transmission wheel model ^ A 2 shows the pulse timing of the _tra DMA data read mode Figure 2c shows the ultra DMA data 耷 λ γ j 冩Figure 3 of the pulse wave timing of the branch type shows the data transmission wheel number / isolation control device block of the present invention
圖 圖 圖 圖 隔離控制裝置 第4圖係顯示一依據第3圖之資料傳輸/ 之詳細實施例。 插 ☆第5。圖係顯示一在主系統與周邊裝置間之丨砰 入緩衝器(buffer)進行熱抽換之傳統應用電路。'敗 隔離控制裝 第6圖係顯示一依據第4、5圖之資料傳輸 置的詳細實施例。 a 匯流排監控裝 第7圖係顯示一依據第6圖之實施例中, 置之詳細電路方塊圖。 [符號說明] 1〇〜CPU ; 13~匯流排;12~1/〇埠;14〜記憶體;15〜周 邊設備;11〜DMA控制晶片;1〇〇~主系統;2〇〇〜匯流排緩衝 裝置;300〜匯流排指令監控裝置;400〜周邊裝置;21〇~雙 向> 料緩衝單元;230〜單向控制缓衝單元;212、214、Figure Figure Figure Figure Isolation Control Device Figure 4 shows a detailed embodiment of data transmission according to Figure 3. Insert ☆ The fifth. The diagram shows a traditional application circuit that performs a hot swap between the main system and peripheral devices. Fig. 6 shows a detailed embodiment of the data transmission device according to Figs. a Bus monitoring device FIG. 7 is a detailed circuit block diagram of an embodiment according to FIG. 6. [Symbol description] 10 ~ CPU; 13 ~ bus; 12 ~ 1/0 port; 14 ~ memory; 15 ~ peripheral equipment; 11 ~ DMA control chip; 100 ~ main system; 2000 ~ bus Buffer device; 300 to bus command monitoring device; 400 to peripheral devices; 21 to two-way > material buffer unit; 230 to one-way control buffer unit; 212, 214,
C:\ProgramFiles\Patent\0356-3759-E.ptd第 10 頁 五、發明說明(8) 2 3 2、2 3 4〜緩衝器;31 0〜匯流排指令解譯器;3 3 〇〜匯流排 控制器;5 0 0 ~處理器;51 0〜I DE匯流排;5 2 0,530〜IDE排 線;600a.’600b~ 緩衝器;540,550~IDE 磁碟機;CTRL〜控 制信號;7 1 0〜雙向資料緩衝單元;7 3 0〜單向控制緩衝單 元;712、714、732、734~緩衝器;800〜匯流排指令監控 裝置;81 0~匯流排指令解譯器;83〇〜匯流排控制器; 817、850〜電源控制器;900、940〜電源;920〜開關;81卜 解碼器;812〜D型正反器;813〜及閘;814a,81 6a~及閘; 814b’817a~反閘;814c'緩衝器;815~多工器;816〜致能 信號產生器;81 6a〜或閘。 實施例 ' 凊參閱第3圖,其顯示本發明之一裡頁科得輸/隔離控 制裝置(data transferring/separating controller)實 施例,其包括一匯流排緩衝裝置2 〇 〇和一匯流排指令監控 裝置(bus command monitoring device)300 。其中,主系 統100和周邊裝置400係透過匯流排丨2〇進行資料傳輸,而 匯流排緩衝裝置2 0 0則位於主系統丨00和周邊裝置4〇〇之間 :匯流排上。Λ外’匯流排指令監控裝置3〇〇係用以解‘ 自主系統1 00的匯流排指令,並輸出對應匯流排指令的 f信號以控制匯流排緩衝裝置2〇〇之傳輸方向、傳輪 ^和熱抽換時之資料隔離,如此可確保主系統1〇〇 邊 之資料傳輸正確性,並可在高速直接記憶^ =模式(Ultr.a DMA mode)下提供熱抽換(心 月b 0 4C: \ ProgramFiles \ Patent \ 0356-3759-E.ptd page 10 V. Description of the invention (8) 2 3 2, 2 3 4 ~ buffer; 31 0 ~ bus instruction interpreter; 3 3 0 ~ bus Controller; 5 0 0 ~ processor; 5 0 0 ~ I DE bus; 5 2 0, 530 ~ IDE cable; 600a.'600b ~ buffer; 540, 550 ~ IDE drive; CTRL ~ control signal 7 1 0 ~ bidirectional data buffer unit; 7 3 0 ~ unidirectional control buffer unit; 712, 714, 732, 734 ~ buffers; 800 ~ bus instruction monitoring device; 8 0 ~ bus instruction interpreter; 83 〇 ~ bus controller; 817, 850 ~ power controller; 900, 940 ~ power supply; 920 ~ switch; 81 decoder; 812 ~ D type flip-flop; 813 ~ and gate; 814a, 81 6a ~ and gate 814b'817a ~ reverse gate; 814c'buffer; 815 ~ multiplexer; 816 ~ enable signal generator; 81 6a ~ or gate. Embodiment '凊 Refer to FIG. 3, which shows an embodiment of a data transfer / separating controller of the Ricotek, which includes a bus buffering device 2000 and a bus command monitoring Device (bus command monitoring device) 300. Among them, the main system 100 and the peripheral device 400 transmit data through the busbar 200, and the bus buffer device 2000 is located between the main system 00 and the peripheral device 400: the busbar. Λ outside 'Bus command monitoring device 300 is used to resolve the bus command of the autonomous system 100, and output the f signal corresponding to the bus command to control the transmission direction and transfer wheel of the bus buffer device 2000 ^ It is isolated from the data during hot swapping. This can ensure the correctness of data transmission on the main system side. It can also provide hot swapping in high-speed direct memory ^ = mode (Ultr.a DMA mode) (heart month b 0 4
五、發明說明V. Description of the invention
隔離圖,本發明實施例之資料傳輸/ ^ 裝置係包括一匯流排緩衝裝置200和一匯法M 置3〇0。其中,主系統100和周邊裝置40 0 :間 係透過資料匯流排L1和控制匯流排L2、L3進行資料間 (data)、指令(c〇mmand)和控制(c〇ntr〇i)信號之 輸,匯流排緩衝裝置2〇〇則插入於主系統1〇〇和 ^ 210和一位於控制匯流排L2、u上之控制緩衝單元2凡 ΓΓΠί=Γ!利用一匯流排指令解譯器31°解ϊ 來自主系統100的匯流排指令Β1、Β2並予以輸出, 過匯流排控制器33 0產生對應匯流排指令B1、Β2的控2 號CTRL,包括方向信號DIR和致能信號〇Ε1/〇Ε2, ° 制=排緩衝裝置200之傳輸方向、傳輸模 抽工 之資料隔離。 ”、神狹呀 其中,方向信號DIR係用來控制資料緩衝單元21〇 輸方士向,如依據方向信號DIR決定由主系統1〇〇經 214 5買取周邊裝置4GG之資料,或者由主系統1GQ經 212寫入資料至周邊裝置4〇〇。 W器 而致能信號OE1/OE2,則用來控制資料緩衝 控制緩衝單元230致能與否,例如依據致能信號〇£2選 輸或隔離狀態,若在傳輸狀態,則致能控制緩衝畢元“^ 之緩衝器234由主系統100向周邊裝置4〇〇傳輸控制指a 讀/寫控制)‘,同時以0E1致能資料緩衝單元21〇以執行7 傳輸。不過,周邊裝置400可直接向主系統1〇〇傳輸控制指In the isolation diagram, the data transmission device in the embodiment of the present invention includes a bus buffer device 200 and a sink method 300. Among them, the main system 100 and the peripheral device 40 0: use the data bus L1 and the control buses L2 and L3 to input data (data), commands (common), and control (common) signals. , The bus buffer device 200 is inserted into the main system 100 and ^ 210 and a control buffer unit 2 on the control bus L2, u where ΓΓΠί = Γ! Using a bus command interpreter 31 ° to solve指令 The bus commands B1 and B2 from the main system 100 are output, and the bus controller 33 0 generates the control number CTRL corresponding to the bus commands B1 and B2, including the direction signal DIR and the enable signal 〇1 / 〇Ε2 ° system = data transmission direction of the buffer device 200, data isolation of the transmission die. Among them, the direction signal DIR is used to control the data buffer unit 21 to lose the direction of the party. For example, according to the direction signal DIR, the main system 100 can purchase the data of the peripheral device 4GG via 214 5 or the main system 1GQ. The data is written to the peripheral device 400 through 212. The enable signal OE1 / OE2 of the W device is used to control whether the data buffer control buffer unit 230 is enabled or not, for example, according to the enable signal, the input or isolation status is £ 2. If it is in the transmission state, the control buffering buffer "^ 's buffer 234 is transmitted from the main system 100 to the peripheral device (the transmission control means a read / write control)', and the data buffer unit 21 is enabled at 0E1. To perform 7 transfers. However, the peripheral device 400 may directly transmit the control instruction to the main system 100.
— 407232_ 五、發明說明(10) " ' ---—— 令,無需控制信號CTRL之致能信號0E2的控制。 舉例而言,請參閱第6圖,其係結合第4圖之本發明 ,例和第5圖之IDE架構。其中由於只有與UUra MA模式 有關之匯流排指令無法單純以DI〇R和耵⑽信號來控制傳輸 1向,所以在所有之IDE匯流排指令中,可將與旧打过別八 杈式有關之匯流排指令分離出來處理,其餘匯流排指令則 可直接以DIOR和DI0W信號來控制傳輸方向。 、 本發明實施例之資料傳輸/隔離控制裝置係包括一匯 流排緩衝裝置70 0和一匯流排指令監控裝置8〇〇。其中,主 系統5 0 0與IDE磁碟機540之間係透過資料匯流排[I 〇和控制 匯流排L20、L30進行資料信號以及控制信號之雙向傳輸, 如資料匯流排L1 0上之D D 0 - D D1 5信號’控制匯流排l 2 〇上之 DMARQ/IORDY/INTRQ信號,以及控制匯流排[3〇之DIOR / DIOW / CSO / CS1 / DA0-DA2 / DMACK / RESET信號,其 中,CSO/CS1/DAO-DA2/DIOR/DIOW信號係用來選取特定周 邊裝置如IDE磁碟機540内之記錄器(registers)(未顯 示)。 此外,匯流排緩衝裝置700係插入於IDE匯流排510和 IDE磁碟機540之間,其包括一隔離資料匯流排L10之雙向 資料缓衝單元(bi-directional tri-state data bus buffer)710和一隔離控制匯流排L20、L30之單向控制緩衝 單元730。 一般在執行匯流排指令之前,主系統500會先將所要 執行之匯流排指令透過資料匯流排L1 0和控制匯流排L30傳— 407232_ V. Description of the invention (10) " '---—— order, no need to control the control signal CTRL enable signal 0E2. For example, please refer to FIG. 6, which is a combination of the present invention of FIG. 4 and the IDE architecture of FIG. 5. Among them, only the bus commands related to the UUra MA mode cannot control the transmission of only one direction with DI0R and 耵 ⑽ signals. Therefore, in all IDE bus commands, it can be related to the old eight-branch type. The bus instructions are separated and processed, and the remaining bus instructions can directly control the transmission direction by using the DIOR and DI0W signals. The data transmission / isolation control device in the embodiment of the present invention includes a bus buffer device 700 and a bus command monitoring device 800. Among them, the main system 5 0 0 and the IDE drive 540 are bidirectional transmission of data signals and control signals through the data bus [I 0 and the control bus L20, L30, such as DD 0 on the data bus L1 0 -D D1 5 signal 'controls the DMARQ / IORDY / INTRQ signal on the bus 12 and the control bus [DIOR / DIOW / CSO / CS1 / DA0-DA2 / DMACK / RESET signal, of which CSO / The CS1 / DAO-DA2 / DIOR / DIOW signals are used to select registers (not shown) in a specific peripheral device, such as an IDE drive 540. In addition, the bus buffer device 700 is inserted between the IDE bus 510 and the IDE disk drive 540, and includes a bi-directional tri-state data bus buffer 710 that isolates the data bus L10 and A unidirectional control buffer unit 730 for isolating the control bus L20, L30. Generally, before executing the bus command, the main system 500 first transmits the bus command to be executed through the data bus L1 0 and the control bus L30.
五、發明說明(11) 送到周邊裝置如IDE磁碟機540,此時匯流排指令監控裝置 8〇〇即利用一匯流排指令解譯器81〇來取得由主系統5〇〇傳 送之資料,其内含匯流排指令(bus c〇mmand),然後加以 解譯並判斷此内含之匯流排指令特性。 接著透過匯流排控制器830,例如一時序產生電路 (timing generator)來產生對應匯流排指令的控制信 CTRL ’其包括方向信號DIR和致能信號〇Ει、〇E2 ,其用以 1制匯流排緩衝裝置700之傳輸方向、傳輸模 敎 時之資料隔離。 …神珙 其中方向k號DIR係用來控制雙向資料緩衝單元之 ,如在資料匯流排L1G方面,依據方向信號dir決 疋由主系統500經緩衝器712讀取磁碟機54〇之資料,或 由主系統500經緩衝器714寫入資料至磁碟機54〇。 而致能信號〇E1,係用來控制資料緩單 雄* 能例如依據致能信號〇Ε2選擇傳輸或隔離狀 I,右在傳輸狀態,則致能控制緩衝單元73〇之單向 器734以由主系統500向磁碟機54〇傳輸控制 關/隨讀/寫控制)’同時以致能信細Μ 緩衝單元710之緩衝器712或緩衝5|714&^{1"=#^1 f枓 寫)傳輸。 以執仃資料之(讀/ 此外’電源控制器8 5 0平時俜將雷.、s 0 η η ω Α 置如磁碟賴ο之電源940,進應給周邊裝 關920形成斷路,並輸出—斷路;^p、E抽換時’則利用開 裕h號OPEN予匯流排控制器 C:\Program Files\Patent\0356-3759-E,ptd第 14 頁 407232 五、發明說明(12) 830 ,致使產生一對應熱抽換之控制信號CTRL,其用以禁 制(disable)雙向資料緩衝單元71〇和單向控制緩衝單元 730,以隔離資料匯流排l 1〇和控制匯流排L3〇上之信號。 請配合第2a至2c圖,並參閱第7圖所顯示第6圖之匯流 排指令監控裝置8 0 0之詳細實施例。 其中解碼器8 11主要係對控制匯流排L 3 〇上之 (^S0/CS1/DA0-I)A2信號加以解碼,倘若其屬於寫入匯流排 指令碼(write bus command code),且資料匯流排L10上 之貢料DD0-DD7為内含Ultra DMA讀取模式之相關指令碼 時,由解碼器811輸出之DMA READ信號為[True],而當資 料DD0-DD7係内含Ultra DMA寫入模式之相關指令碼時,解 碼器811輸出之DMA READ信號為[False] v D型延遲正反器812則是用來延續此dm a READ信號之有 效週期至DMA週期結束為止,其中,及閘8丨3則是利用D丨〇w 和DMACK信號為輸入,以提供d型延遲正反器812之閂鎖時 脈週期(latch clock),例如,及閘813可確保在DMA週期 開始之剛提供一個閂鎖時脈週期’以在最後一個P I 〇傳輸 模式傳送之指令碼(command code)後,將解碼器811所解 碼輸出之結果[DMA READ信號]閂鎖至D型延遲正反器812。 _ 此外依據第2b圖之讀取模式,DMA週期包括一有傳輸 資料DATA之讀取週期及CRC資料之寫入週期,兩者之資料 傳輸方向為反向’因此,必須利用DM READ信號和DMARQ 信號為輸入之及閘814a,來調整如第6圖之資料緩衝單元 7 1 0之方向,亦即由讀取方向改為寫入方向,以便由主系 C:\ProgramFiles\Patent\0356-3759-E.ptd第 15 頁 五、發明說明(13) 統500寫入CRC資料至磁碟機540。 多工器815係用來切換ριο模式(反閘814b之輸入dI〇r 信號)及DMA模式(及閘81 4a之輸入DMA READ信號)之方向信 號DIR,而DMACK信號則是透過緩衝器814c加以延遲 (d e 1 a y)後作為切換p I 〇模式及D μ A模式之控制信號。· 至於致能號產生器816部份’反閘817a與及閘816a 之輸出係作為或閘816b之輸入,其中,反閘81 7a之輸入端 麵接電源控制單元817,電源控制單元817係用以控制供給 周邊裝置的電源,而DI OR讀取信號、DIOW寫入信號及認可 k號DMACK則分別為及閘81 6a之輸入端,因此,只有電源 控制單元8 1 7保持導通(周邊裝置電源),且D丨〇R讀取信 號、DI0W寫入信號及認可信號DMACK之一有作用(active) 時’或閘816b方輸出致能信號〇El至緩衝單元710,否則維 持高阻抗(high impedence)狀態,不影響IDE匯流排上另 一連接之磁碟機550(第5圖),同理,或閘817b在電源控制 單元817保持導通時’方輸出致能信號〇E2至緩衝單元 7 3 0 ’否則維持高阻抗(h i g h i m p e d e n c e)狀態。 依據前述第7圖之詳細實施例,可執行下列功能: 匯流排指令為DMA讀取相關指令 當解瑪器811解碼得DMA讀取相關指令時,DMA READ p 號為[True] ’同時此信號會被閂鎖在d型正反器gig中,而 在DMA週期開始時,緩衝器的方向信號DIR係由多工器81 5 切換為及閘81 4a之輸出(DMA模式)控制,由於開始如在傳 輸資料DATA之讀取週期時,DMA READ信號為[True]代表讀V. Description of the invention (11) Send to peripheral devices such as IDE disk drive 540. At this time, the bus command monitoring device 800 uses a bus command interpreter 8100 to obtain the data transmitted by the main system 500. , Which contains the bus command (bus command), and then interpret and judge the characteristics of the contained bus command. Then, a bus controller 830, such as a timing generator, is used to generate a control signal corresponding to the bus command CTRL ', which includes a direction signal DIR and enable signals 〇Ει, 〇E2, which are used to make a 1-bus The transmission direction of the buffer device 700 and the data in the transmission mode are isolated. … The direction k number DIR is used to control the two-way data buffer unit. For example, in the data bus L1G, according to the direction signal dir, the main system 500 reads the data of the drive 54 through the buffer 712. Or, the main system 500 writes data to the disk drive 54 through the buffer 714. The enabling signal OE1 is used to control the data buffering unit. * For example, the transmission or isolation I can be selected according to the enabling signal OE2. When the transmission state is on the right, the unidirectional unit 734 of the control buffer unit 73 is enabled. The host system 500 transfers control / read / write control to the disk drive 54) at the same time enables the buffer 712 of the buffer unit 710 or the buffer 5 | 714 & ^ {1 " = # ^ 1 f 枓Write) transfer. According to the information (read / In addition, the power controller 8 5 0 is usually 雷. S 0 η η ω Α is set to a power source 940 like a magnetic disk, and the input should be opened to the peripheral device 920 to form a circuit, and output — Disconnection; ^ p, E swapping ', then use Kaiyu h number OPEN to the bus controller C: \ Program Files \ Patent \ 0356-3759-E, ptd page 14 407232 V. Description of the invention (12) 830 Causing a control signal CTRL corresponding to the hot swap to be used to disable the bidirectional data buffer unit 71 and the unidirectional control buffer unit 730 to isolate the data bus 110 and the control bus L30. Signal. Please cooperate with Figures 2a to 2c, and refer to the detailed embodiment of the bus command monitoring device 800 in Figure 6 shown in Figure 7. The decoder 8 11 is mainly used to control the bus L 3 0. (^ S0 / CS1 / DA0-I) A2 signal is decoded if it belongs to the write bus command code and the data DD0-DD7 on the data bus L10 contains Ultra DMA read When the mode is related to the instruction code, the DMA READ signal output by the decoder 811 is [True], and when the data is within DD0-DD7 series When the Ultra DMA write mode is related to the instruction code, the DMA READ signal output by the decoder 811 is [False] v The D-type delay flip-flop 812 is used to continue the valid period of the dm a READ signal until the end of the DMA period. Among them, the gate 8 丨 3 uses the D 丨 〇w and DMACK signals as inputs to provide the latch clock period of the d-type delay flip-flop 812. For example, the gate 813 can ensure the DMA cycle. Just at the beginning, a latching clock cycle is provided to latch the result [DMA READ signal] decoded and output by the decoder 811 to the D-type delay positive after the command code transmitted in the last PI 0 transmission mode. Inverter 812. _ In addition, according to the reading mode in Figure 2b, the DMA cycle includes a reading cycle with data DATA and a writing cycle with CRC data. The data transmission direction of the two is reverse. Therefore, DM must be used. The READ signal and the DMARQ signal are the sum gate 814a of the input to adjust the direction of the data buffer unit 7 1 0 as shown in FIG. 6, that is, the reading direction is changed to the writing direction, so that the main system C: \ ProgramFiles \ Patent \ 0356-3759-E.ptd page 15 Explanation (13) The system 500 writes the CRC data to the disk drive 540. The multiplexer 815 is used to switch the ρmode (the input dI0r signal of the back gate 814b) and the DMA mode (and the input DMA READ of the gate 81 4a) Signal), and the DMACK signal is delayed (de 1 ay) through the buffer 814c and used as a control signal for switching the p I 0 mode and the D μ A mode. · As for the output of the enabling number generator 816, the output of the anti-gate 817a and the gate 816a is used as the input of the OR gate 816b. Among them, the input end face of the anti-gate 81 7a is connected to the power control unit 817, and the power control unit 817 is used. In order to control the power supply to the peripheral devices, the DI OR read signal, DIOW write signal, and DMACK of the approved number k are the input terminals of the gate 81 6a. Therefore, only the power control unit 8 1 7 remains on (the power of the peripheral device). ), And when one of the D 丨 〇R read signal, the DI0W write signal, and the acknowledgement signal DMACK is active, or the gate 816b outputs the enable signal 〇El to the buffer unit 710, otherwise maintain high impedance (high impedence) ) Status, does not affect another connected disk drive 550 (Figure 5) on the IDE bus, the same, or the gate 817b when the power control unit 817 remains on, the output signal is enabled 〇E2 to the buffer unit 7 3 0 'Otherwise the high impedance (highimpedence) state is maintained. According to the detailed embodiment of FIG. 7 described above, the following functions can be performed: The bus instruction is a DMA read related instruction. When the DMA read related instruction is decoded by the demodulator 811, the DMA READ p number is [True] 'and this signal Will be latched in the d-type flip-flop gig, and at the beginning of the DMA cycle, the direction signal DIR of the buffer is switched from the multiplexer 81 5 to the output of the gate 81 4a (DMA mode). During the read cycle of transferring data DATA, the DMA READ signal is [True] for reading
五一發明說明胡侧-—- 取方向,然而當DMA週期即將結束如進入CRC資料之寫入週 期時,認可信號DMACK於拉起時,將由主系統寫入一筆crc 錯誤檢查資料至周邊裝置’而DMARQ信號則在DMACK信號拉 起之前先行拉下,因此DMARQ信號和[True]之DMA READ信 號透過及閘814a之輸出DMA READ信號變為[False],改成 寫入方向。 匯流排指令為DMA寫入相關指令 當解碼器8 11解碼得DMA寫入相關指令時,DMA READ信 號為[False],同時此信號會被閂鎖在ρ型正反器η〗中, 而依據第2c圖可知,整個DMA週期均保持為寫入方向,並 未改變。因此開始時,在傳輸資料DATA之寫入週期時, DMA READ6號為[False]代表寫入方向,而當DMA週期即將 結束如進入CRC資料之寫入週期時,DMARQ信號和[False] 之DMA READ信號透過及閘8i4a之輸出仍為[False],故寫 入方向維持不變。 · 匯流排指令為其他指令 當解碼器8 11解碼得與DMA不相關如p丨〇模式之指令碼 時,方向信號DIR由多工器815透過反閘8141)選擇DI〇R信號 控制。 綜由上述,不論是在PI〇傳輸模式和DMA傳輸模式皆可 透過本發明之資料傳輸/隔離控制裝置進行,其不僅可利 用=排監控裝置來輸出對應匯流排指令的控制信號,且 I错向信號和致能信號控制匯流排緩衝裝置之傳輸方 σ 】模式和進行熱抽換時之資料隔離,因此可確保主May Day's invention explains Hu's side ----take direction, but when the DMA cycle is about to end, such as entering the CRC data write cycle, when the acknowledgement signal DMACK is pulled up, the host system will write a crc error check data to the peripheral device ' The DMARQ signal is pulled down before the DMACK signal is pulled up, so the DMARQ signal and the [True] DMA READ signal pass through the output DMA READ signal of the gate 814a to [False] and change to the writing direction. The bus instruction is a DMA write related instruction. When the decoder 8 11 decodes the DMA write related instruction, the DMA READ signal is [False]. At the same time, this signal will be latched in the ρ-type flip-flop η. Figure 2c shows that the entire DMA cycle remains in the write direction and has not changed. Therefore, at the beginning, when the data DATA write cycle is transmitted, the DMA READ6 number is [False] representing the write direction, and when the DMA cycle is about to end, such as entering the CRC data write cycle, the DMARQ signal and the [False] DMA The output of the READ signal through the gate 8i4a is still [False], so the writing direction remains unchanged. · The bus instruction is other instructions. When the decoder 8 11 decodes an instruction code that is not related to DMA, such as p 丨 〇 mode, the direction signal DIR is controlled by the multiplexer 815 through the reverse gate 8141) to select the DI0R signal. To sum up, both the PI0 transmission mode and the DMA transmission mode can be performed by the data transmission / isolation control device of the present invention. It can not only use the = monitoring device to output the control signal corresponding to the bus command, but also I To the signal and the enable signal to control the transmission side of the bus buffer device σ] mode and the data isolation during hot swap, so it can ensure the main
__407232 五、發明說明(15) 系統和周邊裝置間之資料傳輸正確性,並可在不影響其資 料傳輸速率的情況下,於高速直接記憶體存取模式(ultra DMA mode)提供熱抽換(h〇t swap)功能,其應用則及於如 RAID 磁碟陣列(Redundant Arrarys of Inexpensive. Drives)等儲存設備。 雖然本發明已以一較佳實施例揭露如上,然其並非用 以限定本發明’任何熟習此技藝者,在不脫離本發明之精 神和範圍内,當可作些許之更動與潤飾,因此本發明之保 護範圍當視後附之申請專利範圍所界定者為準。__407232 V. Description of the invention (15) The correctness of data transmission between the system and peripheral devices, and can provide hot swap in high-speed direct memory access mode (ultra DMA mode) without affecting the data transmission rate ( h〇t swap) function, and its application is used in storage devices such as RAID disk arrays (Redundant Arrarys of Inexpensive. Drives). Although the present invention has been disclosed as above with a preferred embodiment, it is not intended to limit the present invention. 'Any person skilled in the art can make some modifications and retouching without departing from the spirit and scope of the present invention. The scope of protection of the invention shall be determined by the scope of the attached patent application.
C:\ProgramFiles\Patent\0356-3759-E. ptd第 18 頁C: \ ProgramFiles \ Patent \ 0356-3759-E. Ptd page 18
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW87118832A TW407232B (en) | 1998-11-13 | 1998-11-13 | Data transferring/separating controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW87118832A TW407232B (en) | 1998-11-13 | 1998-11-13 | Data transferring/separating controller |
Publications (1)
Publication Number | Publication Date |
---|---|
TW407232B true TW407232B (en) | 2000-10-01 |
Family
ID=21631966
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW87118832A TW407232B (en) | 1998-11-13 | 1998-11-13 | Data transferring/separating controller |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW407232B (en) |
-
1998
- 1998-11-13 TW TW87118832A patent/TW407232B/en not_active IP Right Cessation
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7640378B2 (en) | Method and apparatus for improving the performance of USB mass storage devices in the presence of long transmission delays | |
EP3276481B1 (en) | Nvme networked storage implementation method, terminal, server, and system | |
US9696942B2 (en) | Accessing remote storage devices using a local bus protocol | |
CN100555257C (en) | The memory controller of the dma operation between the processing page replicative phase and method | |
CN1595381B (en) | Bridge controllers, bridge and method for operating the bridge | |
US7069350B2 (en) | Data transfer control system, electronic instrument, and data transfer control method | |
US5255376A (en) | Method and apparatus for supporting a dual bit length protocol for data transfers | |
US7340551B2 (en) | Bridge permitting access by multiple hosts to a single ported storage drive | |
US7620747B1 (en) | Software based native command queuing | |
US10261698B2 (en) | Systems and methods for hardware-based raid acceleration for variable-length and out-of-order transactions | |
CN108268414A (en) | SD card driver and its control method based on SPI mode | |
US20200341929A1 (en) | Multi-endpoint device sideband communication system | |
JPS61290564A (en) | Compound data processing system | |
US5978878A (en) | Selective latency reduction in bridge circuit between two busses | |
US10261699B2 (en) | Systems and methods for hardware-based RAID acceleration | |
JPH10124407A (en) | Computer system having fault tolerant interconnection device | |
TWI225988B (en) | Apparatus provided with USB host/hub and method for controlling the same | |
US6185651B1 (en) | SCSI bus extender utilizing tagged queuing in a multi-initiator environment | |
JP2963426B2 (en) | Bus bridge device and transaction forward method | |
JP4408840B2 (en) | HDD controller and system equipped with the same | |
TW200405171A (en) | Apparatus and method for monitoring computer system resources | |
US20070005847A1 (en) | Data transfer control device and electronic instrument | |
TW407232B (en) | Data transferring/separating controller | |
TW322546B (en) | ||
JP4597507B2 (en) | Storage device control apparatus and storage device control apparatus control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent | ||
MM4A | Annulment or lapse of patent due to non-payment of fees |