JPH0222717A - Computer - Google Patents

Computer

Info

Publication number
JPH0222717A
JPH0222717A JP63173590A JP17359088A JPH0222717A JP H0222717 A JPH0222717 A JP H0222717A JP 63173590 A JP63173590 A JP 63173590A JP 17359088 A JP17359088 A JP 17359088A JP H0222717 A JPH0222717 A JP H0222717A
Authority
JP
Japan
Prior art keywords
address
memory
circuit
initialized
turned
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
JP63173590A
Other languages
Japanese (ja)
Inventor
Nobuo Ikeda
池田 伸生
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63173590A priority Critical patent/JPH0222717A/en
Publication of JPH0222717A publication Critical patent/JPH0222717A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔概 要〕 直接メモリアクセスコントローラ(以下DMAコントロ
ーラと称す)を有する計算機に関し、電源投入時、メモ
リを初期化する時間を短縮出来る計算機の提供を目的と
し、 電源投入時、DMAコントローラにクリア要求信号を出
力すると共にアンド回路にHレベルの信号を出力するラ
ッチ手段及び、電源投入時、該DMAコントローラに、
初期化する該メモリの先頭アドレス及び最終アドレスを
書き込む書込み手段及び、該アンド回路の出力にて該メ
モリへのデータハスを強制的に0とする強制回路を設け
、該DMAコントローラは、クリア要求信号が入力し、
初期化する先頭アドレス及びR柊アドレスが書き込まれ
たら、該アンド回路に用意完了とのHレベルの信号を送
り該強制回路にて該メモリへのデータバスを強制的にO
とし、又該メモリに書込み信号を送り、又アドレスバス
にて初期化する先頭アドレスより最終アドレス迄のアド
レスを順次液メモリに出力し、該メモリを初期化するよ
うに構成する。
[Detailed Description of the Invention] [Summary] The purpose of this invention is to provide a computer having a direct memory access controller (hereinafter referred to as a DMA controller) that can shorten the time required to initialize memory when the power is turned on. , a latch means that outputs a clear request signal to the DMA controller and also outputs an H level signal to the AND circuit, and when the power is turned on, the DMA controller
A writing means for writing the first address and the last address of the memory to be initialized is provided, and a forcing circuit for forcing the data hash to the memory to be 0 at the output of the AND circuit, and the DMA controller is arranged so that the clear request signal is Input,
When the first address to be initialized and the R Hiragi address have been written, an H level signal indicating completion of preparation is sent to the AND circuit, and the forcing circuit forces the data bus to the memory to be turned off.
The liquid memory is configured to initialize the memory by sending a write signal to the memory and sequentially outputting addresses from the first address to the last address to be initialized via an address bus to the liquid memory.

〔産業上の利用分野〕[Industrial application field]

本発明は、DMAコントローラ及びメモリを有する計算
機の電源投入時の該メモリの初期化時間を短縮出来る計
算機に関する。
The present invention relates to a computer having a DMA controller and memory, which can shorten the time required to initialize the memory when the computer is powered on.

〔従来の技術〕[Conventional technology]

以下従来例を図を用いて説明する。 A conventional example will be explained below using figures.

第3図は従来例のメモリ初期化のプログラムを示す図で
ある。
FIG. 3 is a diagram showing a conventional memory initialization program.

従来の計算機では、電源投入時、メモリの、例えば、r
o 000J番地よりrl 000J番地迄の夫々の1
バイトを初期化するのには、第3図に示すプログラムに
て行っていた。
In a conventional computer, when the power is turned on, the memory, for example, r
Each 1 from o 000J address to rl 000J address
The bytes were initialized using the program shown in FIG.

即ち、ステップ1にて、アドレス指示用のXレジスタに
初期化する先頭アドレスのroOOOJを書込み、ステ
ップ2にてデータ格納用のAレジスタに16進数の「0
0」を書込む。
That is, in step 1, the first address roOOOJ to be initialized is written to the X register for address instruction, and in step 2, the hexadecimal number "0" is written to the A register for data storage.
0” is written.

