JPH03182933A - Data processor - Google Patents

Data processor

Info

Publication number
JPH03182933A
JPH03182933A JP32341989A JP32341989A JPH03182933A JP H03182933 A JPH03182933 A JP H03182933A JP 32341989 A JP32341989 A JP 32341989A JP 32341989 A JP32341989 A JP 32341989A JP H03182933 A JPH03182933 A JP H03182933A
Authority
JP
Japan
Prior art keywords
program
ram
rom
transfer
storage area
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.)
Ceased
Application number
JP32341989A
Other languages
Japanese (ja)
Inventor
Fumihiro Abe
阿部 文洋
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP32341989A priority Critical patent/JPH03182933A/en
Publication of JPH03182933A publication Critical patent/JPH03182933A/en
Ceased legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To speed up a processing without damaging the versatility of a micro processor by storing in a RAM a transfer program for transferring a program in ROM to RAM. CONSTITUTION:When the micro processor 1 is started, it jumps to the head address of a transfer program storage area 3c in ROM 3, transfers fixed data stored in a storage area 3a to a fixed data loading area 2d in RAM 2 by the execution of the transfer program stored in the storage area 3c and transfers the program stored in a storage area 3b to a program loading area 2e. When transfer terminates, the micro processor 1 jumps to the head address of the program loading area 2e by the execution of a jump instruction arranged at the end of the transfer program, and the execution of the program is started. Thus, a processing speed is speeded up without damaging the versatility of the micro processor.

Description

【発明の詳細な説明】 (産業上の利用分野) (1) 本発明は、各種の制御システムや通信システムなどで利
用されるデータ処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) (1) The present invention relates to a data processing device used in various control systems, communication systems, and the like.

(従来の技術) 各種の制御システムや通信システム内などに設置される
データ処理装置の典型的なものは、プログラムを格納し
ておく不揮発性のプログラムROMと、スタックデータ
や可変データなどを格納しておく揮発性のRAMと、こ
れらのROMやRAMをアクセスしつつ所定の制御を実
行するマイクロプロセッサから構成されている。
(Prior Art) Typical data processing devices installed in various control systems and communication systems include a non-volatile program ROM for storing programs, and a memory for storing stack data, variable data, etc. It consists of a volatile RAM that is stored and a microprocessor that executes predetermined control while accessing these ROM and RAM.

一般に、マスクROMなどで構成される不揮発性のRO
Mへのアクセス所要時間は、RAMへのアクセス所要時
間よりも大きくなる。そこで、処理速度の向上を図るう
えで、処理開始時にROM上のプログラムをRAM上に
転送してしまい、この転送済みのプログラムをRAMか
ら読出して実行するという高速化の方式が採用される場
合がある。
Generally, non-volatile RO consisting of mask ROM etc.
The time required to access M is longer than the time required to access RAM. Therefore, in order to improve processing speed, there are cases where a method is adopted in which the program in ROM is transferred to RAM at the start of processing, and the transferred program is read out from RAM and executed. be.

(発明が解決しようとする課題) (2) 上記従来の転送方式では、ROM内のプログラムをRA
M上に転送するための転送プログラムをマイクロプロセ
ッサ内に設定しておく必要があり、マイクロプロセッサ
の汎用性が著しく損なわれるという問題がある。
(Problem to be solved by the invention) (2) In the above conventional transfer method, the program in the ROM is
It is necessary to set up a transfer program in the microprocessor in order to transfer data to M, which poses a problem in that the versatility of the microprocessor is significantly impaired.

(課題を解決するための手段) 本発明のデータ処理装置は、ROM内のプログラムをR
AM内の所定のエリアに転送するための転送プログラム
がこのROM内に格納されると共に、プロセッサはその
動作開始時にROM内に格納されている転送プログラム
の先頭アドレスに分岐してその実行を開始しこの実行の
終了後は前記RAMに転送済みのプログラムを読出して
実行する手段を備え、マイクロプロセッサの汎用性を損
なうことなくメモリアクセスの高速化に伴う処理の高速
化を実現するように構成されている。
(Means for Solving the Problems) A data processing device of the present invention reads a program in a ROM.
A transfer program for transferring to a predetermined area in the AM is stored in this ROM, and at the start of its operation, the processor branches to the start address of the transfer program stored in the ROM and starts its execution. After this execution is completed, the microprocessor is provided with means for reading and executing the program transferred to the RAM, and is configured to realize faster processing due to faster memory access without impairing the versatility of the microprocessor. There is.

