JP2006092077A - Bus system - Google Patents

Bus system Download PDF

Info

Publication number
JP2006092077A
JP2006092077A JP2004274487A JP2004274487A JP2006092077A JP 2006092077 A JP2006092077 A JP 2006092077A JP 2004274487 A JP2004274487 A JP 2004274487A JP 2004274487 A JP2004274487 A JP 2004274487A JP 2006092077 A JP2006092077 A JP 2006092077A
Authority
JP
Japan
Prior art keywords
memory
bus
data
write
writing
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.)
Withdrawn
Application number
JP2004274487A
Other languages
Japanese (ja)
Inventor
Hiroshi Sugihara
宏 杉原
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Mita 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 Kyocera Mita Corp filed Critical Kyocera Mita Corp
Priority to JP2004274487A priority Critical patent/JP2006092077A/en
Publication of JP2006092077A publication Critical patent/JP2006092077A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a bus system allowing a bus master to know completion of writing though using a memory controller not having a function notifying the bus master about the completion of the writing of data into a memory. <P>SOLUTION: This bus system 1 comprises: a plurality of buses 11a, 11b; bridges 12a, 12b connecting the buses 11a, 11b; the memory 13 storing the data; the memory controller 14 directly accessing the memory 13; the bus master 15 requiring the writing or reading of the data; and a writing completion notifying device 16. The writing completion notifying device 16 transmits the writing requirement from the bus master 15 to the memory controller 14, issues the reading requirement with a writing address designated by the writing requirement as a reading address, and imparts writing completion notification to the bus master at the time point when receiving reading completion notification from the memory controller 14. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、複数のバスをブリッジで接続してなるバスシステムに関し、特に、メモリへの書き込みの完了をバスマスタが確実に認識し得るバスシステムに関する。   The present invention relates to a bus system in which a plurality of buses are connected by a bridge, and more particularly to a bus system in which a bus master can reliably recognize completion of writing to a memory.

所定の処理を行う装置と処理を要求する装置とをバスで接続したバスシステムが、コンピュータをはじめ様々な機器で多用されている。処理を要求する装置はバスマスタと呼ばれ、処理を行う装置はバススレーブと呼ばれる。バスマスタには、例えばCPU(Central Processing Unit)やDMAC(Direct Memory Access Controller)等があり、バスマスタからメモリへの書き込みやメモリからの読み出しが要求された場合、CPUはバスが空いていれば直ちにバスの使用を許可し、空いていなければ調停を行ってバスの使用を許可する。使用が許可されると、バススレーブであるメモリコントローラが、メモリに直接アクセスしてデータの書き込みや読み出しを行う。   A bus system in which a device that performs predetermined processing and a device that requests processing is connected by a bus is widely used in various devices including computers. A device that requests processing is called a bus master, and a device that performs processing is called a bus slave. The bus master includes, for example, a CPU (Central Processing Unit) and a DMAC (Direct Memory Access Controller). When the bus master requests writing to the memory or reading from the memory, the CPU immediately takes a bus if the bus is free. If it is not available, arbitration is performed and the use of the bus is permitted. When the use is permitted, the memory controller, which is a bus slave, directly accesses the memory and writes and reads data.

一般に、メモリコントローラは、バスマスタから要求があったときは、その要求を受け付けたことをバスを介してバスマスタに通知するが、要求した処理が完了したことは必ずしも通知しない。すなわち、メモリからの読み出しの要求に対しては、メモリコントローラは、メモリからのデータの読み出しを完了した時点で、バスを介してバスマスタに読み出し完了を通知するものの、メモリへの書き込みの要求に対しては、メモリコントローラは、メモリにデータを書き込んでも、バスマスタに書き込み完了の通知をしない。このため、メモリへの書き込みを要求したバスマスタは、メモリへの書き込みがいつ完了したかを知ることはできない。   In general, when there is a request from the bus master, the memory controller notifies the bus master that the request has been accepted via the bus, but does not necessarily notify that the requested processing has been completed. In other words, in response to a read request from the memory, the memory controller notifies the bus master of the completion of reading via the bus when the reading of data from the memory is completed, but in response to a write request to the memory. Thus, even if the memory controller writes data to the memory, it does not notify the bus master of the writing completion. For this reason, the bus master that has requested writing to the memory cannot know when the writing to the memory has been completed.

近年では、バスの混雑の解消等を目的として、要求に優先順位をつけて、優先順位に基づいて調停をすることが行われており、バスマスタが要求を発してから、その要求に応じた処理が実行されるまでの時間が、変動し易くなっている。このため、メモリへのデータの書き込みとメモリからのデータの読み出しの順序が逆になって、正しいデータを読み出せないという事態が生じることがある。   In recent years, for the purpose of eliminating bus congestion, etc., priorities have been given to requests, and arbitration based on the priorities has been performed. After the bus master issues a request, processing according to that request The time until is executed is likely to fluctuate. For this reason, the order of writing data to the memory and reading data from the memory may be reversed, and a situation may occur in which correct data cannot be read.