次にステップ3にて、Xレジスタにて指示されているア
ドレスr0000JにAレジスタの内容「00」を書き
込む。
Next, in step 3, the content "00" of the A register is written to the address r0000J specified by the X register.

次にステップ4にて、Xレジスタ内の値に+1を加え、
ステップ5に進み、Xレジスタ内の値がrl 001J
より小さかったらステップ3に帰り、ステップ3〜5迄
の動作を、Xレジスタ内の値がrloooJになる迄繰
り返し、Xレジスタ内の値がrl OOIJになったら
ステップ6に進み終了とする。
Next, in step 4, add +1 to the value in the X register,
Proceed to step 5 and the value in the X register is rl 001J
If it is smaller, the process returns to step 3, and the operations from steps 3 to 5 are repeated until the value in the X register becomes rloooJ, and when the value in the X register becomes rlOOIJ, the process proceeds to step 6 and ends.

この場合、各ステップは、通常2サイクルの時間かかる
ので、合計6010サイクルの時間ががかり、多くの時
間がかかることになる。
In this case, each step usually takes two cycles, so it takes a total of 6010 cycles, which is a lot of time.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記説明の如く、従来の方法では、電源投入時メモリを
初期化するのに多くの時間がかかる問題点がある。
As explained above, the conventional method has the problem that it takes a lot of time to initialize the memory when the power is turned on.

本発明は、電源投入時メモリを初期化する時間を短縮出
来る計算機の提供を目的としている。
An object of the present invention is to provide a computer that can shorten the time required to initialize the memory when the power is turned on.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理ブロック図である。 FIG. 1 is a block diagram of the principle of the present invention.

第1図に示す如く、電源投入時、DMAコントローラ1
にクリア要求信号を出力すると共にアンド回路4にHレ
ベルの信号を出力するラッチ手段3及び、電源投入時、
該DMAコントローラlに、初期化するメモリ2の先頭
アドレス及び最終アドレスを書き込む書込み手段5及び
、該アンド回路4の出力にて該メモリ2へのデータバス
を強制的に0とする強制回路6を設ける。
As shown in Figure 1, when the power is turned on, the DMA controller 1
a latch means 3 which outputs a clear request signal to the AND circuit 4 and outputs an H level signal to the AND circuit 4, and when the power is turned on;
A writing means 5 for writing the first address and the last address of the memory 2 to be initialized into the DMA controller 1, and a forcing circuit 6 for forcing the data bus to the memory 2 to 0 using the output of the AND circuit 4. establish.

そして、該DMAコントローラ1は、クリア要求信号が
入力し、初期化する先頭アドレス及び最終アドレスが書
き込まれたら、該アンド回路4に直接メモリアクセス用
意完了とのHレベルの信号を送り該強制回路6にて該メ
モリ2へのデータバスを強制的にOとし、又該メモリ2
に書込み信号を送り、又アドレスバスにて初期化する先
頭アドレスより最終アドレス迄のアドレスを順次液メモ
リ2に出力し、該メモリ2を初期化するようにする。
Then, when the clear request signal is input and the initialization start address and final address are written, the DMA controller 1 sends an H level signal to the AND circuit 4 to indicate completion of direct memory access preparation, and the forcing circuit 6 , the data bus to the memory 2 is forced to O, and the data bus to the memory 2 is
A write signal is sent to the address bus, and addresses from the first address to the last address to be initialized are sequentially output to the liquid memory 2 to initialize the memory 2.

〔作 用〕[For production]

本発明によれば、電源が投入されると、ランチ手段3は
、DMAコントローラ1にクリア要求信号を出力すると
共にアンド回路4にHレベルの信号を出力する。
According to the present invention, when the power is turned on, the launch means 3 outputs a clear request signal to the DMA controller 1 and outputs an H level signal to the AND circuit 4.

