JPS61139858A - Access control system for dual port memory - Google Patents

Access control system for dual port memory

Info

Publication number
JPS61139858A
JPS61139858A JP59262218A JP26221884A JPS61139858A JP S61139858 A JPS61139858 A JP S61139858A JP 59262218 A JP59262218 A JP 59262218A JP 26221884 A JP26221884 A JP 26221884A JP S61139858 A JPS61139858 A JP S61139858A
Authority
JP
Japan
Prior art keywords
memory
common bus
system common
port memory
dual port
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.)
Granted
Application number
JP59262218A
Other languages
Japanese (ja)
Other versions
JPH0319573B2 (en
Inventor
Minoru Koyama
実 小山
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP59262218A priority Critical patent/JPS61139858A/en
Publication of JPS61139858A publication Critical patent/JPS61139858A/en
Publication of JPH0319573B2 publication Critical patent/JPH0319573B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To collect securely information for trouble analysis when abnormality occurs by allowing access to only one block of a dual port memory from a system common bus side normally and allowing access to an optionally specified block when abnormality occurs. CONSTITUTION:A system common bus interface part is provided with a memory block specifying circuit which specifies from the side of the system common bus 2 which block of the dual port memory 4 is selected and accessed and a lock circuit 23 which is allowed to function only when the abnormal state of the dual port memory 4 is detected. The memory specifying circuit is normally off through the lock circuit 23 to allow access to only one predetermined block area of the dual port memory 4 from the side of the system common bus 2 and if a microprocessor becomes unable to operate in the abnormal state, the memory block specifying circuit is put in operation to access a desired memory block from the side of the system common bus 2.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、計算機システムの共通バスに接続される入出
力制御装置等のプロセッサ内蔵装置内に配置され、シス
テム共通バスと内部マイクロプロセッサバスとの双方か
らアクセス可能なデュアルポートメモリのアクセス制御
方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention is arranged in a device with a built-in processor such as an input/output control device connected to a common bus of a computer system, and is connected to a system common bus and an internal microprocessor bus. This invention relates to an access control method for a dual-port memory that can be accessed from both sides.

〔従来の技術〕[Conventional technology]

計算機システムにおいては、そのシステム共通バスに接
続されるマイクロプロセッサ内蔵の種々の装置間の情報
交換を効率良く行うための手段として、各装置内にシス
テム共通バスと内部のマイクロプロセッサバスとに夫々
インタフェースするデュアルポートメモリを設ける方法
がある。
In computer systems, as a means of efficiently exchanging information between various devices with built-in microprocessors connected to the system common bus, each device has an interface between the system common bus and the internal microprocessor bus. There is a way to provide dual port memory.

例えば、人出力制御装置においては、中央処理装置から
のコマンドの設定や、ステータスの続出しのための制御
レジスタをデュアルボートメモリで実現している。とこ
ろで、最近、集積度が高く大容量の半導体メモリが安価
に入手することができるので、それらを使用して、少な
いハードウェー量にも拘わらず大容量のデュアルポート
メモリを構成することができる。したがって、そのデュ
アルポートメモリの記憶領域の一部を装置の制御レジス
タ領域として使用し、他の部分は内蔵マイクロプロセッ
サのためのスタック領域や作業領域あるいはデータバッ
ファ領域など種々の用途に使用するのが普通である。
For example, in a human output control device, control registers for setting commands from the central processing unit and continuously outputting status are realized using dual port memory. Incidentally, recently, highly integrated and large capacity semiconductor memories have become available at low cost, so using them it is possible to construct a large capacity dual port memory despite a small amount of hardware. Therefore, it is recommended to use part of the storage area of the dual port memory as the control register area of the device, and use the other part for various purposes such as the stack area, work area, or data buffer area for the built-in microprocessor. It's normal.

以上のように使用されるデュアルポートメモリにおいて
、本来システム共通バス側からアクセスする必要がある
のは、制御レジスタ領域であり、その他の領域は、内部
マイクロプロセッサが、中央処理装置からのコマンドに
従って入出力機器を制御するための内部処理に使用され
るので、その領域に対してもシステム共通バス側からの
アクセスを可能とすると、制御装置の誤動作を引き起こ
す危険がある。
In the dual-port memory used as described above, it is the control register area that originally needs to be accessed from the system common bus side, and other areas are accessed by the internal microprocessor according to commands from the central processing unit. Since this area is used for internal processing to control output devices, if this area is also accessible from the system common bus side, there is a risk of malfunction of the control device.

そのために、システム共通バス側のデュアルポートメモ
リに対するアドレス割付範囲を、デュアルポートメモリ
のうちの一部として割り当てられている制御レジスタ領
域相当部分に絞り、システム共通バス側からは制御レジ
スタ領域しかアクセスできないような回路構成が採られ
ている。
To this end, the address allocation range for the dual port memory on the system common bus side is narrowed down to the portion corresponding to the control register area allocated as part of the dual port memory, and only the control register area can be accessed from the system common bus side. A circuit configuration like this is adopted.

この種の入出力制御装置におけるデュアルポートメモリ
回路としては、従来、第2図に示すように構成されてい
る。
A dual port memory circuit in this type of input/output control device has conventionally been configured as shown in FIG.

すなわち、入出力制御装置1は、外部の中央処理装置に
接続されたシステム共通バス2と、内蔵されたマイクロ
プロセッサ(図示せず)に接続された内部マイクロプロ
セッサバス3とに夫々インタフェースするデュアルポー
トメモリ4を有する。
That is, the input/output controller 1 has dual ports that interface to a system common bus 2 connected to an external central processing unit and an internal microprocessor bus 3 connected to an internal microprocessor (not shown). It has memory 4.

ここで、システム共通バス2、内部マイクロプロセッサ
バス3及びメモリ (アドレス)バス5のアドレスバス
の本数は、夫々16本(SA15〜0)、16本(IA
15〜0)及び12本(MA12〜1)であり、これら
のうち、5A15.lA15及びMA12が最上位ビッ
ト(MSB)である、また、デュアルポートメモリ4は
8キロバイトの容量を持つものとする。
Here, the numbers of the system common bus 2, internal microprocessor bus 3, and memory (address) bus 5 are 16 (SA15 to 0) and 16 (IA
15-0) and 12 (MA12-1), among these, 5A15. It is assumed that lA15 and MA12 are the most significant bits (MSB), and that dual port memory 4 has a capacity of 8 kilobytes.

そして、入出力制御装置1の内部マイクロプロセッサバ
ス°3側からデュアルポートメモリ4をアクセスすると
、内部マイクロプロセッサバス3のアドレスlA15〜
13がアドレス比較回路16に取り込まれ、デュアルポ
ートメモリ4がアクセスされていることを示すメモリ選
択信号gが出力され、これがメモリアクセス制御回路1
7に供給される。
Then, when the dual port memory 4 is accessed from the internal microprocessor bus °3 side of the input/output control device 1, the addresses lA15 to IA15 of the internal microprocessor bus 3 are accessed.
13 is taken into the address comparison circuit 16, and a memory selection signal g indicating that the dual port memory 4 is being accessed is output.
7.

このメモリアクセス制御回路17では、メモリ選択信号
gと、アドレス最下位ビット(LSB)であるIAOと
を受け、メモリアクセス制御信号としての上位バイトメ
モリチップセレクト信号り下位バイトメモリチップセレ
クト信号i及びメモリライトイネーブル信号jの生成条
件とすると共に、メモリアクセス排他制御信号lを出力
し、これによりデュアルポートメモリ4のアクセス要求
を行い、それに対する許可を得た後、即ちデュアルポー
トメモリアクセス権を獲得した後、アドレスバッファ制
御信号kを有効とし、アドレスバッファ18のゲートを
開く。
This memory access control circuit 17 receives the memory selection signal g and IAO, which is the least significant bit (LSB) of the address, and outputs an upper byte memory chip select signal as a memory access control signal, a lower byte memory chip select signal i, and a memory chip select signal i. In addition to the generation condition of the write enable signal j, the memory access exclusive control signal l is outputted, thereby requesting access to the dual port memory 4, and after obtaining permission for the request, that is, acquiring the right to access the dual port memory. After that, the address buffer control signal k is enabled and the gate of the address buffer 18 is opened.

これにより、アドレスバッファ18は、アドレスlAl
2〜1をメモリバス5側に出力し、デュアルポートメモ
リ4を構成する各メモリチップのアドレス入力端子にア
ドレスMA12〜lが与えられる。
As a result, the address buffer 18 has the address lAl
2 to 1 are output to the memory bus 5 side, and addresses MA12 to MA1 are applied to the address input terminals of each memory chip constituting the dual port memory 4.

デュアルポートメモリ4の容量は8キロバイトであるか
ら、アドレスlAl2〜0の13ビツトで全領域をアド
レッシングすることができる。す  −なわち、内部マ
イクロプロセッサバス3側からデュアルポートメモリ4
の全領域をアクセスできることになる。
Since the capacity of the dual port memory 4 is 8 kilobytes, the entire area can be addressed with 13 bits of addresses lAl2-0. - That is, from the internal microprocessor bus 3 side to the dual port memory 4
You will be able to access the entire area.

次に、入出力制御装置1の制御レジスタ領域として25
6バイトがシステム共通バスアドレス空間に割り付けら
れ、デュアルポートメモリ4内の256バイト分の領域
が制御レジスタ用に使用されるものとする。
Next, as the control register area of the input/output control device 1, 25
It is assumed that 6 bytes are allocated to the system common bus address space and a 256 byte area in the dual port memory 4 is used for the control register.

システム共通バス2側からデュアルポートメモリ4内の
制御レジスタ領域をアクセスすると、256バイト分を
アドレッシングするアドレスSA7〜0を除いた上位ア
ドレス5A15〜8をアドレス比較回路11が受け、こ
れによりデュアルポートメモリ4がアクセスされている
ことを示すメモリ選択信号aをメモリアクセス制御回路
12に出力する。
When the control register area in the dual port memory 4 is accessed from the system common bus 2 side, the address comparison circuit 11 receives the upper addresses 5A15 to 8 excluding addresses SA7 to 0 that address 256 bytes, and this causes the dual port memory A memory selection signal a indicating that memory 4 is being accessed is output to the memory access control circuit 12.

このメモリアクセス制御回路12は、内部マイクロプロ
セッサバス3側のメモリアクセス制御皿回路17と同様
に、これに供給されるメモリ選択信号a、アドレスSA
Oをメモリアクセス制御信号としての上位バイトメモリ
チップセレクト信号す。
This memory access control circuit 12, like the memory access control circuit 17 on the internal microprocessor bus 3 side, receives a memory selection signal a and an address SA.
0 is the upper byte memory chip select signal as the memory access control signal.

下位バイトメモリチップセレクト信号C及びメモリライ
トイネーブル信号dを生成する条件とし、その作用もメ
モリアクセス制御回路17と同様である。
This is the condition for generating the lower byte memory chip select signal C and the memory write enable signal d, and its operation is similar to that of the memory access control circuit 17.

また、入出力制御装置1は、アドレス設定スイッチ回路
15を有し、このアドレス設定スイッチ回路15は、予
めデュアルポートメモリ4の8キロバイトを256バイ
トバウンダリに32のブロック領域に分割し、その何れ
の256バイト領域を制御レジスタ領域として使用する
かを5ビツトのスイッチにより設定する。
In addition, the input/output control device 1 has an address setting switch circuit 15, which divides 8 kilobytes of the dual port memory 4 into 32 block areas with 256-byte boundaries in advance, and selects which one of the block areas. A 5-bit switch determines whether the 256-byte area is to be used as a control register area.

そして、前記メモリアクセス制御回路12から、アドレ
スバッファ制御信号eが出力されると、アドレスバッフ
ァ13及び14が作動状態となり、アドレスSA7〜1
及びアドレス設定スイッチ回路15の設定値を夫々メモ
リバスアドレスMA7〜1とMAO(上位及び下位ハイ
トメモリチップセレクト信号す、cに反映される)で2
56バイト領域内の所望のバイトあるいはワードが指定
される。例えば、アドレス設定スイッチ回路15にバイ
ナリ“ooooo”を設定すればブロック“0”が、バ
イナリ“11111”を設定すればブロック31が夫々
設定される。
Then, when the address buffer control signal e is output from the memory access control circuit 12, the address buffers 13 and 14 are activated, and the addresses SA7 to SA1 are activated.
and set values of the address setting switch circuit 15 are set at memory bus addresses MA7-1 and MAO (reflected on upper and lower height memory chip select signals S and C), respectively.
The desired byte or word within the 56-byte area is designated. For example, if binary "oooooo" is set in the address setting switch circuit 15, block "0" is set, and if binary "11111" is set, block 31 is set.

ところで、マイクロプロセッサ内蔵の制御装置に何等か
の異常が発生して、マイクロプロセッサが動作不能状態
となり、装置がその機能を果たせなくなった場合、その
障害解析にとって、マイクロプロセッサの使用するデュ
アルポートメモリ4のスタック領域や作業領域の内容及
びマイクロプロセッサによる内部処理の履歴情報などが
有効なものとなる。
By the way, if some abnormality occurs in the control device with a built-in microprocessor, and the microprocessor becomes inoperable and the device is unable to perform its functions, the dual port memory 4 used by the microprocessor is useful for failure analysis. The contents of the stack area and work area and the history information of internal processing by the microprocessor are useful.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、上記従来のデュアルポートメモリアクセ
ス制御方式においては、システム共通バス側からのデュ
アルポートメモリのアクセスが制御レジスタ領域にのみ
限定されているので、上記したように、制御装置に異常
が発生したときの障害解析のためにシステム共通バス側
から得られる情報は、制御レジスタ領域内に用意される
ステータスレジスタ領域に設定されているものだけとな
り、しかも、このステータスレジスタ領域への情報の設
定は、内部マイクロプロセッサが実行するものであるか
ら、異常状態の発生によってマイクロプロセッサが動作
不能状態となるようなときには、情報の設定が正常に行
われるという保証はない。また、中央処理装置からのコ
マンドによって装置内部の情報をシステム共通バス側に
吐き出させるという手段もあるが、この場合もその処理
を実行するのは内部マイクロプロセッサであり、装置に
異常状態が発生した状態でマイクロプロセッサに正常な
コマンド処理の実行を期待するには無理がある。
However, in the conventional dual-port memory access control method described above, access to the dual-port memory from the system common bus side is limited only to the control register area, so when an abnormality occurs in the control device as described above, The information that can be obtained from the system common bus side for failure analysis is only that set in the status register area prepared in the control register area.Moreover, the information set in this status register area is internal Since it is executed by a microprocessor, there is no guarantee that the information will be set correctly if the microprocessor becomes inoperable due to the occurrence of an abnormal condition. There is also a method of discharging the internal information of the device to the system common bus side using a command from the central processing unit, but in this case too, it is the internal microprocessor that executes the processing, and if an abnormal state occurs in the device. It is unreasonable to expect the microprocessor to perform normal command processing under these conditions.

このように、従来のデュアルポートメモリアクセス制御
方式にあっては、異常状態発生により動作不能となった
装置の障害解析のために、システム共通バス側から制御
装置に関する確実で十分な情報の収集が行えないという
問題点があった。
In this way, with the conventional dual-port memory access control method, it is difficult to collect reliable and sufficient information about the control device from the system common bus side in order to analyze the failure of a device that has become inoperable due to an abnormal condition. The problem was that it couldn't be done.

そこで、本発明は、制御装置が異常状態となって動作不
能となった場合には、障害解析用の情報収集のために、
簡易な手順で、システム共通バス側からデュアルポート
メモリにおける装置制御レジスタ領域のみならず、他の
任意の領域をアクセスすることが可能なデュアルポート
メモリアクセス制御方式を提供することを目的とする。
Therefore, the present invention provides a system for collecting information for failure analysis when a control device becomes abnormal and becomes inoperable.
An object of the present invention is to provide a dual port memory access control method that allows access not only to a device control register area in a dual port memory but also to any other area from the system common bus side using a simple procedure.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点を解決するために、本発明は、システム共通
バスに接続されプロセッサを内蔵する装置内に設けられ
且つ当該システム共通バス側及び内部プロセッサバス側
の双方からアクセス可能なデュアルポートメモリにおい
て、前記システム共通パスとのインタフェース部に、前
記デュアルポートメモリの何れのブロックを選択してア
クセスするかをシステム共通バス側から指定可能とする
メモリブロック指定回路と、該メモリブロック指定回路
をデュアルポートメモリが属する装置が異常状態となっ
たことを検出したときのみ機能させるロック回路とを設
け、通常時には、システム共通バス側からは、デュアル
ポートメモリのうちの1つのブロック領域のみアクセス
可能とし、デュアルポートメモリの属する装置が異常状
態となったときには、前記メモリブロック指定回路で指
定する前記デュアルポートメモリの任意のブロックに対
して、そのアクセスを可能にすることを特徴とする。
In order to solve the above problems, the present invention provides a dual port memory that is connected to a system common bus and is provided in a device containing a built-in processor, and that is accessible from both the system common bus side and the internal processor bus side. A memory block designation circuit that allows specifying which block of the dual port memory to be selected and accessed from the system common bus side is provided at an interface with the system common path, and the memory block designation circuit is connected to the dual port memory. A lock circuit is provided that functions only when an abnormal state is detected in the device to which the The present invention is characterized in that when a device to which the memory belongs is in an abnormal state, access to any block of the dual port memory designated by the memory block designation circuit is enabled.

〔作用〕[Effect]

本発明は、システム共通バスインタフェース部に、デュ
アルポートメモリの何れのブロックを選択してアクセス
するかをシステム共通バス側から手旨定可能とするメモ
リブロックI勘定回路と、該メモリブロック指定回路を
デュアルポートメモリが属する装置が異常状態となった
ことを検出したどきのみ機能させるロック回路とを設け
、デュアルポートメモリの属する装置が正常動作時には
、ロック回路によりメモリブロック指定回路を非作動状
態として、システム共通バス側からデュアルポートメモ
リのうちの予め定められた1ブロツク領域のみアクセス
可能とし、異常状態によりマイクロプロセッサが動作不
能状態となったときには、前記メモリブロック指定回路
を作動状態として、システム共通バス側からメモリブロ
ック指定回路に対し、所望のメモリブロック番号を設定
することにより、デュアルポートメモリの8亥当するフ
゛ロックに対するアクセスを装置正常動作時と全く同様
に行うことができる。
The present invention provides a system common bus interface with a memory block I accounting circuit that enables a system common bus to specify which block of dual port memory is to be selected and accessed, and a memory block designation circuit. A lock circuit is provided that operates only when it is detected that the device to which the dual port memory belongs is in an abnormal state, and when the device to which the dual port memory belongs is operating normally, the lock circuit deactivates the memory block designation circuit. Only one predetermined block area of the dual port memory can be accessed from the system common bus side, and when the microprocessor becomes inoperable due to an abnormal condition, the memory block designation circuit is activated and the system common bus By setting a desired memory block number to the memory block designation circuit from the side, access to the eight corresponding blocks of the dual port memory can be performed in exactly the same manner as during normal operation of the device.

〔実施例〕〔Example〕

第1図は本発明の一実施例を示すブロック図である。 FIG. 1 is a block diagram showing one embodiment of the present invention.

第1図において、前記第2図との対応部分には同一符号
を付し、その詳細説明はこれを省略するが、本発明にお
いては、入出力制御装置1の制御システム共通バス2と
のインタフェース部に、メモリブロック指定回路として
のメモリブロック指定レジスタ21と、アドレスバッフ
ァ22と、ロック回路23とが設けられている。
In FIG. 1, parts corresponding to those in FIG. 2 are given the same reference numerals, and a detailed explanation thereof will be omitted, but in the present invention, the interface with the control system common bus 2 of the input/output control device 1 A memory block designation register 21 as a memory block designation circuit, an address buffer 22, and a lock circuit 23 are provided in the section.

ロック回路23は1、メモリブロック指定レジスタ24
.ラッチ回路25.インバータ26及びAND回路27
,28.29を有する。
Lock circuit 23 is 1, memory block specification register 24
.. Latch circuit 25. Inverter 26 and AND circuit 27
, 28.29.

レジスタアクセス制御回路24は、システム共通バスア
ドレス空間上の装置制御レジスタ領域のアドレスとは異
なるアドレスにマツピングされた5ビツトのメモリアド
レスデータがデータバスSD4〜0を介して供給される
と、例えば論理値“1”のレジスタライト信号mをAN
Dゲート27の一方の入力端に出力する。このANDゲ
ート27の他方の入力端には、人出力制御1置工の異常
状態を検出する異常状態検出回路30からのダウン信号
nが供給される。この異常状態検出回路30は、入出力
制御装置1に何等かの異常状態が発生すると、論理値“
1”のダウン信号nを出力し、このダウン信号nは、A
NDゲート27に供給されると共に、図示しない内部マ
イクロプロセッサにも供給され、この内部マイクロプロ
セッサを正常動作状態から動作不能状態への遷移を促す
ものであり、本発明装置、従来装置にかかわらず、この
種の装置に常用されているものを使用する。
When 5-bit memory address data mapped to an address different from the address of the device control register area on the system common bus address space is supplied via the data buses SD4 to SD0, the register access control circuit 24 performs a logical AN register write signal m with value “1”
It is output to one input terminal of the D gate 27. The other input terminal of the AND gate 27 is supplied with a down signal n from an abnormal state detection circuit 30 that detects an abnormal state of the manual operation control 1. This abnormal state detection circuit 30 detects a logical value " when any abnormal state occurs in the input/output control device 1
A down signal n of 1" is output, and this down signal n is
It is supplied to the ND gate 27 and also to an internal microprocessor (not shown) to prompt the internal microprocessor to transition from a normal operating state to an inoperable state. Use what is commonly used for this type of equipment.

メモリブロック指定レジスタ21は、ANDゲート27
からの論理値“1”の出力が入力されている時点でシス
テム共通バス2側からデータバスSD4〜0の5本のデ
ータ信号線を介して伝送される5ビツトのメモリブロッ
ク指定データを書込み可能に構成され、書き込まれたデ
ータ値は常時アドレスバッファ22に出力する。
The memory block designation register 21 is an AND gate 27
It is possible to write the 5-bit memory block designation data transmitted from the system common bus 2 side via the 5 data signal lines of data buses SD4 to SD0 at the time when the logical value "1" output is input from the system common bus 2 side. The written data value is always output to the address buffer 22.

ランチ回路25は前記ANDゲート27の出力信号をラ
ッチし、そのランチ信号をレジスタセットステータス信
号pとして直接ANDゲート2日の一方の入力端に供給
すると共に、インバータ26を介してANDゲート29
の一方の入力側に供給する。なお、ラッチ回路25は、
人出力制御1装置1がリセットにより初期化された場合
のみ、初期化され、その際には、レジスタセットステー
タ大信号pを論理値“0”とする。
The launch circuit 25 latches the output signal of the AND gate 27, supplies the launch signal directly to one input terminal of the AND gate 2 as the register set status signal p, and also supplies the launch signal to one input terminal of the AND gate 29 via the inverter 26.
to one input side of the Note that the latch circuit 25 is
It is initialized only when the human output control device 1 is initialized by reset, and in that case, the register set stator large signal p is set to the logical value "0".

また、ANDゲート28.29の他方の入力側には、前
記メモリアドレス制御回路”12からのアドレスバッフ
ァ制御信号eが供給され、ANDゲート28の出力信号
がアドレスバッファ22に、ANDゲート29の出力信
号がアドレスバッファ14に夫々作動制御信号として供
給される。
Further, the address buffer control signal e from the memory address control circuit "12" is supplied to the other input side of the AND gates 28 and 29, and the output signal of the AND gate 28 is supplied to the address buffer 22, and the output signal of the AND gate 29 is A signal is supplied to each address buffer 14 as an operation control signal.

次に作用について説明する。今、入出力制御装置1が正
常に作動しているものとすると、この異常状態検出回路
30からは、ダウン信号nが論理値“0”を維持してお
り、ANDゲート27の出力もレジスタアクセス制御回
路24のレジスタライト信号mの状態に拘わらず論理値
“0”を維持しており、このため、メモリブロック指定
レジスタ21は、システム共通バス2からのメモリアド
レスデータの書込みを禁止する状態に制御されると共に
、ラッチ回路25から出力されるレジスタセットステー
タス信号pは、論理値“0”を維持している。したがっ
て、ANDゲート28からアドレスバッファ制御信号q
は出力されず、アドレスバッファ22のゲートが閉じた
状態に制御されると共に、インバータ26での反転信号
pは論理値“l”となり、ANDゲート29が開状態と
なって、このANDゲート29からメモリアクセス制御
回路12からのアドレスバッファ制御信号eに基づくア
ドレスバッファ制御信号rがアドレスバッファ14に出
力される。その結果、アドレス設定スイッチ回路15の
設定値が、メモリバスアドレスMA12〜8としてメモ
リバス5上に出力される。これと同時にメモリアクセス
制御回路12からのアドレスバッファ制御信号eによっ
て、アドレスバッファ13のゲートが開状態となり、ア
ドレスSA7〜lが、MA7〜1としてメモリバス5に
出力される。
Next, the effect will be explained. Now, assuming that the input/output control device 1 is operating normally, the down signal n from the abnormal state detection circuit 30 maintains the logical value "0", and the output of the AND gate 27 is also register accessed. The logic value "0" is maintained regardless of the state of the register write signal m of the control circuit 24, and therefore, the memory block designation register 21 is in a state where writing of memory address data from the system common bus 2 is prohibited. The register set status signal p, which is controlled and output from the latch circuit 25, maintains a logical value of "0". Therefore, from the AND gate 28, the address buffer control signal q
is not output, the gate of the address buffer 22 is controlled to be closed, and the inverted signal p at the inverter 26 has a logic value "L", and the AND gate 29 is opened, and the gate of the address buffer 22 is controlled to be closed. An address buffer control signal r based on the address buffer control signal e from the memory access control circuit 12 is output to the address buffer 14. As a result, the set value of address setting switch circuit 15 is output onto memory bus 5 as memory bus addresses MA12-MA8. At the same time, the address buffer control signal e from the memory access control circuit 12 opens the gate of the address buffer 13, and the addresses SA7-1 are output to the memory bus 5 as MA7-1.

このため、メモリバス5上のMA12〜8の5ビツトア
ドレスでデュアルポートメモリ4の8キロバイトのメモ
リ領域を32等分した256バイト領域のうちの1つが
選択され、メモリバスアドレスMA7〜1及び上位、下
位メモリチップセレクト信号す、  cに反映されるM
AOにより選択された256バイト領域内の所望の番地
のバイト又はワードが指定されることになり、正常状態
におけるデュアルポートメモリ4のアクセスを行うこと
ができる。
Therefore, one of the 256-byte areas obtained by dividing the 8 kilobyte memory area of the dual port memory 4 into 32 equal parts is selected by the 5-bit addresses MA12 to MA8 on the memory bus 5, and the memory bus addresses MA7 to MA8 and the upper , M reflected in the lower memory chip select signal S, c
A byte or word at a desired address within the 256-byte area selected by the AO is specified, and the dual port memory 4 can be accessed in a normal state.

以上の入出力制御装置1の正常状態から、入出力装置1
に何等かの異常状態が発生すると、異常状態検出回路2
5から論理値“1”のダウン信号nが出力される。この
ダウン信号nにより、図示しない内部マイクロプロセッ
サを正常動作状態から動作不能状態への遷移させる。こ
の状態では、まだ、正常動作時と同様にシステム共通バ
ス2側からデュアルポートメモリ4の制御レジスタ領域
として割り当てられている所定のメモリ領域をアクセス
することが可能である。
From the above normal state of the input/output control device 1, the input/output device 1
If any abnormal condition occurs in the abnormal condition detection circuit 2
5 outputs a down signal n having a logical value of "1". This down signal n causes an internal microprocessor (not shown) to transition from a normal operating state to an inoperable state. In this state, it is still possible to access the predetermined memory area assigned as the control register area of the dual port memory 4 from the system common bus 2 side as in normal operation.

そして、この状態からシステム共通バス2側よりメモリ
ブロック指定レジスタ21に対して、デュアルポートメ
モリ4のうちのアクセスしたい256バイト領域に対応
するブロック番号を指定すべく、データバスSD4〜0
を使用して5ビツトのメモリブロックデータを書き込も
うとすると、これがレジスタアクセス制御回路24にも
供給されるので、このレジスタアクセス制御回路24か
ら論理値“1”のレジスタライト信号mがANDゲート
27に出力される。
From this state, the system common bus 2 side inputs a block number corresponding to the 256-byte area to be accessed from the data bus SD4 to SD4 to the memory block designation register 21.
When attempting to write 5-bit memory block data using , this is also supplied to the register access control circuit 24 , so a register write signal m with a logical value of "1" is sent from the register access control circuit 24 to the AND gate 27 . Output.

このとき、異常状態検出回路30からのダウン信号nは
論理値“1”となっているので、A N Dゲート27
から論理値“1”のレジスタセット信号Oが出力され、
これによって、メモリブロック指定レジスタ21がデー
タバスSD4〜0のデータを格納し、その格納したデー
タ値を常時アドレスバッファ22に出力する。これと同
時に、レジスタセット信号0がラッチ回路25によって
ラッチされ、これにより入出力制御装置1がダウン状態
時にメモリブロック指定レジスタ21に対してデータが
格納されたという状態を記憶し、その状態を表す論理値
“1”のレジスタセットステータス信号pを出力する。
At this time, since the down signal n from the abnormal state detection circuit 30 has a logical value of "1", the A N D gate 27
A register set signal O with a logical value of “1” is output from
As a result, the memory block designation register 21 stores the data on the data buses SD4 to SD0, and constantly outputs the stored data value to the address buffer 22. At the same time, the register set signal 0 is latched by the latch circuit 25, thereby storing the state that data was stored in the memory block designation register 21 when the input/output control device 1 was in the down state, and representing the state. Outputs a register set status signal p with a logical value of "1".

このため、ANDゲート29からのアドレスバッファ制
御信号rの出力が禁止されてアドレスバッファ14から
のアドレスI勘定データの出力が停止され、これに代え
てANDゲート28からメモリアドレス制御回路12か
らのアドレスバッファ制御(S 号eに基づ(アドレス
バッファ制御信号qが出力される。
Therefore, the output of the address buffer control signal r from the AND gate 29 is prohibited, and the output of the address I account data from the address buffer 14 is stopped.Instead, the output of the address I account data from the AND gate 28 is Buffer control (S) Based on No. e (address buffer control signal q is output).

したがって、アドレスバッファ22のゲートは開状態と
なり、既にメモリブロック指定レジスタ21に格納され
ているメモリブロック番号値をメモリバスアドレスMA
12〜8として、メモリバス5側に出力する。一方、ア
ドレスバッファ13はアドレスバッファ制御信号eによ
り、アドレスSA7〜1を、MA7〜1としてメモリバ
ス5側に出力する。
Therefore, the gate of the address buffer 22 is opened, and the memory block number value already stored in the memory block designation register 21 is transferred to the memory bus address MA.
12 to 8 and output to the memory bus 5 side. On the other hand, address buffer 13 outputs addresses SA7-1 to memory bus 5 as MA7-1 in response to address buffer control signal e.

このようにして、システム共通バス2側からメモリブロ
ック指定レジスタ21に任意に設定したメモリブロック
番号に対応するデュアルポートメモリ4の256バイト
領域のアクセスが可能となる。すなわち、例えば、アド
レス設定スイッチ回路15に、バイナリ“ooooo”
が設定されているものとすると、入出力制御装置1が正
常動作状態あるいは動作不能状態でもメモリブロック指
定レジスタ21への書込みが行われていない場合には、
システム共通バス2側からは、ブロック“0”がアクセ
スされる。そして、人出力制御装置lが動作不能状態時
で、メモリブロック指定レジスタ21にバイナリ“00
100″のデータが書き込まれたものとすると、システ
ム共通バス2側から、ブロック“4”をアクセスするこ
とができることになる。また、メモリブロック指定レジ
スタ21に設定する値を変更することにより、これに対
応して、デュアルポートメモリ4のメモリ領域のアクセ
ス可能なブロックを変更することができる。その結果、
異常状態発生時における障害解析のための装置内部情報
をデュアルポートメモリから収集することができる。
In this way, the 256-byte area of the dual port memory 4 corresponding to the memory block number arbitrarily set in the memory block designation register 21 can be accessed from the system common bus 2 side. That is, for example, the address setting switch circuit 15 receives the binary "oooooo".
is set, and even if the input/output control device 1 is in a normal operating state or in an inoperable state, if writing to the memory block designation register 21 is not performed,
Block “0” is accessed from the system common bus 2 side. Then, when the human output control device l is in an inoperable state, the memory block designation register 21 is set to binary “00”.
Assuming that data of 100" has been written, block "4" can be accessed from the system common bus 2 side. Also, by changing the value set in the memory block specification register 21, this can be accessed from the system common bus 2 side. Accordingly, the accessible blocks of the memory area of the dual port memory 4 can be changed.As a result,
Device internal information for failure analysis when an abnormal condition occurs can be collected from the dual port memory.

また、入出力制御装置lが正常動作状態で、メモリブロ
ック指定レジスタ21に対して書込み動  作を行って
も、異常状態検出回路30からのダウン信号nが論理値
″O”であるので、その書込みは無効となり、デュアル
ポートメモリ4の通常の制御レジスタ領域のアクセスに
河岸影響を与えることがない。
Furthermore, even if the input/output control device l performs a write operation to the memory block specification register 21 in a normal operating state, the down signal n from the abnormal state detection circuit 30 has a logical value of "O", so that Writing becomes invalid and does not affect access to the normal control register area of the dual port memory 4.

なお、上記実施例においては、アドレス設定スイッチ回
路15及びメモリブロック指定レジスタ21からの出力
を、夫々アドレスバッファ14及び22を制御すること
により、メモリバス5側に送出するように構成した場合
について説明したが、これに限定されるものではなく、
アドレス設定スイッチ回路15及びメモリブロック指定
レジスタ21の出力信号を共に選択回路の入力側に供給
し、この選択回路をランチ回路25からのレジスタセッ
トステータス信号pによって何れかの出力信号を選択し
、その選択信号をメモリアクセス制御回路12からのア
ドレスバッファ制御信号eが供給される1つのアドレス
バッファに供給するようにしてもよい。
In the above embodiment, the case is explained in which the outputs from the address setting switch circuit 15 and the memory block designation register 21 are sent to the memory bus 5 side by controlling the address buffers 14 and 22, respectively. However, it is not limited to this,
The output signals of the address setting switch circuit 15 and the memory block designation register 21 are both supplied to the input side of a selection circuit, and this selection circuit selects one of the output signals by the register set status signal p from the launch circuit 25, and selects the output signal of the selection circuit. The selection signal may be supplied to one address buffer to which the address buffer control signal e from the memory access control circuit 12 is supplied.

また、上記実施例においては、デュアルポートメモリを
使用した装置として入出力制御装置1を適用した場合に
ついて説明したが、これに限定されるものではなく、他
のデュアルポートメモリを有する装置にも本発明を適用
し得ること勿論である。
Furthermore, in the above embodiment, a case has been described in which the input/output control device 1 is applied as a device using dual port memory, but the invention is not limited to this, and the present invention can also be applied to other devices having dual port memory. Of course, the invention can be applied.

さらに、上記実施例では、プロセッサとしてマイクロプ
ロセッサを使用する場合について説明したが、これに限
定されるものではなく、他のプロセッサを適用し得るこ
と勿論である。
Further, in the above embodiments, a case has been described in which a microprocessor is used as the processor, but the present invention is not limited to this, and it goes without saying that other processors may be used.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、システム共通バ
スに接続されプロセッサを内蔵する装置内に設けられ且
つ当該システム共通バス側及び内部プロセ・7サバス側
の双方からアクセス可能なデュアルポートメモリにおい
て、前記システム共通バスとのインタフェース部に、前
記デュアルポートメモリの何れのブロックを選択してア
クセスするかをシステム共通バス側から指定可能とする
メモリブロック指定回路と、該メモリブロック指定回路
をデュアルポートメモリが属する装置が異常状態となっ
たことを検出したときのみ機能させるロック回路とを設
け、通常時には、システム共通バス側からは、デュアル
ポートメモリのうちの1つのブロック領域のみアクセス
可能とし、デュアルポートメモリの属する装置が異常状
態となったときには、前記メモリブロック指定回路で指
定する前記デュアルポートメモリの任意のブロックに対
して、そのアクセスを可能にするようにしたので、デュ
アルポートメモリの属する装置が動作不能状態となった
ときに、システム共通バス側からデュアルポートメモリ
の全領域に対してアクセスすることが可能となり、異常
状態が発生した装置の障害解析のための装置内部情報の
収集を容易確実に行うことができるという効果が得られ
る。
As explained above, according to the present invention, in a dual port memory that is connected to a system common bus and is provided in a device containing a built-in processor and that is accessible from both the system common bus side and the internal processor/7 subbus side, , a memory block designation circuit that enables designation from the system common bus side of which block of the dual port memory is to be selected and accessed; A lock circuit is provided that functions only when it is detected that the device to which the memory belongs is in an abnormal state. Under normal conditions, only one block area of the dual port memory can be accessed from the system common bus side. When the device to which the port memory belongs is in an abnormal state, any block of the dual port memory specified by the memory block designation circuit can be accessed, so that the device to which the dual port memory belongs can be accessed. When the device becomes inoperable, the entire area of dual port memory can be accessed from the system common bus side, making it easy to collect device internal information for failure analysis of the device in which the abnormal condition has occurred. The effect is that it can be carried out reliably.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例を示すブロック図、第2図は
従来装置を示すブロック図である。 図中、1は入出力制御装置、2はシステム共通バス、3
は内部マイクロプロセッサバス、4はデュアルポートメ
モリ、5はメモリバス、11.16はアドレス比較回路
、12.17はメモリアクセス制御回路、13,14,
18.22はアドレスバッファ、15はアドレス設定ス
イッチ回路、21はメモリブロック指定レジスタ、23
はロック回路、24はレジスタアクセス制御回路、25
はラッチ回路、26はインバータ、27.28゜29は
AND回路、30は異常状態検出回路である。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing a conventional device. In the figure, 1 is an input/output control device, 2 is a system common bus, and 3 is a system common bus.
is an internal microprocessor bus, 4 is a dual port memory, 5 is a memory bus, 11.16 is an address comparison circuit, 12.17 is a memory access control circuit, 13, 14,
18. 22 is an address buffer, 15 is an address setting switch circuit, 21 is a memory block specification register, 23
24 is a lock circuit, 24 is a register access control circuit, and 25 is a lock circuit.
2 is a latch circuit, 26 is an inverter, 27.28° 29 is an AND circuit, and 30 is an abnormal state detection circuit.

Claims (1)

【特許請求の範囲】[Claims] システム共通バスに接続されプロセッサを内蔵する装置
内に設けられ且つ当該システム共通バス側及び内部プロ
セッサバス側の双方からアクセス可能なデュアルポート
メモリにおいて、前記システム共通バスとのインタフェ
ース部に、前記デュアルポートメモリの何れのブロック
を選択してアクセスするかをシステム共通バス側から指
定可能とするメモリブロック指定回路と、該メモリブロ
ック指定回路をデュアルポートメモリが属する装置が異
常状態となったことを検出したときのみ機能させるロッ
ク回路とを設け、通常時には、システム共通バス側から
は、デュアルポートメモリのうちの1つのブロック領域
のみアクセス可能とし、デュアルポートメモリの属する
装置が異常状態となったときには、前記メモリブロック
指定回路で指定する前記デュアルポートメモリの任意の
ブロックに対して、そのアクセスを可能にすることを特
徴とするデュアルポートメモリアクセス制御方式。
In a dual port memory that is connected to a system common bus and is provided in a device containing a processor and that is accessible from both the system common bus side and the internal processor bus side, the dual port memory is connected to the system common bus in an interface section with the system common bus. A memory block designation circuit that allows you to specify which block of memory to select and access from the system common bus side, and a device that uses the memory block designation circuit to which the dual port memory belongs is in an abnormal state. Under normal conditions, only one block area of the dual-port memory can be accessed from the system common bus side, and when the device to which the dual-port memory belongs is in an abnormal state, A dual-port memory access control method, characterized in that an arbitrary block of the dual-port memory designated by a memory block designation circuit can be accessed.
JP59262218A 1984-12-12 1984-12-12 Access control system for dual port memory Granted JPS61139858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59262218A JPS61139858A (en) 1984-12-12 1984-12-12 Access control system for dual port memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59262218A JPS61139858A (en) 1984-12-12 1984-12-12 Access control system for dual port memory

Publications (2)

Publication Number Publication Date
JPS61139858A true JPS61139858A (en) 1986-06-27
JPH0319573B2 JPH0319573B2 (en) 1991-03-15

Family

ID=17372716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59262218A Granted JPS61139858A (en) 1984-12-12 1984-12-12 Access control system for dual port memory

Country Status (1)

Country Link
JP (1) JPS61139858A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63281542A (en) * 1987-05-14 1988-11-18 Fujitsu Ltd System for confirming memory action

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63281542A (en) * 1987-05-14 1988-11-18 Fujitsu Ltd System for confirming memory action

Also Published As

Publication number Publication date
JPH0319573B2 (en) 1991-03-15

Similar Documents

Publication Publication Date Title
US5359717A (en) Microprocessor arranged to access a non-multiplexed interface or a multiplexed peripheral interface
US5479625A (en) Ring systolic array system for synchronously performing matrix/neuron computation using data transferred through cyclic shift register connected in cascade of trays
US5168559A (en) Emulation system capable of complying with microcomputers having different on-chip memory capacities
US4344130A (en) Apparatus to execute DMA transfer between computing devices using a block move instruction
JP3995883B2 (en) Memory protection system for multitasking systems
US5444852A (en) I/O device interface having buffer mapped in processor memory addressing space and control registers mapped in processor I/O addressing space
US4477871A (en) Global operation coordination method and circuit
US6813191B2 (en) Microcomputer with nonvolatile memory protected against false erasing or writing
JPS61139858A (en) Access control system for dual port memory
JPH03668B2 (en)
JPS6362778B2 (en)
JPH07334420A (en) Extended memory control circuit
KR920003845B1 (en) Rom region expansion system for users of pc
KR0171173B1 (en) One-chip microcomputer
JPH03123949A (en) Input/output address conversion circuit and computer system
JPH0221620B2 (en)
JPH0426735B2 (en)
JPS622337A (en) Memory extending system
JPH0417200A (en) Ram provided with self diagnostic function
JPS62290957A (en) Message selection and storage system
JPH04315243A (en) Memory control circuit
JPH06337847A (en) Multiprocessor device
JPH0336650A (en) Memory protecting system
JPH04177439A (en) Single chip microcomputer
JPS6259343B2 (en)