例えば、バスマスタがメモリへのデータの書き込みを要求した後、メモリにデータを書き込んだことをCPUに知らせ、CPUがそのデータの読み出しを要求する場合、メモリへのデータの書き込みが完了する前にデータの読み出しが行われて、古いデータが読み出される可能性がある。なお、通常、同一のバスマスタからの同一アドレスに対する書き込みや読み出しの要求は要求順に処理が行われるため、バスマスタがデータの書き込みを要求した後、そのバスマスタがそのデータの読み出しを要求する場合は、正しいデータが読み出される。   For example, if the bus master requests the CPU to write data to the memory after requesting the data to be written to the memory, and the CPU requests to read the data, the data is written before the data writing to the memory is completed. May be read out and old data may be read out. Normally, write and read requests to the same address from the same bus master are processed in the order of request, so if the bus master requests the data read after the bus master requests the data write, it is correct. Data is read out.

上記課題を解決する従来技術として、CPUへの割込み信号を一定時間遅延させる割込み遅延装置が提案されている(例えば、特許文献1を参照)。
特開平9−274571号公報
As a conventional technique for solving the above-described problem, an interrupt delay device that delays an interrupt signal to a CPU for a predetermined time has been proposed (see, for example, Patent Document 1).
Japanese Patent Laid-Open No. 9-274571

また、上記課題を解決する他の従来技術として、書き込み要求を保持中であることを通知する第1の入出力制御部と、その通知を受けている間はCPUへの割込み信号を保留し、書き込みが完了した時点で保留されていた割込み信号を発行する第2の入出力制御部とを有する情報処理装置も提案されている(例えば、特許文献2を参照)。
特開平9−16541号公報
In addition, as another conventional technique for solving the above-described problem, a first input / output control unit that notifies that a write request is being held, and an interrupt signal to the CPU is suspended while receiving the notification, There has also been proposed an information processing apparatus including a second input / output control unit that issues an interrupt signal that has been suspended when writing is completed (see, for example, Patent Document 2).
Japanese Patent Laid-Open No. 9-16541

また、速度等の特性の異なる複数のバスをブリッジで接続したバスシステムもある(例えば、特許文献3を参照)。このようなバスシステムでは特に、書き込み要求がなされてから実際にメモリにデータが書き込まれるまでの時間が変動し易く、メモリへのデータの書き込みとメモリからのデータの読み出しの順序が逆になって、正しいデータを読み出せないという事態が生じがちである。
特開平9−237223号公報
There is also a bus system in which a plurality of buses having different characteristics such as speed are connected by a bridge (see, for example, Patent Document 3). Particularly in such a bus system, the time from when a write request is made until when data is actually written to the memory is likely to vary, and the order of writing data to the memory and reading data from the memory is reversed. There is a tendency that correct data cannot be read.
JP-A-9-237223

確かに、上記の従来技術を採用すれば、バスやバスマスタを数多く有している情報処理システムにおいても、メモリへのデータの書き込みが完了する前にデータの読み出しが行われることにより古いデータが読み出されるという問題を回避することができる。   Certainly, if the above-described conventional technology is adopted, even in an information processing system having a large number of buses and bus masters, old data is read by reading data before data writing to the memory is completed. Can be avoided.

しかしながら、特許文献1の技術では、バスの使用率等に依らず、常に一定時間だけCPUへの割込み信号が遅延されるため、バスの使用率が低い場合など、短時間で書き込みが完了したときには、バスの開放が不要に遅れることになり、メモリアクセスの速度向上を阻害する要因となっている。また、この問題は、速度等の特性の異なる複数のバスをブリッジで接続したバスシステムにおいては、遅延時間を長く設定する必要があるため、さらにメモリアクセスの速度向上を阻害する。   However, in the technique of Patent Document 1, since the interrupt signal to the CPU is always delayed for a certain time regardless of the bus usage rate or the like, when writing is completed in a short time such as when the bus usage rate is low. The opening of the bus is unnecessarily delayed, which is a factor that hinders the speed of memory access. In addition, this problem further hinders the speed of memory access because a delay time needs to be set long in a bus system in which a plurality of buses having different characteristics such as speed are connected by a bridge.

また、特許文献2の技術では、DMA書き込みや割込みの処理を新たに定義する必要があり、データ幅が増大するだけでなく、既存のバスシステムを拡張するために多大な労力を要する、という問題がある。   Further, in the technique of Patent Document 2, it is necessary to newly define DMA write and interrupt processing, which not only increases the data width but also requires a great deal of effort to expand the existing bus system. There is.

上記の問題は、メモリコントローラがメモリへのデータの書き込みを完了した時点で、バスマスタに書き込み完了を通知するような構成にすれば、解消することができる。しかしながら、バスシステムを採用した機器の製造者がバスを製造するとは限らず、むしろ、SoC(System-on-Chip)のような、他の者が製造した独自のバス(例えば、PLB(IBM社)やAMBA(ARM社)、PCI(産業界標準)等)を利用して、複数のバスをブリッジで接続しバスシステムを構築することが多い。そのような場合、バス自体の構成を一から見直すために多大なコストや時間が必要となってきわめて困難であり、書き込み完了をバスマスタに通知する機能をバスにもたせることは実際上できなくなる。   The above problem can be solved by adopting a configuration that notifies the bus master of the completion of writing when the memory controller completes the writing of data to the memory. However, a manufacturer of a device that employs a bus system does not necessarily manufacture a bus, but rather a proprietary bus manufactured by another person such as SoC (System-on-Chip) (for example, PLB (IBM) ), AMBA (ARM), PCI (industry standard), etc.), and a bus system is often constructed by connecting a plurality of buses with a bridge. In such a case, it is extremely difficult because it takes a lot of cost and time to review the configuration of the bus itself from the beginning, and it is practically impossible to give the bus the function of notifying the bus master of the completion of writing.