又電源が投入時、DMAコントローラlには、書込み手
段5により、メモリ2を初期化する先頭アドレス及び最
終アドレスが書き込まれる。
When the power is turned on, the writing means 5 writes the start address and the end address for initializing the memory 2 into the DMA controller 1.

すると、DMAコントローラ1は、アンド回路4にHレ
ベルの信号を送り、アンド回路4よりの出力を用い、強
制回路6にて、メモリ2へのデータバスを0とし、又メ
モリ2乙ご、書込み信号を出力し、又アドレスバスを介
して、初期化する先頭アドレスより最終アドレス迄のア
ドレスを順次出力する。
Then, the DMA controller 1 sends an H level signal to the AND circuit 4, uses the output from the AND circuit 4, uses the forcing circuit 6 to set the data bus to the memory 2 to 0, and also writes data to the memory 2. It outputs a signal, and sequentially outputs addresses from the first address to be initialized to the final address via the address bus.

従って、メモリ2は、先頭アドレスより最終アドレス迄
のアドレスが送られる度に、該当アドレスの部分を0と
して初期化する。
Therefore, each time an address from the first address to the last address is sent, the memory 2 initializes the corresponding address part to 0.

この場合は、アドレスが送られた時に初期化するので、
1ステツプ1サイクルとなる。よってアドレスが100
0あれば初期化するのに1000サイクルとなる。
In this case, it will be initialized when the address is sent, so
One step corresponds to one cycle. Therefore, the address is 100
If it is 0, it will take 1000 cycles to initialize.

DMAコントローラ1に初期化する先頭アドレス及び最
終アドレスが書き込むのに約20サイクルかかるので、
合計すると1020サイクルとなり、初期化時間を大幅
に短縮出来る。
It takes about 20 cycles to write the initialization start address and final address to DMA controller 1, so
The total number of cycles is 1020, and the initialization time can be significantly shortened.

〔実施例〕〔Example〕

以下本発明の1実施例に付き図に従って説明する。 An embodiment of the present invention will be described below with reference to the accompanying drawings.

第2図は本発明の実施例の計算機のブロック図である。FIG. 2 is a block diagram of a computer according to an embodiment of the present invention.

第2図のROM7には、電源投入時、メモリ2を初期化
する先頭アドレス及び最終アドレスをDMAコントロー
ラ1に書き込むプログラムが格納してあり、電源が投入
されると、プロセッサ8はこれを用い、DMAコントロ
ーラ1に、初期化する先頭アドレス及び最終アドレスを
書き込む。
The ROM 7 in FIG. 2 stores a program that writes the start address and end address for initializing the memory 2 to the DMA controller 1 when the power is turned on.When the power is turned on, the processor 8 uses this program to Write the start address and end address to be initialized into the DMA controller 1.

一方、ランチ部3は、DMAコントローラ1に対し初期
化要求を出し、又アンド回路4にHレベルの信号を出力
する(尚、初期化要求がHレベルの信号であればこれを
用いる)。
On the other hand, the launch unit 3 issues an initialization request to the DMA controller 1, and also outputs an H level signal to the AND circuit 4 (if the initialization request is an H level signal, this is used).

すると、DMAコントローラlは、通常のDMA制御の
如く、プロセッサ8に停止命令を出す。
Then, the DMA controller 1 issues a stop command to the processor 8 as in normal DMA control.

これにより、プロセッサ8は今のサイクル終了後、バス
を解放し、バス解放信号をゲート9に出しプロセッサ8
とバスとを遮断し、又ハス解放信号をDMAコントロー
ラ1に出す。
As a result, the processor 8 releases the bus after the current cycle ends, and sends a bus release signal to the gate 9.
and the bus, and sends a lotus release signal to the DMA controller 1.

