CN101261611A - Data transmission device and method between peripheral equipment - Google Patents
Data transmission device and method between peripheral equipment Download PDFInfo
- Publication number
- CN101261611A CN101261611A CNA2008100056980A CN200810005698A CN101261611A CN 101261611 A CN101261611 A CN 101261611A CN A2008100056980 A CNA2008100056980 A CN A2008100056980A CN 200810005698 A CN200810005698 A CN 200810005698A CN 101261611 A CN101261611 A CN 101261611A
- Authority
- CN
- China
- Prior art keywords
- data
- transmitted
- descriptor
- read
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000002093 peripheral effect Effects 0.000 title claims abstract description 111
- 230000005540 biological transmission Effects 0.000 title claims abstract description 74
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000010586 diagram Methods 0.000 description 10
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000004904 shortening Methods 0.000 description 1
Images
Landscapes
- Bus Control (AREA)
Abstract
Description
技术领域 technical field
本发明涉及数据传输,具体涉及一种外围设备间的数据传输装置和传输方法。The invention relates to data transmission, in particular to a data transmission device and a transmission method between peripheral devices.
背景技术 Background technique
在含有中央处理器(CPU)的嵌入式系统中,为了提高存储器和CPU的使用效率,通常采用直接存储器访问(Direct Memory Access,DMA)的方式进行数据传输。在现有技术中,每一个外围设备都有其对应的DMA控制器,DMA控制器一般集成在南桥中。当将数据从第一外围设备传输到第二外围设备中时,其所要经过的传输路径很长。在读周期,第一外围设备的DMA控制器通过连接在南桥和该第一外围设备间的总线获取该第一外围设备中的数据,并将该数据通过另一连接在南桥和北桥间的总线传送到北桥中,然后由北桥将数据通过连接在北桥和存储器间的总线将数据暂存到存储器中;在写周期,暂存在存储器中的数据经总线被传送到北桥,该数据再由北桥通过总线传送给南桥中的第二外围设备的DMA控制器,该第二外围设备的DMA控制器将该数据存储到第二外围设备中。In an embedded system containing a central processing unit (CPU), in order to improve the efficiency of memory and CPU usage, data transmission is usually performed by means of Direct Memory Access (DMA). In the prior art, each peripheral device has its corresponding DMA controller, and the DMA controller is generally integrated in the south bridge. When data is transferred from the first peripheral device to the second peripheral device, the transmission path it has to go through is very long. In the read cycle, the DMA controller of the first peripheral device obtains the data in the first peripheral device through the bus connected between the south bridge and the first peripheral device, and passes the data through another bus connected between the south bridge and the north bridge. The bus is transmitted to the North Bridge, and then the data is temporarily stored in the memory by the North Bridge through the bus connected between the North Bridge and the memory; in the write cycle, the data temporarily stored in the memory is transmitted to the North Bridge through the bus, and then the data is sent by the North Bridge The data is transmitted to the DMA controller of the second peripheral device in the south bridge through the bus, and the DMA controller of the second peripheral device stores the data into the second peripheral device.
因此,通过DMA方式进行外围设备间的数据传输时,由于数据是暂存在存储器中的,其数据传输的路径很长。若能找到一种缩短数据传输路径的装置和方法,将会大大提高数据传输的效率和性能。Therefore, when performing data transmission between peripheral devices by means of DMA, since the data is temporarily stored in the memory, the data transmission path is very long. If a device and method for shortening the data transmission path can be found, the efficiency and performance of data transmission will be greatly improved.
发明内容 Contents of the invention
因此,根据上述的总结,从后续的说明以及所附的权利要求书连同附图,此发明的目的、特征以及优点将对本领域技术人员而言变得很明显。Therefore, from the above summary, the objects, features and advantages of this invention will become apparent to those skilled in the art from the subsequent description and appended claims together with the accompanying drawings.
此发明提供一种控制数据传输的装置和方法,用于外围设备间的传输,以防止上述的缺点。The present invention provides an apparatus and method for controlling data transmission for transmission between peripheral devices, so as to avoid the above-mentioned disadvantages.
在一实施例中,本发明提供一种控制数据传输的装置,用于控制第一外围设备与第二外围设备间的数据传输。该控制数据传输的装置包括第一控制单元、第二控制单元和暂存单元。第一控制单元用于根据需要传输的数据的读取信息从第一外围设备中读取该数据。第二控制单元用于根据该需要传输的数据的存储信息将该需要传输的数据存储到第二外围设备中。暂存单元,连接于第一控制单元和第二控制单元,并与该第一控制单元和第二控制单元集成在同一芯片中,用于暂存该第一控制单元读取的需要传输的数据,并将该需要传输的数据传送给第二控制单元。In one embodiment, the present invention provides a device for controlling data transmission, which is used for controlling data transmission between a first peripheral device and a second peripheral device. The device for controlling data transmission includes a first control unit, a second control unit and a temporary storage unit. The first control unit is used for reading the data from the first peripheral device according to the read information of the data to be transmitted. The second control unit is used for storing the data to be transmitted in the second peripheral device according to the storage information of the data to be transmitted. The temporary storage unit is connected to the first control unit and the second control unit, and is integrated with the first control unit and the second control unit in the same chip, and is used to temporarily store the data read by the first control unit that needs to be transmitted , and transmit the data to be transmitted to the second control unit.
在另一实施例中,本发明还提供了一种控制数据传输的方法,用于控制第一外围设备与第二外围设备间的数据传输。该方法包括:根据读取信息从第一外围设备中读取需要传输的数据;将该需要传输的数据暂存于暂存单元中;以及根据存储信息将该暂存单元中的该需要传输的数据存储到第二外围设备。In another embodiment, the present invention also provides a method for controlling data transmission, which is used for controlling data transmission between a first peripheral device and a second peripheral device. The method includes: reading data to be transmitted from the first peripheral device according to the read information; temporarily storing the data to be transmitted in a temporary storage unit; and transmitting the data to be transmitted in the temporary storage unit according to the stored information Data is stored to a second peripheral.
本发明提供的控制数据传输的装置和方法,通过将外围设备间传输的数据暂存在暂存单元中,避免了由于数据暂存在存储器中而带来的传输路径过长的问题,提高了数据传输的速率和性能。The device and method for controlling data transmission provided by the present invention temporarily store the data transmitted between peripheral devices in the temporary storage unit, avoiding the problem of too long transmission path caused by the temporary storage of data in the memory, and improving the efficiency of data transmission. speed and performance.
附图说明 Description of drawings
图1是传统的包含DMA控制器的计算机系统架构图。Fig. 1 is a traditional computer system architecture diagram including a DMA controller.
图2是采用DMA方式将I/O设备中的数据传输到硬盘中时的流程图。Fig. 2 is a flow chart when the data in the I/O device is transferred to the hard disk by means of DMA.
图3是本发明第一较佳实施例中外围设备间的数据传输装置的计算机系统架构图。FIG. 3 is a computer system architecture diagram of a data transmission device between peripheral devices in the first preferred embodiment of the present invention.
图4是本发明第二较佳实施例中外围设备间的数据传输装置的计算机系统架构图。FIG. 4 is a computer system architecture diagram of a data transmission device between peripheral devices in a second preferred embodiment of the present invention.
图5是采用改进后的外围设备间的数据传输方法将I/O设备中的数据传输到硬盘中时的流程图。FIG. 5 is a flow chart of transferring data in the I/O device to the hard disk by using the improved data transmission method between peripheral devices.
具体实施方式 Detailed ways
将通过下列实施例描述本发明。然而应可了解到下列实施例并非绝对为本发明的限制,而是本发明的典型的实施。The invention will be described by the following examples. However, it should be understood that the following examples are not absolutely limitations of the present invention, but are typical implementations of the present invention.
在概述本发明的各种态样之后,将详细参照如图中所示的本发明的叙述。虽连同这些图描述本发明,绝无意图限制本发明至在此发明的实施例。相反地,所有替代、变更以及等效者应落在由所附的权利要求书所界定的本发明的精神与范畴内。Having outlined various aspects of the invention, reference will now be made in detail to the description of the invention as illustrated in the drawings. While the invention is described in connection with these figures, there is no intention to limit the invention to the embodiments of the invention herein. On the contrary, all alternatives, modifications and equivalents should fall within the spirit and scope of the invention as defined by the appended claims.
应注意到在此呈现的图示仅供图解本发明的实施例的特定特征与态样。从在此提供的叙述可理解得到实现多种替代实施例与实施而不悖离本发明的精神与范畴。It should be noted that the diagrams presented herein are for illustrative purposes only of certain features and aspects of embodiments of the invention. It can be understood from the description provided herein that various alternative embodiments and implementations can be made without departing from the spirit and scope of the invention.
亦应注意到在此呈现的图示并非按比例绘制。某些构件的比例并非与其它构件的比例成正比,以提供详尽的描述以及强调本发明。It should also be noted that the illustrations presented here are not drawn to scale. The proportions of some of the components are not in direct proportion to the proportions of other components to provide clarity and to emphasize the invention.
参照图1,这是传统的包含DMA控制器的计算机系统架构图。计算机系统架构图包含了中央处理器101、北桥103、存储器105、南桥107以及相关的外围设备。为了使图示清晰,外围设备只标出了第一外围设备109和第二外围设备111,需要传输的数据是从第一外围设备109传送到第二外围设备111中。外围设备包含了硬盘在内的各种输入输出(I/O)设备。Referring to FIG. 1 , this is a traditional computer system architecture diagram including a DMA controller. The computer system architecture diagram includes a
中央处理器101用于生成描述数据读写操作的描述符(descriptor),该描述符包含了读取描述符和存储描述符。其中,该读取描述符中记录了需要传输的数据的类型,长度,以及需要从第一外围设备109中的读取的数据的地址信息等,主要用于描述读周期的数据传输操作;该存储描述符中记录了需要传输的数据的类型,长度,以及在第二外围设备111中存储的数据的地址信息等,主要用于描述在写周期的数据传输操作。The
北桥103连接于中央处理器101,用于传输描述符和需要传输的数据。存储器105连接于中央处理器101和北桥103,中央处理器101将生成的描述符信息写入存储器105中,北桥103将需要传输的数据暂存到存储器105中,因此,存储器105用于存储描述符以及需要传输的数据等信息。The Northbridge 103 is connected to the
南桥107中包含了连接单元121、第一DMA控制器123和第二DMA控制器125。连接单元121连接于北桥103,主要用于将需要传输的数据传输到北桥103,并接收北桥103传送的描述符。第一DMA控制器123连接在连接单元121和第一外围设备109之间,当连接单元121接收到读取描述符时,会将该读取描述符传送给第一DMA控制器123,第一DMA控制器123对此读取描述符进行解析,并将第一外围设备109中相应地址的该需要传输的数据传送给连接单元121。第二DMA控制器125连接在连接单元121和第二外围设备111之间,当连接单元121接收到存储描述符时,会将该存储描述符传送给第二DMA控制器125,第二DMA控制器125对此存储描述符进行解析,并将第二外围设备111中需要传输的数据传输到连接单元121。The
为了能更清晰地表示以DMA方式进行数据传输的过程,以将数据由I/O设备传输到硬盘为例,图2是采用DMA方式将输入输出设备中的数据传输到硬盘中时的流程图。在步骤201,中央处理器101将此读写操作的读取描述符写入到存储器105中。在步骤203,存储器105中存储的读取描述符将被通过北桥103传输到连接单元121,连接单元121会将该读取描述符传输给第一DMA控制器123。然后,第一DMA控制器123对此读取描述符进行解析(步骤205)以确定需要传输的数据的类型和长度,以及应该从第一外围设备109,即此实施例中的I/O设备读取数据的地址等信息。在步骤207,根据解析出来的读取描述符的信息,第一外围设备109,即此实施例中的I/O设备中需要传输的数据被第一DMA控制器123通过连接单元121和北桥103传输到存储器105中。在步骤209,第一DMA控制器123判断是否已经完成数据传输工作。如果还未完成,返回到步骤207;如果数据传输已经完成,进入到步骤211。在步骤211,中央处理器101再将对应于此读写操作的存储描述符写入到存储器中105。在步骤213,存储器中105存储的存储描述符将被通过北桥103传输到连接单元121,连接单元121会将该读取描述符传输给第二DMA控制器125。然后,第二DMA控制器125对此存储描述符进行解析(步骤215)以确定需要传输的数据的类型和长度,以及该数据应存储到第二外围设备111,即此实施例中的硬盘的地址等信息。在步骤217,根据解析出来的存储描述符的信息,该需要传输的数据通过北桥103和连接单元121被第二DMA控制器125传输到第二外围设备111,即此实施例中的硬盘中。在步骤219,第二DMA控制器125判断是否已经完成数据传输工作。如果还未完成,返回到步骤217;如果数据传输已经完成,该工作流程结束,数据以DMA方式中被从I/O设备传输到了硬盘中。由此流程图可以看出,数据传输的路径相当长,若能缩短数据传输的路径,将可以大大提高了数据传输的速率和性能。In order to show the process of data transmission in DMA mode more clearly, take the data transmission from I/O device to hard disk as an example, Figure 2 is a flow chart of using DMA to transfer data from input and output devices to hard disk . In
图3是本发明第一较佳实施例中外围设备间的数据传输装置的计算机系统架构图。计算机系统架构图包含了中央处理器301、北桥303、存储器305、南桥307以及相关的外围设备。为了使图示清晰,外围设备只标出了第一外围设备309和第二外围设备311,需要传输的数据是从第一外围设备309传送到第二外围设备311中。FIG. 3 is a computer system architecture diagram of a data transmission device between peripheral devices in the first preferred embodiment of the present invention. The computer system architecture diagram includes a
中央处理器301用于生成描述数据读写操作的描述符,该描述符包含了读取描述符和存储描述符。其中,该读取描述符中记录了需要传输的数据的类型,长度,以及需要从第一外围设备309中的读取的数据的地址信息等,主要用于描述读周期的数据传输操作;该存储描述符中记录了需要传输的数据的类型,长度,以及在第二外围设备311中存储的数据的地址信息等,主要用于描述在写周期的数据传输操作。The
北桥303连接于中央处理器301,用于传输描述符和数据信息。存储器105连接于中央处理器301和北桥303,中央处理器101将生成的描述符信息写入存储器305中,如果数据并不是在外围设备间简单传输,北桥303会将该数据传输到存储器305中,因此,存储器305用于存储描述符及数据等信息。The
南桥307中包含了接收单元308、第一DMA控制器327和第二DMA控制器329。接收单元308连接于北桥303,主要用于接收北桥303传送的读取描述符和存储描述符,并对该读取描述符和存储描述符进行解析,以得到需要传输的数据的类型,长度,从第一外围设备309中的读取的数据的地址以及在第二外围设备311中存储的数据的地址等信息。如果数据并不是在外围设备间简单传输,接收单元308将该数据传输到北桥303。The
接收单元308包含了连接单元321、第一解析单元323和第二解析单元325。连接单元321通过外部总线连接于北桥303,用于接收中央处理器301写入到存储器305中的读取描述符和存储描述符。第一解析单元323连接于连接单元321,用于接收从连接单元321传送过来的读取描述符,并对该读取描述符进行解析,以得到该需要传输的数据的读取信息,例如,需要读取的数据的类型、长度以及从外围设备中的读取的数据的地址信息等。第二解析单元325连接于连接单元321,用于接收从连接单元321传送过来的存储描述符,则对该存储描述符进行解析,以得到该需要传输的数据的存储信息,例如,需要存储的数据的类型、长度以及在外围设备中存储的数据的地址信息等。The receiving
第一控制单元327连接于第一解析单元323,用于根据解析出来的该数据的读取信息控制从第一外围设备309中读取的需要传输的数据的传输。第二控制单元329连接于第二解析单元325,用于根据解析出来的该数据的存储信息控制将需要传输的数据存储到第二外围设备311中。暂存单元331连接于第一控制单元327和第二控制单元329之间,当此数据只是用于外围设备间的传输时,第一控制单元327将需要传输的数据暂存到暂存单元331中,第二控制单元329将暂存在暂存单元331中的数据传输到第二外围设备311中。The
如果数据不仅仅是用于外围设备间的传输,则在读周期,第一控制单元327将数据传输到第一解析单元323,第一解析单元323将数据传输到连接单元321,连接单元321将数据传送给北桥303,数据最终由北桥303传送给存储器305。比如,需要传输的数据为图像的数据,需要进行图像处理,此时,数据就会由第一外围设备309经第一控制单元327,第一解析单元323,连接单元321和北桥303,最后暂存在存储器305中;而在写周期,暂存在存储器305中的数据会经过北桥303、连接单元321、第二解析单元325以及第二控制单元329传送到第二外围设备311中。也就是说,当数据仅在外围设备间传输时,需要被传输的数据被暂存在了暂存单元331中,而不是暂存在存储器中。If the data is not only used for transmission between peripheral devices, then in the read cycle, the
存储器305是与中央处理器301相连的,当需要将数据进行处理时,传统的将数据暂存于存储器中的方法是比较适用的。但如果数据只是简单地在外围设备间传输,传统的将数据暂存在存储器中将会带来不必要的时间延时。由于技术的进步,将暂存单元与控制单元集成在同一芯片上的技术已经相当成熟,因此,采用此方法来实现外围设备间的数据传输,具有很好的传输效率,将大大简化读写操作的工作流程。The
参照图4,这是本发明第二较佳实施例中外围设备间的数据传输装置的计算机系统架构图。计算机系统架构图包含了中央处理器401、北桥403、存储器405、南桥407以及相关的外围设备。为了使图示清晰,外围设备只标出了第一外围设备409和第二外围设备411,需要传输的数据是从第一外围设备409传送到第二外围设备411中。中央处理器401用于生成描述数据读写操作的描述符,与传统的描述符不同,该描述符不再分为读取描述符和存储描述符,而是由系统软件将这两个描述符改写为读写描述符,该读写描述符记录了需要传输的数据的类型、长度、需要从第一外围设备409中的读取的数据的地址信息以及在第二外围设备411中存储的数据的地址信息等。该读写描述符合并了原来读取描述符和存储描述符中重复的数据信息,可以更简化地描述该读写操作。北桥403连接于中央处理器401,用于传输读写描述符和数据信息。存储器405连接于中央处理器401和北桥403,中央处理器401将生成的读写描述符信息写入存储器405中,如果数据并不是在外围设备间简单传输,北桥403会将该数据传输到存储器405中,因此,存储器405用于存储描述符及数据等信息。Referring to FIG. 4 , it is a computer system architecture diagram of a data transmission device between peripheral devices in the second preferred embodiment of the present invention. The computer system architecture diagram includes a central processing unit 401, a north bridge 403, a memory 405, a south bridge 407 and related peripheral devices. In order to make the illustration clear, the peripheral devices only indicate the first peripheral device 409 and the second peripheral device 411 , and the data to be transmitted is transmitted from the first peripheral device 409 to the second peripheral device 411 . The central processing unit 401 is used to generate descriptors describing data read and write operations. Different from traditional descriptors, the descriptors are no longer divided into read descriptors and storage descriptors, but the two descriptors are combined by the system software. Rewritten as a read-write descriptor, which records the type and length of the data to be transmitted, the address information of the data to be read from the first peripheral device 409, and the data stored in the second peripheral device 411 address information, etc. The read-write descriptor merges the repeated data information in the original read descriptor and storage descriptor, which can describe the read-write operation more simply. The Northbridge 403 is connected to the CPU 401 and is used for transmitting read/write descriptors and data information. The memory 405 is connected to the central processing unit 401 and the north bridge 403, and the central processing unit 401 writes the generated read-write descriptor information into the memory 405. If the data is not simply transmitted between peripheral devices, the north bridge 403 will transfer the data to the memory In 405, therefore, the memory 405 is used to store information such as descriptors and data.
南桥407中包含了接收单元408、第一控制器427和第二控制器429。接收单元408连接于北桥403,主要用于接收北桥403传送的读写描述符,并对该读写描述符进行解析,以得到需要传输的数据的类型、长度、从第一外围设备409中的读取的数据的地址以及在第二外围设备411中存储的数据的地址等信息。如果数据并不是在外围设备间简单传输,接收单元408将该数据传输到北桥403。The south bridge 407 includes a receiving unit 408 , a first controller 427 and a second controller 429 . The receiving unit 408 is connected to the north bridge 403, and is mainly used to receive the read-write descriptor transmitted by the north bridge 403, and analyze the read-write descriptor to obtain the type, length, and information from the first peripheral device 409 of the data to be transmitted. Information such as the address of the read data and the address of the data stored in the second peripheral device 411 . If the data is not simply transmitted between peripheral devices, the receiving unit 408 transmits the data to the north bridge 403 .
接收单元408包含了连接单元421解析单元423。连接单元421通过外部总线连接于北桥403,以接收中央处理器401写入到存储器405中的读写描述符。解析单元423连接于连接单元421,用于接收从连接单元421传送过来的读写描述符,并对该读写描述符进行解析,以得到该需要传输的数据的读取和存储信息,例如,需要传输的数据的类型、长度、从第一外围设备409中的读取的数据的地址信息以及在第二外围设备411中存储的数据的地址信息等等。The receiving unit 408 includes a connection unit 421 and an analysis unit 423 . The connection unit 421 is connected to the north bridge 403 through an external bus, so as to receive the read/write descriptor written into the memory 405 by the central processing unit 401 . The analysis unit 423 is connected to the connection unit 421, and is used to receive the read-write descriptor transmitted from the connection unit 421, and analyze the read-write descriptor to obtain the reading and storage information of the data to be transmitted, for example, The type and length of the data to be transmitted, the address information of the data read from the first peripheral device 409 and the address information of the data stored in the second peripheral device 411 and so on.
第一控制单元427连接于解析单元423,用于从解析单元423接收读取信息,并根据解析出来的该数据的读取信息控制从第一外围设备409中读取的需要传输的数据的传输。第二控制单元429连接于解析单元423,用于从解析单元423接收存储信息,以根据解析出来的该数据的存储信息控制将需要传输的数据存储到第二外围设备311中。The first control unit 427 is connected to the analysis unit 423, and is used to receive the read information from the analysis unit 423, and control the transmission of the data to be transmitted read from the first peripheral device 409 according to the read information of the data analyzed . The second control unit 429 is connected to the parsing unit 423 for receiving storage information from the parsing unit 423 , so as to control storing the data to be transmitted into the second
暂存单元431连接于第一控制单元427和第二控制单元429之间,当此数据只是用于外围设备间的传输时,第一控制单元427将需要传输的数据暂存到暂存单元431中,第二控制单元429将暂存在暂存单元331中的数据传输到第二外围设备411中。如果数据不仅仅是用于外围设备间的传输,则在读周期,第一控制单元427将数据传输到解析单元423,解析单元423将数据传输到连接单元421,连接单元421将数据传送给北桥403,数据最终由北桥403传送给存储器405,比如,需要传输的数据为图像的数据,需要进行图像处理,此时,数据就会由第一外围设备409经第一控制单元427、解析单元423、连接单元421和北桥403,最后暂存在存储器405中;而在写周期,暂存在存储器405中的数据会经过北桥403、连接单421、解析单元423以及第二控制单元429传送到第二外围设备411中。The temporary storage unit 431 is connected between the first control unit 427 and the second control unit 429. When the data is only used for transmission between peripheral devices, the first control unit 427 temporarily stores the data to be transmitted in the temporary storage unit 431 , the second control unit 429 transmits the data temporarily stored in the
采用软件改写描述符的方法,可以节省一个解析单元,并且连接单元421可直接将描述符传输到唯一的一个解析单元423中,省略了判断应传输给哪个解析单元的过程,即节省了芯片面积又提高了传输速度。Using software to rewrite the descriptor can save one analysis unit, and the connection unit 421 can directly transmit the descriptor to the only analysis unit 423, omitting the process of judging which analysis unit should be transmitted, that is, saving the chip area Also increased the transmission speed.
而在另一实施例中,接收单元408、第一控制单元427、暂存单元431以及第二控制单元429是集成在另一独立的芯片中,而不是南桥407上。在一实施例中,是将接收单元408集成在南桥407上,第一控制单元427、暂存单元431以及第二控制单元429是集成在另一独立的芯片中。In another embodiment, the receiving unit 408 , the first control unit 427 , the temporary storage unit 431 and the second control unit 429 are integrated in another independent chip instead of the south bridge 407 . In one embodiment, the receiving unit 408 is integrated on the south bridge 407, and the first control unit 427, the temporary storage unit 431 and the second control unit 429 are integrated in another independent chip.
为了能与传统的DMA数据传输方式作对比,再次以将数据由I/O设备传输到硬盘为例,图5是采用改进后的外围设备间的数据传输方法将I/O设备中的数据传输到硬盘中时的流程图,采用的计算机系统架构如图4所述。In order to compare with the traditional DMA data transmission method, take the data transmission from the I/O device to the hard disk as an example again. Figure 5 uses the improved data transmission method between peripheral devices to transfer the data in the I/O device The flow chart when entering the hard disk, the computer system architecture adopted is as shown in Figure 4.
在步骤501,中央处理器401将此读写操作的读写描述符写入到存储器405中,该读写描述符合并了原来的读取描述符和存储描述符,包含了数据传输所需要的必要信息。在步骤503,存储器405中存储的读写描述符将被通过北桥403传输到接收单元408中的连接单元421,连接单元421会将该读写描述符传输给解析单元423。然后,接收单元408中的解析单元423对此描述符进行解析(步骤505)以得到该需要传输的数据的读取和存储信息,例如,需要传输的数据的类型、长度、从第一外围设备409中的读取的数据的地址信息以及在第二外围设备411中存储的数据的地址信息等等。在步骤507,解析单元123根据解析出来的描述符的信息,判断此数据传输的类型,当此数据并不是用于外围设备间的传输时,步骤进入到508,执行传统的DMA操作。当此数据为外围设备间传输时,如果此周期为读操作,解析单元423将读取信息传输到第一控制单元427,流程进入到步骤509;如果此周期为写操作,解析单元423将读取信息传输到第二控制单元429,流程进入到步骤511。在步骤509,第一外围设备409,即此实施例中的I/O设备中的数据被第一控制单元427传送到了暂存单元431中。在步骤511,第一控制单元427判断是否已经完成数据传输工作。如果还未完成,返回到步骤509;如果数据传输已经完成,进入到步骤513。在步骤513,第二控制单元429将暂存单元431中的数据传输到第二外围设备,即此实施例的硬盘中。在步骤515,第二控制单元429判断是否已经完成数据传输工作。如果还未完成,返回到步骤515;如果数据传输已经完成,该工作流程结束,I/O设备中的数据被传输到了硬盘中。由此流程图可以看出,由于数据暂存在了暂存单元431中,数据传输的路径被缩短,减小了由于传输路径过长而带来的时延,这将大大提高数据传输的速率和性能。In
上述说明并非意图为穷举的或将本发明限制在所发明的精确形式。有鉴于上述的教示,可有明显的变更与变化。在这点上,讨论过的实施例是选择并描述以提供本发明的原理以及其实际应用的最佳解释,借此使本领域普通技术人员得利用于各种实施例中的本发明以及以适用于特定希望的用途的各种变更。所有此种变更与变化是在本发明的范围内,其是以所附的权利要求书根据其应法律上与公平上应拥有的宽度加以解读为准。The above description is not intended to be exhaustive or to limit the invention to the precise form invented. Obvious modifications and variations are possible in light of the above teachings. In this regard, the embodiments discussed were chosen and described in order to provide the best explanation of the principles of the invention and its practical application, thereby enabling others of ordinary skill in the art to utilize the invention in various embodiments and to provide the best explanation for its practical application. Various modifications are suited to the particular intended use. All such modifications and variations are within the scope of the invention, which is to be determined by the appended claims to be read to the breadth they are legally and equitably entitled to.
以上所述仅为本发明较佳实施例,然其并非用以限定本发明的范围,任何本领域技术人员,在不脱离本发明的精神和范围内,可在此基础上做进一步的改进和变化,因此本发明的保护范围当以本申请的权利要求书所界定的范围为准。The above description is only a preferred embodiment of the present invention, but it is not intended to limit the scope of the present invention. Any person skilled in the art can make further improvements and improvements on this basis without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the scope defined in the claims of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100056980A CN101261611A (en) | 2008-02-15 | 2008-02-15 | Data transmission device and method between peripheral equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100056980A CN101261611A (en) | 2008-02-15 | 2008-02-15 | Data transmission device and method between peripheral equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101261611A true CN101261611A (en) | 2008-09-10 |
Family
ID=39962075
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008100056980A Pending CN101261611A (en) | 2008-02-15 | 2008-02-15 | Data transmission device and method between peripheral equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101261611A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981986A (en) * | 2012-11-02 | 2013-03-20 | 上海移远通信技术有限公司 | System and method of data interaction |
CN103119573A (en) * | 2010-09-21 | 2013-05-22 | 三菱电机株式会社 | DMA controller and data readout device |
CN104598406A (en) * | 2015-02-03 | 2015-05-06 | 杭州士兰控股有限公司 | Expansion function unit and computing equipment expansion system and expansion method |
CN104598405A (en) * | 2015-02-03 | 2015-05-06 | 杭州士兰控股有限公司 | Expansion chip and expandable chip system and control method |
WO2018137529A1 (en) * | 2017-01-26 | 2018-08-02 | 华为技术有限公司 | Data transmission method, device, apparatus, and system |
CN104598404B (en) * | 2015-02-03 | 2018-09-04 | 杭州士兰控股有限公司 | Computing device extended method and device and expansible computing system |
-
2008
- 2008-02-15 CN CNA2008100056980A patent/CN101261611A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103119573A (en) * | 2010-09-21 | 2013-05-22 | 三菱电机株式会社 | DMA controller and data readout device |
CN102981986A (en) * | 2012-11-02 | 2013-03-20 | 上海移远通信技术有限公司 | System and method of data interaction |
CN104598406A (en) * | 2015-02-03 | 2015-05-06 | 杭州士兰控股有限公司 | Expansion function unit and computing equipment expansion system and expansion method |
CN104598405A (en) * | 2015-02-03 | 2015-05-06 | 杭州士兰控股有限公司 | Expansion chip and expandable chip system and control method |
CN104598406B (en) * | 2015-02-03 | 2018-02-09 | 杭州士兰控股有限公司 | Expanded function unit and computing device extension system and extended method |
CN104598405B (en) * | 2015-02-03 | 2018-05-11 | 杭州士兰控股有限公司 | Extended chip and expansible chip system and control method |
CN104598404B (en) * | 2015-02-03 | 2018-09-04 | 杭州士兰控股有限公司 | Computing device extended method and device and expansible computing system |
WO2018137529A1 (en) * | 2017-01-26 | 2018-08-02 | 华为技术有限公司 | Data transmission method, device, apparatus, and system |
US10810135B2 (en) | 2017-01-26 | 2020-10-20 | Huawei Technologies Co., Ltd. | Data transmission method, apparatus, device, and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7657692B2 (en) | High-level bridge from PCIE to extended USB | |
CN104007935B (en) | Memory devices | |
KR101105489B1 (en) | Command-based control of nand flash memory | |
CN108268414B (en) | SD card driver and its control method based on SPI mode | |
JP6633119B2 (en) | Autonomous memory method and system | |
US8806071B2 (en) | Continuous read burst support at high clock rates | |
CN101963947B (en) | Universal serial bus transmission translator and mass transmission method | |
CN101261611A (en) | Data transmission device and method between peripheral equipment | |
US10133497B1 (en) | SPI command censoring method and apparatus | |
WO2021169474A1 (en) | Method for converting avalon bus into axi4 bus | |
US20070168603A1 (en) | Information recording apparatus and control method thereof | |
TW201732635A (en) | Data transfer method and server using the same | |
JP4373255B2 (en) | Direct memory access control apparatus and method | |
US10853255B2 (en) | Apparatus and method of optimizing memory transactions to persistent memory using an architectural data mover | |
CN112825024A (en) | Command fusion and split method and NVMe controller | |
CN111949585A (en) | Data conversion processing method and device | |
WO2011091690A1 (en) | Data processing method and apparatus | |
TWI570557B (en) | Methods for moving data internally and apparatuses using the same | |
US20070079015A1 (en) | Methods and arrangements to interface a data storage device | |
JP4097883B2 (en) | Data transfer apparatus and method | |
CN101876952B (en) | System and method for software and hardware interaction between host-side transport layer and application layer | |
JP2008225694A (en) | Semiconductor integrated circuit and error analysis method | |
JP2012063875A (en) | Data storage device, command control device, electronic apparatus | |
US20060277326A1 (en) | Data transfer system and method | |
CN107870885A (en) | Communication system, device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20080910 |