本発明は、このような問題に鑑みてなされたもので、複数のバスをブリッジで接続したバスシステムでもメモリアクセスの速度向上を阻害することなく、また、バス自体の構成を変更することなく、メモリへの書き込みが完了したことをバスマスタが知り得るバスシステムを提供することを目的とする。   The present invention has been made in view of such problems, and even in a bus system in which a plurality of buses are connected by a bridge, without hindering an improvement in the speed of memory access, and without changing the configuration of the bus itself. An object of the present invention is to provide a bus system in which a bus master can know that writing to a memory has been completed.

上記目的を達成するために、本発明では、ブリッジによって接続された複数のバスと、データを記憶するメモリと、バスとメモリに接続され、バスを介して与えられる要求に応じてメモリへのデータの書き込みとメモリからのデータの読み出しを行うメモリコントローラと、バスを介してメモリコントローラにメモリへのデータの書き込みとメモリからのデータの読み出しを要求するバスマスタとから成るバスシステムにおいて、バスとバスマスタに接続され、バスマスタからの書き込みの要求をメモリコントローラに伝達し、続いて、その書き込みの要求で指定されていたアドレスと同一のアドレスを指定してメモリコントローラにメモリからのデータの読み出しを要求し、メモリコントローラがメモリからデータを読み出した時点で、メモリへのデータの書き込みが完了したことをバスマスタに通知する書き込み完了通知手段を備える。   In order to achieve the above object, according to the present invention, a plurality of buses connected by a bridge, a memory for storing data, a bus connected to the memory, and data to the memory in response to a request given through the bus In a bus system comprising a memory controller that writes data and reads data from the memory, and a bus master that requests the memory controller to write data to the memory and read data from the memory via the bus, the bus and the bus master Connected, transmits a write request from the bus master to the memory controller, then requests the memory controller to read data from the memory by specifying the same address as that specified in the write request, When the memory controller reads data from the memory, Comprising a write completion notification means for notifying that the writing of data to the Li is complete to the bus master.

メモリコントローラは、読み出し要求に対しては、メモリからの読み出しを完了した時点で、読み出しが完了したことをバスを介して要求元に通知するから、読み出しを要求した書き込み完了通知手段は読み出しの完了を知ることができる。しかも、書き込み完了通知手段が読み出しを要求するメモリのアドレスはバスマスタからの書き込み要求のアドレスと同じであり、また、同一のバスマスタからの同一アドレスへのアクセス要求は要求順に処理されるから、書き込み完了通知手段が読み出しの完了を知った時点では、バスマスタからの書き込み要求に対応する書き込みは完了している。したがって、バスマスタは、書き込み完了通知手段からの通知によって、要求した書き込みが完了したことを確実に知ることができる。   In response to a read request, the memory controller notifies the request source via the bus that the read has been completed when the read from the memory is completed. Can know. In addition, the address of the memory that the write completion notification means requests to read is the same as the address of the write request from the bus master, and access requests to the same address from the same bus master are processed in the order of request, so the write is completed. When the notification means knows the completion of reading, the writing corresponding to the writing request from the bus master is completed. Therefore, the bus master can surely know that the requested write has been completed by the notification from the write completion notification means.

ここで、書き込み完了通知手段が、バスマスタから通知を要求されたときのみに、メモリコントローラにメモリからのデータの読み出しを要求して、メモリへのデータの書き込みが完了したことをバスマスタに通知するようにするとよい。このようにすると、バスマスタが書き込み完了を知る必要がないときには、無駄になる読み出しを省略することができて、システム全体の効率が向上する。   Here, only when the notification is requested from the bus master, the write completion notification means requests the memory controller to read data from the memory and notifies the bus master that the data writing to the memory is completed. It is good to. In this way, when the bus master does not need to know the completion of writing, useless reading can be omitted, and the efficiency of the entire system is improved.

本発明のバスシステムによれば、メモリコントローラがメモリへのデータの書き込み完了をバスマスタに通知する機能を有しないときでも、バスマスタは要求した書き込みが完了したことを確実に知ることができるため、書き込みと読み出しの順序が逆になって正しいデータを読み出せないという事態が生じるのを防止することが可能である。   According to the bus system of the present invention, even when the memory controller does not have a function of notifying the bus master of completion of data writing to the memory, the bus master can surely know that the requested writing has been completed. It is possible to prevent a situation in which the reading order is reversed and correct data cannot be read.

以下、本発明の一実施形態について図面を参照しながら説明する。本実施形態のバスシステム1の構成を図1に模式的に示す。バスシステム1は複数のバス11a、11bと、バス11a、11bを接続するブリッジ12a、12bと、メモリ13と、メモリコントローラ14と、バスマスタ15と、書き込み完了通知器16とを含む。なお、図1では2つのバス11a、11bのみを表しているが、バスは3つ以上あっても構わない。その場合、ブリッジを増設して、全てのバスを直接または間接に接続する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The configuration of the bus system 1 of the present embodiment is schematically shown in FIG. The bus system 1 includes a plurality of buses 11a and 11b, bridges 12a and 12b connecting the buses 11a and 11b, a memory 13, a memory controller 14, a bus master 15, and a write completion notifier 16. Although only two buses 11a and 11b are shown in FIG. 1, there may be three or more buses. In that case, add a bridge and connect all the buses directly or indirectly.