以下、本発明の作用を実施例と共に詳細に説明する。Hereinafter, the operation of the present invention will be explained in detail together with examples.

(実施例) 第1図は、本発明の一実施例に係わるデータ処(3) 浮装置の構成を示すブロック図であり、1はマイクロプ
ロセッサ、2はRAM、3はROM、4はバスである。
(Embodiment) FIG. 1 is a block diagram showing the configuration of a data processing (3) floating device according to an embodiment of the present invention, in which 1 is a microprocessor, 2 is a RAM, 3 is a ROM, and 4 is a bus. be.

RAM2は、スタックエリア2aと、可変データ格納エ
リア2bと、オバーレイエリア2Cとに加えて、固定デ
ータ・ロードエリア2dとプログラム・ロードエリア2
eとを備えている。ROM3は、固定データ格納エリア
3aとプログラム格納エリア3bとに加えて、転送プロ
グラム(IPL)格納エリア3Cを備えている。
The RAM 2 includes a fixed data load area 2d and a program load area 2 in addition to a stack area 2a, a variable data storage area 2b, and an overlay area 2C.
It is equipped with e. The ROM 3 includes a transfer program (IPL) storage area 3C in addition to a fixed data storage area 3a and a program storage area 3b.

なお、第1図はRAM2とRAMa上の格納データの説
明を主眼として描れているため、これらのRAM/RO
Mがマイクロプロセッサ1によってアクセスされる際に
ハスクロック信号に基づきリード/ライトのタイごング
信号を作成するRAM/ROMアクセスコントローラに
ついては図示が省略されている。
Note that since Figure 1 is mainly drawn to explain the data stored in RAM2 and RAMa, these RAM/RO
A RAM/ROM access controller that generates a read/write timing signal based on a hash clock signal when M is accessed by the microprocessor 1 is not shown.

マイクロプロセッサ1は、電源の投入や、コマンドの投
入などによって起動されると、第2図のフローチャート
に示すように、まず、自装置内と(4) 必要な場合にはRAM2をリセットしくステップ11)
 、ROMa内の転送プログラム格納エリア3Cの先頭
アドレスにジャンプする(ステップ12)。次に、マイ
クロプロセッサ1は、ROM3の格納エリア3Cに格納
されている転送プログラムの実行により、格納エリア3
aに格納されている固定データをバス4経出でRAM2
内の固定データ・ロードエリア2dに転送し、引続きR
OMa内の格納エリア3bに格納されているプログラム
をバス4経出でRAM2のプログラム・ロードエリア2
eに転送する(ステップ13〉。マイクロプロセッサ1
は、上記転送の終了時にこの転送プログラムの末尾に配
置されているジャンプ命令の実行によりRAMA内のプ
ログラム・ロードエリアの先頭アドレスにジャンプしく
ステップ14)このプログラムの実行を開始する。
When the microprocessor 1 is started by turning on the power or inputting a command, as shown in the flowchart of FIG. )
, jumps to the start address of the transfer program storage area 3C in ROMa (step 12). Next, the microprocessor 1 transfers data to the storage area 3C by executing the transfer program stored in the storage area 3C of the ROM 3.
The fixed data stored in a is transferred to RAM2 via bus 4.
Transfer to the fixed data load area 2d in R.
The program stored in storage area 3b in OMa is transferred to program load area 2 of RAM 2 via bus 4.
microprocessor 1 (step 13).
At the end of the transfer, the jump instruction placed at the end of the transfer program is executed to jump to the start address of the program load area in the RAMA, thereby starting execution of the program (step 14).

以上、プログラムと固定データの双方をROMからRA
Mに転送する構成を例示した。しかしながら、固定デー
タの量やアクセスの頻度が小さい場合などにはプログラ
ムのみをROMからRAM(5) に転送する構成としてもよい。
As mentioned above, both the program and fixed data are transferred from ROM to RA.
An example of a configuration for transferring data to M is illustrated. However, if the amount of fixed data or the frequency of access is small, a configuration may be adopted in which only the program is transferred from the ROM to the RAM (5).

(発明の効果) 以上詳細に説明したように、本発明のデータ処理装置は
、プロセッサの動作開始時にROM上に格納されている
プログラムをRAM上に転送しこの転送の終了後はRA
M上に転送済みのプログラムを読出して実行する構成で
あるから、メモリアクセスの高速化に伴う処理速度の高
速化を実現することができる。
(Effects of the Invention) As described above in detail, the data processing device of the present invention transfers the program stored in the ROM to the RAM when the processor starts operating, and after the transfer ends, the data processing device transfers the program stored in the ROM to the RAM.
Since the program is configured to read and execute a program that has already been transferred to M, it is possible to achieve faster processing speed due to faster memory access.

