JPS6148049A - Check device of mamory-access - Google Patents

Check device of mamory-access

Info

Publication number
JPS6148049A
JPS6148049A JP59169784A JP16978484A JPS6148049A JP S6148049 A JPS6148049 A JP S6148049A JP 59169784 A JP59169784 A JP 59169784A JP 16978484 A JP16978484 A JP 16978484A JP S6148049 A JPS6148049 A JP S6148049A
Authority
JP
Japan
Prior art keywords
address
register
physical address
access
logical
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
Application number
JP59169784A
Other languages
Japanese (ja)
Inventor
Tomoyoshi Inasaka
稲坂 朋義
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP59169784A priority Critical patent/JPS6148049A/en
Publication of JPS6148049A publication Critical patent/JPS6148049A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make possible check about both of a logical address and a physical address by providing a selector in a memory access check device judging that predetermined types of accesses are performed or not. CONSTITUTION:In order to have access to a main memory 1, a logical address is stored in a register 2 from a processor and the content thereof is converted into a physical address by an address conversion circuit 3, stored in the physical address 4 and accessed to a predetermined byte. During the time of a control signal is ''1'', the logical address of the register 2 is fed to a comparison circuit 8 by a selector 10. When it is compared with a set address from an address search register 5 and both coincides with each other and an address search mode signal 7 and an access control signal are accesses of writing, a coincidence judging signal 9 is generated. On checking about the physical address, a control signal 11 is made ''0'' and the physical address check in the register 5 is set, and then in the comparison circuit 8, the content of the register 4 is compared with that of the register 5.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明は予め設定したアドレスへ、予め設定した種類
のアクセス(書込みのためのアクセスか読゛出しのため
のアクセスかのアクセスの種類)が実行されたか否かを
判定するメモリ・アクセスのチェック装置に関するもの
である。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention provides a method for performing a preset type of access (a write access or a read access type) to a preset address. The present invention relates to a memory access checking device that determines whether or not a memory access has been accessed.

〔従来の技術〕[Conventional technology]