メモリコントローラ14は、1つのバス11bとメモリ13とに接続されており、バス11bを介して与えられる要求に応じて、メモリ13にデータを書き込み、またメモリ13からデータを読み出す。メモリ13に書き込むべきデータとデータを書き込むべきメモリ13のアドレスは、書き込み要求と共にバス11bを介して与えられ、データを読み出すべきメモリ13のアドレスも読み出し要求と共にバス11bを介して与えられる。読み出したデータはバス11bを介して伝送される。   The memory controller 14 is connected to one bus 11 b and the memory 13, and writes data to the memory 13 and reads data from the memory 13 in response to a request given via the bus 11 b. The data to be written to the memory 13 and the address of the memory 13 to which the data is to be written are given via the bus 11b together with the write request, and the address of the memory 13 from which the data is to be read is also given via the bus 11b together with the read request. The read data is transmitted via the bus 11b.

バスマスタ15は、バス11a、ブリッジ12a、12bおよびバス11bを介して、メモリコントローラ14にメモリ13へのデータの書き込みとメモリ13からのデータの読み出しを要求する。メモリコントローラ14は、バスマスタ15から書き込み要求や読み出し要求を受け付けたときに、受け付けた旨をバスマスタ15に通知し、また、バスマスタ15からの読み出し要求に応じてメモリ13からデータを読み出した時に、読み出しが完了したことをバスマスタ15に通知する。ただし、バスマスタ15はバス11aには直接接続されてはいない。   The bus master 15 requests the memory controller 14 to write data to the memory 13 and read data from the memory 13 via the bus 11a, the bridges 12a and 12b, and the bus 11b. When the memory controller 14 receives a write request or a read request from the bus master 15, the memory controller 14 notifies the bus master 15 that the request has been received, and when the data is read from the memory 13 in response to the read request from the bus master 15, the memory controller 14 Is notified to the bus master 15. However, the bus master 15 is not directly connected to the bus 11a.

書き込み完了通知器16は、バス11aとバスマスタ15とに接続されており、バスマスタ15からの書き込み要求や読み出し要求をバス11aに伝達し、また、バス11aからの通知や、バスマスタ15からの読み出し要求に応じてメモリコントローラ14がメモリ13から読み出したデータを、バスマスタ15に伝達する。   The write completion notifier 16 is connected to the bus 11a and the bus master 15, and transmits a write request and a read request from the bus master 15 to the bus 11a, and also notifies from the bus 11a and a read request from the bus master 15. Accordingly, the data read from the memory 13 by the memory controller 14 is transmitted to the bus master 15.

メモリコントローラ14は、上述のように、メモリ13からデータを読み出した時に読み出し完了の通知を行うが、バスマスタ15からの書き込み要求に応じてメモリ13にデータを書き込んだ時には、書き込み完了の通知を行わない。   As described above, the memory controller 14 notifies the completion of reading when data is read from the memory 13, but notifies the completion of writing when data is written to the memory 13 in response to a write request from the bus master 15. Absent.

ただし、バスシステム1では、バスマスタ15とバス11aとの間に介在する書き込み完了通知器16が、バスマスタ15からの書き込み要求をバス11aに伝達したとき、続いて、書き込み要求で指定されていたアドレスからのデータの読み出しを要求する。そして、メモリコントローラ14から読み出し完了の通知を受けた時に、バスマスタ15に、書き込みが完了したことを通知する。   However, in the bus system 1, when the write completion notifier 16 interposed between the bus master 15 and the bus 11a transmits the write request from the bus master 15 to the bus 11a, the address specified by the write request is subsequently issued. Request to read data from. When the read completion notification is received from the memory controller 14, the bus master 15 is notified that the writing has been completed.

メモリコントローラ14は、書き込み完了通知器16からの読み出し要求をバスマスタ15からの読み出し要求として認識し、また、同一のバスマスタからの同一アドレスへのアクセス要求を要求順に処理する。このため、書き込み完了通知器16がメモリコントローラ14から読み出し完了の通知を受けた時点では、書き込み完了通知器16が伝達したバスマスタ15からの書き込み要求に応じた書き込み処理は終了している。したがって、バスマスタ15は、書き込み完了通知器16からの書き込み完了通知によって、自己の書き込み要求に応じた書き込みが終了したことを、誤りなく知ることができる。   The memory controller 14 recognizes the read request from the write completion notifier 16 as a read request from the bus master 15 and processes access requests to the same address from the same bus master in the order of request. For this reason, when the write completion notification device 16 receives a read completion notification from the memory controller 14, the write processing corresponding to the write request from the bus master 15 transmitted by the write completion notification device 16 is completed. Therefore, the bus master 15 can know without error that the writing corresponding to its own writing request has been completed by the writing completion notification from the writing completion notifier 16.