すると、DMAコントローラ1は、アンド回路4に用意
完了とのHレベルの信号を送り強制回路6にてメモリ2
へのデータバスの例えば8本を強制的にアースに落とし
Oとさせる。
Then, the DMA controller 1 sends an H level signal to the AND circuit 4 to indicate that the preparation is complete, and the forcing circuit 6 causes the memory 2
For example, eight of the data buses connected to the terminal are forcibly grounded to O.

又同時に、メモリ2に書込み信号を送り、又アドレスバ
スにて初期化する先頭アドレスをアドレスバスより出力
する。
At the same time, a write signal is sent to the memory 2, and a start address to be initialized via the address bus is output from the address bus.

すると、メモリ2の先頭アドレス例えば「0000」番
地に16進数の「00」が書き込まれ初期化される。
Then, a hexadecimal number "00" is written to the start address of the memory 2, for example, address "0000", and the memory 2 is initialized.

次は、roo01J番地1次はro 002J番地、・
・・のアドレス信号が最終アドレス例えばrlooOJ
番地になる迄ひきつづき出力され初期化される。
Next is address roo01J, first address is ro002J, etc.
The address signal of ... is the final address, for example rlooOJ
It is output and initialized continuously until it reaches the address.

最終アドレス迄初期化が完了すると、DMAコントロー
ラ1はDMAEND信号をランチ部3へ送る。
When the initialization up to the final address is completed, the DMA controller 1 sends a DMAEND signal to the launch unit 3.

ラッチ部3はこのEND信号にてランチを解除し、初期
化要求信号を落とし、メモリ2のクリア作業を終了し、
同時に強制回路6はデータバスをアースに落とすのを止
める。
The latch unit 3 releases the launch with this END signal, drops the initialization request signal, completes the clearing work of the memory 2,
At the same time, the forcing circuit 6 stops pulling the data bus to ground.

この場合は、DMAコントローラlに初期化する先頭ア
ドレス及び最終アドレスが書き込むのに約20サイクル
かかり、初期化するのには、アドレスが送られた時に初
期化するので、アドレスが1001あれば初期化するの
に1001サイクルとなり、合計すると1021サイク
ルとなる。
In this case, it takes about 20 cycles to write the first address and the last address to be initialized to the DMA controller l, and it is initialized when the address is sent, so if the address is 1001, it will be initialized. It takes 1001 cycles to do this, and the total is 1021 cycles.

従って従来の場合の約1/6のサイクルにて初期化出来
る。
Therefore, initialization can be performed in about 1/6 of the cycle required in the conventional case.

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

以上詳細に説明せる如く本発明によれば、電源投入時、
メモリを初期化する時間が大幅に短縮される効果がある
As explained in detail above, according to the present invention, when the power is turned on,
This has the effect of significantly shortening the time to initialize memory.

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

第1図は本発明の原理ブロック図、 第2図は本発明の実施例の計算機のブロック図、第3図
は従来例メモリ初期化のプログラムを示す図である。 図において、 1は直接メモリアクセスコントローラ、2はメモリ、 3はラッチ手段、ラッチ部、 4はアンド回路、 5は書込み手段、 6は強制回路、 7はROM。 8はプロセッサ、 9はゲートを示す。 木発日月の原工呈ブ゛口・ツク図 第 1  序n
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a block diagram of a computer according to an embodiment of the present invention, and FIG. 3 is a diagram showing a conventional memory initialization program. In the figure, 1 is a direct memory access controller, 2 is a memory, 3 is a latch means, a latch section, 4 is an AND circuit, 5 is a write means, 6 is a forcing circuit, and 7 is a ROM. 8 represents a processor, and 9 represents a gate. Kibatsu Sungetsu's original construction book opening/tsuku map No. 1 Preface n

Claims (1)

