JPH0488450A - Memory access controller - Google Patents
Memory access controllerInfo
- Publication number
- JPH0488450A JPH0488450A JP2196324A JP19632490A JPH0488450A JP H0488450 A JPH0488450 A JP H0488450A JP 2196324 A JP2196324 A JP 2196324A JP 19632490 A JP19632490 A JP 19632490A JP H0488450 A JPH0488450 A JP H0488450A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- data
- memory access
- control device
- external memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
本発明はCPU等の外部制御部とRAM等の外部メモリ
との間に介挿されたメモリアクセス制御装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a memory access control device inserted between an external control unit such as a CPU and an external memory such as a RAM.
(従来の技術)
マイクロコンピュータ等の情報処理システムにおいては
、−成約にCPU (中央処理装置)が直接RAM等の
外部メモリに対してデータアクセスを行う。しかし、外
部メモリの連続したア)゛レスに記憶されている多数の
データを読出す場合や、予め指定されているアドレスの
データを繰返し読出す場合には、CPUと外部メモリと
の間にメモリアクセス制御装置を介挿させて、このメモ
リアクセス制御装置に実際の外部メモリに対するデータ
アクセス処理を実行させるようにしている。(Prior Art) In an information processing system such as a microcomputer, a CPU (central processing unit) directly accesses data to an external memory such as a RAM when a contract is concluded. However, when reading a large number of data stored in consecutive addresses of external memory, or when repeatedly reading data from a pre-specified address, there is a memory between the CPU and external memory. An access control device is inserted to cause this memory access control device to execute actual data access processing to the external memory.
第3図はこのようなメモリアクセス制御装置が組込まれ
た情報処理システムの要部を取出して示すブロック図で
ある。CPU2はデータバス3a。FIG. 3 is a block diagram showing the main parts of an information processing system incorporating such a memory access control device. The CPU 2 is connected to the data bus 3a.
アドレスバス4a、各種制御線5aを介してメモリアク
セス制御装置6に接続されている。そして、メモリアク
セス制御装置6はデータバス3b、アドレスバス4b、
各種制御線5bを介してRAM等で構成された外部メモ
リ7に接続されている。It is connected to a memory access control device 6 via an address bus 4a and various control lines 5a. The memory access control device 6 includes a data bus 3b, an address bus 4b,
It is connected to an external memory 7 composed of a RAM or the like via various control lines 5b.
なお、この情報処理システムにおいては、外部メモリ7
をデュアルポートRAMで構成し、別のCPUまたは制
御装置からデータアクセスが可能にしている。Note that in this information processing system, the external memory 7
is configured with dual-port RAM, allowing data access from another CPU or control device.
前記メモリアクセス制御袋W6は例えはゲートアレイと
呼ばれるセミカスタムLISで形成されており、内部に
メモリアクセス回路8と内部メモリ9とが収納されてい
る。内部メモリ9は、CPU2から入力した前記外部メ
モリ7をデータアクセスするために必要なアドレス等の
制御データおよび外部メモリ7から読出したアクセスデ
ータを一時記憶する機能を有する。また、メモリアクセ
ス回路8は、内部メモリ9に設定された制御データに基
づいて実際の外部メモリ7をデータアクセスして、得ら
れたアクセスデータを内部メモリ9に格納する機能を有
している。The memory access control bag W6 is formed of a semi-custom LIS called a gate array, and a memory access circuit 8 and an internal memory 9 are housed inside. The internal memory 9 has a function of temporarily storing control data such as addresses necessary for data accessing the external memory 7 input from the CPU 2 and access data read from the external memory 7. Furthermore, the memory access circuit 8 has a function of data accessing the actual external memory 7 based on control data set in the internal memory 9 and storing the obtained access data in the internal memory 9.
このような情報処理システムにおいて、CPU2はメモ
リアクセス制御装置6の内部メモリ9に対して予め各種
制御データを設定したのち、アクセス指令を送出すると
、メモリアクセス回路8か内部メモリ9に記憶されてい
る制御データに基づいて外部メモリ7をアクセスして、
その結果であるアクセスデータを内部メモリ9に書込む
。その後、CPU2は内部メモリ9に対するデータアク
セスを行って、必要なデータを取込む。In such an information processing system, the CPU 2 sets various control data in the internal memory 9 of the memory access control device 6 in advance, and then sends an access command to the memory access circuit 8 or the internal memory 9. Accessing the external memory 7 based on the control data,
The resulting access data is written into the internal memory 9. Thereafter, the CPU 2 performs data access to the internal memory 9 and fetches necessary data.
このように、外部メモリ7に対する実際のアクセス処理
を例えばゲートアレイで形成されたメモリアクセス制御
装置6を用いて行うので、CPU2の処理負担を大幅に
軽減できる。In this way, since the actual access processing to the external memory 7 is performed using the memory access control device 6 formed of, for example, a gate array, the processing load on the CPU 2 can be significantly reduced.
しかしながら第3図に示すように構成されたメモリアク
セス制御装置6においてもまだ次のような問題がある。However, the memory access control device 6 configured as shown in FIG. 3 still has the following problems.
すなわち、何等かの異常が生じてCPU2が正しいデー
タを得られなくなった場合は、CPU2とメモリアクセ
ス制御装置6と接続するデータバス3a、アドレスバス
4a、各種制御線5 a s又はメモリアクセス制御装
置6自体、又はこのメモリアクセス制御装置6と外部メ
モリ7とを接続するデータバス3b、 アドレスバス4
b、各種制御線5b、又は外部メモリ7自体の故障又は
接続不良が考えられる。That is, if some abnormality occurs and the CPU 2 is unable to obtain correct data, the data bus 3a, address bus 4a, various control lines 5a, or memory access control device connecting the CPU 2 and the memory access control device 6 6 itself, or a data bus 3b connecting this memory access control device 6 and an external memory 7, and an address bus 4.
b. Failure or poor connection of various control lines 5b or the external memory 7 itself is considered.
一般に、CPUから外部メモリに対するアクセス処理過
程でエラーが発生した場合には、予めROM等に記憶さ
れている診断プログラムを起動して、故障原因等を解明
するようにしている。この診断プログラムにおいては、
外部メモリの予め指定されたアドレスに既知のデータを
IF込み、後から、該当アドレスに記憶されているデー
タを読取って、読取ったデータが書込んだ既知のデータ
に一致するか否かを調べる。このような診断を実行する
ことによって、外部メモリ自体が異常であるか、CPU
と外部メモリとを接続する各バスや制御線に異常が存在
するかを把握できる。Generally, when an error occurs in the process of accessing an external memory from the CPU, a diagnostic program stored in a ROM or the like is activated in advance to determine the cause of the failure. In this diagnostic program,
Known data is written into a pre-designated address of an external memory via an IF, and later the data stored at the corresponding address is read to check whether the read data matches the written known data. By running this kind of diagnosis, you can determine whether the external memory itself is abnormal or whether the CPU
It can be determined whether there is an abnormality in each bus or control line connecting the computer and external memory.
しかし、第3図に示すように、CPU2と外部メモリ7
との間にメモリアクセス制御装置6を介在させていると
、上述した一般的な診断プログラムを実行するのみでは
、外部メモリ7が異常であるのが、メモリアクセス制御
装置6か異常であるのか、またはCPU2. メモリア
クセス制御装置6および外部メモリ7を接続する各バス
3a。However, as shown in FIG. 3, the CPU 2 and external memory 7
If the memory access control device 6 is interposed between the external memory 7 and the memory access control device 6, it is not possible to determine whether it is the memory access control device 6 that is abnormal in the external memory 7 by simply running the above-mentioned general diagnostic program. or CPU2. Each bus 3a connects the memory access control device 6 and the external memory 7.
3b、4a、4bおよび各制御線5a、5bが異常であ
るかの区別が困難である。It is difficult to distinguish whether 3b, 4a, 4b and each control line 5a, 5b are abnormal.
そして、正確に異常原因を究明するためには、メモリア
クセス制御装置6内における、メモリアクセス回路8が
外部メモリ7をアクセスする手順、およびメモリアクセ
ス制御装置66および外部メモリ7に対して入出力する
実際のデータを把握する必要がある。したがって、この
異常原因解明には、専門的知謀と高度な技術と多大な時
間と労力が必要であった。In order to accurately investigate the cause of the abnormality, the procedure for the memory access circuit 8 in the memory access control device 6 to access the external memory 7 and the input/output to and from the memory access control device 66 and the external memory 7 are necessary. We need to understand the actual data. Therefore, elucidating the cause of this abnormality required specialized knowledge, advanced technology, and a great deal of time and effort.
また、前述したようにメモリアクセス制御装置6自体も
ゲートアレイ化され、また、他の電子部品も高密度実装
により、基板パターンの細分化、パッド間隔の縮小化等
によって肉眼によるチエツクではその異常原因を見付け
ることは困難となり、見視以外の手法によって異常箇所
を特定する必要性が増大している。Furthermore, as mentioned above, the memory access control device 6 itself has been made into a gate array, and other electronic components have been mounted in a high-density manner, resulting in subdivision of the board pattern and reduction in pad spacing. It has become difficult to detect abnormalities, and there is an increasing need to identify abnormalities using methods other than visual inspection.
(発明が解決しようとする課題)
このように、従来のメモリアクセス制御装置によれば、
−旦、CPUからこのメモリアクセス制御装置を介して
外部メモリに対する間接的なアクセス処理動作中に、異
常が発生すると、たとえ診断プログラムを用いても異常
発生箇所を特定するのが困難であった。(Problems to be Solved by the Invention) As described above, according to the conventional memory access control device,
- If an abnormality occurs during indirect access processing from the CPU to the external memory via the memory access control device, it is difficult to identify the location where the abnormality has occurred even if a diagnostic program is used.
本発明はこのような事情に鑑みてなされたものであり、
内部メモリやメモリアクセス回路をバイパスするバイパ
ス回路を設けることによって、異常発生した場合にはJ
このバイパス回路を用いてCPIJ等の外部制御部か直
接外部メモリをアクセス可能となり、異常発生箇所を容
易に特定でき、もって異常状態を短時間で解消できるメ
モリアクセス制御装置を提供することを目的とする。The present invention was made in view of these circumstances, and
By providing a bypass circuit that bypasses the internal memory and memory access circuit, J
The purpose of the present invention is to provide a memory access control device that allows an external control unit such as a CPIJ to directly access an external memory using this bypass circuit, and allows the location of an abnormality to be easily identified, thereby eliminating the abnormal state in a short time. do.
[発明の構成]
(課題を解決するための手段)
上記課題を解消するために本発明は、内部メモリ及びメ
モリアクセス回路を有して、メモリアクセス回路は、外
部制御部から内部メモリに設定された制御データに基づ
いて、外部に接続された外部メモリに対するデータアク
セスを行い、得られたアクセスデータを内部メモリに格
納し、この内部メモリにアクセスデータが格納された後
に、外部制御部から内部メモリに対するデータアクセス
が実行されるメモリアクセス制御装置において、外部制
御部が外部メモリを外部メモリ及びメモリアクセス回路
を介さずに直接データアクセスするためのバイパス回路
と、外部制御部からの選択指令に基づいて外部メモリに
対する入比力端子をメモリアクセス回路側からバイパス
回路側に切換接続する選択回路とを備えたものである。[Structure of the Invention] (Means for Solving the Problems) In order to solve the above problems, the present invention includes an internal memory and a memory access circuit, and the memory access circuit is set to the internal memory by an external control section. Based on the control data, the external memory connected to the outside is accessed, the obtained access data is stored in the internal memory, and after the access data is stored in the internal memory, the external control unit accesses the internal memory. A memory access control device that performs data access to the external memory includes a bypass circuit for allowing the external control unit to access data directly from the external memory without going through the external memory and the memory access circuit, and a bypass circuit for directly accessing the external memory without going through the external memory and the memory access circuit, and It is provided with a selection circuit that switches and connects an input terminal for an external memory from the memory access circuit side to the bypass circuit side.
(作用)
このように構成されたメモリアクセス制御装置であれば
、外部制御部はこのメモリアクセス制御装置を介して外
部メモリを間接的にアクセスする従来のアクセス手法の
他に、メモリアクセス制御装置内に形成されたバイパス
回路を介して外部メモリを直接アクセスすることが可能
となる。(Function) With the memory access control device configured as described above, the external control unit can perform internal access within the memory access control device in addition to the conventional access method of indirectly accessing the external memory via the memory access control device. It becomes possible to directly access the external memory via the bypass circuit formed in the .
したがって、このメモリアクセス制御装置が組込まれた
情報処理システムにおいて、外部制御部のデータアクセ
ス処理途中に異常が発生した場合には、メモリアクセス
制御装置の機能を動作させた状態で診断プログラムを起
動させて異常解析を行うとともに、選択信号を送出して
選択回路でもってバイパス回路を選択設定したのち、前
述した診断プログラムを起動させて異常解析を行う。こ
のように、外部メモリに対する接続条件を変化させて実
行された診断プログラムの診断結果を比較参照すること
によってより容易に異常位置を特定できる。Therefore, in an information processing system in which this memory access control device is installed, if an abnormality occurs during data access processing in the external control unit, the diagnostic program should be started while the functions of the memory access control device are operating. After transmitting a selection signal and selecting and setting a bypass circuit using the selection circuit, the above-mentioned diagnostic program is activated to perform an abnormality analysis. In this way, the abnormal position can be more easily identified by comparing and referring to the diagnostic results of the diagnostic program executed while changing the connection conditions to the external memory.
(実施例) 以下本発明の一実施例を図面を用いて説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.
第1図は実施例のメモリアクセス制御装置が組込まれた
情報処理システムの要部を取出して示すブロック図であ
る。FIG. 1 is a block diagram showing the main parts of an information processing system incorporating a memory access control device according to an embodiment.
外部制御部としてのCPU12はデータバス13a、ア
ドレスバス14aにてメモリアクセス制御装置15に接
続されている。さらに、このメモリアクセス制御装置1
5はデータバス13b。A CPU 12 serving as an external control unit is connected to a memory access control device 15 via a data bus 13a and an address bus 14a. Furthermore, this memory access control device 1
5 is a data bus 13b.
アドレスバス14bを介して外部メモリ16に接続され
たいる。なお。この実施例の情報処理システムにおいて
は、外部メモリ16をデュアルボー)RAMで構成し、
別のCPUまたは制御装置からデータアクセスが可能に
している。It is connected to external memory 16 via address bus 14b. In addition. In the information processing system of this embodiment, the external memory 16 is configured with a dual-baud RAM,
Allows data access from another CPU or controller.
前記メモリアクセス制御装置15は例えはゲートアレイ
と呼ばれるセミカスタムLISて形成されており、内部
にメモリアクセス回路17、内部メモリ18、一対のデ
ータセレクタ19a。The memory access control device 15 is formed as a semi-custom LIS called a gate array, and includes a memory access circuit 17, an internal memory 18, and a pair of data selectors 19a.
19b1アドレスセレクタ20、一対の信号セレクタ2
1a、21b、5個のゲート22a。19b1 address selector 20, pair of signal selectors 2
1a, 21b, and five gates 22a.
22b、22C,22d、22eとが収納されている。22b, 22C, 22d, and 22e are stored.
すなわち、CPU12のデータ端子に接続されたデータ
バス13aは内部メモリ18およびデータセレクタ19
aの共通端子に接続されるとともに、データセレクタ1
9bの第2の端子に接続されている。また、外部メモリ
16のデータ端子に接続されたデータバス13bはデー
タセレクタ19bの共通端子に接続されるとともにデー
タセレクタ19aの第2の端子に接続されている。さら
に、データセレクタ19aの第1の端子には内部メモリ
18からのデータバスが接続され、データセレクタ19
bの第1の端子にはメモリアクセス回路17からのデー
タバスか接続されている。That is, the data bus 13a connected to the data terminal of the CPU 12 is connected to the internal memory 18 and the data selector 19.
a and is connected to the common terminal of data selector 1.
9b. Further, the data bus 13b connected to the data terminal of the external memory 16 is connected to a common terminal of the data selector 19b and to a second terminal of the data selector 19a. Further, a data bus from the internal memory 18 is connected to the first terminal of the data selector 19a.
A data bus from the memory access circuit 17 is connected to the first terminal of the memory access circuit 17.
CPU12のアドレス端子に接続されたアドレスバス1
4aは内部メモリ18に接続されるとともにアドレスセ
レクタ20の第2の端子に接続されている。このアドレ
スセレクタ20の第1の端子にはメモリアクセス回路1
7からのアドレスバスが接続されている。また、外部メ
モリ16のアドレス端子に接続されたアドレスバス14
aはアドレスセレクタ20の共通端子に接続されている
。Address bus 1 connected to the address terminal of CPU 12
4 a is connected to the internal memory 18 and to the second terminal of the address selector 20 . The first terminal of this address selector 20 has a memory access circuit 1.
The address bus from 7 is connected. Also, an address bus 14 connected to an address terminal of the external memory 16
a is connected to a common terminal of the address selector 20.
前記各データセレクタ19a、19bおよびアドレスセ
レクタ20は内部メモリ18から出力される選択信号a
にて第1.第2の端子に接続されているいずれか一方の
バスを共通端子に接続されているハスに切換接続する。Each data selector 19a, 19b and address selector 20 receive a selection signal a output from the internal memory 18.
1st. Either one of the buses connected to the second terminal is switched and connected to the bus connected to the common terminal.
また、データセレクタ19a 19bおよびアドレス
セレクタ20はバス切換機能を有すると共に、データお
よびアドレスをラッチする機能を有する。そして、各デ
ータセレクタ19a、19bおよびアドレスセレクタ2
0は通常は第1の端子に接続された内部メモリ18gお
よびメモリアクセス回路17からのデータバスおよびア
ドレスバスを選択して共通端子側のデータバスおよびア
ドレスバスに接続している。そして、内部メモリ18か
ら例えばLレベルの選択信号aが出力されると、第2の
端子に接続されているCPU12側および外部メモリ1
6側のデータバス13a、13bおよびアドレスバス1
4a、、14bを共通側の各バスに切換接続する。Furthermore, the data selectors 19a to 19b and the address selector 20 have a bus switching function and a function of latching data and addresses. Then, each data selector 19a, 19b and address selector 2
0 normally selects the data bus and address bus from the internal memory 18g and memory access circuit 17 connected to the first terminal and connects them to the data bus and address bus on the common terminal side. When the internal memory 18 outputs, for example, the L level selection signal a, the CPU 12 side and the external memory 1 connected to the second terminal
6 side data buses 13a, 13b and address bus 1
4a, , 14b are switched and connected to each bus on the common side.
具体的には、第1.第2の端子のうち選択されていない
端子をハイインピーダンス状態に制御することによって
、バスを切換接続している。Specifically, 1. The buses are switched and connected by controlling unselected terminals among the second terminals to a high impedance state.
また、CPU12に接続されたアドレスバス14aの例
えば最上位桁A15はデコーダ23へ入力される。この
デコーダ23は上記最上位桁A15か例えばL(0)レ
ベルのときLレベルの選択信号(チップセレクト)C5
Iを出力し、最上位桁A15か例えばH(1)レベルの
ときLレベルの選択信号(チップセレクト)C32を出
力する。デコーダ23から出力された選択信号C5Iは
内部メモリ18へ印加されるとともにゲート22Cの一
方の入力端子に印加される。また、デコーダ23から出
力された選択信号CS2は各ゲート22a、22b、2
2dの一方の入力端子へ入力される。Further, for example, the most significant digit A15 of the address bus 14a connected to the CPU 12 is input to the decoder 23. This decoder 23 outputs a selection signal (chip select) C5 which is at L level when the most significant digit A15 is at L (0) level.
I, and when the most significant digit A15 is, for example, H (1) level, a selection signal (chip select) C32 of L level is output. The selection signal C5I output from the decoder 23 is applied to the internal memory 18 and also applied to one input terminal of the gate 22C. Further, the selection signal CS2 outputted from the decoder 23 is applied to each gate 22a, 22b, 2
It is input to one input terminal of 2d.
また、CPU12、から出力されたLレベルの書込信号
WRは内部メモリ18へ入力されるとともにゲート22
aの他方の入力端子を介して信号セレクタ21aの第2
の端子へ入力される。この信号セレクタ21aの第1の
端子にはメモリアクセス回路17からの書込信号WRが
入力される。そして、この信号セレクタ21aの共通端
子から出力される書込信号WRは外部メモリ16の書込
端子へ印加される。Further, the L level write signal WR output from the CPU 12 is input to the internal memory 18 and is also input to the gate 22.
the second input terminal of the signal selector 21a via the other input terminal of
input to the terminal. A write signal WR from the memory access circuit 17 is input to a first terminal of the signal selector 21a. The write signal WR output from the common terminal of the signal selector 21a is applied to the write terminal of the external memory 16.
さらに、CPU12から出力されたLレベルの読出信号
RDは内部メモリ18へ入力されるとともにゲート22
bの他方の入力端子を介して信号セレクタ21bの第2
の端子へ入力される。この信号セレクタ21bの第1の
端子にはメモリアクセス回路17からの読出信号RDが
入力される。Furthermore, the L level read signal RD output from the CPU 12 is input to the internal memory 18 and is also input to the gate 22.
the second input terminal of the signal selector 21b via the other input terminal of the signal selector 21b.
input to the terminal. A read signal RD from the memory access circuit 17 is input to a first terminal of the signal selector 21b.
そして、この信号セレクタ21bの共通端子から出力さ
れる読出信号RDは外部メモリ16の読出端子へ印加さ
れる。The read signal RD output from the common terminal of the signal selector 21b is applied to the read terminal of the external memory 16.
そして、各信号セレクタ21a、21bは内部メモリ1
8から出力される前記選択信号aにて切換制御される。Each signal selector 21a, 21b is connected to the internal memory 1.
Switching is controlled by the selection signal a output from 8.
すなわち、通常、各信号セレクタ21a、21bはメモ
リアクセス回路17から出力される書込信号WRおよび
読出信号RDを選択して、外部メモリ16へ送出する。That is, normally, each signal selector 21a, 21b selects the write signal WR and read signal RD output from the memory access circuit 17 and sends it to the external memory 16.
そして、前記選択信号aがLレベルに変化すると、各ゲ
ート22a、22bから出力される書込信号WRおよび
読出信号RDを選択して外部メモリ16へ送出する。Then, when the selection signal a changes to L level, the write signal WR and read signal RD output from each gate 22a, 22b are selected and sent to the external memory 16.
また、外部メモリ16のレディ端子から出力されたレデ
ィ信号READYはメモリアクセス回路17へ入力され
るとともにゲート22dの他方の入力端子へ印加される
。内部メモリ18から出力されたレディ信号READY
はゲート22Cの他方の入力端子へ印加される。各ゲー
ト22c、22dのうちのいずれか一方から出力された
レディ信号READYはゲート22eを介してCPU1
2のレディ端子へ入力される。Further, the ready signal READY output from the ready terminal of the external memory 16 is input to the memory access circuit 17 and is applied to the other input terminal of the gate 22d. Ready signal READY output from internal memory 18
is applied to the other input terminal of gate 22C. The ready signal READY output from either one of the gates 22c and 22d is sent to the CPU 1 via the gate 22e.
It is input to the ready terminal of No.2.
前記内部メモリ18は、CPU12から入力した前記外
部メモリ16をデータアクセスするために必要なアドレ
ス等の制御データおよび外部メモリ16から読出したア
クセスデータを一時記憶する機能を有する。さらに、内
部メモリ18はCPU12から設定された制御データに
基づいて各セレクタ19a〜21bへ選択信号aを送出
する。そして、通常はHレベルの選択信号aを出力して
いる。したがって、各セレクタ19a〜21bの第1の
端子が共通端子に接続された状態である。The internal memory 18 has a function of temporarily storing control data such as addresses necessary for data accessing the external memory 16 input from the CPU 12 and access data read from the external memory 16. Further, the internal memory 18 sends a selection signal a to each selector 19a to 21b based on control data set by the CPU 12. Normally, the selection signal a at H level is output. Therefore, the first terminals of each of the selectors 19a to 21b are connected to the common terminal.
また、メモリアクセス回路17は、内部メモリ18に設
定された制御データに基づいて実際の外部メモリ16を
データアクセスして、得られたアクセスデータを内部メ
モリ18に格納する機能を有している。The memory access circuit 17 also has a function of accessing the actual external memory 16 based on control data set in the internal memory 18 and storing the obtained access data in the internal memory 18.
このような構成のメモリアクセス制御装置15において
、通常時は、内部メモリ18がHレベルの選択信号aを
出力しているので、各セレクタ198〜21bは、内部
メモリ18およびメモリアクセス回路17からのデータ
バス1 アドレスバス、書込信号WR,読出信号RDが
有効となっている。In the memory access control device 15 having such a configuration, since the internal memory 18 normally outputs the H-level selection signal a, each of the selectors 198 to 21b receives signals from the internal memory 18 and the memory access circuit 17. Data bus 1 Address bus, write signal WR, and read signal RD are valid.
そして、CPU12がメモリアクセス制御装置15を介
して外部メモリ16のデータを読出す場合は、デコーダ
23を介して内部メモリ18にLレベルの選択信号C8
1を送出する。しかして、内部メモリ18が稼働状態に
なる。その後、CPU12はデータバス13a、アドレ
スバス14aを介して内部メモリ18に外部メモリ16
をアクセスするのに必要な例えば読田開始番他や読出終
了番地等の制御データを書込む。When the CPU 12 reads data from the external memory 16 via the memory access control device 15, an L level selection signal C8 is sent to the internal memory 18 via the decoder 23.
Sends 1. Thus, the internal memory 18 becomes operational. Thereafter, the CPU 12 transfers data to the internal memory 18 via the data bus 13a and the address bus 14a to the external memory 16.
For example, the control data such as the reading start number, read end address, etc. necessary for accessing is written.
制御データの書込が終了すると、メモリアクセス回路1
7が動作して、外部メモリ16からHレベルのレディ信
号READYが出力されているのを確認の後、内部メモ
リ18に設定された制御データに基づいてアドレスセレ
クタ20.アドレスバス14bを介して外部メモリ16
に読出番地を指定し、信号セレクタ21bを介して外部
メモリ16に読出信号RDを印加する。そして、外部メ
モリ16の該当番地に記憶されているデータをデータバ
ス13.b、データセレクタ19bを介して読取り、読
取ったアクセスデータを内部メモリ18に書込む。この
ように、メモリアクセス回路17は内部メモリ18に設
定されている制御データの指定する全ての条件のデータ
の読出処理が終了すると、内部メモリ18からHレベル
のレディ信号READYをCPU12へ送出する。When writing of control data is completed, memory access circuit 1
After confirming that the external memory 16 is operating the H-level ready signal READY, the address selectors 20 . External memory 16 via address bus 14b
A read address is specified in , and a read signal RD is applied to the external memory 16 via the signal selector 21b. The data stored at the corresponding address in the external memory 16 is transferred to the data bus 13. b. Read through the data selector 19b and write the read access data into the internal memory 18. In this manner, when the memory access circuit 17 completes the process of reading data under all conditions specified by the control data set in the internal memory 18, it sends the H-level ready signal READY from the internal memory 18 to the CPU 12.
CPU12は内部メモリ18から出力されるHレベルの
レディ信号READYを受信すると、Lレベルの読出信
号RDを出力する。この状態ではゲート22bの他方の
端子に入力されている選択信号C82はHレベルである
ので、読出信号RDは内部メモリ18のみへ印加される
。そして、内部メモリ18に記憶されているアクセスデ
ータをデータセレクタ19a、データバス13aを介し
て読取る。When the CPU 12 receives the H level ready signal READY output from the internal memory 18, it outputs the L level read signal RD. In this state, the selection signal C82 input to the other terminal of the gate 22b is at H level, so the read signal RD is applied only to the internal memory 18. Then, the access data stored in the internal memory 18 is read via the data selector 19a and the data bus 13a.
以上がメモリアクセス制御装置15を介して外部メモリ
16からデータを読出す場合の各部の動作であるが、外
部メモリ16に対してメモリアクセス制御装置15を介
してデータを書込む場合の各部の動作もデータを読出す
場合の処理に準するので、説明を省略する。The above is the operation of each part when reading data from the external memory 16 via the memory access control device 15, but the operation of each part when writing data to the external memory 16 via the memory access control device 15. Since the process also corresponds to the process when reading data, the explanation will be omitted.
次に、何等かの異常が生じて、CPU12が外部メモリ
16を直接アスセスする必要が生じた場合には、CPU
12は内部メモリ18に対して、バイパス回路を使用す
ることを示す制御データを書込む。すると、内部メモリ
18は選択信号aのレベルをHレベルからLレベルへ反
転させる。その結果、各セレクタ19a〜21bの第2
の端子が共通端子に接続される。よって、CPU12の
データ端子に接続されたデータバス13aと外部メモリ
16に接続されたデータバス13bとかデータセレクタ
19a、19bを介して直接接続される。また、CPU
12のアドレス端子に接続されたアドレスバス14aと
外部メモリ16に接続されたアドレスバス14bとがア
ドレスセレクタ20を介して直接接続される。Next, if some abnormality occurs and the CPU 12 needs to directly access the external memory 16, the CPU
12 writes control data to the internal memory 18 indicating that the bypass circuit is to be used. Then, the internal memory 18 inverts the level of the selection signal a from the H level to the L level. As a result, the second
terminals are connected to the common terminal. Therefore, the data bus 13a connected to the data terminal of the CPU 12 and the data bus 13b connected to the external memory 16 are directly connected via the data selectors 19a and 19b. Also, CPU
The address bus 14a connected to the 12 address terminals and the address bus 14b connected to the external memory 16 are directly connected via the address selector 20.
そして、CPU12はデコーダ23を介してLレベルの
選択信号C52を出力すると、ゲート22a、22bが
CPU12からの書込信号RDおよび読出信号RDをそ
のまま通過させる。そして、各ゲート22a、22bか
ら出力される書込信号RDおよび読出信号RDは各信号
セレクタ21a、21bを通過して、外部メモリ16の
読出端子および書込端子に印加される。また、Lレベル
の選択信号C82は、外部メモリ16から出力されたレ
ディ信号READY信号をゲート22d22eを介して
CPU12のレディ端子へ入力させる。Then, when the CPU 12 outputs the L level selection signal C52 via the decoder 23, the gates 22a and 22b allow the write signal RD and read signal RD from the CPU 12 to pass through as they are. The write signal RD and read signal RD output from each gate 22a, 22b pass through each signal selector 21a, 21b, and are applied to the read terminal and write terminal of external memory 16. Further, the L level selection signal C82 inputs the ready signal READY signal output from the external memory 16 to the ready terminal of the CPU 12 via the gate 22d22e.
すなわち、メモリアクセス制御装置15内に、CPU1
2が外部メモリ16を直接アクセスするためのバイパス
回路か形成される。That is, within the memory access control device 15, the CPU 1
A bypass circuit 2 for directly accessing the external memory 16 is formed.
このようなバイパス回路が形成された状態においては、
CPU12はこのバイパス回路を介して通常のメモリを
アクセスする場合と全く同様に、外部メモリ16に対す
るデータアクセスが可能となる。When such a bypass circuit is formed,
The CPU 12 can access data to the external memory 16 via this bypass circuit in exactly the same way as when accessing a normal memory.
このように構成されたメモリアクセス制御装置15が組
込まれた情報処理システムにおいて、CPU12がメモ
リアクセス制御装置15を介して外部メモリ16を間接
的にアクセスする過程で何等かの異常が生じた場合には
、CPUI 2は、先ず、メモリアクセス制御・装置1
5を動作状態に維持したまま、例えば別のROM等に記
憶された診断プログラムを起動して異常発生箇所および
異常原因解析の究明処理を行う。すなわち、内部メモリ
18に診断のための制御データを設定して、メモリアク
セス回路17てもって外部メモリ16に既知データを書
込ませ、後で同一アドレスのデータをメモリアクセス回
路17でもって読取り、内部メモリ18に格納させる。In an information processing system in which the memory access control device 15 configured as described above is incorporated, if an abnormality occurs in the process in which the CPU 12 indirectly accesses the external memory 16 via the memory access control device 15, First, the CPU 2 starts with the memory access control/device 1.
5 in an operating state, a diagnostic program stored in, for example, another ROM is activated to investigate the location of the abnormality and analyze the cause of the abnormality. That is, control data for diagnosis is set in the internal memory 18, known data is written in the external memory 16 by the memory access circuit 17, and data at the same address is later read by the memory access circuit 17 and the internal It is stored in the memory 18.
そして、この内部メモリ18のデータをCPU12で読
取って、書込んだデータと比較対称することによって、
異常が外部メモリ16自体の異常であるか、メモリアク
セス制御装置15を含めたデータバス、アドレスバス、
各制御線の異常であるかを判断する。Then, by reading the data in the internal memory 18 with the CPU 12 and comparing it with the written data,
Whether the abnormality is an abnormality in the external memory 16 itself, or whether the data bus including the memory access control device 15, address bus,
Determine whether each control line is abnormal.
以上の診断処理によって、外部メモリ16が正常である
と判断されると、次に、バイパス回路を使用して同様の
診断処理を行う。すなわち、CPU12は、内部メモリ
18にバイパス回路使用の制御データを送出し、デコー
ダ23を介してLレベルの選択信号CS2を出力して、
メモリアクセス制御装置15内に、前述したバイパス回
路を形成させる。そして、別のROM等に記憶された診
断プログラムを起動して異常発生箇所および異常原因解
析の究明処理を行う。If it is determined that the external memory 16 is normal through the above diagnostic processing, then similar diagnostic processing is performed using the bypass circuit. That is, the CPU 12 sends control data for use of the bypass circuit to the internal memory 18, outputs an L level selection signal CS2 via the decoder 23, and
The above-described bypass circuit is formed within the memory access control device 15. Then, a diagnostic program stored in another ROM or the like is activated to perform investigation processing to identify the location where the abnormality has occurred and analyze the cause of the abnormality.
すなわち、外部メモリ16の予め指定されたアドレスに
既知のデータを書込み、後から、該当アドレスに記憶さ
れているデータを読取って、読取ったデータが書込んだ
既知のデータに一致するか否かを調べる。そして、この
診断プログラムを実行した結果正常であれば、メモリア
クセス制御装置15内の内部メモリ18やメモリアクセ
ス回路17等の回路部材等に何等かの異常が発生したと
判断できる。In other words, known data is written to a pre-designated address in the external memory 16, and later the data stored in the corresponding address is read to determine whether the read data matches the written known data. investigate. If the result of running this diagnostic program is normal, it can be determined that some abnormality has occurred in the internal memory 18, memory access circuit 17, and other circuit members in the memory access control device 15.
このように、通常の診断処理とバイパス回路を使用した
診断処理との2回の診断処理を実行することによって、
異常発生箇所を■外部メモリ16自体の故障、■メモリ
アクセス制御装置15の内部メモリ18やメモリアクセ
ス回路17等の電子構成部材の故障、■外部メモリ15
に対する各バスおよび制御線の故障であるかを比較的容
易に推測できる。In this way, by performing two diagnostic processes, the normal diagnostic process and the diagnostic process using the bypass circuit,
The location of the abnormality can be identified as: ■ Failure of the external memory 16 itself, ■ Failure of electronic components such as the internal memory 18 and memory access circuit 17 of the memory access control device 15, and ■ Failure of the external memory 15.
It is relatively easy to guess whether each bus or control line is at fault.
このようにメモリアクセス制御装置15内にCPU12
が外部メモリ16を直接アクセスするためのバイパス回
路を設けることによって、異常発生時の異常発生箇所を
メモリアクセス制御装置15自体かそれ以外の各バスお
よび制御線であるかを簡単に推測できるので、故障原因
を短時間で究明できる。また、特にメモリアクセス制御
装置15に対する高い技術知識を有しない操作者でも容
易に異常発生箇所を推測できる。In this way, the CPU 12 is installed in the memory access control device 15.
By providing a bypass circuit for directly accessing the external memory 16, it is possible to easily guess whether the abnormality is occurring in the memory access control device 15 itself or other buses and control lines when an abnormality occurs. The cause can be determined in a short time. Further, even an operator who does not have particularly high technical knowledge regarding the memory access control device 15 can easily guess the location where an abnormality has occurred.
また、診断プログラムも複雑な診断プログラムを準備す
る必要がなく、通常の汎用診断プログラムを用いること
ができる。Moreover, there is no need to prepare a complicated diagnostic program, and a normal general-purpose diagnostic program can be used.
また、5個めセレクタ19a〜21bと5個のゲート2
2a〜22e等のごく安価な回路部品を追加するのみで
バイパス回路が形成されるので、従来のメモリアクセス
制御装置に比較して製造費が大幅に上昇することはない
。In addition, the fifth selectors 19a to 21b and the five gates 2
Since the bypass circuit is formed by simply adding very inexpensive circuit components such as 2a to 22e, manufacturing costs do not increase significantly compared to conventional memory access control devices.
なお、本発明は上述した実施例に限定されるものではな
い。例えば、内部メモリ18の容量か少なく、メモリア
クセス制御装置15内に使用しているアドレスバス14
aのみでは、外部メモリ16の全ての記憶領域をアクセ
スできない場合には、第2図に示すように、アドレスラ
ッチ回路24を設けてでもよい。すなわち、不足分のア
ドレスをCPU12からのデータバス1.3 aを介し
てアドレスラッチ回路24に予め設定しておくことによ
り、前述した診断処理を行った後に、アドレスラッチ回
路24の設定値を変更していくことで、外部メモリ16
の全ての記憶領域に亘って診断処理を実行できる。Note that the present invention is not limited to the embodiments described above. For example, if the capacity of the internal memory 18 is small, the address bus 14 used in the memory access control device 15 may
If it is not possible to access all of the storage areas of the external memory 16 using only a, an address latch circuit 24 may be provided as shown in FIG. That is, by setting the missing address in advance in the address latch circuit 24 via the data bus 1.3a from the CPU 12, the set value of the address latch circuit 24 can be changed after the above-described diagnostic process is performed. By doing this, the external memory 16
Diagnostic processing can be executed across all storage areas of the system.
さらに、実施例においては、外部メモリ16としてデュ
アルポートRAMを使用したが、特にデュアルポートR
AMである必要はなく、通常のROMやRAMの場合で
あっても同様の効果を得ることができる。Furthermore, in the embodiment, a dual port RAM is used as the external memory 16, but in particular, a dual port RAM is used as the external memory 16.
It is not necessary to use AM, and the same effect can be obtained even when using normal ROM or RAM.
さらに、実施例においては、メモリアクセス制御装置1
5をセミカスタムLISで形成されたゲートアレイを用
いたが、例えばフルカスタムLSI等を含む一般のAS
ICにも十分適用できる。Furthermore, in the embodiment, the memory access control device 1
5, we used a gate array formed by a semi-custom LIS, but it is also possible to use a general AS including, for example, a full custom LSI.
It can also be fully applied to IC.
[発明の効果]
以上説明したように本発明のメモリアクセス制御装置に
よれば、内部メモリやメモリアクセス回路をバイパスす
るバイパス回路を設けている。[Effects of the Invention] As described above, the memory access control device of the present invention is provided with a bypass circuit that bypasses the internal memory and the memory access circuit.
したがって、外部制御部かこのメモリアクセス制御装置
を介して外部メモリに対して間接的にアクセス処理を実
行している過程で異常が発生した場合には、このバイパ
ス回路を用いてCPU等の外部制御部が直接外部メモリ
をアクセス可能となり、異常発生箇所を容易に特定でき
、もって異常状態を短時間で解消できる。Therefore, if an abnormality occurs while the external control unit is indirectly accessing the external memory via this memory access control device, this bypass circuit is used to control the external memory such as the CPU. The unit can directly access the external memory, the location where the abnormality has occurred can be easily identified, and the abnormal state can be resolved in a short time.
第1図は本発明の一実施例に係わるメモリアクセス制御
装置を組込んだ情報処理システムの要部を示すブロック
図、第2図は本発明の他の実施例に係わるメモリアクセ
ス制御装置の要部を取出して示すブロック図、第3図は
従来のメモリアクセス制御装置が組込まれた情報処理シ
ステムの要部を示すブロック図である。
12−CPU、13a、13b−・・データバス、14
a、14b・・・アドレスバス、15・・・メモリアク
セス制御装置、16・・・外部メモリ、17・・・メモ
リアクラス回路、18・・・内部メモリ、19a19b
・・・データセレクタ、2o・・・アドレスバスク9.
218.21b・・・信号セレクタ、23・・・デコー
ダ。
出願人代理人 弁理士 鈴江武彦FIG. 1 is a block diagram showing main parts of an information processing system incorporating a memory access control device according to one embodiment of the present invention, and FIG. 2 is a block diagram showing main parts of a memory access control device according to another embodiment of the present invention. FIG. 3 is a block diagram showing main parts of an information processing system incorporating a conventional memory access control device. 12-CPU, 13a, 13b--data bus, 14
a, 14b...Address bus, 15...Memory access control device, 16...External memory, 17...Memory class circuit, 18...Internal memory, 19a19b
...Data selector, 2o...Address busk9.
218.21b...Signal selector, 23...Decoder. Applicant's agent Patent attorney Takehiko Suzue
Claims (1)
モリアクセス回路は、外部制御部から内部メモリに設定
された制御データに基づいて、外部に接続された外部メ
モリに対するデータアクセスを行い、得られたアクセス
データを前記内部メモリに格納し、この内部メモリにア
クセスデータが格納された後に、前記外部制御部から前
記内部メモリに対するデータアクセスが実行されるメモ
リアクセス制御装置において、 前記外部制御部が前記外部メモリを前記外部メモリ及び
メモリアクセス回路を介さずに直接データアクセスする
ためのバイパス回路と、前記外部制御部からの選択指令
に基づいて前記外部メモリに対する入出力端子を前記メ
モリアクセス回路側から前記バイパス回路側に切換接続
する選択回路とを備えたメモリアクセス制御装置。[Claims] The memory access circuit includes an internal memory and a memory access circuit, and the memory access circuit controls data access to an external memory connected to the outside based on control data set in the internal memory from an external control unit. and stores the obtained access data in the internal memory, and after the access data is stored in the internal memory, the external control unit executes data access to the internal memory. a bypass circuit for a control unit to directly access data from the external memory without going through the external memory and a memory access circuit; A memory access control device comprising a selection circuit that switches and connects from the circuit side to the bypass circuit side.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2196324A JPH0488450A (en) | 1990-07-26 | 1990-07-26 | Memory access controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2196324A JPH0488450A (en) | 1990-07-26 | 1990-07-26 | Memory access controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0488450A true JPH0488450A (en) | 1992-03-23 |
Family
ID=16355928
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2196324A Pending JPH0488450A (en) | 1990-07-26 | 1990-07-26 | Memory access controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0488450A (en) |
-
1990
- 1990-07-26 JP JP2196324A patent/JPH0488450A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2001167005A (en) | Method and circuit for diagnosing memory and semiconductor memory device | |
| KR20060110359A (en) | Devices and methods for integrated systems for critical safety computer systems in automobiles | |
| JPH0488450A (en) | Memory access controller | |
| JPH1040130A (en) | Microcomputer | |
| JP4748871B2 (en) | One-chip microcontroller system | |
| JPS62192100A (en) | Dynamic type semiconductor memory device | |
| JP2635637B2 (en) | In-system memory test equipment | |
| JPH07110790A (en) | Memory diagnostic device | |
| JPH0324657A (en) | Bus diagnostic system | |
| JPH02173852A (en) | Bus diagnostic device | |
| JPH0223432A (en) | Self-diagnostic system | |
| JPS6032213B2 (en) | Logical unit diagnostic method | |
| JPH02281341A (en) | Write data confirming method for debugging | |
| JP3482788B2 (en) | Failure diagnosis method | |
| KR0161126B1 (en) | Apparatus and method for searching the signal line status on the system bus in the computer | |
| JP3012402B2 (en) | Information processing system | |
| JPS62143151A (en) | Diagnosis system for common memory | |
| JPH03292540A (en) | Diagnostic device for abnormality of computer | |
| JPH02171991A (en) | Control method for ic card | |
| JPH04192040A (en) | Debugging device | |
| JPH01309155A (en) | Memory controller | |
| JPS63281542A (en) | System for confirming memory action | |
| JPH03268149A (en) | Memory fault detection system | |
| JPS63310033A (en) | Multiprocessor diagnostic system | |
| JPS59226955A (en) | Program debug device |