バスマスタ15からの書き込み要求に関連して、バスマスタ15、書き込み完了通知器16、およびメモリコントローラ14間で伝送される信号および情報を図2に示す。バスマスタ15から書き込み完了通知器16に送信される信号および情報には、データを書き込むべきメモリ13のアドレスである書き込みアドレスMAddr、メモリ13に書き込むべきデータである書き込みデータMWriteData、メモリ13へのデータの書き込みを要求する書き込み要求信号MWriteReq、および、書き込み完了の通知を書き込み完了通知器16に要求する通知要求信号MAckReqがある。   In relation to the write request from the bus master 15, signals and information transmitted between the bus master 15, the write completion notifier 16, and the memory controller 14 are shown in FIG. The signal and information transmitted from the bus master 15 to the write completion notifier 16 include a write address MAddr that is an address of the memory 13 to which data is to be written, write data MWriteData that is data to be written to the memory 13, and data of the data to the memory 13. There are a write request signal MWWriteReq for requesting writing, and a notification request signal MAckReq for requesting the write completion notifier 16 for notification of write completion.

書き込み完了通知器16からバス11a、ブリッジ12a、12b、バス11bを介してメモリコントローラ14に送信される信号および情報には、データを書き込むべきメモリ13のアドレスである書き込みアドレスAddr、メモリ13に書き込むべきデータである書き込みデータWriteData、メモリ13へのデータの書き込みを要求する書き込み要求信号WriteReq、および、メモリ13からのデータの読み出しを要求する読み出し要求信号ReadReqがある。   In a signal and information transmitted from the write completion notifier 16 to the memory controller 14 via the bus 11a, the bridges 12a and 12b, and the bus 11b, a write address Addr that is an address of the memory 13 to which data is written is written in the memory 13. There are write data WriteData that is data to be written, a write request signal WriteReq that requests writing of data to the memory 13, and a read request signal ReadReq that requests reading of data from the memory 13.

なお、バスマスタ15から書き込み完了通知器16に送信される書き込みアドレスMAddr、書き込みデータMWriteData、および書き込み要求信号MWriteReqと、書き込み完了通知器16からメモリコントローラ14に送信される書き込みアドレスAddr、書き込みデータWriteData、および書き込み要求信号WriteReqの内容は、それぞれ同じである。   Note that the write address MAddr, the write data MWriteData, and the write request signal MWriteReq transmitted from the bus master 15 to the write completion notifier 16, the write address Addr, the write data WriteData transmitted from the write completion notifier 16 to the memory controller 14, The contents of the write request signal WriteReq are the same.

書き込み完了通知器16が、バスマスタ15からの書き込みアドレスMAddrを、書き込みアドレスAddrとして、そのままメモリコントローラ14に転送する構成としてもよいし、バスマスタ15からの書き込みアドレスMAddrを検出して、同一内容の書き込みアドレスAddrを生成し、これをメモリコントローラ14に送信する構成としてもよい。書き込みデータMWriteData、WriteDataと、書き込み要求信号MWriteReq、WriteReqについても同様である。   The write completion notifier 16 may be configured to transfer the write address MAddr from the bus master 15 to the memory controller 14 as it is as the write address Addr, or to detect the write address MAddr from the bus master 15 and write the same contents. The address Addr may be generated and transmitted to the memory controller 14. The same applies to the write data MWWriteData, WriteData, and the write request signals MWWriteReq, WriteReq.

メモリコントローラ14からバス11b、ブリッジ12b、12a、バス11aを介して書き込み完了通知器16に送信される信号および情報には、書き込み要求および読み出し要求を受け付けたことを知らせる受付通知信号BusAck、メモリ13から読み出したデータである読み出しデータReadData、および、メモリ13からのデータの読み出しが完了したことを知らせる読み出し完了通知信号ReadAckがある。   A signal and information transmitted from the memory controller 14 to the write completion notifier 16 via the bus 11b, the bridges 12b and 12a, and the bus 11a include an acceptance notification signal BusAck for notifying that a write request and a read request have been accepted, and the memory 13 There are read data ReadData that is data read from and a read completion notification signal ReadAck that informs that reading of data from the memory 13 is completed.

書き込み完了通知器16からバスマスタ15に送信される信号および情報には、書き込み要求がメモリコントローラ14に受け付けられたことを知らせる受付通知信号MBusAck、および、メモリ13へのデータの書き込みが終了したことを知らせる書き込み完了通知信号MWriteAckがある。受付通知信号MBusAckは、メモリコントローラ14から受付通知信号BusAckを受けた時に送信され、書き込み完了通知信号MWriteAckはメモリコントローラ14から読み出し完了通知信号ReadAckを受けた時に送信される。   The signal and information transmitted from the write completion notifier 16 to the bus master 15 include an acceptance notification signal MBusAck notifying that the write request has been accepted by the memory controller 14 and the completion of data writing to the memory 13. There is a write completion notification signal MWWriteAck to notify. The reception notification signal MBusAck is transmitted when the reception notification signal BusAck is received from the memory controller 14, and the write completion notification signal MWWriteAck is transmitted when the read completion notification signal ReadAck is received from the memory controller 14.

