JPH01250162A - Memory writing system - Google Patents
Memory writing systemInfo
- Publication number
- JPH01250162A JPH01250162A JP63077086A JP7708688A JPH01250162A JP H01250162 A JPH01250162 A JP H01250162A JP 63077086 A JP63077086 A JP 63077086A JP 7708688 A JP7708688 A JP 7708688A JP H01250162 A JPH01250162 A JP H01250162A
- Authority
- JP
- Japan
- Prior art keywords
- address
- memory
- control circuit
- circuit
- cpu
- 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
- 238000000034 method Methods 0.000 claims description 15
- 239000013256 coordination polymer Substances 0.000 claims description 3
- 101100490184 Drosophila melanogaster Ack gene Proteins 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006378 damage Effects 0.000 description 1
Landscapes
- Bus Control (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
この発明は、DMAυ1ty11回路を用いたメモリラ
イト方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a memory write method using a DMAυ1ty11 circuit.
(従来の技術)
従来、この種のメモリライト方式では、DMA idl
t11回路にライト先となるメモリアドレスをセット
した後、該DM八へ、+制御回路に起動をかける一連の
処理をCPUが行ない、以後f)MA制御回路から順次
発生するアドレスデータに基いて、CPUが関与するこ
となく、メモリへのデータライトを行わせるようになさ
れていた。(Prior art) Conventionally, in this type of memory write method, the DMA idle
After setting the write destination memory address in the t11 circuit, the CPU performs a series of processes to activate the + control circuit for the DM8, and thereafter f) Based on the address data sequentially generated from the MA control circuit, Data was written to the memory without involving the CPU.
(発明が解決しようとする課題)
しかしながら、このようなメモリライト方式にあっては
、−旦D M A tdl制御回路起動してしまうと、
もはやCPUが関与することなくメモリへのデータライ
トが行なわれるため、誤ってライト禁止がかけられてい
るメモリアドレスをDMA制御回路にCPLJがセット
してしまうと、メモリ内の例えばリードオンリーのエリ
アがデータ転送により破壊されてしまうという問題があ
った。(Problem to be Solved by the Invention) However, in such a memory write method, once the DM A tdl control circuit is activated,
Since data is written to memory without the CPU being involved, if the CPLJ accidentally sets a write-prohibited memory address in the DMA control circuit, for example, a read-only area in the memory may There was a problem in that it was destroyed during data transfer.
この発明の目的は、D M A ill 111回路に
ライト先となるメモリアドレスを誤ってセットしたよう
な場合、CPUが関与せずとも、メモリ内のリードオン
リーエリア等の破壊を防止できるようにしたメモリライ
ト方式を提供することにある。The purpose of this invention is to prevent destruction of read-only areas in the memory, etc., without the involvement of the CPU, even if the write destination memory address is incorrectly set in the DMA ill 111 circuit. The purpose is to provide a memory write method.
[発明の構成]
(課題を解決するための手段)
この発明は、上記の目的を達成するためにDMA制御回
路にライト先となるメモリアドレスをセットしたのち、
該DMA制御回路に起動をかける一連の処理をCPUが
行ない、以後DMA制御回路から順次発生するアドレス
データに基いてCPUが関与することなくメモリへのデ
ータラインを行なわせるようにしたメモリライト方式に
おいて、
前記DMA制御回路のアドレスバス上に、該アドレスデ
ータがあらかじめセットされた基準アドレスと一致しな
いときに前記DMA制御回路の動作を停止させるライト
プロテクト回路を設け、該ライトプロテクト回路にCP
Uはメモリライトに先たち、ライト可能メモリアドレス
を基準アドレスとしてセットすることを特徴とするもの
である。[Structure of the Invention] (Means for Solving the Problems) In order to achieve the above object, the present invention sets a memory address to be a write destination in a DMA control circuit, and then
In a memory write method in which the CPU performs a series of processes to start up the DMA control circuit, and then data lines to the memory are executed without CPU involvement based on address data sequentially generated from the DMA control circuit. , A write protect circuit is provided on the address bus of the DMA control circuit to stop the operation of the DMA control circuit when the address data does not match a preset reference address, and the write protect circuit is provided with a CP.
U is characterized by setting a writable memory address as a reference address prior to memory writing.
(作用)
このような構成によれば、ライトをプロテクト回路にC
PUがメモリライトに先だち、ライト可能メモリアドレ
スを基準アドレスとしてセットするため、DMA制御回
路にライト先となるメモリアドレスを誤ってセットした
ような場合には、ライトプロテクト回路の作用によりD
MA制御回路の動作が停止される。(Function) According to this configuration, the write is connected to the protection circuit.
The PU sets the writable memory address as the reference address before writing the memory, so if the write destination memory address is set incorrectly in the DMA control circuit, the write protection circuit will prevent the D
The operation of the MA control circuit is stopped.
(実施例)
第1図は本発明方式が適用されたコンピュータシステム
のハードウェア構成を示すブロック図である。(Embodiment) FIG. 1 is a block diagram showing the hardware configuration of a computer system to which the method of the present invention is applied.
同図に示されるように、このコンピュータシステムはC
PU1.DMA制御回路2.入出力回路3、メモリ4及
びライトプロテクト回路5から構成されている。As shown in the figure, this computer system is
PU1. DMA control circuit 2. It is composed of an input/output circuit 3, a memory 4, and a write protect circuit 5.
CPU1は、マイクロプロセッサを主体として構成され
、内蔵されたROM、RAMを利用して各種制mum能
を実現するようになされている。The CPU 1 is mainly composed of a microprocessor, and is configured to implement various control functions using built-in ROM and RAM.
DMA制御回路2は、DMAC−LSI等としてよく知
られたもので、CPU1からの制御で転送先アドレスを
プログラミング可能になされ、また−旦CPU1から起
動がかけられ後にあっては、DREQ信号、DACK信
号を入出力回路3とやりとりしながら、入出力回路3か
らメモリ4へのDMA転送を行なわゼるようなされてい
る。The DMA control circuit 2 is well known as a DMAC-LSI, etc., and is capable of programming the transfer destination address under control from the CPU 1, and after being activated by the CPU 1, the DMA control circuit 2 is configured to control the DREQ signal, DACK signal, etc. While exchanging signals with the input/output circuit 3, DMA transfer from the input/output circuit 3 to the memory 4 is performed.
また、このDMA転送に際しては、アドレスバス上に順
次転送先アドレスを送出するものである。Further, during this DMA transfer, transfer destination addresses are sequentially sent onto the address bus.
ライトプロテクト回路5は、DMA制御回路2のアドレ
スバス上に設けられ、該アドレスバス上に送出されたア
ドレスデータがライトプロテクト回路5内にセットされ
た基準アドレスと−、致しない時には、DMA制御回路
2に対し動作停止を指令すると共に、同時にCPU1に
対し割込信号NMIを送り、ライト先アドレスのセット
誤りをCPU1に対し知らせるようになされている。ま
た、ライトプロテクト回路5内の基準アドレスは、CP
U1からの制御で基準アドレスを任意にプログラミング
可能になされている。The write protect circuit 5 is provided on the address bus of the DMA control circuit 2, and when the address data sent onto the address bus does not match the reference address set in the write protect circuit 5, the DMA control circuit At the same time, an interrupt signal NMI is sent to the CPU 1 to notify the CPU 1 of an error in setting the write destination address. Further, the reference address in the write protect circuit 5 is CP
The reference address can be programmed arbitrarily under control from U1.
次に、以上の構成において、入出力回路3からメモリ4
へDMA転送を行なわせる場合の動作を説明する。Next, in the above configuration, from the input/output circuit 3 to the memory 4
The operation when performing DMA transfer to is explained below.
CPU1内において、DMA転送を含む一連のプログラ
ムを実行させようとする場合、まずCPU1ではそのイ
ニシャル処理として、ライトプロテクト回路5内にメモ
リ4のライト可能なアドレスをセットする。When a series of programs including DMA transfer is to be executed in the CPU 1, a writable address of the memory 4 is set in the write protect circuit 5 as an initial process.
このライト可能なアドレスのセットは、できるだけ正確
に行なわねばならないことは言うまでもない。Needless to say, this writable address must be set as accurately as possible.
このイニシャル処理に続いてルーチン処理が開始され、
DMA転送処理の部分が到来すると、よく知られている
ようにCPU1ではDMA制御回路2内に転送開始アド
レス、転送バイト数等の形でメモリ4内の転送アドレス
をセットし、その後DMA制御回路2に対し起動をかけ
る。Following this initial processing, routine processing begins,
When the DMA transfer processing part arrives, as is well known, the CPU 1 sets the transfer address in the memory 4 in the form of a transfer start address, the number of transfer bytes, etc. in the DMA control circuit 2, and then the DMA control circuit 2 Activate against.
すると、D M A !II Ia回路2からは順次ア
ドレスバス上に転送先アドレスが送出され、これと同時
にDMA制御回路2と入出力回路3との間で信号DRE
Q、DACKのやりとりが行なわれ、これにより入出力
回路3からメモリ4に対するDMA転送が行なわれる。Then, DM A! The II Ia circuit 2 sequentially sends the transfer destination address onto the address bus, and at the same time, the signal DRE is sent between the DMA control circuit 2 and the input/output circuit 3.
Q and DACK are exchanged, and as a result, DMA transfer from the input/output circuit 3 to the memory 4 is performed.
他方、CPU1がDMA制御回路2内に転送先アドレス
をセットする際に、転送先アドレスを誤ってセットして
いると、そのアドレスがアドレスバス上に送出した時点
で、ライトプロテクト回路5から停止指令信号がDMA
制御回路2へと送られ、これによりDMA転送動作が停
止され、同時にCPU1対して割込信INMIが送られ
、これに基きCPUlでは所定の処理を実現することに
よって、転送先アドレスのセット誤りを認識し、必要な
処置をとることとなる。On the other hand, if the CPU 1 incorrectly sets the transfer destination address in the DMA control circuit 2, the write protect circuit 5 will issue a stop command when the address is sent onto the address bus. signal is DMA
The signal is sent to the control circuit 2, thereby stopping the DMA transfer operation, and at the same time, an interrupt signal INMI is sent to the CPU 1. Based on this, the CPU 1 performs a predetermined process to prevent a setting error in the transfer destination address. It will be recognized and necessary measures will be taken.
従って、イニシャル処理で実行されるライトプロテクト
回路5へのメモリ可能アドレスの設定が正しく行なわれ
ている限りにおいては、仮にルーチン処理内においてD
MA転送アドレスのセット誤りが生じたとしても、当該
アドレスに記憶されたメモリ4内のデータが誤って破壊
されるようなことはなくなる。Therefore, as long as the memory address settings for the write protect circuit 5 executed in the initial processing are correct, even if D
Even if an error occurs in setting the MA transfer address, the data stored in the memory 4 at the address will not be destroyed by mistake.
[発明の効果]
以上の説明で明らかなように、この発明によればDMA
転送開始時の転送先アドレス設定処理を誤ったような場
合にも、転送先であるメモリのデータが不用意に破壊さ
れることはなくなり、このコンピュータシステムの信頼
性を向」ニさせることができ、しかもその為の構成とし
ても単にアドレスバス上のデータを基準データと比較し
て両者の不一致に基きD M A idl te1回路
に禁止をかけるだけであるから、格別のコストアップを
きたすことなく、しかも従来システムにそのまま適用す
ることが可能となる。[Effect of the invention] As is clear from the above explanation, according to this invention, the DMA
Even if you make a mistake in the transfer destination address setting process when starting a transfer, the data in the memory that is the transfer destination will not be accidentally destroyed, and the reliability of this computer system can be improved. Moreover, the configuration for this purpose simply compares the data on the address bus with reference data and prohibits the DMA IDl TE1 circuit based on the mismatch between the two, so there is no particular increase in cost. Moreover, it can be applied to conventional systems as is.
第1図は、本発明方式が適用されたコンピュータシステ
ムを示すブロック図である。
1・・・CPU
2・・・DMA制御回路
3・・・入出力回路
4・・・メモリ
5・・・ライトプロテクト回路FIG. 1 is a block diagram showing a computer system to which the method of the present invention is applied. 1...CPU 2...DMA control circuit 3...I/O circuit 4...Memory 5...Write protection circuit
Claims (1)
をセットしたのち、該DMA制御回路に起動をかける一
連の処理をCPUが行ない、以後DMA制御回路から順
次発生するアドレスデータに基いてCPUが関与するこ
となくメモリへのデータライトを行なわせるようにした
メモリライト方式において、 前記DMA制御回路のアドレスバス上に、該アドレスデ
ータがあらかじめセットされた基準アドレスと一致しな
いときに前記DMA制御回路の動作を停止させるライト
プロテクト回路を設け、該ライトプロテクト回路にCP
Uはメモリライトに先だち、ライト可能メモリアドレス
を基準アドレスとしてセットする、 ことを特徴とするメモリライト方式。(1) After setting the write destination memory address in the DMA control circuit, the CPU performs a series of processes to start up the DMA control circuit, and thereafter the CPU participates based on address data sequentially generated from the DMA control circuit. In the memory write method, the operation of the DMA control circuit is performed when the address data does not match a preset reference address on the address bus of the DMA control circuit. A write protect circuit is provided to stop the CP.
U is a memory write method characterized by setting a writable memory address as a reference address prior to memory write.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63077086A JPH01250162A (en) | 1988-03-30 | 1988-03-30 | Memory writing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63077086A JPH01250162A (en) | 1988-03-30 | 1988-03-30 | Memory writing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01250162A true JPH01250162A (en) | 1989-10-05 |
Family
ID=13623971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63077086A Pending JPH01250162A (en) | 1988-03-30 | 1988-03-30 | Memory writing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01250162A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6202154B1 (en) | 1997-04-16 | 2001-03-13 | Hitachi,Ltd. | Data transfer controller, microcomputer and data processing system |
-
1988
- 1988-03-30 JP JP63077086A patent/JPH01250162A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6202154B1 (en) | 1997-04-16 | 2001-03-13 | Hitachi,Ltd. | Data transfer controller, microcomputer and data processing system |
US6496934B2 (en) | 1997-04-16 | 2002-12-17 | Hitachi, Ltd. | Data transfer controller, microcomputer and data processing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
GB2290891B (en) | Multiprocessor system | |
JPS63111545A (en) | Microprocessor for debug | |
JPH01250162A (en) | Memory writing system | |
JPS6197762A (en) | Memory safety device for microprocessor | |
JP2008059191A (en) | Microcontroller and its debugging method | |
JPH01205312A (en) | Bus conversion device | |
JP2667285B2 (en) | Interrupt control device | |
JPH01136251A (en) | Self-diagnosing system | |
JPH0630002B2 (en) | Programmable controller | |
JPH01160547U (en) | ||
JP3402414B2 (en) | Watchdog timer circuit | |
JPH04330549A (en) | Controller | |
JPH02210515A (en) | System resetting system | |
JPH0782407B2 (en) | Reset processing method for microprocessor | |
JPS61160146A (en) | Control system of address stack pointer device | |
JPH02207354A (en) | Memory system | |
JPS63200254A (en) | Memory write control circuit | |
JPH0273447A (en) | Log-on method for local cpu | |
JPH0370014A (en) | Reset control system | |
JPS63136154A (en) | Microcomputer device | |
JPS62117054A (en) | Confirmation system for state of input and output device | |
JPH06251171A (en) | Microcomputer with non-maskable interrupt function | |
JPH0782447B2 (en) | DMA data transfer control device | |
JPS61292756A (en) | Program debug auxiliary circuit | |
JPS63279344A (en) | Detecting device for connection of memory unit |