[go: up one dir, main page]

CN101833523B - Data access method - Google Patents

Data access method Download PDF

Info

Publication number
CN101833523B
CN101833523B CN200910127102.9A CN200910127102A CN101833523B CN 101833523 B CN101833523 B CN 101833523B CN 200910127102 A CN200910127102 A CN 200910127102A CN 101833523 B CN101833523 B CN 101833523B
Authority
CN
China
Prior art keywords
side controller
main side
data
controller
main
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.)
Expired - Fee Related
Application number
CN200910127102.9A
Other languages
Chinese (zh)
Other versions
CN101833523A (en
Inventor
郭建成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nvidia Corp
Original Assignee
Nvidia Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nvidia Corp filed Critical Nvidia Corp
Publication of CN101833523A publication Critical patent/CN101833523A/en
Application granted granted Critical
Publication of CN101833523B publication Critical patent/CN101833523B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Information Transfer Systems (AREA)

Abstract

本发明公开了一种数据存取方法,藉由主端控制器间的数据存取采用可直接传输或直接读取的方式,其可以有效解决当计算机接口设备间欲互相数据存取时,其数据必须先暂存在存储器而产生浪费时间的问题,而有效提高数据存取时的效率。

The invention discloses a data access method, which can effectively solve the problem of mutual data access between computer interface devices by adopting the method of direct transmission or direct reading for data access between master-end controllers. The data must be temporarily stored in the memory, which causes a waste of time, and effectively improves the efficiency of data access.

Description

数据存取方法data access method

技术领域 technical field

本发明涉及一种数据存取方法,特别是一种主端控制器间直接的数据存取方法。The invention relates to a data access method, in particular to a direct data access method between master-end controllers.

背景技术 Background technique

截至目前为止,计算机接口设备间的数据存取大都依靠着中央处理单元(CPU)或微处理机(MCU)通过主端桥(HostBridge)与主端控制器(Hostcontroller)沟通来完成。不过,中央处理单元与主端控制器间沟通的方式,除会使中央处理单元本身负荷较高外,亦会使计算机接口设备间的数据存取有着效率低落的情况发生。So far, most of the data access between computer interface devices depends on the central processing unit (CPU) or microprocessor (MCU) to communicate with the host controller (Hostcontroller) through the host bridge (HostBridge). However, the way of communication between the central processing unit and the host controller not only increases the load on the central processing unit itself, but also reduces the efficiency of data access between computer interface devices.

请参考图1所示的传统中央处理单元、主端桥与接口设备间的电路示意图。一般来说,主端控制器110、120具有直接存储器存取(directlymemoryaccess,DMA)的功能,也就是当欲将接口设备A的数据搬移到接口设备B时,主端控制器110可藉由先将接口设备A的数据通过存储器控制器125搬移至区域性系统存储器(localsystemmemory)130,再由主端控制器120将暂存在存储器130中的接口设备A数据搬移到接口设备B。Please refer to FIG. 1 for a schematic diagram of a circuit between a traditional central processing unit, a main end bridge and an interface device. Generally speaking, the host controllers 110 and 120 have a direct memory access (DMA) function, that is, when the data of the interface device A is to be moved to the interface device B, the host controller 110 can first The data of the interface device A is moved to the local system memory (local system memory) 130 through the memory controller 125 , and then the data of the interface device A temporarily stored in the memory 130 is moved to the interface device B by the master controller 120 .

在此DMA模式下,中央处理单元140仅需初始化主端控制器110、120以及准备一些工作指令给主端控制器110、120,主端控制器110、120即可开始进行将接口设备A的数据搬移到接口设备B的工作。而当主端控制器110、120完成其被交付的工作后,主端控制器110、120会告知中央处理单元140,以等待下一份工作。因此,中央处理单元140可在DMA模式下,通过主端控制器110、120直接存取区域性系统存储器130,以减少其使用上的负荷。In this DMA mode, the central processing unit 140 only needs to initialize the master controllers 110, 120 and prepare some work instructions for the master controllers 110, 120, and the master controllers 110, 120 can start to transfer the interface device A The data is moved to the work of the interface device B. And when the main-end controllers 110, 120 complete the assigned work, the main-end controllers 110, 120 will notify the central processing unit 140 to wait for the next job. Therefore, the central processing unit 140 can directly access the local system memory 130 through the master controllers 110 and 120 in the DMA mode to reduce the load on its use.

不过,此DMA模式的数据存取流程确有其缺点,以图1为例,在必须将接口设备A的数据搬移到接口设备B的情况下,中央处理单元140需通过主端桥150安排主端控制器110先将接口设备A的数据藉由存储器控制器125搬移至存储器130内的空间后,中央处理单元140再通过主端桥150安排主端控制器120将暂存于存储器130中的接口设备A数据藉由存储器控制器125搬移至接口设备B。However, the data access process of this DMA mode does have its shortcomings. Taking FIG. 1 as an example, when the data of the interface device A must be moved to the interface device B, the central processing unit 140 needs to arrange the master end bridge 150 After the end controller 110 first moves the data of the interface device A to the space in the memory 130 through the memory controller 125, the central processing unit 140 then arranges the master end controller 120 to transfer the data temporarily stored in the memory 130 through the master end bridge 150 The data of the interface device A is transferred to the interface device B through the memory controller 125 .

而上述这样的数据处理流程会浪费许多时间在将数据搬移至存储器以及将数据由存储器搬移出,连带地,若当存储器处于一个非常繁忙的状态下,此包含由中央处理单元、主端桥、主端控制器、存储器以及由接口设备所组成的系统,其在数据存取的运作上将会变的非常慢,即其数据存取的效率低落。The above-mentioned data processing flow will waste a lot of time in moving data to the memory and moving data out of the memory. Jointly, if the memory is in a very busy state, this includes the central processing unit, the main end bridge, The system composed of the host controller, the memory and the interface devices will become very slow in data access operation, that is, the data access efficiency will be low.

有鉴于此,本发明提出一种数据存取方法,可以有效解决当计算机接口设备间欲互相数据存取时,其数据必须先暂存在存储器而产生浪费时间的问题,以有效提高数据存取时的效率。In view of this, the present invention proposes a data access method, which can effectively solve the problem that when computer interface devices want to access data from each other, the data must first be temporarily stored in the memory and cause a waste of time, so as to effectively improve the data access time. s efficiency.

发明内容 Contents of the invention

本发明的主要目的在于解决当计算机接口设备间欲互相数据存取时,其数据必须先暂存在存储器的困扰。为了达到本发明的目的,本发明提出一种数据存取方法,其特征在于:将第一主端控制器中所暂存的数据直接传输至第二主端控制器中。The main purpose of the present invention is to solve the problem that the data must be temporarily stored in the memory when the computer interface devices want to access each other's data. In order to achieve the purpose of the present invention, the present invention proposes a data access method, which is characterized in that: the data temporarily stored in the first master-end controller is directly transmitted to the second master-end controller.

在本发明较佳实施例中,此方法包括初始状态、程序化状态以及传输状态等操作模式。In a preferred embodiment of the present invention, the method includes operation modes such as initial state, programming state and transmission state.

初始状态包括中央处理单元程序化第一主端控制器中的一运算寄存器,以确保第一主端控制器正常运作。The initial state includes that the central processing unit programs an arithmetic register in the first master controller to ensure normal operation of the first master controller.

程序化状态可包括当数据需由第一主端控制器传输至第二主端控制器时,中央处理单元可程序化运算寄存器,以设定数据的长度、数据的种类、数据的起始地址、第一主端控制器的状态等。The programming state can include that when the data needs to be transmitted from the first master controller to the second master controller, the central processing unit can program the operation register to set the length of the data, the type of the data, and the starting address of the data , the status of the first master controller, etc.

传输状态则还包括单一主写入情况、单一主读取情况、两主写入情况以及两主读取情况。The transfer status also includes a single-master write situation, a single-master read situation, a two-master write situation, and a two-master read situation.

单一主写入状况主要包括当数据需由第一主端控制器传输至第二主端控制器时,第一主端控制器发出一主周期信号以读取及确认第二主端控制器的传输状态,以决定是否主动传输数据。The single master writing condition mainly includes that when data needs to be transmitted from the first master controller to the second master controller, the first master controller sends a master cycle signal to read and confirm the second master controller’s Transfer status to determine whether to actively transfer data.

单一主读取状况主要包括当数据需由第一主端控制器传输至第二主端控制器时,启动第二主端控制器的直接存储器存取功能,且第二主端控制器发出主周期信号去读取第一主端控制器的传输状态,以决定使否主动存取第一主端控制器所暂存的数据。The single master read condition mainly includes when the data needs to be transmitted from the first master controller to the second master controller, the direct memory access function of the second master controller is activated, and the second master controller sends a master The periodic signal is used to read the transmission status of the first master-end controller to determine whether to actively access the data temporarily stored by the first master-end controller.

两主写入状况则当数据需由第一主端控制器传输至第二主端控制器时,同时启动第一主端控制器以及第二主端控制器的一直接存储器存取的功能,由第二主端控制器发出一主周期信号,以通知第一主端控制器第二主端控制器的传输状态,以决定是否第一主端控制器可开始传输数据。In the two-master writing condition, when the data needs to be transmitted from the first master controller to the second master controller, a direct memory access function of the first master controller and the second master controller is activated at the same time, A master cycle signal is sent by the second master controller to notify the first master controller of the transmission status of the second master controller, so as to determine whether the first master controller can start to transmit data.

两主读取状况则包括当数据需由第一主端控制器传输至第二主端控制器时,同时启动第一主端控制器以及第二主端控制器的一直接存储器存取的功能,由第一主端控制器发出一主周期信号以通知第二主端控制器第一主端控制器的传输状态,以决定是否第二主端控制器可开始读取数据。The two-master read condition includes simultaneously enabling a DMA function of the first master controller and the second master controller when data needs to be transferred from the first master controller to the second master controller , the first master controller sends a master period signal to notify the second master controller of the transmission status of the first master controller, so as to determine whether the second master controller can start to read data.

为了便于进一步了解本发明的特征、目的及功能,下面结合附图对本发明进行详细说明。In order to further understand the characteristics, purpose and functions of the present invention, the present invention will be described in detail below in conjunction with the accompanying drawings.

附图说明 Description of drawings

图1是习知中央处理单元、主端桥与接口设备间的电路示意图;Fig. 1 is a schematic circuit diagram between a conventional central processing unit, a main end bridge and an interface device;

图2A是本发明较佳实施例的数据存取方法的示意图;FIG. 2A is a schematic diagram of a data access method in a preferred embodiment of the present invention;

图2B是本发明较佳实施例的数据存取方法于初始状态操作模式的示意图;2B is a schematic diagram of a data access method in an initial state operating mode in a preferred embodiment of the present invention;

图2C是本发明较佳实施例的数据存取方法于程序化状态操作模式的示意图;FIG. 2C is a schematic diagram of a data access method in a programmed state operating mode according to a preferred embodiment of the present invention;

图2D是本发明较佳实施例的数据存取方法于单一写入传输状态的操作模式的示意图;2D is a schematic diagram of the operation mode of the data access method in a single write transfer state according to a preferred embodiment of the present invention;

图2E是本发明较佳实施例的数据存取方法于单一主读取传输状态的操作模式的示意图。FIG. 2E is a schematic diagram of the operation mode of the data access method in a single master read transfer state according to a preferred embodiment of the present invention.

附图标记说明:110、120主端控制器;125存储器控制器;130区域性系统存储器;140中央处理单元;150主端桥;213、223运算寄存器;215、225传输状态;217、227传输数据缓冲器。Description of reference numerals: 110, 120 master controller; 125 memory controller; 130 regional system memory; 140 central processing unit; 150 master bridge; 213, 223 arithmetic register; 215, 225 transmission state; data buffer.

具体实施方式 detailed description

请参考图2所示的本发明较佳实施例的数据存取方法的示意图。在图2A中,本发明主要改变现行主机板上主端控制器110与主端控制器120间的数据存取方法,且改为采用主端控制器110与主端控制器120间的数据能够直接存取。换句话说,也就是令主端控制器110与主端控制器120间各自所耦接的外部总线230、240相互之间的数据可以直接存取。Please refer to FIG. 2 which is a schematic diagram of a data access method according to a preferred embodiment of the present invention. In FIG. 2A , the present invention mainly changes the data access method between the main-end controller 110 and the main-end controller 120 on the current motherboard, and instead uses the data between the main-end controller 110 and the main-end controller 120 to be able to direct access. In other words, data between the external buses 230 and 240 respectively coupled between the host controller 110 and the host controller 120 can be directly accessed.

本发明于主端控制器110与主端控制器120间的数据存取方法可分为几个操作模式,如初始状态、程序化状态以及传输状态等操作模式。The data access method between the host controller 110 and the host controller 120 of the present invention can be divided into several operation modes, such as initial state, programming state, and transmission state.

请参考图2B所示的本发明较佳实施例的数据存取方法于初始状态操作模式的示意图。在初始状态期间,中央处理单元140程序化主端控制器110的运算寄存器213,以确保主端控制器110能够正常运作。举例来说,中央处理单元140程序化运算寄存器213,以使运算寄存器213启动主端缓存器的部分功能,如开始、暂缓、重新开始、停止等。假设中央处理单元140欲程序化运算寄存器213启动直接存储器存取功能(DMA),中央处理单元140则发出直接存储器存取功能的主周期信号至运算寄存器213。Please refer to FIG. 2B , which is a schematic diagram of the data access method in the initial state operation mode of the preferred embodiment of the present invention. During the initial state, the central processing unit 140 programs the operation register 213 of the host controller 110 to ensure that the host controller 110 can operate normally. For example, the central processing unit 140 programs the operation register 213 so that the operation register 213 activates some functions of the master-side register, such as start, suspend, restart, stop and so on. Assuming that the central processing unit 140 intends to program the operation register 213 to enable the direct memory access function (DMA), the central processing unit 140 sends a main cycle signal of the DMA function to the operation register 213 .

而当有数据需由主端控制器110传输至该主端控制器120时,即进入程序化状态的操作模式。请参考图2C所示的本发明较佳实施例的数据存取方法于程序化状态操作模式的示意图。中央处理单元140程序化主端控制器110的运算寄存器213,以设定欲传输数据的长度、种类、起始地址、主端控制器的状态等,也就是建立起主端控制器110的传输状态215。即,主端控制器110可建立起对应主端控制器120的传输状态215。And when there is data to be transmitted from the host controller 110 to the host controller 120, the operation mode of the programming state is entered. Please refer to FIG. 2C , which is a schematic diagram of the data access method in the programmed state operation mode of the preferred embodiment of the present invention. The central processing unit 140 programs the arithmetic register 213 of the master-end controller 110 to set the length, type, start address, state of the master-end controller, etc. of the data to be transmitted, that is, to establish the transmission of the master-end controller 110 Status 215. That is, the host controller 110 can establish the transfer state 215 corresponding to the host controller 120 .

在本发明较佳实施例中,数据存取方法的传输状况包括单一主写入情况、单一主读取情况、两主写入情况以及两主读取情况。请先参考图2D所示的本发明较佳实施例的数据存取方法于单一写入传输状态的操作模式的示意图。当数据需由主端控制器110传输至主端控制器120时,主端控制器110发出主周期信号,以读取及确认主端控制器120的传输状态225,以决定是否主动传输数据。当然,主端控制器120的传输状态225包括主端控制器120的传输数据缓冲器227的容量、传输数据缓冲器227容量状态、传输数据缓冲器227的起始地址等。In a preferred embodiment of the present invention, the transmission status of the data access method includes a single main write situation, a single main read situation, a double main write situation and a double main read situation. Please refer to FIG. 2D , which is a schematic diagram of the operation mode of the data access method in the single write transfer state of the preferred embodiment of the present invention. When data needs to be transmitted from the master controller 110 to the master controller 120 , the master controller 110 sends a master cycle signal to read and confirm the transmission status 225 of the master controller 120 to determine whether to actively transmit data. Of course, the transmission status 225 of the master controller 120 includes the capacity of the transmission data buffer 227 of the master controller 120 , the capacity status of the transmission data buffer 227 , the start address of the transmission data buffer 227 and the like.

若主端控制器120的传输状态属于已准备可传输的状态,则主端控制器110将外部总线230的数据由本身传输数据缓冲器217准备传输至主端控制器120的传输数据缓冲器227。且当主端控制器120接收数据后,主端控制器120将数据由传输数据缓冲器227搬移至主端控制器120所对应的外部总线240,以完成数据传输。If the transmission state of the master controller 120 belongs to the ready-to-transmit state, the master controller 110 prepares to transmit the data of the external bus 230 from its own transfer data buffer 217 to the transfer data buffer 227 of the master controller 120 . And when the host controller 120 receives the data, the host controller 120 moves the data from the transmission data buffer 227 to the external bus 240 corresponding to the host controller 120 to complete the data transmission.

此外,数据传输完成后,主端控制器110以及主端控制器120自动更新其内部的传输状态,且根据所需,主端控制器110还可根据其运算寄存器213内容的状态去更新主端控制器120的传输状态。In addition, after the data transmission is completed, the master-end controller 110 and the master-end controller 120 automatically update their internal transmission status, and as required, the master-end controller 110 can also update the master-end The transmission status of the controller 120.

若碰到主端控制器120的传输状态225属于传输缓冲器227容量不足的状态,主端控制器110可选择将数据以切割方式分次传输至主端控制器120的传输数据缓冲器227。且主端控制器110可在外部总线230准备好下份欲传输数据时,持续传输数据至主端控制器120。If the transmission status 225 of the master controller 120 is a state where the capacity of the transmission buffer 227 is insufficient, the master controller 110 may choose to transmit the data to the transmission data buffer 227 of the master controller 120 in a divided manner. And the host controller 110 can continuously transmit data to the host controller 120 when the external bus 230 is ready for the next data transmission.

反之,若主端控制器120的传输状态225属于尚未准备可传输的状态,则主端控制器110稍后再次读取及确认该主端控制器120的传输状态225。On the contrary, if the transmission status 225 of the host controller 120 is not ready for transmission, the host controller 110 reads and confirms the transmission status 225 of the host controller 120 again later.

请继续参考图2E所示的本发明较佳实施例的数据存取方法于单一主读取传输状态的操作模式的示意图。数据传输的方式,除了在单一主写入传输状态以主端控制器110主动将数据传输至主端控制器120外,还有以主端控制器120主动读取主端控制器110数据的单一主读取传输状态的操作模式。Please continue to refer to FIG. 2E , which is a schematic diagram of the operation mode of the data access method in the single master read transfer state of the preferred embodiment of the present invention. The way of data transmission, in addition to using the master controller 110 to actively transmit data to the master controller 120 in the single master write transfer state, there is also a single master controller 120 that actively reads data from the master controller 110. The mode of operation in which the master reads the status of the transfer.

当数据仍需由主端控制器110传输至主端控制器120时,中央处理单元140启动主端控制器120直接存储器存取功能,且主端控制器120发出主周期信号去读取主端控制器110的传输状态215,以决定使否主动存取主端控制器110所暂存的数据。When the data still needs to be transmitted from the master controller 110 to the master controller 120, the central processing unit 140 starts the direct memory access function of the master controller 120, and the master controller 120 sends a master cycle signal to read the master The transmission status 215 of the controller 110 is used to determine whether to actively access the data temporarily stored by the master controller 110 .

若主端控制器110的传输状态215属于已准备可传输且主端控制器120的传输数据缓冲器227的容量为足够的状态,则主端控制器120读取暂存于主端控制器110的数据。同样地,若主端控制器120的传输数据缓冲器227为属于容量不足的状态,主端控制器120仍可选择以切割方式分次由主端控制器110读取数据。并且,主端控制器120可在传输数据缓冲器227具有空间时,持续由主端控制器110读取数据。If the transmission status 215 of the master-end controller 110 is ready to transmit and the capacity of the transmission data buffer 227 of the master-end controller 120 is a sufficient state, then the master-end controller 120 reads the data temporarily stored in the master-end controller 110 The data. Similarly, if the transmission data buffer 227 of the master-end controller 120 is in a state of insufficient capacity, the master-end controller 120 can still choose to read data from the master-end controller 110 in batches in a split manner. Moreover, the host controller 120 can continue to read data from the host controller 110 when the transmit data buffer 227 has space.

反之,若主端控制器110的传输状态是属于尚未准备可传输的状态,则主端控制器120稍后再次确认主端控制器110的传输状态215。On the contrary, if the transmission state of the main-end controller 110 is not yet ready for transmission, the main-end controller 120 confirms the transmission state 215 of the main-end controller 110 again later.

而当主端控制器120读取主端控制器110暂存数据且读取完成后,主端控制器110以及主端控制器120皆自动更新其内部的传输状态215、225,且根据所需,主端控制器120亦可根据其运算寄存器223内容的状态去更新主端控制器110的传输状态215。And when the master-end controller 120 reads the data temporarily stored in the master-end controller 110 and the reading is completed, both the master-end controller 110 and the master-end controller 120 automatically update their internal transmission states 215, 225, and as required, The host controller 120 can also update the transmission status 215 of the host controller 110 according to the state of the contents of the operation register 223 .

而两主写入传输状态的操作模式与前述传输状态的操作模式其最大不同点在于,当数据需由主端控制器110传输至主端控制器120时,同时启动主端控制器110以及主端控制器120的直接存储器存取的功能,且由主端控制器120发出主周期信号以通知主端控制器110主端控制器120的传输状态225,以决定主端控制器110是否开始主动传输数据至主端控制器120。The biggest difference between the operation mode of the two masters writing the transfer state and the operation mode of the aforementioned transfer state is that when the data needs to be transmitted from the master controller 110 to the master controller 120, the master controller 110 and the master controller are started at the same time. The direct memory access function of the end controller 120, and the master cycle signal is sent by the master controller 120 to notify the master controller 110 of the transfer status 225 of the master controller 120, so as to determine whether the master controller 110 starts active transmit data to the host controller 120 .

两主读取传输状态的操作模式,则恰巧与两主写入传输状态的操作模式相反,当数据需由主端控制器110传输至主端控制器120时,在同时启动主端控制器110以及主端控制器120的直接存储器存取功能情况下,改由主端控制器110发出主周期信号以通知主端控制器120主端控制器110的传输状态,以决定主端控制器120是否开始主动读取主端控制器110的数据。The operation mode of the two masters reading the transfer state is just opposite to the operation mode of the two masters writing the transfer state. When the data needs to be transmitted from the master controller 110 to the master controller 120, the master controller 110 is started at the same time. And in the case of the direct memory access function of the master controller 120, the master cycle signal is sent by the master controller 110 to notify the master controller 120 of the transmission status of the master controller 110, so as to determine whether the master controller 120 Start to actively read the data of the master controller 110 .

根据本发明数据存取方法的概念,即主端控制器110、220间的数据往来是采用直接传输的,因此,延伸前述传输状态的操作模式,还提出有混合直接读写传输状态的操作模式,也就是当数据需主端控制器110与主端控制器120间往返时,同时启动主端控制器110以及主端控制器120的直接存储器存取功能,且主动将数据由数据的来源地传输至数据的目的地,或主动由数据的目的地至数据的来源地读取数据。According to the concept of the data access method of the present invention, that is, the data exchange between the master-side controllers 110 and 220 is directly transmitted. Therefore, extending the operation mode of the aforementioned transmission state, an operation mode with mixed direct read and write transmission states is also proposed. That is, when the data needs to go back and forth between the master controller 110 and the master controller 120, the direct memory access functions of the master controller 110 and the master controller 120 are activated at the same time, and the data is actively transferred from the source of the data Transfer to the destination of the data, or actively read the data from the destination of the data to the source of the data.

综合上述,本发明提出一种数据存取方法,藉由主端控制器间的数据存取采用可直接传输或直接读取的方式,其可以有效解决当计算机接口设备间欲互相数据存取时,其数据必须先暂存在存储器而产生浪费时间的问题,而有效提高数据存取时的效率。To sum up the above, the present invention proposes a data access method, which can effectively solve the problem of mutual data access between computer interface devices by adopting a direct transmission or direct reading method for data access between master-end controllers. , the data must first be temporarily stored in the memory, resulting in the problem of wasting time, and effectively improving the efficiency of data access.

以上所述仅为本发明的较佳实施例,不能以此限制本发明的范围。因此,凡依本发明权利要求所做的均等变化及修饰,仍将不失本发明的要义所在,亦不脱离本发明的精神和范围的,都应视为本发明的进一步实施。The above descriptions are only preferred embodiments of the present invention, and should not limit the scope of the present invention. Therefore, all equivalent changes and modifications made according to the claims of the present invention will still not lose the gist of the present invention, nor depart from the spirit and scope of the present invention, and all should be regarded as further implementations of the present invention.

Claims (9)

1. a data access method, is characterized in that:
By in the first main side controller the data of keeping in directly transfer in the second main side controller;
Wherein also comprise the operator scheme of an original state, a unprogrammed state and a transmission state; And
Wherein at this unprogrammed state, when these data need transfer to this second main side controller by this first main side controller, the arithmetic register of this first main side controller of CPU (central processing unit) programmable, to set length, the kind of these data, the start address of these data, the state of this first main side controller of these data;
Wherein this first main side controller goes to set to should the transmission state of this first main side controller of the second main side controller according to the setting of this arithmetic register;
Wherein this transmission state also comprises single main write situation, single main reading situation, two main write situations and two main reading situations.
2. data access method as claimed in claim 1, wherein this original state comprises:
An arithmetic register in one CPU (central processing unit) sequencing first main side controller, to guarantee this first main side controller normal operation.
3. data access method as claimed in claim 2, wherein this CPU (central processing unit) can make this arithmetic register come into operation and postpone, restarts, stops the partial function of this first main side controller.
4. data access method as claimed in claim 1, wherein when this CPU (central processing unit) is for sequencing one direct memory access (DMA) function, this CPU (central processing unit) then sends a dominant period signal of this direct memory access (DMA) function to this arithmetic register.
5. data access method as claimed in claim 1, wherein this single main write situation comprises:
When these data need transfer to this second main side controller by this first main side controller, this first main side controller sends dominant period signal, to read and to confirm the transmission state of this second main side controller, to determine whether these data of active transmission.
6. data access method as claimed in claim 1, wherein this single main reading situation comprises:
When these data need transfer to this second main side controller by this first main side controller, start the direct memory access (DMA) function of this second main side controller, and this second main side controller sends the transmission state that a dominant period signal removes to read this first main side controller, with determine to make no initiatively access this first main side controller this data of keeping in.
7. data access method as claimed in claim 1, wherein this two main write situation comprises:
When these data need transfer to this second main side controller by this first main side controller, start the function of the direct memory access (DMA) of this first main side controller and this second main side controller simultaneously, dominant period signal is sent by this second main side controller, to notify the transmission state of this this second main side controller of the first main side controller, to determine whether this first main side controller can start to transmit this data.
8. data access method as claimed in claim 1, wherein this two main reading situation comprises:
When these data need transfer to this second main side controller by this first main side controller, start the function of a direct memory access (DMA) of this first main side controller and this second main side controller simultaneously, a dominant period signal is sent to notify the transmission state of this this first main side controller of the second main side controller, to determine whether this second main side controller can start to read this data by this first main side controller.
9. data access method as claimed in claim 1, also comprise a mixing direct read/write situation, this mixing direct read/write situation is:
When these data need come and go between this first main side controller and this second main side controller, start the function of the direct memory access (DMA) of this first main side controller and this second main side controller simultaneously, and in initiatively these data being transmitted the destination of these data by the source place of these data and initiatively being read between these data by destination to the source place of these data of these data and select one.
CN200910127102.9A 2004-11-19 2004-11-19 Data access method Expired - Fee Related CN101833523B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410091600 CN1779666A (en) 2004-11-19 2004-11-19 data access method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN 200410091600 Division CN1779666A (en) 2004-11-19 2004-11-19 data access method

Publications (2)

Publication Number Publication Date
CN101833523A CN101833523A (en) 2010-09-15
CN101833523B true CN101833523B (en) 2016-01-20

Family

ID=36770000

Family Applications (2)

Application Number Title Priority Date Filing Date
CN200910127102.9A Expired - Fee Related CN101833523B (en) 2004-11-19 2004-11-19 Data access method
CN 200410091600 Pending CN1779666A (en) 2004-11-19 2004-11-19 data access method

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN 200410091600 Pending CN1779666A (en) 2004-11-19 2004-11-19 data access method

Country Status (1)

Country Link
CN (2) CN101833523B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598404B (en) * 2015-02-03 2018-09-04 杭州士兰控股有限公司 Computing device extended method and device and expansible computing system
CN104598405B (en) * 2015-02-03 2018-05-11 杭州士兰控股有限公司 Extended chip and expansible chip system and control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1150674A (en) * 1994-12-02 1997-05-28 索尼公司 Method of producing image data, image data processing apparatus, and recording medium
CN1218227A (en) * 1997-11-06 1999-06-02 株式会社日立制作所 Data processing systems and microcomputers
CN2352982Y (en) * 1998-06-22 1999-12-08 北京恒业世纪电气技术有限公司 Kernel anti-jamming circuit for direct digital control device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7114019B2 (en) * 2000-09-08 2006-09-26 Standard Microsystems Corporation System and method for data transmission

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1150674A (en) * 1994-12-02 1997-05-28 索尼公司 Method of producing image data, image data processing apparatus, and recording medium
CN1218227A (en) * 1997-11-06 1999-06-02 株式会社日立制作所 Data processing systems and microcomputers
CN2352982Y (en) * 1998-06-22 1999-12-08 北京恒业世纪电气技术有限公司 Kernel anti-jamming circuit for direct digital control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"0.18μm CMOS 工艺784Mb/s 的数据发送器设计";朱江等;《系统工程与电子技术》;20010331;第102-104页 *

Also Published As

Publication number Publication date
CN101833523A (en) 2010-09-15
CN1779666A (en) 2006-05-31

Similar Documents

Publication Publication Date Title
US20050138249A1 (en) Inter-process communication mechanism
US9542316B1 (en) System and method for adaptation of coherence models between agents
JP2005025726A (en) Power control in coherent multiprocessing system
US20090307408A1 (en) Peer-to-Peer Embedded System Communication Method and Apparatus
US7725621B2 (en) Semiconductor device and data transfer method
US11204632B2 (en) Electronic device and method for controlling the same
JPH0330045A (en) Logic circuit for microprocessor
EP3716084A1 (en) Apparatus and method for sharing a flash device among multiple masters of a computing platform
JP2010211351A (en) Semiconductor integrated circuit, power saving control method, power saving control program, and recording medium
JP2009181579A (en) Method, subsystem and system for calling functions
US20130311699A1 (en) Operations using direct memory access
CN101833523B (en) Data access method
US6760802B2 (en) Time-out counter for multiple transaction bus system bus bridge
US8756356B2 (en) Pipe arbitration using an arbitration circuit to select a control circuit among a plurality of control circuits and by updating state information with a data transfer of a predetermined size
JP5775398B2 (en) Semiconductor integrated circuit device
US20050198422A1 (en) Data communication mechanism
CN107463520B (en) Double-port RAM anti-collision method based on programmable logic
TWI238971B (en) Built-in Multi-Card-Reader for a direct memory-data transmitting system and the device using the same
US20060206644A1 (en) Method of hot switching data transfer rate on bus
JP2001056793A (en) Information processor
CN101261610A (en) Method and device for multi-master device to access slave device without conflict
CN114372020B (en) System on a Chip
JP4190969B2 (en) Bus arbitration system in bus system and AMBA
CN108153703A (en) A kind of peripheral access method and apparatus
US7272680B2 (en) Method of transferring data between computer peripherals

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160120