書き込み完了通知器16は、バスマスタ15から書き込み要求信号MWriteReqと共に通知要求信号MAckReqを受けたときに限り、メモリコントローラ14に読み出し要求信号ReadReqを送信する。したがって、バスマスタ15からの通知要求信号MAckReqがなければ、メモリコントローラ14からの読み出し完了通知信号ReadAckはなく、書き込み完了通知器16はバスマスタ15に書き込み完了通知信号MWriteAckを送信しない。これで、バスマスタ15が書き込み完了を知る必要がないときには、読み出し処理や書き込み完了の通知を行うという無駄を避けることができる。   The write completion notifier 16 transmits the read request signal ReadReq to the memory controller 14 only when it receives the notification request signal MAckReq together with the write request signal MWWriteReq from the bus master 15. Therefore, if there is no notification request signal MAckReq from the bus master 15, there is no read completion notification signal ReadAck from the memory controller 14, and the write completion notification device 16 does not transmit the write completion notification signal MWWriteAck to the bus master 15. Thus, when the bus master 15 does not need to know the completion of writing, it is possible to avoid the waste of performing a reading process and a notification of the completion of writing.

バスマスタ15が、書き込み完了の通知を要求することなく(通知要求信号MAckReqを送信せずに)メモリ13への書き込みを要求する場合の、上記の信号および情報の送受の時期を図3のタイムチャートに示す。   The time chart of FIG. 3 shows the transmission and reception timings of the above signals and information when the bus master 15 requests writing to the memory 13 without requesting writing completion notification (without transmitting the notification request signal MAckReq). Shown in

まず、バスマスタ15が、書き込み要求信号MWriteReqをオン(値1)にし、同時に、書き込みアドレスMAddr、および書き込みデータMWriteDataを設定する。これに応じて、書き込み完了通知器16が、書き込み要求信号WriteReqをオンにし、書き込みアドレスAddr、および書き込みデータWriteDataを設定する。   First, the bus master 15 turns on the write request signal MWWriteReq (value 1), and simultaneously sets the write address MAddr and the write data MWWriteData. In response to this, the write completion notifier 16 turns on the write request signal WriteReq and sets the write address Addr and the write data WriteData.

書き込み要求信号WriteReqを受けたメモリコントローラ14は、受付通知信号BusAckをオンにし、これに応じて、書き込み完了通知器16が受付通知信号MBusAckをオンにする。受付通知信号MBusAckを受けたバスマスタ15は、書き込み要求信号MWriteReqをオフ(値0)に戻す。メモリコントローラ14は、受付通知信号BusAckをオンにした後、メモリ13へのデータの書き込みを行う(不図示)。   Upon receiving the write request signal WriteReq, the memory controller 14 turns on the reception notification signal BusAck, and in response to this, the write completion notification device 16 turns on the reception notification signal MBusAck. The bus master 15 that has received the acceptance notification signal MBusAck returns the write request signal MWWriteReq to off (value 0). The memory controller 14 writes data into the memory 13 after turning on the reception notification signal BusAck (not shown).

バスマスタ15が、書き込み完了の通知を要求しつつ(通知要求信号MAckReqを送信して)メモリ13への書き込みを要求する場合の、上記の信号および情報の送受の時期を図4のタイムチャートに示す。   The time chart of FIG. 4 shows the timing of transmission and reception of the above signals and information when the bus master 15 requests writing to the memory 13 while requesting writing completion notification (transmitting the notification request signal MAckReq). .

まず、バスマスタ15が、書き込み要求信号MWriteReqと通知要求信号MAckReqをオンにし、同時に、書き込みアドレスMAddr、および書き込みデータMWriteDataを設定する。これに応じて、書き込み完了通知器16が、書き込み要求信号WriteReqをオンにし、書き込みアドレスAddr、および書き込みデータWriteDataを設定する。   First, the bus master 15 turns on the write request signal MWWriteReq and the notification request signal MAckReq, and simultaneously sets the write address MAddr and the write data MWWriteData. In response to this, the write completion notifier 16 turns on the write request signal WriteReq and sets the write address Addr and the write data WriteData.

書き込み要求信号WriteReqを受けたメモリコントローラ14は、受付通知信号BusAckをオンにし、これに応じて、書き込み完了通知器16が受付通知信号MBusAckをオンにする。受付通知信号MBusAckを受けたバスマスタ15は、書き込み要求信号MWriteReqおよび通知要求信号MAckReqをオフに戻す。メモリコントローラ14は、受付通知信号BusAckをオンにした後、メモリ13へのデータの書き込みを行う(不図示)。   Upon receiving the write request signal WriteReq, the memory controller 14 turns on the reception notification signal BusAck, and in response to this, the write completion notification device 16 turns on the reception notification signal MBusAck. The bus master 15 that has received the acceptance notification signal MBusAck turns off the write request signal MWWriteReq and the notification request signal MAckReq. The memory controller 14 writes data into the memory 13 after turning on the reception notification signal BusAck (not shown).