また、本発明のデータ処理装置によれば、上記動作開始
時にROMからRAMへのプログラムの転送を行う転送
プログラムをROM内に格納する構成であるから、これ
をマイクロプロセッサ内に設定する従来装置とは異なり
、マイクロプロセッサの汎用性が損なわれることはない
。
Further, according to the data processing device of the present invention, the transfer program for transferring the program from the ROM to the RAM at the start of the operation is stored in the ROM. However, the versatility of the microprocessor is not compromised.

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

第1図は本発明の一実施例に係わるデータ処理装置の構
成を示すブロック図、第2図は動作開始時にマイクロプ
ロセッサが行う処理の内容を説明するためのフローチャ
ートである。 (6) 1・・・マイクロプロセッサ、2・・・RAM。 2d・・・固定データ・ロードエリア、2e・・・プロ
グラム・ロードエリア、3・・・ROM、3a・・・固
定データ格納エリア、3b・・・プログラム格納エリア
、3c・・・転送プログラム格納エリア、4・・・ハス
。
FIG. 1 is a block diagram showing the configuration of a data processing device according to an embodiment of the present invention, and FIG. 2 is a flowchart for explaining the contents of processing performed by a microprocessor at the start of operation. (6) 1...Microprocessor, 2...RAM. 2d...Fixed data load area, 2e...Program load area, 3...ROM, 3a...Fixed data storage area, 3b...Program storage area, 3c...Transfer program storage area , 4... Lotus.

Claims (1)

【特許請求の範囲】 プロセッサと、このプロセッサがアクセス可能なROM
及びRAMとを備えたデータ処理装置であって、 前記ROMにはこれに格納され前記プロセッサによって
実行されるプログラムを前記RAM内の所定のエリアに
転送するための転送プログラムが格納されると共に、 前記プロセッサはその動作開始時に前記ROM内に格納
されている転送プログラムの先頭アドレスに分岐してそ
の実行を開始し、この実行の終了後は前記RAMに転送
済みのプログラムをこのRAMから読出して実行する手
段を備えたことを特徴とするデータ処理装置。
[Claims] A processor and a ROM that can be accessed by this processor
and a RAM, wherein the ROM stores a transfer program for transferring a program stored in the ROM and executed by the processor to a predetermined area in the RAM; At the start of its operation, the processor branches to the start address of the transfer program stored in the ROM and starts its execution, and after finishing this execution, reads the program already transferred to the RAM from this RAM and executes it. A data processing device characterized by comprising means.
JP32341989A 1989-12-12 1989-12-12 Data processor Ceased JPH03182933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32341989A JPH03182933A (en) 1989-12-12 1989-12-12 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32341989A JPH03182933A (en) 1989-12-12 1989-12-12 Data processor

Publications (1)

Publication Number Publication Date
JPH03182933A true JPH03182933A (en) 1991-08-08

Family

ID=18154479

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32341989A Ceased JPH03182933A (en) 1989-12-12 1989-12-12 Data processor

Country Status (1)

Country Link
JP (1) JPH03182933A (en)

Similar Documents

Publication Publication Date Title
JPH11316686A (en) BIOS data storage device for computer system and method of driving the same
JP2000112864A (en) Method and apparatus for controlling peripheral device by Java applet, and recording medium
US6766448B2 (en) Microcomputer for transferring program data to an internal memory from an external memory connected via a bus and a method therefor
JPS59226958A (en) Memory device
JPH01261758A (en) Computer system
JPS5913785B2 (en) information processing equipment
JPH0158522B2 (en)
JPS6148746B2 (en)
JPS62169243A (en) Program loading system
JPS62243032A (en) Information processor
JPH08106307A (en) Programmable controller
JPS60126731A (en) Program control method
JPS61182163A (en) Program expanding system
JPH0520059A (en) Microprocessor with cache memory
JPS61166630A (en) Microprogram control system
JPH02228731A (en) System switching control system
JPH0359464B2 (en)
JPS63155241A (en) Address space control system
JPS63275097A (en) Non-volatile memory
JPH0381854A (en) Memory access system
JPH03294923A (en) Information processor
JPH04277890A (en) IC card
JPH03160547A (en) Input/output buffer control method for data processor
JPH04112389A (en) Data flow type processor control system
JPS6127777B2 (en)