【特許請求の範囲】 直接メモリアクセスコントローラ(1)及びメモリ(2
)を有する計算機において、 電源投入時、該直接メモリアクセスコントローラ(1)
にクリア要求信号を出力すると共にアンド回路(4)に
Hレベルの信号を出力するラッチ手段(3)及び、電源
投入時、該直接メモリアクセスコントローラ(1)に、
初期化する該メモリ(2)の先頭アドレス及び最終アド
レスを書き込む書込み手段(5)及び、該アンド回路(
4)の出力にて該メモリ(2)へのデータバスを強制的
に0とする強制回路(6)を設け、 該直接メモリアクセスコントローラ(1)は、クリア要
求信号が入力し、初期化する先頭アドレス及び最終アド
レスが書き込まれたら、該アンド回路(4)に直接メモ
リアクセス用意完了とのHレベルの信号を送り該強制回
路(6)にて該メモリ(2)へのデータバスを強制的に
0とし、又該メモリ(2)に書込み信号を送り、又アド
レスバスにて初期化する先頭アドレスより最終アドレス
迄のアドレスを順次該メモリ(2)に出力し、該メモリ
(2)を初期化するようにしたことを特徴とする計算機
[Claims] Direct memory access controller (1) and memory (2)
), when the power is turned on, the direct memory access controller (1)
a latch means (3) which outputs a clear request signal to the AND circuit (4) and an H level signal to the AND circuit (4), and when the power is turned on, the direct memory access controller (1);
a writing means (5) for writing the start address and end address of the memory (2) to be initialized; and the AND circuit (
A forcing circuit (6) is provided which forcibly sets the data bus to the memory (2) to 0 at the output of step 4), and the direct memory access controller (1) is initialized when the clear request signal is input. When the first address and the last address are written, an H level signal is sent to the AND circuit (4) to indicate that memory access is ready, and the forcing circuit (6) forces the data bus to the memory (2). is set to 0, sends a write signal to the memory (2), and sequentially outputs the addresses from the first address to the last address to be initialized via the address bus to the memory (2) to initialize the memory (2). A computer characterized by being designed to
JP63173590A 1988-07-11 1988-07-11 Computer Pending JPH0222717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63173590A JPH0222717A (en) 1988-07-11 1988-07-11 Computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63173590A JPH0222717A (en) 1988-07-11 1988-07-11 Computer

Publications (1)

Publication Number Publication Date
JPH0222717A true JPH0222717A (en) 1990-01-25

Family

ID=15963409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63173590A Pending JPH0222717A (en) 1988-07-11 1988-07-11 Computer

Country Status (1)

Country Link
JP (1) JPH0222717A (en)

Similar Documents

Publication Publication Date Title
JPS61156358A (en) Bus converter
JPH0222717A (en) Computer
JPH0567035A (en) Data alignment method in DMA transfer
JPH03218551A (en) Semiconductor file memory and storage system using memory
JPS5841525B2 (en) Direct memory access system
JP2580877B2 (en) Light module for data flow calculator
JPS6362083A (en) Projection data generation method
JPS59189433A (en) Data erasing system by direct memory access
JP3168845B2 (en) Digital signal processor
JP2854301B2 (en) Memory access circuit
JPS5953579B2 (en) character compression device
KR0157254B1 (en) Address Map Setting Circuit for Memory Board on VM Bus System
JPS5933042Y2 (en) Sequence control device
JPS61851A (en) Data chain system of direct memory access circuit
JPS61221838A (en) Developing device for microcomputer
JPS5975351A (en) Initializing system of floppy disk
JPH01181145A (en) Data composing system for dma transfer device
Brenner et al. CAMAC extended branch serial driver
JPH0628059A (en) Initializing device for hardware simulator
JPS59167734A (en) Direct memory access control system
JPH031279A (en) Simulator
JPS60176106A (en) Sequence controller
JPH02236741A (en) Logic simulator
JPH0816507A (en) Peripheral device for ide bus
JPH01274258A (en) System for guaranteeing write on data memory device