書き込み要求信号MWriteReqと共に通知要求信号MAckReqを受けていた書き込み完了通知器16は、受付通知信号BusAckを受けて受付通知信号MBusAckをオンにした後も、書き込みアドレスAddrをそのままにし、さらに読み出し要求信号ReadReqをオンにする。読み出し要求信号ReadReqを受けたメモリコントローラ14は、受付通知信号BusAckをオンにし、これを受けた書き込み完了通知器16は読み出し要求信号ReadReqをオフにする。なお、書き込み完了通知器16は、読み出し要求信号ReadReqに対する受付通知信号BusAckを受けたときには、受付通知信号MBusAckをオンにはしない。   The write completion notifier 16 that has received the notification request signal MAckReq together with the write request signal MWWriteReq keeps the write address Addr as it is after receiving the reception notification signal BusAck and turns on the reception notification signal MBusAck, and further reads the read request signal ReadReq. Turn on. The memory controller 14 that has received the read request signal ReadReq turns on the reception notification signal BusAck, and the write completion notifier 16 that has received this turns off the read request signal ReadReq. The write completion notifier 16 does not turn on the reception notification signal MBusAck when receiving the reception notification signal BusAck for the read request signal ReadReq.

バスシステム1では書き込みアドレスと読み出しアドレス(データを読み出すべきメモリ13のアドレス)に同じ信号線を兼用しており、読み出し要求信号ReadReqと共にメモリコントローラ14に与えられる書き込みアドレスAddrは、読み出しアドレスとして認識される。メモリコントローラ14は、読み出し要求信号ReadReqに応じて受付通知信号BusAckをオンにした後、メモリ13からのデータの読み出しを行い(不図示)、読み出しを完了した時点で、読み出し完了通知信号ReadAckをオンにする。   In the bus system 1, the same signal line is also used for the write address and the read address (address of the memory 13 from which data is read), and the write address Addr given to the memory controller 14 together with the read request signal ReadReq is recognized as the read address. The The memory controller 14 turns on the acceptance notification signal BusAck in response to the read request signal ReadReq, reads data from the memory 13 (not shown), and turns on the read completion notification signal ReadAck when the read is completed. To.

読み出し完了通知信号ReadAckを受けた書き込み完了通知器16は、書き込み完了通知信号MWriteAckをオンにし、これにより、バスマスタ15は書き込み要求信号MWriteReqに応えてメモリコントローラ14がデータをメモリ13に書き込んだことを知る。なお、書き込み完了通知器16には読み出しデータReadDataがメモリコントローラ14から与えられるが、書き込み完了通知器16は、書き込み完了通知信号MWriteAckをオンにして書き込み完了をバスマスタ16に知らせるのみで、読み出しデータReadDataをバスマスタ16に与えることなく棄てる。   Upon receiving the read completion notification signal ReadAck, the write completion notification device 16 turns on the write completion notification signal MWWriteAck, whereby the bus master 15 confirms that the memory controller 14 has written the data into the memory 13 in response to the write request signal MWWriteReq. know. Note that the read data ReadData is given from the memory controller 14 to the write completion notifier 16, but the write completion notifier 16 only turns on the write completion notification signal MWWriteAck to notify the bus master 16 of the read completion, and the read data ReadData. Is discarded without giving to the bus master 16.

なお、バスシステム1では、書き込みアドレスと読み出しアドレスに同じ信号線を兼用しているが、書き込みアドレスと読み出しアドレスを別の信号線で伝送するようにしてもよい。その場合、書き込み完了通知器16が、バスマスタ15からの書き込みアドレスMAddrを、読み出しアドレスとして設定するようにすればよい。   In the bus system 1, the same signal line is used for both the write address and the read address. However, the write address and the read address may be transmitted by different signal lines. In that case, the write completion notifier 16 may set the write address MAddr from the bus master 15 as a read address.

また、ここでは、バスマスタ15および書き込み完了通知器16をそれぞれ1つのみ示したが、バスマスタ15の数に制約はなく、メモリ13への書き込みを要求するバスマスタ15ごとに書き込み完了通知器16を備えるようにするとよい。   Here, only one bus master 15 and one write completion notifier 16 are shown, but the number of bus masters 15 is not limited, and a write completion notifier 16 is provided for each bus master 15 that requests writing to the memory 13. It is good to do so.

本発明の一実施形態のバスシステムの構成を模式的に示すブロック図。The block diagram which shows typically the structure of the bus system of one Embodiment of this invention. 上記バスシステムにおいてバスマスタからの書き込み要求に関連して送受される信号および情報を示す図。The figure which shows the signal and information which are transmitted / received in relation to the write request from a bus master in the said bus system. 上記バスシステムにおいて、バスマスタが書き込み完了の通知を要求することなく書き込みを要求する場合の、信号および情報の送受の時期を示すタイムチャート。4 is a time chart showing signal and information transmission / reception times when the bus master requests writing without requesting writing completion notification in the bus system. 上記バスシステムにおいて、バスマスタが書き込み完了の通知を要求しつつ書き込みを要求する場合の、信号および情報の送受の時期を示すタイムチャート。4 is a time chart showing signal and information transmission / reception times when the bus master requests writing while requesting writing completion notification in the bus system.

符号の説明Explanation of symbols

1 バスシステム
11a、11b バス
12a、12b ブリッジ
13 メモリ
14 メモリコントローラ
15 バスマスタ
16 書き込み完了通知器
MAddr、Addr 書き込みアドレス
MWriteData、WriteData 書き込みデータ
MWriteReq、WriteReq 書き込み要求信号
MBusAck、BusAck 受付通知信号
MAckReq 通知要求信号
ReadReq 読み出し要求信号
ReadData 読み出しデータ
ReadAck 読み出し完了通知信号
MWriteAck 書き込み完了通知信号
1 Bus System 11a, 11b Bus 12a, 12b Bridge 13 Memory 14 Memory Controller 15 Bus Master 16 Write Completion Notifier MAAddr, Addr Write Address MWWriteData, WriteData Write Data MWriteReq, WriteReq Write Request Signal MBusAck Signal Request Read request signal ReadData Read data ReadAck Read completion notification signal MWriteAck Write completion notification signal

