JP2005115657A - General purpose external interface - Google Patents

General purpose external interface Download PDF

Info

Publication number
JP2005115657A
JP2005115657A JP2003349117A JP2003349117A JP2005115657A JP 2005115657 A JP2005115657 A JP 2005115657A JP 2003349117 A JP2003349117 A JP 2003349117A JP 2003349117 A JP2003349117 A JP 2003349117A JP 2005115657 A JP2005115657 A JP 2005115657A
Authority
JP
Japan
Prior art keywords
external
memory
interface
semiconductor integrated
integrated circuit
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
JP2003349117A
Other languages
Japanese (ja)
Inventor
Haruhiko Takayama
春彦 高山
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.)
Kawasaki Microelectronics Inc
Original Assignee
Kawasaki Microelectronics Inc
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 Kawasaki Microelectronics Inc filed Critical Kawasaki Microelectronics Inc
Priority to JP2003349117A priority Critical patent/JP2005115657A/en
Publication of JP2005115657A publication Critical patent/JP2005115657A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)
  • Memory System (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a general purpose external interface which can connect an arbitrary external LSI circuit versatilely without incurring increase of circuit space or a CPU load. <P>SOLUTION: This is a general purpose external interface which is carried in a first semiconductor integrated circuit and connects the first semiconductor integrated circuit and a second semiconductor integrated circuit. It is equipped with; an internal bus interface which performs exchange between internal bus of the first semiconductor integrated circuit; an external bus interface which performs exchange between the external bus connecting the first semiconductor integrated circuit and the second semiconductor integrated circuit; a memory which stores an operation pattern of the external bus interface corresponding to an operation mode of the general purpose external interface; a mode register which stores an address of the memory in which the operation pattern of the external bus interface corresponding to a given command; and a sequencer which accesses the memory based on the address of the memory supplied from the mode register corresponding to the command. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、半導体集積回路に搭載されて、この半導体集積回路と外部の任意の半導体集積回路とを接続するための汎用外部インターフェイスに関するものである。   The present invention relates to a general-purpose external interface that is mounted on a semiconductor integrated circuit and connects the semiconductor integrated circuit to an arbitrary external semiconductor integrated circuit.

従来、半導体集積回路(以下、LSIという)の開発時に、その外部に接続されるLSI(以下、外部LSIという)に合わせて、専用の外部インターフェイスを設計し搭載することがある。ここで、外部LSIとは、例えばメモリ、CPU(中央演算装置)、ASIC(特定用途向けIC)等を含む各種のLSIである。   Conventionally, when developing a semiconductor integrated circuit (hereinafter referred to as an LSI), a dedicated external interface may be designed and mounted in accordance with an LSI connected to the outside (hereinafter referred to as an external LSI). Here, the external LSI is various LSIs including a memory, a CPU (Central Processing Unit), an ASIC (Application Specific IC), and the like.

図5は、従来のLSIの内部構成を表す一例の概略図である。同図に示すように、LSI60は、CPU62、RAM(ランダムアクセスメモリ)64、ROM(リードオンリーメモリ)66、タイマ68、割り込みコントローラ70、汎用I/O(入力/出力)72、外部I/F(インターフェイス)74等の内部回路を備えており、これらの内部回路は、内部バス76を介して互いに接続されている。   FIG. 5 is a schematic diagram illustrating an example of an internal configuration of a conventional LSI. As shown in the figure, the LSI 60 includes a CPU 62, a RAM (Random Access Memory) 64, a ROM (Read Only Memory) 66, a timer 68, an interrupt controller 70, a general-purpose I / O (input / output) 72, an external I / F. (Interface) 74 and other internal circuits are provided, and these internal circuits are connected to each other via an internal bus 76.

LSI60と外部LSI78とは、外部バス80を介して互いに接続される。この場合、LSI60と外部バス80とは外部I/F74を介して互いに接続され、LSI60の内部バス76と外部バス80との間でやり取りが行われる。   The LSI 60 and the external LSI 78 are connected to each other via the external bus 80. In this case, the LSI 60 and the external bus 80 are connected to each other via the external I / F 74, and exchange is performed between the internal bus 76 of the LSI 60 and the external bus 80.

また、接続対象の外部LSIが複数想定される時は、それぞれの外部LSIに対応する外部I/Fを設計し、モードによって切り替える機能を搭載することもしばしば行われている。例えば、図6に示すLSI82は、接続対象の外部LSIが2つある場合であり、2つの外部LSIに各々対応する外部I/F1および外部I/F2を備えている。これら2つの外部I/F1および外部I/F2は、モード切替信号に応じて、マルチプレクサ(MUX)84により切り替えて使用される。   Further, when a plurality of external LSIs to be connected are assumed, it is often performed to design an external I / F corresponding to each external LSI and mount a function of switching according to the mode. For example, the LSI 82 shown in FIG. 6 is a case where there are two external LSIs to be connected, and includes an external I / F 1 and an external I / F 2 respectively corresponding to the two external LSIs. These two external I / F1 and external I / F2 are switched and used by a multiplexer (MUX) 84 in accordance with a mode switching signal.

しかし、上記のように、複数の外部I/Fをモードによって切り替えて使用する構成では、回路面積のオーバーヘッドが大きくなるため、チップ面積が増大し、単価上昇の要因となるという問題があった。   However, as described above, in the configuration in which a plurality of external I / Fs are switched and used depending on the mode, there is a problem that the circuit area overhead increases, which increases the chip area and increases the unit price.

また、上記例とは別に、図5および図6にも汎用I/O72として示されているように、LSIに汎用ポートを設け、CPUの制御によって、LSIと外部LSIとを接続する外部バスを制御するための信号を生成することも行われている。   In addition to the above example, as shown in FIGS. 5 and 6 as general-purpose I / O 72, a general-purpose port is provided in the LSI, and an external bus that connects the LSI and the external LSI is controlled by the CPU. A signal for controlling is also generated.

しかし、CPUの処理能力では、外部LSIに応じて汎用ポートを制御し、信号を高速に切り替えることは不可能に近いし、CPUに対する負荷がかなり大きく、CPUが本来の処理を行うのが困難になるという問題があった。また、インターフェイスの多様化により、生成すべき信号も複雑さを増しているため、CPUによる汎用ポートの制御は次第に困難になるという問題もある。   However, it is almost impossible to control the general-purpose port according to the external LSI and switch the signal at high speed with the processing capability of the CPU. There was a problem of becoming. In addition, since the signals to be generated have increased in complexity due to the diversification of interfaces, there is a problem that control of general-purpose ports by the CPU becomes increasingly difficult.

本発明の目的は、前記従来技術に基づく問題点を解消し、回路面積やCPU負荷の増大を招くことなく、任意の外部LSIを汎用的に接続することができる汎用外部インターフェイスを提供することにある。   An object of the present invention is to provide a general-purpose external interface that can solve any problems based on the prior art and can connect any external LSI for general-purpose without causing an increase in circuit area or CPU load. is there.

上記目的を達成するために、本発明は、第1の半導体集積回路に搭載されて、この第1の半導体集積回路と第2の半導体集積回路とを接続するための汎用外部インターフェイスであって、
前記第1の半導体集積回路の内部バスとの間のやり取りを行う内部バスインターフェイスと、前記第1の半導体集積回路と前記第2の半導体集積回路とを接続する外部バスとの間のやり取りを行う外部バスインターフェイスと、当該汎用外部インターフェイスの動作モードに対応する前記外部バスインターフェイスの動作パターンを記憶するメモリと、前記第1の半導体集積回路の内部回路から、前記内部バスおよび前記内部バスインターフェイスを介して与えられるコマンドに対応する前記外部バスインターフェイスの動作パターンが記憶されている前記メモリのアドレスを記憶するモードレジスタと、前記コマンドに対応して前記モードレジスタから供給される前記メモリのアドレスに基づいて前記メモリをアクセスするシーケンサとを備えることを特徴とする汎用外部インターフェイスを提供するものである。
In order to achieve the above object, the present invention is a general-purpose external interface mounted on a first semiconductor integrated circuit for connecting the first semiconductor integrated circuit and the second semiconductor integrated circuit,
Exchanges between an internal bus interface that exchanges data with the internal bus of the first semiconductor integrated circuit and an external bus that connects the first semiconductor integrated circuit and the second semiconductor integrated circuit. An external bus interface, a memory for storing an operation pattern of the external bus interface corresponding to an operation mode of the general-purpose external interface, an internal circuit of the first semiconductor integrated circuit, and the internal bus and the internal bus interface A mode register for storing an address of the memory in which an operation pattern of the external bus interface corresponding to the command given is stored, and an address of the memory supplied from the mode register corresponding to the command A sequencer for accessing the memory; And it provides a generic external interface, characterized in that to obtain.

ここで、前記コマンドは、さらに前記第1の半導体集積回路の外部から、前記外部バスおよび前記外部バスインターフェイスを介して与えられるコマンドを含むのが好ましい。また、前記コマンドは、さらに前記第1の半導体集積回路の内部回路および前記第1の半導体集積回路の外部の少なくとも一方から直接与えられるコマンドを含むのが好ましい。   Here, it is preferable that the command further includes a command given from the outside of the first semiconductor integrated circuit through the external bus and the external bus interface. Further, it is preferable that the command further includes a command directly given from at least one of an internal circuit of the first semiconductor integrated circuit and an outside of the first semiconductor integrated circuit.

また、前記メモリは、前記第1の半導体集積回路の内部回路により、前記内部バス、前記内部バスインターフェイスおよび前記シーケンサを介してアクセスされる内部メモリとして使用されるのが好ましい。   The memory is preferably used as an internal memory accessed by the internal circuit of the first semiconductor integrated circuit through the internal bus, the internal bus interface, and the sequencer.

本発明の汎用外部インターフェイスは、外部LSIに対応する各種のコマンドに対応して、モードレジスタに設定するアドレスと、メモリに記憶する動作パターンとを適宜書き換えることにより、様々な外部LSIに汎用的に対応することができる。また、汎用外部インターフェイスは、複数の外部インターフェイスを使用した場合と比べて、回路規模が小さく、単価を安く抑えることができる。また、CPUによる制御もほとんど不要であるため、汎用ポートのようにCPUの負荷が重くなることもないという利点がある。   The general-purpose external interface of the present invention is suitable for various external LSIs by appropriately rewriting the address set in the mode register and the operation pattern stored in the memory in response to various commands corresponding to the external LSI. Can respond. In addition, the general-purpose external interface has a smaller circuit scale and a lower unit price than when a plurality of external interfaces are used. Further, since control by the CPU is almost unnecessary, there is an advantage that the load on the CPU does not become heavy unlike a general-purpose port.

以下に、添付の図面に示す好適実施形態に基づいて、本発明の汎用外部インターフェイスを詳細に説明する。   Hereinafter, the general-purpose external interface of the present invention will be described in detail based on preferred embodiments shown in the accompanying drawings.

図1は、本発明の汎用外部インターフェイスの一実施形態の構成概略図である。同図に示す汎用外部インターフェイス(以下、汎用外部I/Fという)10は、LSI22に搭載されて、LSI22と任意の外部LSI24とを接続するためのインターフェイス回路であって、内部バスインターフェイス(以下、内部バスI/Fという)12と、外部バスインターフェイス(以下、外部バスI/Fという)14と、メモリ16と、モードレジスタ18と、シーケンサ20とを備えている。   FIG. 1 is a schematic configuration diagram of an embodiment of a general-purpose external interface according to the present invention. A general-purpose external interface (hereinafter referred to as a general-purpose external I / F) 10 shown in FIG. 1 is an interface circuit that is mounted on the LSI 22 and connects the LSI 22 and an optional external LSI 24. An internal bus I / F 12, an external bus interface (hereinafter referred to as an external bus I / F) 14, a memory 16, a mode register 18, and a sequencer 20 are provided.

LSI22と外部LSI24とは、外部バスを介して互いに接続される。この場合、LSI22と外部バスとは、汎用外部I/F10の外部バスI/F14を介して互いに接続される。また、汎用外部I/F10が搭載されるLSI22は、何ら限定されるわけではないが、例えば図5に示すように、CPU62、RAM64、ROM66、タイマ68、割り込みコントローラ70、汎用I/O72等のような内部回路を備えており、これらの内部回路は、内部バス76を介して互いに接続されている。   The LSI 22 and the external LSI 24 are connected to each other via an external bus. In this case, the LSI 22 and the external bus are connected to each other via the external bus I / F 14 of the general-purpose external I / F 10. The LSI 22 on which the general-purpose external I / F 10 is mounted is not limited in any way. For example, as shown in FIG. 5, a CPU 62, a RAM 64, a ROM 66, a timer 68, an interrupt controller 70, a general-purpose I / O 72, etc. These internal circuits are connected to each other via an internal bus 76.

汎用外部I/F10は、接続される外部LSI24に対応する動作モードで動作するように設定される。例えば、外部LSI24がSRAM(スタティックRAM)である場合、汎用外部I/F10は、SRAM専用の外部インターフェイスとして機能するように設定される。また、外部LSI24がDRAM(ダイナミックRAM)である場合にはDRAM専用の外部インターフェイスとして機能し、CPUである場合にはCPU専用の外部インターフェイスとして機能するように設定される。   The general-purpose external I / F 10 is set to operate in an operation mode corresponding to the connected external LSI 24. For example, when the external LSI 24 is an SRAM (static RAM), the general-purpose external I / F 10 is set to function as an external interface dedicated to SRAM. Further, when the external LSI 24 is a DRAM (dynamic RAM), it functions as an external interface dedicated to DRAM, and when it is a CPU, it is set to function as an external interface dedicated to CPU.

以下、汎用外部I/F10の各構成要素について説明する。   Hereinafter, each component of the general-purpose external I / F 10 will be described.

内部バスI/F12は、汎用外部I/F10と内部バスとの間のやり取りを行う。内部バスI/F12は内部バスと相互に接続されており、その出力信号は、モードレジスタ18、シーケンサ20および外部バスI/F14に入力されている。   The internal bus I / F 12 performs exchanges between the general-purpose external I / F 10 and the internal bus. The internal bus I / F 12 is interconnected with the internal bus, and its output signal is input to the mode register 18, the sequencer 20, and the external bus I / F 14.

外部バスI/F14は、汎用外部I/F10と外部バスとの間のやり取りを行う。外部バスI/F14は外部バスと相互に接続されており、その出力信号は、内部バスI/F12およびシーケンサ20に入力されている。   The external bus I / F 14 performs exchanges between the general-purpose external I / F 10 and the external bus. The external bus I / F 14 is connected to the external bus, and the output signal is input to the internal bus I / F 12 and the sequencer 20.

メモリ16は、汎用外部I/F10の動作モードに対応する外部バスI/F14の動作パターンを記憶する。メモリ16はシーケンサ20と相互に接続されており、その出力信号すなわち動作パターンは外部バスI/F14に入力されている。なお、メモリ16は、汎用外部I/F10が使用中でない場合には、LSI22の内部回路により、内部バス、内部バスI/F12およびシーケンサ20を介してアクセスされる汎用的な内部メモリとして使用することも可能である。   The memory 16 stores an operation pattern of the external bus I / F 14 corresponding to the operation mode of the general-purpose external I / F 10. The memory 16 is mutually connected to the sequencer 20, and its output signal, that is, an operation pattern is input to the external bus I / F 14. The memory 16 is used as a general-purpose internal memory that is accessed by the internal circuit of the LSI 22 via the internal bus, the internal bus I / F 12 and the sequencer 20 when the general-purpose external I / F 10 is not in use. It is also possible.

モードレジスタ18は、汎用外部I/F10の動作モードを設定(決定)するもので、モードレジスタ18には、与えられるコマンドに対応する外部バスI/F14の動作パターンが記憶されているメモリ16のアドレスが記憶される。モードレジスタ18には内部バスI/F12の出力信号が入力され、その出力信号すなわちアドレスはシーケンサ20に入力されている。   The mode register 18 sets (determines) the operation mode of the general-purpose external I / F 10, and the mode register 18 stores the operation pattern of the external bus I / F 14 corresponding to a given command. The address is stored. The output signal of the internal bus I / F 12 is input to the mode register 18, and the output signal, that is, the address, is input to the sequencer 20.

シーケンサ20は、与えられるコマンドに対応してモードレジスタ18から供給されるメモリ16のアドレスに基づいてメモリ16をアクセスする。   The sequencer 20 accesses the memory 16 based on the address of the memory 16 supplied from the mode register 18 in response to a given command.

なお、コマンドは、外部LSI24に対するリード、ライト等を含む各種のコマンドである。また、コマンドは、LSI22の内部回路から、内部バスおよび内部バスI/F12を介して与えられる他、LSI22の外部から、外部バスおよび外部バスI/F14を介して与えられたり、LSI22の内部回路やLSI22の外部から直接与えることも可能である。LSI22の内部回路から与えられるコマンドと、LSI22の外部から与えられるコマンドとが競合した場合には、LSI22の外部から与えられるコマンドを優先するのが好ましい。   Note that the commands are various commands including read, write, and the like for the external LSI 24. The command is given from the internal circuit of the LSI 22 via the internal bus and the internal bus I / F 12, and is also given from the outside of the LSI 22 via the external bus and the external bus I / F 14. It is also possible to give directly from outside the LSI 22. When a command given from the internal circuit of the LSI 22 and a command given from the outside of the LSI 22 compete, it is preferable to give priority to the command given from the outside of the LSI 22.

続いて、図2に示すフローチャートを参照しながら、汎用外部I/F10を使用する場合の動作を説明する。   Next, the operation when the general-purpose external I / F 10 is used will be described with reference to the flowchart shown in FIG.

電源がオンする(S1)と、メモリ16に対し、汎用外部I/F10の動作モードに対応する各種の動作パターンが書き込まれる(S2)。メモリ16に書き込まれる動作パターンのデータは、例えばLSI22に搭載されているROMやLSI22の外部に接続されているROM等から読み出され、内部バスおよび内部バスI/F12を介して、または外部バスおよび外部バスI/F14を介してシーケンサ20に与えられる。そして、シーケンサ20により、与えられた各種の動作パターンがメモリ16の所定のアドレスに順次書き込まれる。   When the power is turned on (S1), various operation patterns corresponding to the operation mode of the general-purpose external I / F 10 are written in the memory 16 (S2). The operation pattern data written in the memory 16 is read from, for example, a ROM mounted on the LSI 22 or a ROM connected to the outside of the LSI 22 and is transmitted via the internal bus and the internal bus I / F 12 or the external bus. And given to the sequencer 20 via the external bus I / F 14. Then, the sequencer 20 sequentially writes various given operation patterns to predetermined addresses in the memory 16.

続いて、モードレジスタ18に対して、各種のコマンドに対応する外部バスI/F14の動作パターンが記憶されているメモリ16のアドレスが設定される(S3)。モードレジスタ18に設定されるアドレスのデータも同様に、LSI22に搭載されているROMやLSI22の外部に接続されているROM等から読み出され、内部バスおよび内部バスI/F12を介して、または外部バスおよび外部バスI/F14を介してモードレジスタ18に与えられ、各種のコマンドに対応するアドレスが順次書き込まれる。   Subsequently, the address of the memory 16 storing the operation pattern of the external bus I / F 14 corresponding to various commands is set in the mode register 18 (S3). Similarly, address data set in the mode register 18 is read from a ROM mounted on the LSI 22, a ROM connected to the outside of the LSI 22, or the like via the internal bus and the internal bus I / F 12, or Addresses corresponding to various commands are sequentially written to the mode register 18 via the external bus and the external bus I / F 14.

上記のように、メモリ16への動作パターンの書き込みと、モードレジスタ18へのアドレスの設定が完了すると、汎用外部I/F10は、従来の外部LSI24専用の外部インターフェイスと同様に機能する。   As described above, when the writing of the operation pattern to the memory 16 and the setting of the address to the mode register 18 are completed, the general-purpose external I / F 10 functions in the same manner as a conventional external interface dedicated to the external LSI 24.

例えば、LSI22の内部回路から、内部バスおよび内部バスI/F12を介してコマンドが与えられる(S4)と、モードレジスタ18からは、このコマンドに対応するメモリ16のアドレスが出力される。シーケンサ20により、モードレジスタ18から供給されるメモリ16のアドレスに基づいてメモリ16がアクセスされ、メモリ16からは、コマンドに対応するアドレスに記憶されている動作パターンが出力される。これにより、外部バスI/F14は、メモリ16から供給される動作パターンに従って動作する。   For example, when a command is given from the internal circuit of the LSI 22 via the internal bus and the internal bus I / F 12 (S4), the address of the memory 16 corresponding to this command is output from the mode register 18. The sequencer 20 accesses the memory 16 based on the address of the memory 16 supplied from the mode register 18, and the operation pattern stored at the address corresponding to the command is output from the memory 16. Accordingly, the external bus I / F 14 operates according to the operation pattern supplied from the memory 16.

汎用外部I/F10は、外部LSI24に対応する各種のコマンドに対応して、モードレジスタ18に設定するアドレスと、メモリ16に記憶する動作パターンとを適宜書き換えることにより、様々な外部LSI24に汎用的に対応することができる。また、汎用外部I/F10は、複数の外部I/Fを使用した場合と比べて、回路規模が小さく、単価を安く抑えることができる。また、CPUによる制御もほとんど不要であるため、汎用ポートのようにCPUの負荷が重くなることもないという利点がある。   The general-purpose external I / F 10 is used for various external LSIs 24 by appropriately rewriting addresses set in the mode register 18 and operation patterns stored in the memory 16 in response to various commands corresponding to the external LSIs 24. It can correspond to. In addition, the general-purpose external I / F 10 has a smaller circuit scale and a lower unit price than when a plurality of external I / Fs are used. Further, since control by the CPU is almost unnecessary, there is an advantage that the load on the CPU does not become heavy unlike a general-purpose port.

例えば、外部LSI24としてメモリデバイスを接続する場合、SRAMであってもDRAMであっても、これらのメモリデバイスに専用の外部I/Fを設けることなく、汎用的に接続することが可能である。また、汎用外部I/F10は、任意の外部LSI24と汎用的に接続することができるため、例えば外部バス仕様が確定していない外部LSI24に対しても、仕様が確定した後から外部LSI24を接続して使用するといった使い方が可能である。   For example, when a memory device is connected as the external LSI 24, whether it is an SRAM or a DRAM, these memory devices can be connected universally without providing a dedicated external I / F. In addition, since the general-purpose external I / F 10 can be connected to any external LSI 24 in a general-purpose manner, for example, the external LSI 24 is connected to the external LSI 24 whose external bus specifications are not fixed after the specifications are fixed. It is possible to use it.

次に、本発明の汎用外部インターフェイスの具体例を挙げて説明する。   Next, a specific example of the general-purpose external interface of the present invention will be described.

図3は、本発明を適用する汎用外部インターフェイスの一実施形態の構成概略図である。同図は、外部LSIとして、SDRAM(同期型ダイナミックRAM)を接続する場合の汎用外部I/F30の内部構成を表したもので、AHBインターフェイス32と、外部バスI/F34と、メモリ36と、シーケンサ40とを備えている。   FIG. 3 is a schematic configuration diagram of an embodiment of a general-purpose external interface to which the present invention is applied. This figure shows an internal configuration of a general-purpose external I / F 30 when an SDRAM (synchronous dynamic RAM) is connected as an external LSI. The AHB interface 32, an external bus I / F 34, a memory 36, And a sequencer 40.

AHBインターフェイス32は、この汎用外部I/F30と英国のアーム社製のアームプロセッサの内部バスであるAHBバス(Advanced High-Performance Bus)との間のやり取りを行う。AHBインターフェイス32はAHBバスと相互に接続され、AHBインターフェイス32の制御信号端子はシーケンサ40と相互に接続されている。   The AHB interface 32 exchanges between the general-purpose external I / F 30 and an AHB bus (Advanced High-Performance Bus) which is an internal bus of an arm processor manufactured by Arm Corp. in the UK. The AHB interface 32 is connected to the AHB bus, and the control signal terminal of the AHB interface 32 is connected to the sequencer 40.

なお、AHBインターフェイス32は、内部バスI/Fの機能に加えて、モードレジスタの機能も含む。このAHBインターフェイス32内のモードレジスタの部分には、タイマから出力される割り込み入力が入力されている。モードレジスタへのアドレスの設定は、このAHBインターフェイス32に割り当てられているアドレス空間に位置するレジスタに設定を行うことで行われる。   The AHB interface 32 includes a mode register function in addition to the function of the internal bus I / F. An interrupt input output from the timer is input to the mode register portion in the AHB interface 32. The address is set in the mode register by setting the register located in the address space assigned to the AHB interface 32.

外部バスI/F34は、この汎用外部I/F30と外部バスとの間のやり取りを行うもので、4つのフリップフロップ42、44、46、48と、3ステートバッファ50とを備えている。なお、図面の煩雑さを避けるために、4個のフリップフロップだけを概念的に示しているが、実際には各々の信号のビット数に対応する個数のフリップフロップを備えているものとする。   The external bus I / F 34 performs communication between the general-purpose external I / F 30 and the external bus, and includes four flip-flops 42, 44, 46, and 48 and a three-state buffer 50. In order to avoid the complexity of the drawing, only four flip-flops are conceptually shown, but in actuality, it is assumed that the number of flip-flops corresponding to the number of bits of each signal is provided.

フリップフロップ42のデータ入力端子DにはAHBインターフェイス32のアドレス端子からの出力信号が入力され、そのイネーブル入力端子ENには、メモリ36から供給されるアドレスストローブが入力されている。また、フリップフロップ42のデータ出力端子は、外部バスに接続される出力端子MAと接続されている。   An output signal from the address terminal of the AHB interface 32 is input to the data input terminal D of the flip-flop 42, and an address strobe supplied from the memory 36 is input to the enable input terminal EN. The data output terminal of the flip-flop 42 is connected to the output terminal MA connected to the external bus.

フリップフロップ44のデータ入力端子DにはAHBインターフェイス32のデータ出力端子からの出力信号が入力され、そのイネーブル入力端子ENには、メモリ36から供給される出力データストローブが入力されている。また、フリップフロップ44のデータ出力端子からは信号DQOが出力されている。   An output signal from the data output terminal of the AHB interface 32 is input to the data input terminal D of the flip-flop 44, and an output data strobe supplied from the memory 36 is input to the enable input terminal EN. A signal DQO is output from the data output terminal of the flip-flop 44.

また、フリップフロップ46のデータ入力端子Dには、外部バスに接続されるデータ入出力端子DQを介して供給される信号DQIが入力され、そのイネーブル入力端子ENには、メモリ36から供給される入力データストローブが入力されている。また、フリップフロップ46のデータ出力端子から出力される信号はAHBインターフェイス32のデータ入力端子に入力されている。   A signal DQI supplied via a data input / output terminal DQ connected to the external bus is input to the data input terminal D of the flip-flop 46, and the enable input terminal EN is supplied from the memory 36. Input data strobe is input. The signal output from the data output terminal of the flip-flop 46 is input to the data input terminal of the AHB interface 32.

フリップフロップ44のデータ出力端子から出力される信号DQOは3ステートバッファに入力され、3ステートバッファ50の出力端子はデータ入出力端子DQと接続されている。また、フリップフロップ46のデータ入力端子Dも同じくデータ入出力端子DQに接続されている。また、3ステートバッファ50のイネーブル入力端子には、メモリ36から供給される出力データイネーブルが入力されている。   The signal DQO output from the data output terminal of the flip-flop 44 is input to the 3-state buffer, and the output terminal of the 3-state buffer 50 is connected to the data input / output terminal DQ. The data input terminal D of the flip-flop 46 is also connected to the data input / output terminal DQ. The output data enable supplied from the memory 36 is input to the enable input terminal of the three-state buffer 50.

また、フリップフロップ48のデータ入力端子には、メモリ36から供給される信号RAS、CAS、CS、WE、UDQMおよびLDQMが入力され、フリップフロップ48の出力端子は、外部バスに接続される出力端子RAS、CAS、CS、WE、UDQMおよびLDQMと接続されている。   Further, signals RAS, CAS, CS, WE, UDQM, and LDQM supplied from the memory 36 are input to the data input terminal of the flip-flop 48, and the output terminal of the flip-flop 48 is an output terminal connected to the external bus. It is connected to RAS, CAS, CS, WE, UDQM and LDQM.

続いて、メモリ36には、シーケンサ40からの出力信号が入力されている。メモリ36からの出力信号すなわち動作パターンは、シーケンサ40および4つのフリップフロップ42、44、46、48に入力されている。なお、メモリ36から出力される動作パターンの詳細については後述する。   Subsequently, an output signal from the sequencer 40 is input to the memory 36. An output signal from the memory 36, that is, an operation pattern is input to the sequencer 40 and the four flip-flops 42, 44, 46 and 48. Details of the operation pattern output from the memory 36 will be described later.

シーケンサ40には、メモリ36から出力される制御情報ビット、およびタイマから出力される割り込み入力が入力されている。前述の通り、シーケンサ40とAHBインターフェイス32の制御信号端子とは相互に接続されている。また、シーケンサ40からの出力信号はメモリ36に入力されている。なお、割り込み入力は、SDRAMのリフレッシュサイクルに対応する動作モードを指示するためのコマンドとして使用される。   The sequencer 40 receives a control information bit output from the memory 36 and an interrupt input output from the timer. As described above, the sequencer 40 and the control signal terminal of the AHB interface 32 are connected to each other. An output signal from the sequencer 40 is input to the memory 36. The interrupt input is used as a command for instructing an operation mode corresponding to the refresh cycle of the SDRAM.

また、メモリ36、シーケンサ40およびフリップフロップ42、44、46、48のクロック入力端子には、クロックが共通に入力されている。すなわち、これらのメモリ36、シーケンサ40およびフリップフロップ42、44、46、48はクロックに同期して動作する。   A clock is commonly input to clock input terminals of the memory 36, the sequencer 40, and the flip-flops 42, 44, 46, and 48. That is, the memory 36, the sequencer 40, and the flip-flops 42, 44, 46, and 48 operate in synchronization with the clock.

続いて、メモリ36に記憶される動作パターンについて説明する。   Next, the operation pattern stored in the memory 36 will be described.

図4は、図3に示す汎用外部インターフェイスで用いられるメモリに記憶される動作パターンを表す一実施形態の概念図である。同図に示す動作パターンは、外部バスI/F34をSDRAMに対応する動作モードで動作させるためのもので、モードレジスタ(AHBインターフェイス32)から出力されるメモリ36のアドレスに対応して出力される1つの動作パターンである。この動作パターンは、MSB側の信号制御部と、LSB側の制御情報部とによって構成されている。   FIG. 4 is a conceptual diagram of an embodiment showing an operation pattern stored in a memory used in the general-purpose external interface shown in FIG. The operation pattern shown in the figure is for operating the external bus I / F 34 in an operation mode corresponding to the SDRAM, and is output corresponding to the address of the memory 36 output from the mode register (AHB interface 32). This is one operation pattern. This operation pattern is configured by a signal control unit on the MSB side and a control information unit on the LSB side.

信号制御部は、SDRAMの動作を制御する信号や、SDRAMのアドレス信号およびデータ信号をバッファリングするタイミングを制御する信号として使用される。信号制御部の各ビットには、MSB側から順に、図3に示す信号LDQM、UDQM、WE、CS、CAS、RAS、入力データストローブ、出力データイネーブル、出力データストローブ、アドレスストローブが割り当てられている。信号制御部の各ビットは外部バスI/F34に供給される。   The signal control unit is used as a signal for controlling the operation of the SDRAM and a signal for controlling the timing for buffering the address signal and the data signal of the SDRAM. Signal LDQM, UDQM, WE, CS, CAS, RAS, input data strobe, output data enable, output data strobe, and address strobe shown in FIG. 3 are allocated to each bit of the signal control unit in order from the MSB side. . Each bit of the signal control unit is supplied to the external bus I / F 34.

AHBインターフェイス32のアドレス端子からの出力信号は、クロックに同期してフリップフロップ42に保持され、アドレスストローブが‘1’の期間に出力端子MAから出力される。同様に、AHBインターフェイス32のデータ出力端子からの出力信号は、クロック信号に同期してフリップフロップ44に保持され、出力データストローブが‘1’の期間に信号DQOとして出力され、さらに出力データイネーブルが‘1’の期間にデータ入出力端子DQから外部バスに出力される。   An output signal from the address terminal of the AHB interface 32 is held in the flip-flop 42 in synchronization with the clock, and is output from the output terminal MA while the address strobe is ‘1’. Similarly, the output signal from the data output terminal of the AHB interface 32 is held in the flip-flop 44 in synchronization with the clock signal, and is output as the signal DQO when the output data strobe is “1”, and the output data enable is enabled. Data is output from the data input / output terminal DQ to the external bus during the period “1”.

また、外部バスからデータ入出力端子DQを介して供給される信号DQIは、クロックに同期してフリップフロップ46に保持される。そして、入力データストローブが‘1’の期間にAHBインターフェイス32のデータ入力端子に供給される。また、メモリ36からフリップフロップ48に入力される信号LDQM、UDQM、WE、CS、CAS、RASは、クロックに同期してフリップフロップ48に保持されるのと同時に、出力端子LDQM、UDQM、WE、CS、CAS、RASから外部バスに出力される。   The signal DQI supplied from the external bus via the data input / output terminal DQ is held in the flip-flop 46 in synchronization with the clock. The input data strobe is supplied to the data input terminal of the AHB interface 32 during the period “1”. The signals LDQM, UDQM, WE, CS, CAS, and RAS input from the memory 36 to the flip-flop 48 are held in the flip-flop 48 in synchronization with the clock, and at the same time, the output terminals LDQM, UDQM, WE, Output from CS, CAS, RAS to external bus.

また、制御情報部は、ループ回数の制御およびコマンド終了情報を含む、制御情報ビットとして使用される。制御情報部の各ビットはシーケンサ40に供給される。   The control information part is used as a control information bit including control of the number of loops and command end information. Each bit of the control information part is supplied to the sequencer 40.

ループ回数の制御は、メモリ36の同一アドレスから同一動作パターンを読み出す回数を設定するビットである。例えば、ループ回数として‘1’が設定されている場合には、シーケンサ40の制御により、クロックに同期して、メモリ36の同一アドレスから1回だけ動作パターンが読み出される。また、ループ回数として‘5’が設定されている場合には、クロックに同期して1クロック毎に、メモリ36の同一アドレスから5回連続して同一動作パターンが読み出される。   The control of the number of loops is a bit for setting the number of times of reading out the same operation pattern from the same address in the memory 36. For example, when “1” is set as the number of loops, the operation pattern is read only once from the same address in the memory 36 in synchronization with the clock under the control of the sequencer 40. When “5” is set as the number of loops, the same operation pattern is read five times continuously from the same address of the memory 36 every clock in synchronization with the clock.

また、コマンド終了情報は、コマンドに関連する一連の処理を終了するか、継続するかを設定するビットである。例えば、コマンド終了情報が‘0’の場合、シーケンサ40の制御により、クロックに同期して、メモリ36の次のアドレスから動作パターンが読み出され、次の動作パターンを使用して処理が続行される。これに対し、コマンド終了情報が‘1’の場合には、次の動作パターンの読み出しは行われず、コマンドに対応する一連の処理が終了される。   The command end information is a bit for setting whether to end or continue a series of processes related to the command. For example, when the command end information is “0”, the operation pattern is read from the next address of the memory 36 in synchronization with the clock under the control of the sequencer 40, and the processing is continued using the next operation pattern. The On the other hand, when the command end information is “1”, the next operation pattern is not read, and a series of processes corresponding to the command is ended.

従って、この汎用外部I/Fでは、コマンドに対応してメモリ36に記憶されている複数の動作パターンを適宜組み合わせることによって、このコマンドに対応する動作パターンを、どのように複雑な動作パターンであっても発生させることが可能である。   Therefore, in this general-purpose external I / F, by combining a plurality of operation patterns stored in the memory 36 corresponding to the command as appropriate, the operation pattern corresponding to this command is a complex operation pattern. Can also be generated.

続いて、この汎用外部I/F30の動作を説明する。なお、メモリ36には、あらかじめSDRAMに対応する動作パターンが記憶され、モードレジスタ(すなわちAHBインターフェイス32)にもアドレスが設定されているものとする。   Subsequently, the operation of the general-purpose external I / F 30 will be described. It is assumed that an operation pattern corresponding to the SDRAM is stored in the memory 36 in advance, and an address is also set in the mode register (that is, the AHB interface 32).

この汎用外部I/F30では、例えばLSIの内部回路から、内部バスおよびAHBインターフェイス32を介してコマンドが与えられると、このコマンドに対応するメモリ36のアドレスがAHBインターフェイス(モードレジスタ)32の制御信号端子から出力され、シーケンサ40に入力される。シーケンサ40では、クロックに同期して、AHBインターフェイス32から供給されるメモリ36のアドレスがアクセスされ、メモリ36からは、このコマンドに対応する動作パターンが読み出される。   In this general-purpose external I / F 30, for example, when a command is given from an internal circuit of the LSI via the internal bus and the AHB interface 32, the address of the memory 36 corresponding to this command is a control signal of the AHB interface (mode register) 32. The signal is output from the terminal and input to the sequencer 40. In the sequencer 40, the address of the memory 36 supplied from the AHB interface 32 is accessed in synchronization with the clock, and the operation pattern corresponding to this command is read from the memory 36.

メモリ36から読み出された動作パターンのうち、信号LDQM、LUQM、WE、CS、CAS、RAS、入力データストローブ、出力データイネーブル、出力データストローブおよびアドレスストローブは、外部バスI/F34に供給され、前述のようにして処理される。また、メモリ36から読み出された動作パターンのうち、制御情報ビットはシーケンサ40に供給される。シーケンサ40では、制御情報ビットであるループ回数の制御およびコマンド終了情報を参照して、前述のようにコマンドに対応する一連の動作が制御される。   Of the operation patterns read from the memory 36, signals LDQM, LUQM, WE, CS, CAS, RAS, input data strobe, output data enable, output data strobe and address strobe are supplied to the external bus I / F 34. Processed as described above. Of the operation patterns read from the memory 36, control information bits are supplied to the sequencer 40. In the sequencer 40, a series of operations corresponding to the command are controlled as described above with reference to the control of the loop count and the command end information which are control information bits.

制御情報ビットのコマンド終了情報が‘1’になると、シーケンサ40からAHBインターフェイス32の制御信号端子に終了信号が供給される。AHBインターフェイス32は、終了信号を受信すると、LSIの内部回路に対してレディ信号を出力し、これにより、コマンドに対応する一連の処理が終了する。   When the command end information in the control information bit becomes “1”, the end signal is supplied from the sequencer 40 to the control signal terminal of the AHB interface 32. When the AHB interface 32 receives the end signal, it outputs a ready signal to the internal circuit of the LSI, thereby ending a series of processing corresponding to the command.

なお、SDRAMの場合にはリフレッシュ動作が必要である。リフレッシュ動作は、タイマから直接AHBインターフェイス32内のモードレジスタおよびシーケンサ40に入力される割り込み入力によって処理される。リフレッシュ動作も、上記動作と同様にコマンドの1つとして割り込み入力を与えることによって実現できる。すなわち、メモリ36に、リフレッシュ動作に対応する動作パターンを書き込み、これに対応するアドレスの情報をモードレジスタ(AHBインターフェイス32)に設定しておくことによって同様に実現可能である。   In the case of SDRAM, a refresh operation is necessary. The refresh operation is processed by a mode register in the AHB interface 32 and an interrupt input input to the sequencer 40 directly from the timer. The refresh operation can also be realized by giving an interrupt input as one of the commands similarly to the above operation. That is, it can be similarly realized by writing an operation pattern corresponding to the refresh operation in the memory 36 and setting address information corresponding to this in the mode register (AHB interface 32).

本発明は、基本的に以上のようなものである。
以上、本発明の汎用外部インターフェイスについて詳細に説明したが、本発明は上記実施形態に限定されず、本発明の主旨を逸脱しない範囲において、種々の改良や変更をしてもよいのはもちろんである。
The present invention is basically as described above.
The general external interface of the present invention has been described above in detail. However, the present invention is not limited to the above-described embodiment, and various modifications and changes may be made without departing from the spirit of the present invention. is there.

本発明の汎用外部インターフェイスの構成概略図である。It is the structure schematic of the general purpose external interface of this invention. 本発明の汎用外部インターフェイスの動作を表すフローチャートである。It is a flowchart showing operation | movement of the general purpose external interface of this invention. 本発明を適用する汎用外部インターフェイスの一実施形態の構成概略図である。1 is a schematic configuration diagram of an embodiment of a general-purpose external interface to which the present invention is applied. 図3に示す汎用外部インターフェイスで用いられるメモリに記憶される動作パターンを表す一実施形態の概念図である。It is a conceptual diagram of one Embodiment showing the operation | movement pattern memorize | stored in the memory used with the general purpose external interface shown in FIG. 従来のLSIの内部構成を表す一例の概略図である。It is the schematic of an example showing the internal structure of the conventional LSI. 従来のLSIの内部構成を表す別の例の概略図である。It is the schematic of another example showing the internal structure of the conventional LSI.

符号の説明Explanation of symbols

10、30 汎用外部インターフェイス
12 内部バスインターフェイス
14、34 外部バスインターフェイス
16、36 メモリ
18 モードレジスタ
20、40 シーケンサ
22、24、60、78、82 LSI
32 AHBインターフェイス
42、44、46、48 フリップフロップ
50 3ステートバッファ
62 CPU
64 RAM
66 ROM
68 タイマ
70 割り込みコントローラ
72 汎用I/O
74 外部I/F
76 内部バス
80 外部バス
84 マルチプレクサ
10, 30 General-purpose external interface 12 Internal bus interface 14, 34 External bus interface 16, 36 Memory 18 Mode register 20, 40 Sequencer 22, 24, 60, 78, 82 LSI
32 AHB interface 42, 44, 46, 48 Flip-flop 50 3-state buffer 62 CPU
64 RAM
66 ROM
68 Timer 70 Interrupt controller 72 General-purpose I / O
74 External I / F
76 Internal bus 80 External bus 84 Multiplexer

Claims (4)

第1の半導体集積回路に搭載されて、この第1の半導体集積回路と第2の半導体集積回路とを接続するための汎用外部インターフェイスであって、
前記第1の半導体集積回路の内部バスとの間のやり取りを行う内部バスインターフェイスと、前記第1の半導体集積回路と前記第2の半導体集積回路とを接続する外部バスとの間のやり取りを行う外部バスインターフェイスと、当該汎用外部インターフェイスの動作モードに対応する前記外部バスインターフェイスの動作パターンを記憶するメモリと、前記第1の半導体集積回路の内部回路から、前記内部バスおよび前記内部バスインターフェイスを介して与えられるコマンドに対応する前記外部バスインターフェイスの動作パターンが記憶されている前記メモリのアドレスを記憶するモードレジスタと、前記コマンドに対応して前記モードレジスタから供給される前記メモリのアドレスに基づいて前記メモリをアクセスするシーケンサとを備えることを特徴とする汎用外部インターフェイス。
A general-purpose external interface mounted on the first semiconductor integrated circuit for connecting the first semiconductor integrated circuit and the second semiconductor integrated circuit;
Exchanges between an internal bus interface that exchanges data with the internal bus of the first semiconductor integrated circuit and an external bus that connects the first semiconductor integrated circuit and the second semiconductor integrated circuit. An external bus interface, a memory for storing an operation pattern of the external bus interface corresponding to an operation mode of the general-purpose external interface, an internal circuit of the first semiconductor integrated circuit, and the internal bus and the internal bus interface A mode register for storing an address of the memory in which an operation pattern of the external bus interface corresponding to the command given is stored, and an address of the memory supplied from the mode register corresponding to the command A sequencer for accessing the memory; General purpose external interface, characterized in that to obtain.
前記コマンドは、さらに前記第1の半導体集積回路の外部から、前記外部バスおよび前記外部バスインターフェイスを介して与えられるコマンドを含む請求項1に記載の汎用外部インターフェイス。   The general-purpose external interface according to claim 1, wherein the command further includes a command given from outside the first semiconductor integrated circuit via the external bus and the external bus interface. 前記コマンドは、さらに前記第1の半導体集積回路の内部回路および前記第1の半導体集積回路の外部の少なくとも一方から直接与えられるコマンドを含む請求項1または2に記載の汎用外部インターフェイス。   The general-purpose external interface according to claim 1, wherein the command further includes a command directly given from at least one of an internal circuit of the first semiconductor integrated circuit and an outside of the first semiconductor integrated circuit. 前記メモリは、前記第1の半導体集積回路の内部回路により、前記内部バス、前記内部バスインターフェイスおよび前記シーケンサを介してアクセスされる内部メモリとして使用される請求項1〜3のいずれかに記載の汎用外部インターフェイス。   4. The memory according to claim 1, wherein the memory is used as an internal memory accessed by the internal circuit of the first semiconductor integrated circuit via the internal bus, the internal bus interface, and the sequencer. General-purpose external interface.
JP2003349117A 2003-10-08 2003-10-08 General purpose external interface Withdrawn JP2005115657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003349117A JP2005115657A (en) 2003-10-08 2003-10-08 General purpose external interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003349117A JP2005115657A (en) 2003-10-08 2003-10-08 General purpose external interface

Publications (1)

Publication Number Publication Date
JP2005115657A true JP2005115657A (en) 2005-04-28

Family

ID=34541067

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003349117A Withdrawn JP2005115657A (en) 2003-10-08 2003-10-08 General purpose external interface

Country Status (1)

Country Link
JP (1) JP2005115657A (en)

Similar Documents

Publication Publication Date Title
KR100360408B1 (en) Semiconductor memory device having data masking pin for outputting the same signal as data strobe signal during read operation and memory system including the same
US20060090056A1 (en) Dynamically setting burst length and type
JP2006228194A (en) Composite memory chip capable of direct data transfer between internal memory devices and data transfer method
JP3883087B2 (en) Semiconductor memory device and semiconductor memory circuit
JP2004536417A (en) Memory device for performing addressing with different burst order in read and write operations
JPS62194563A (en) Buffer storage device
EP0337385A2 (en) Cache memory controller associated with a microprocessor
JP2005115657A (en) General purpose external interface
US8074096B2 (en) Semiconductor integrated circuit, memory system, memory controller and memory control method
JP2008251060A (en) Semiconductor memory device
JPH0542525Y2 (en)
KR20000035167A (en) Memory, memory address transmission method and memory interface
JPH01220286A (en) Write control circuit
JP4749689B2 (en) Memory control circuit and memory control method
JP2716284B2 (en) Semiconductor integrated circuit
JP2000132451A (en) Memory control circuit
JP2005228142A (en) Memory control circuit
KR20030023337A (en) Test mode entry method of semiconductor memory device and disposition of test mode line using it
JP2001273014A (en) Programmable controller
JPH0578118B2 (en)
JP3563340B2 (en) Memory controller
KR100364800B1 (en) data input/output control unit for semicorductor memory device
JP4008196B2 (en) Register control device and multi-CPU system
JPS6325885A (en) Memory access system
JPH03214275A (en) Semiconductor integrated circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070109