第1図は従来の装置を示すブロック図でろって、図にお
いて(1)は主記憶装置(以下MMU  と略記する)
、+21は調理アドレスレジスタ、+3114アドレス
変換回路、(41は物理アドレスレジスタ、(5)はア
ドレスサーチモード、(6)はアクセス制御コード、(
7)はアドレスサーチモード信号、(8)は比較回路(
以下CMPと略記する)、+91はアドレス一致判定信
号である。
Figure 1 is a block diagram showing a conventional device. In the figure, (1) is the main memory unit (hereinafter abbreviated as MMU).
, +21 is a cooking address register, +3114 is an address conversion circuit, (41 is a physical address register, (5) is an address search mode, (6) is an access control code, (
7) is the address search mode signal, and (8) is the comparison circuit (
(hereinafter abbreviated as CMP), +91 is an address match determination signal.

MMU +11にアクセスするためには処理装置からは
論理アドレスが出力されて論理アドレスレシス12)に
格納される。論理アドレスレジスタ(2)の内容がアド
レス変換回路(31により物理アドレスに変換されて物
理アドレスレジスタf41に格納される。物理アドレス
はN1VLT illの単位メモリ(たとえば1バイト
)の物理的位置と直接に対応するもので、物理アドレス
によってMMU ill 内の所望のバイトにアクセス
することができる。プログラムを作成するような場合、
物理アドレスを指定するプログラムを作成するのは面倒
であるので、そのプログラム内では自己矛盾全米さない
とゆう条件の下で自由に論理アドレスを考え、この論理
アドレスを指定するプログラムを作成する。従って、処
理装置から出力される箱i理アドレスはアドレス変換回
路(31によって物理アドレスに変換された上で、MM
U(1)へのアクセスに用いられる。
In order to access MMU +11, a logical address is output from the processing unit and stored in logical address register 12). The contents of the logical address register (2) are converted into a physical address by the address conversion circuit (31) and stored in the physical address register f41.The physical address is directly connected to the physical location of the unit memory (for example, 1 byte) of N1VLTill Corresponding, you can access the desired byte in MMU ill by physical address.When creating a program,
Since it is troublesome to create a program that specifies a physical address, we create a program that specifies logical addresses by freely considering logical addresses within the program, provided that there are no self-contradictions. Therefore, the physical address output from the processing device is converted into a physical address by the address conversion circuit (31), and then
Used to access U(1).

ところで、所定のアドレスに対し所定のアクセスが行わ
れたか否かをチェックするメモリ・アクセスのチェック
が必要な場合がらり、第1図に示す装置はこのためのメ
モリ・アクセスのチェック装置であり、−例として論理
アト23200番地に対し新しいデータが書込まれたか
(すなわちストア動作が行われたか)否かをチェックす
る場合を例にして第1図に示す装置の動作を説明する。
By the way, there are cases where it is necessary to check memory access to check whether a predetermined access has been made to a predetermined address, and the device shown in FIG. 1 is a memory access check device for this purpose. The operation of the apparatus shown in FIG. 1 will be described using, as an example, a case of checking whether new data has been written to logical address 23200 (that is, whether a store operation has been performed).

この場合には、アドレスサーチレジスタ(5)に200
番地を設定し、アドレスサーチモード信号としてはスト
アモードに対応する信号をセットしておく。
In this case, 200 is set in the address search register (5).
The address is set, and a signal corresponding to the store mode is set as the address search mode signal.

データ処理が実行され、論理アドレスレジスタ+21の
内容が変化するたびにその内容がアドレスサーチレジス
タ(5)の内容とCMP t8+において比奴される。
Every time data processing is executed and the contents of the logical address register +21 change, the contents are compared with the contents of the address search register (5) in CMP t8+.

両者が一致し、すなわち、上述の数値例では、論理アト
23200番地が論理アドレスレジスタ+21に格納さ
れ、かつ、アクセス制御コード+61 カ書込み(すな
わちストア動作)のためのアクセスであることを示すと
きCMP 181はアドレス一致判定信号+91として
論理「1」の信号を出力する。このアドレス一致判定信
号(9)が論理「1」になるとそのとき実行中のマシン
命令の実行の終りに園期して割込みを発生させるかシス
テムを停止状態にすることで200@地にストアのため
のアクセスを行ったマシン命令の実行を識別することが
できる。
When the two match, that is, in the above numerical example, the logical address 23200 is stored in the logical address register +21, and the access control code +61 indicates that the access is for writing (i.e., store operation). 181 outputs a logic "1" signal as address match determination signal +91. When this address match judgment signal (9) becomes logic "1", an interrupt is generated at the end of the execution of the machine instruction currently being executed or the system is stopped to store the data in the 200@ field. can identify the execution of a machine instruction that accessed the

ところで、論理アドレスと物理アドレスとについて先に
説明した所から明らかなように、論理アドレスと物理ア
ドレスとの間には一対一の対応はなく、互に異なる複数
の論理アドレスから同一の物理アドレスに変換される場
合があり、MMU(1)のどのアドレスに対しストア動
作が行われたかということは、MMU(1)の物理アド
レスに対してチェックすることが必要な場合がある。し
かるに。
By the way, as is clear from the above explanation about logical addresses and physical addresses, there is no one-to-one correspondence between logical addresses and physical addresses, and the same physical address can be accessed from multiple different logical addresses. It may be necessary to check the physical address of MMU (1) to determine which address of MMU (1) a store operation was performed. However.

第1図に示す従来の回路では論理アドレスに対してしか
チェックできないため、物理アドレスに対してチェック
するためには該当する物理アドレスに変換される可能性
のあるすべての論理アドレスを順番にアドレスサーチレ
ジスタ(5)にセットしてチェックしてゆく必要があυ
、該当する物理アドレスにたどりつくまで手間と時間が
かかるという欠点があった。
The conventional circuit shown in Figure 1 can only check logical addresses, so in order to check physical addresses, an address search is performed in order for all logical addresses that can be converted to the corresponding physical address. It is necessary to set it in register (5) and check it.
However, the disadvantage is that it takes time and effort to reach the corresponding physical address.

〔発明の概要〕[Summary of the invention]

この発明は上記のような従来のものの欠点を除去するた
めになされたもので、この発明ではセレクタを設けて処
理アドレスレジスタの内容及び物理アドレスレジスタの
内容から任意に選択した1方のレジスタの内容をCMP
に入力できるようにした。
This invention was made in order to eliminate the drawbacks of the conventional ones as described above.In this invention, a selector is provided to select the contents of one register arbitrarily selected from the contents of the processing address register and the contents of the physical address register. CMP
It is now possible to input.

〔発明の実施例〕[Embodiments of the invention]

以下この発明の実施例を図面について説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第2図はこの発明の一実施例を示すブロック図で、第2
図において第1図と同一符号は同−又は相当部分を示し
、U■はセレクタで、ttUは制御信号である。論理ア
ドレスレジスタ(2)及び物理アドレスレジスタ(4)
の内容がセレクタ1101の2人力で、制(A’信号u
IIの論理が「1」のとき論理アドレスレジスタ(2)
の内容が、制御信号(IIJの論理が「0」のとき物理
アドレスレジスタ(41の内容がCMP(8)の一方の
入力となる。
FIG. 2 is a block diagram showing one embodiment of the present invention.
In the figure, the same reference numerals as in FIG. 1 indicate the same or corresponding parts, U.sub.2 is a selector, and ttU is a control signal. Logical address register (2) and physical address register (4)
The contents of the selector 1101 are controlled by two people (A' signal u
When the logic of II is “1”, the logical address register (2)
When the logic of the control signal (IIJ is "0"), the contents of the physical address register (41) become one input of CMP (8).

したがって制御信号Uの論理を「1」にすると第2図の
回路の動作は第1図の回路の動作と同様である。
Therefore, when the logic of the control signal U is set to "1", the operation of the circuit shown in FIG. 2 is similar to that of the circuit shown in FIG.

MMU(1)の物理アドレス2000番地に対するメモ
リ・アクセスのチェックを行う場合はアドレスサーチレ
ジスタ(5)に2000番地を設定し、ストアモ−ドの
アクセスに対するチェックを行う場合はアドレスサーチ
モード信号としてはストアモードに対応する信号をセッ
トしておく。また、制御信号(1υの論理は「0」にセ
ットする。
When checking memory access to physical address 2000 of MMU (1), set address 2000 in the address search register (5), and when checking store mode access, use the store as the address search mode signal. Set the signal corresponding to the mode. Furthermore, the logic of the control signal (1υ) is set to "0".

論理アドレスレジスタ(21の内容が順次変化し、従っ
て物理アドレスレジスタ(41の内容が変化し、200
0番となりその時のアクセス制御コード(61がストア
(書込み)を指示しているとき、アドレス−敷料定信号
(9)が出力される。以後の処理は第1図について説明
したと同様である。
The contents of the logical address register (21 change sequentially, and therefore the contents of the physical address register (41 change, 200
0, and when the access control code (61) instructs store (write), the address-bedding fixed signal (9) is output.The subsequent processing is the same as that described with reference to FIG.

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

以上のようにこの発明によれば物理アドレスに関しても
メモリ・アクセスのチェックを行うことができるように
したので、MMU内の物理アドレス位置のデータ内容を
変更するマシン命令実行位置をつきとめることができ、
プログラムデバッグを効率よく実行することができる。
As described above, according to the present invention, it is possible to check memory access with respect to physical addresses as well, so it is possible to locate the execution position of a machine instruction that changes the data content of a physical address position within the MMU.
Program debugging can be executed efficiently.

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

第1図は従来の装置を示すブロック図、第2図はこの発
明の一実施例を示すブロック図である。 111・・・MMU、  +21・・・論理アドレスレ
ジスタ、(3)・・・アドレス菱換回路、(41・・・
物理アドレスレジスタ、(5)・・・アドレスサーチレ
ジスタ、18)・・・CMP、110+・・・セレクタ
。 尚、各図中同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram showing a conventional device, and FIG. 2 is a block diagram showing an embodiment of the present invention. 111...MMU, +21...Logical address register, (3)...Address rhombus conversion circuit, (41...
Physical address register, (5)...Address search register, 18)...CMP, 110+...Selector. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】 主記憶装置にアクセスするため処理装置から出力される
論理アドレスを格納する論理アドレスレジスタ、 この論理アドレスレジスタに格納されている論理アドレ
スを上記主記憶装置の物理アドレスに変換するアドレス
変換回路、 このアドレス変換回路の出力の物理アドレスを格納する
物理アドレスレジスタ、 チェック対象のアドレスを格納するアドレスサーチレジ
スタ、 上記論理アドレスレジスタの内容及び上記物理アドレス
レジスタの内容を入力し制御信号に従っていずれかの入
力を出力するセレクタ、 このセレクタの出力が上記アドレスサーチレジスタの内
容と一致し、かつ上記主記憶装置へのアクセス条件があ
らかじめ設定した条件に一致したときアドレス一致判定
信号を出力する比較回路を備えたメモリ・アクセスのチ
ェック装置。
[Scope of Claims] A logical address register that stores a logical address output from a processing unit for accessing a main memory, converting the logical address stored in this logical address register into a physical address of the main memory. An address conversion circuit, a physical address register that stores the physical address of the output of this address conversion circuit, an address search register that stores the address to be checked, and inputs the contents of the above logical address register and the contents of the above physical address register and according to the control signal. A selector that outputs one of the inputs; A comparison that outputs an address match judgment signal when the output of this selector matches the contents of the address search register and the access condition to the main memory matches a preset condition. A memory access checking device equipped with a circuit.
JP59169784A 1984-08-14 1984-08-14 Check device of mamory-access Pending JPS6148049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59169784A JPS6148049A (en) 1984-08-14 1984-08-14 Check device of mamory-access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59169784A JPS6148049A (en) 1984-08-14 1984-08-14 Check device of mamory-access

Publications (1)

Publication Number Publication Date
JPS6148049A true JPS6148049A (en) 1986-03-08

Family

ID=15892807

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59169784A Pending JPS6148049A (en) 1984-08-14 1984-08-14 Check device of mamory-access

Country Status (1)

Country Link
JP (1) JPS6148049A (en)

Similar Documents

Publication Publication Date Title
US5187792A (en) Method and apparatus for selectively reclaiming a portion of RAM in a personal computer system
EP0405318A2 (en) Microprocessor having cash bypass signal terminal
JP2730896B2 (en) Data processing device
JPS6376034A (en) Multiple address space control system
US3701107A (en) Computer with probability means to transfer pages from large memory to fast memory
EP0518479B1 (en) Processing system and method including memory selection
US5197141A (en) Software controlled method of issuing hardware control commands to memory controller from prefetch unit by combining request code and address specified in program instructions
JPS6148049A (en) Check device of mamory-access
JPH01124049A (en) Microprocessor
GB2037466A (en) Computer with cache memory
JPS5894041A (en) Debug backup device for high-class language
JPH039427A (en) Microprogram controller
JPS6336346A (en) Bank switching circuit
JPH1027153A (en) Bus transfer device
JPH0795288B2 (en) Microcomputer
JPH04352047A (en) Method and device for controlling address conversion
JPS6224341A (en) Address converting system
JPH0223425A (en) Rewriting detecting circuit for instruction
JPS6272044A (en) Address coincidence detection system
JPS6265151A (en) Memory control system
JPS6326744A (en) Memory bank switching circuit for microprocessor
JPS5958548A (en) Diagnostic processing system by microprogram
JPH01287760A (en) Virtual storage control system
JPH04137150A (en) Buffer storage device
JPS60132239A (en) Microprogram controlling circuit