Claims (2)

ブリッジによって接続された複数のバスと、データを記憶するメモリと、バスとメモリに接続され、バスを介して与えられる要求に応じてメモリへのデータの書き込みとメモリからのデータの読み出しを行うメモリコントローラと、バスを介してメモリコントローラにメモリへのデータの書き込みとメモリからのデータの読み出しを要求するバスマスタとから成るバスシステムにおいて、
バスとバスマスタに接続され、バスマスタからの書き込みの要求をメモリコントローラに伝達し、続いて、その書き込みの要求で指定されていたアドレスと同一のアドレスを指定してメモリコントローラにメモリからのデータの読み出しを要求し、メモリコントローラがメモリからデータを読み出した時点で、メモリへのデータの書き込みが完了したことをバスマスタに通知する書き込み完了通知手段
を備えることを特徴とするバスシステム。
A plurality of buses connected by a bridge, a memory for storing data, and a memory connected to the bus and the memory for writing data to the memory and reading data from the memory in response to a request given through the bus In a bus system comprising a controller and a bus master requesting the memory controller to write data to the memory and read data from the memory via the bus,
Connected to the bus and the bus master, transmits a write request from the bus master to the memory controller, and then specifies the same address as that specified in the write request to read the data from the memory to the memory controller And a write completion notifying means for notifying the bus master that the writing of data to the memory is complete when the memory controller reads the data from the memory.
書き込み完了通知手段が、バスマスタから通知を要求されたときのみに、メモリコントローラにメモリからのデータの読み出しを要求して、メモリへのデータの書き込みが完了したことをバスマスタに通知することを特徴とする請求項1に記載のバスシステム。   The write completion notifying means requests the memory controller to read data from the memory only when a notification is requested from the bus master, and notifies the bus master that the data writing to the memory is completed. The bus system according to claim 1.
JP2004274487A 2004-09-22 2004-09-22 Bus system Withdrawn JP2006092077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004274487A JP2006092077A (en) 2004-09-22 2004-09-22 Bus system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004274487A JP2006092077A (en) 2004-09-22 2004-09-22 Bus system

Publications (1)

Publication Number Publication Date
JP2006092077A true JP2006092077A (en) 2006-04-06

Family

ID=36233008

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004274487A Withdrawn JP2006092077A (en) 2004-09-22 2004-09-22 Bus system

Country Status (1)

Country Link
JP (1) JP2006092077A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7966439B1 (en) * 2004-11-24 2011-06-21 Nvidia Corporation Apparatus, system, and method for a fast data return memory controller
JP2016157235A (en) * 2015-02-24 2016-09-01 日本電気株式会社 Information processing device having distributed shared memory, method, and program
JP2019049922A (en) * 2017-09-12 2019-03-28 株式会社豊田自動織機 Memory access device and memory access method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7966439B1 (en) * 2004-11-24 2011-06-21 Nvidia Corporation Apparatus, system, and method for a fast data return memory controller
JP2016157235A (en) * 2015-02-24 2016-09-01 日本電気株式会社 Information processing device having distributed shared memory, method, and program
JP2019049922A (en) * 2017-09-12 2019-03-28 株式会社豊田自動織機 Memory access device and memory access method

Similar Documents

Publication Publication Date Title
JP2008090375A (en) Interrupt control system and storage control system using the same
JP2013515980A (en) Data transfer apparatus and control method thereof
US20100131692A1 (en) Bus bridge apparatus and bus bridge system
KR100644596B1 (en) Bus system and bus arbitration method thereof
JP4198376B2 (en) Bus system and information processing system including bus system
JP2007058716A (en) Data transfer bus system
JP2006293927A (en) Direct memory access controller and system lsi including direct memory access controller
JP2008009817A (en) Semiconductor device and data transfer method
JP2006113689A (en) Bus bridge device and data transfer method
US5968144A (en) System for supporting DMA I/O device using PCI bus and PCI-PCI bridge comprising programmable DMA controller for request arbitration and storing data transfer information
US7934043B2 (en) Data processing apparatus for controlling access to a memory based upon detection of completion of a DMA bus cycle
JP4642531B2 (en) Arbitration of data requests
US20080052424A1 (en) Data access system, data access apparatus, data access integrated circuit, and data access method
TWI750386B (en) Bus system
JP2006092077A (en) Bus system
JP2011070372A (en) Dma transmission control device
KR100606163B1 (en) Direct memory access device, system and method for transmitting and receiving data through direct memory access device
JP2006285872A (en) Multi-cpu system
US8713205B2 (en) Data transfer device and data transfer method
JP2006119724A (en) Cpu system, bus bridge, its control method, and computer system
JP2010140440A (en) Bus arbitration device
US20060101173A1 (en) Pin sharing system
JPH10307788A (en) Bus bridge
JP4249741B2 (en) Bus system and information processing system including bus system
JP2005228188A (en) Information processing system

Legal Events

Date Code Title Description
A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20070808