JPS6381537A - Computer system - Google Patents
Computer systemInfo
- Publication number
- JPS6381537A JPS6381537A JP61226738A JP22673886A JPS6381537A JP S6381537 A JPS6381537 A JP S6381537A JP 61226738 A JP61226738 A JP 61226738A JP 22673886 A JP22673886 A JP 22673886A JP S6381537 A JPS6381537 A JP S6381537A
- Authority
- JP
- Japan
- Prior art keywords
- register
- cpu
- input
- power
- data
- 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
Links
- 230000015654 memory Effects 0.000 claims abstract description 18
- 230000002093 peripheral effect Effects 0.000 abstract description 21
- 230000006870 function Effects 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 3
- 230000000717 retained effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Retry When Errors Occur (AREA)
- Power Sources (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の目的〕
(産業上の利用分野)
本発明は、マイクロCPU、メモリ周辺制御用LSI構
成されるコンピュータシステムに関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a computer system configured with a micro CPU and a memory peripheral control LSI.
(従来の技術)
記憶内容を電池によってバックアップする電子装置にお
いて、を源をOFFしても、現在実行中のプログラムに
必要な全ての状態を保持し、電源を再びONした時にそ
のプログラムを継続実行させる機能を持つものがある。(Prior Art) In an electronic device whose memory contents are backed up by a battery, all states necessary for the currently running program are retained even when the power is turned off, and the program continues to be executed when the power is turned on again. There are some that have the ability to do this.
ここではこの機能をリジューム機能(Resume)と
称し、以下の説を行なう。この機能を実現するためには
、実行中のプログラムが使用している全てのレジスタ内
容を保持する必要がある。Here, this function is referred to as a resume function (Resume), and the following explanation will be given. In order to realize this function, it is necessary to maintain the contents of all registers used by the program being executed.
ところで従来のこの種装置ではCPUが持つレジスタの
内容のみ保持することで実現しているものが多い。しか
しながらこの場合、CPUK接続されている周辺の入出
力装置を制御する回路の状態は保持されず、従って完全
なリジューム機能は提供されない。周辺の入出力装置の
制御回路まで保持するためには、CPUのレジスタ同様
にそれらの制御状態を示すデータを保持する必要がある
。By the way, in many conventional devices of this type, this is achieved by retaining only the contents of registers held by the CPU. However, in this case, the state of the circuit that controls peripheral input/output devices connected to the CPUK is not maintained, and therefore a complete resume function is not provided. In order to hold the control circuits of peripheral input/output devices, it is necessary to hold data indicating their control states, similar to the registers of the CPU.
この種装置のシステム構成を第3図に示す。図中、33
.34は入出力制御装置(IOC)であり、市販の入出
力制御用LSIにて構成される。これらはCPUJJか
ら発せられる入出力命令によって制御可能である。メモ
リ32は電源ON時には図示せぬ主電源からその電力の
供給を受け、電源OFF時には図示せぬ電池等のバック
アップ用電源から電力の供給を受け、電源OFF中でも
その記憶データを保持できる不揮発性メモリである。The system configuration of this type of device is shown in FIG. In the figure, 33
.. 34 is an input/output control device (IOC), which is composed of a commercially available LSI for input/output control. These can be controlled by input/output commands issued from CPUJJ. The memory 32 is a non-volatile memory that receives power from a main power source (not shown) when the power is on, receives power from a backup power source such as a battery (not shown) when the power is off, and can retain its stored data even when the power is off. It is.
CPUJJ、入出力制御装置33.34の電力は主電源
のみから電力の供給を受け、電源OFF時はバックアッ
プされない。The CPUJJ and input/output control devices 33 and 34 are supplied with power only from the main power source, and are not backed up when the power is turned off.
(発明が解決しようとする問題点)
ところで最近は、半導体技術の進展によυマイクロコン
ピュータ、メモリ、周辺制御用LSIが安価に供給され
る様になった。これらコンポーネントを適当に組合せる
だけで比較的高性能なコンピュータシステムを構築出来
る。上記周辺制御用LSIのコントロールはCPUから
の入出力(INPUTloUTPUT)命令によってア
クセス可能な入出力レジスタによって行なわれるように
なっている。従がって、これら周辺制御用LSIに内蔵
される入出力レジスタのデータを保持すればCPUのみ
ならず入出力装置の状態を保持でき、よシ完全なリジュ
ーム(Resume)機能(電源ON時電源OFF時の
プログラムをそのまま継続実行する機能)を実現できる
。ところが、多くの周辺制御用L8Iは筈込み専用の入
出力レジスタを持つ。このような入出力レジスタがある
と電源OFF時、CPUはその制tlLsIの入出力レ
ジスタ(S込み専用)の内容を読取シ、それをメモリに
セーブすることができず、従ってそのLSIの状態を完
全に保持することが不可能となる。(Problems to be Solved by the Invention) Recently, with the progress of semiconductor technology, microcomputers, memories, and LSIs for peripheral control have become available at low cost. By appropriately combining these components, a relatively high-performance computer system can be constructed. The peripheral control LSI is controlled by an input/output register that can be accessed by an input/output (INPUTloUTPUT) command from the CPU. Therefore, by retaining the data in the input/output registers built into these peripheral control LSIs, the status of not only the CPU but also the input/output devices can be retained, making it possible to maintain a complete resume function (when the power is turned on, the A function that allows the program to continue running as it is when the program is turned off can be realized. However, many L8Is for peripheral control have input/output registers exclusively used for prerequisites. If there is such an input/output register, when the power is turned off, the CPU cannot read the contents of the input/output register (S included only) of the control tlLsI and save it in memory, so the state of the LSI cannot be saved. It is impossible to hold it completely.
本発明は上記事情に基づいてなされたものであり、よシ
完全なリジューム機能を実現するコンピュータシステム
を提供することを目的とする。The present invention has been made based on the above circumstances, and an object of the present invention is to provide a computer system that realizes a more complete resume function.
(問題点を解決するための手段)
本発明は周辺制御用LSIが内蔵する入出力レジスタを
不揮発生メモリ上にバックアップ(退避)する際、その
LSIが持つ読出し専用の入出力レジスタ、読出し/書
込み可能な入出力レジスタ以外に、啓込み専用の入出力
レジスタもバックアップすることを可能にし、よシ完全
なリジューム機能を実現するものである0
このため、周辺制御用L8Iが持つ曾込み専用の入出力
レジスタ(CPUが読取シネ可)にデータを書込む際新
たに付加される複写用レジスタにも同一データを書込み
電源の再投入時、CPUはそのデータを読取シ、プログ
ラムを継続実行する構成としたものである。(Means for Solving the Problems) When backing up (saving) the input/output registers built into a peripheral control LSI onto a non-volatile memory, the present invention provides for In addition to the possible input/output registers, it is also possible to back up input/output registers dedicated to loading, thereby realizing a complete resume function. When writing data to the output register (which the CPU can read and cine), the same data is also written to the newly added copy register, and when the power is turned on again, the CPU reads the data and continues executing the program. This is what I did.
(作用)
上記構成にて、電源断の直前は、CPUが持つ全てのレ
ジスタと共に、周辺制御用LSI内蔵の入出力レジスタ
の内容も退避する。この時、CPUは各々のレジスタの
内容を読出しそれらを不揮発性メモリへ書込む。ここで
、CPUが周辺制御用LSI内蔵の書込み専用入出力レ
ジスタに対し、続出し命令を実行した場合そのデータは
複写用レジスタから読取る。電源再投入時には、不揮発
性メモリに退避されである全てのデータを元の状態に戻
す。このことによシミ源断要求のために中断されたプロ
グラムはその状態から再実行可となる。このことによシ
、完全なリジューム機能を実現できる。(Function) In the above configuration, immediately before the power is turned off, the contents of the input/output registers built into the peripheral control LSI are saved together with all the registers of the CPU. At this time, the CPU reads the contents of each register and writes them to nonvolatile memory. Here, when the CPU executes a continuation instruction to the write-only input/output register built into the peripheral control LSI, the data is read from the copy register. When the power is turned on again, all data saved in nonvolatile memory is restored to its original state. As a result, a program that was interrupted due to a power cut request can be re-executed from that state. This makes it possible to realize a complete resume function.
(実施例)
以下、図面を使用して本発明実施例につき詳細に説明す
る。第1図は本発明の実施例を示すブロック図である。(Example) Hereinafter, examples of the present invention will be described in detail using the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention.
図において、11はマイクロプロセッサ(μCPU)J
Jはメモリ、13.14は周辺制御用LSIであり、こ
れら各コンポーネントが入出力バス15に共通に接続さ
れることによりコンピュータシステムが構築されている
。本発明ではこの入出力バス151C更に入出力レジス
タファイル16が接続されている。周辺制御用LS11
3.14が内蔵する入出力レジスタの中には書込み専用
の入出力レジスタがある。外部接続される入出力レジス
タファイル16はこれら書込み専用の入出力レジスタの
衿写をとってマイクロCPUIIがそのデータを読取る
ことを可能とするために設けられた回路ブロックである
。具体的にはマイクロプロセラ−9−11が周辺制御用
LS113,14内蔵の書込み専用の入出力レジスタに
対し出力命令全実行するとマイクロブロセ・ツナ1ノか
らの書込みデータは、その書込み専用入出力レジスタと
同時に入出力レジスタファイル16内の該当入出力レジ
スタ位置にも書込まれる。In the figure, 11 is a microprocessor (μCPU) J
J is a memory, 13.14 is a peripheral control LSI, and a computer system is constructed by connecting these components in common to the input/output bus 15. In the present invention, the input/output register file 16 is further connected to this input/output bus 151C. LS11 for peripheral control
Among the input/output registers built into 3.14, there is a write-only input/output register. The externally connected input/output register file 16 is a circuit block provided to copy these write-only input/output registers and enable the micro CPU II to read the data. Specifically, when the microprocessor 9-11 executes all output instructions to the write-only input/output registers built into the peripheral control LS113 and 14, the write data from the microprocessor Tuna 1 is transferred to the write-only input/output registers. It is also written to the corresponding input/output register location in the input/output register file 16 at the same time as the register.
この入出力レジスタファイル16は書込みのみならず読
取シも可能である。This input/output register file 16 can be read as well as written.
第2図は本発明実施例の動作を示すフローチャートであ
る。FIG. 2 is a flowchart showing the operation of the embodiment of the present invention.
以下第2図に示すフローチャートを参照しながら第1図
に示した実施例の動作について詳細に説明する。電源O
FF の直前には、マイクロプロセッサ11内蔵の全て
のレジスタと共に、周辺制御用LS113.14内蔵の
入出力レジスタの内容もセーブ(退避)する。この時、
マイクロプロセッサ11は各々のレジスタ内容を読出し
、それらを不揮発性メモリに書込む。通常はマイクロプ
ロ七ツfilのスタック・ポイントが示すメモリ12上
のスタック位置にブツシュする。ここでもしマイクロプ
ロセッサ1ノが周辺制御用LS113.14内蔵の瞥込
み専用入出力レジスタに対して入力命令(読出し命令)
を実行するとそのデータは周辺制御用LS113.14
からではなく、入出力レジスタファイル16から読取ら
れることKなる。The operation of the embodiment shown in FIG. 1 will be described in detail below with reference to the flowchart shown in FIG. Power supply O
Immediately before the FF, the contents of the input/output registers built into the peripheral control LS 113.14 are saved along with all the registers built into the microprocessor 11. At this time,
Microprocessor 11 reads the contents of each register and writes them to non-volatile memory. Normally, it is written to the stack location in the memory 12 indicated by the stack point of the microprocessor file. Here, if the microprocessor 1 inputs an instruction (read instruction) to the glance-only input/output register built into the peripheral control LS113.14,
When executed, the data is sent to peripheral control LS113.14.
K is read from the input/output register file 16 rather than from the input/output register file 16.
電源ON(再投入)時には不揮発性メモリ12上にセー
ブした全てのデータを元の状態に戻す。When the power is turned on (returned on), all data saved on the nonvolatile memory 12 is returned to its original state.
これで電源断の要求のため中断されたプログラムは、そ
の状態から再実行可能となる。ここではマイクロプロセ
ッサ11のみならず、周辺の入出力制御回路の状態をも
含めて再実行可となる。A program that was interrupted due to a power-off request can now be re-executed from that state. Here, the state of not only the microprocessor 11 but also the peripheral input/output control circuits can be re-executed.
以上説明の様に本発明に従えば、電源の再投入時CPU
以外の周辺制御用LSIをも電源断直前の状態に復帰さ
せることが可となるため、プログラムを継続実行させる
ことが出来、完全なリジューム機能を実現させることが
出来、完全なリジューム機能を実現できる。According to the present invention as explained above, when the power is turned on again, the CPU
Since it is possible to return other peripheral control LSIs to the state immediately before the power was turned off, the program can continue to be executed, and a complete resume function can be realized. .
第1図は本発明の実施例を示すブロック図。
第2図は本発明実施例の動作を示すフローチャート、第
3図は従来におけるコンピュータシステムの構築例を示
すブロック図である。
11・・・マイクロプロセッサ(μCPU)、12・・
・メモリ、13,14・・・周辺制御用LSI、J5・
・・入出力バス、16・・・入出力レジスタファイル。
出願人代理人 弁理士 鈴 江 武 彦1/l)1
1102
第1図
第3図
第2図
帽凰OFFFIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a flowchart showing the operation of the embodiment of the present invention, and FIG. 3 is a block diagram showing an example of the construction of a conventional computer system. 11... Microprocessor (μCPU), 12...
・Memory, 13, 14... Peripheral control LSI, J5・
...I/O bus, 16...I/O register file. Applicant's agent Patent attorney Takehiko Suzue 1/l) 1
1102 Figure 1 Figure 3 Figure 2 Cap OFF
Claims (1)
し、電源の再投入時そのプログラムを継続実行するのに
必要なハードウェア状態に関するデータを不揮発性メモ
リに退避するコンピュータシステムであって、該コンピ
ュータシステムには上記プログラムの継続実行に必要不
可欠であり、CPUが読取り不能なハードウェア状態に
関するデータを保持するレジスタが含まれ、CPUが上
記レジスタにデータを書込む際、付加される複写用レジ
スタにも同一データを書込み、電源の再投入時、CPU
はその複写用レジスタを介して必要データを読取りプロ
グラムを継続実行することを特徴とするコンピュータシ
ステム。A computer system that suspends a currently running program when a power-off request is received, and saves data related to the hardware state necessary for continuing execution of the program when the power is turned on again to a nonvolatile memory, The computer system includes a register that is essential for the continued execution of the program and holds data related to the hardware state that cannot be read by the CPU, and a copying register that is added when the CPU writes data to the register. Write the same data to the register, and when the power is turned on again, the CPU
A computer system that reads necessary data through its copying register and continuously executes a program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61226738A JPH0833838B2 (en) | 1986-09-25 | 1986-09-25 | Computer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61226738A JPH0833838B2 (en) | 1986-09-25 | 1986-09-25 | Computer system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS6381537A true JPS6381537A (en) | 1988-04-12 |
JPH0833838B2 JPH0833838B2 (en) | 1996-03-29 |
Family
ID=16849832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61226738A Expired - Lifetime JPH0833838B2 (en) | 1986-09-25 | 1986-09-25 | Computer system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0833838B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5892977A (en) * | 1995-08-11 | 1999-04-06 | Kabushiki Kaisha Toshiba | Apparatus and method for read-accessing write-only registers in a DMAC |
US6108792A (en) * | 1988-09-06 | 2000-08-22 | Seiko Epson Corporation | Article for providing continuity of operation in a computer |
EP1102174A1 (en) * | 1999-11-19 | 2001-05-23 | Mitsubishi Electric Europe B.V. | Semiconductor device with non-volatile mode register |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS519540A (en) * | 1974-07-13 | 1976-01-26 | Fujitsu Ltd | |
JPS5539987A (en) * | 1978-09-14 | 1980-03-21 | Mitsubishi Electric Corp | Automatic operation restart system of computer system |
JPS59231623A (en) * | 1983-06-15 | 1984-12-26 | Fujitsu Ltd | Equivalent continuous operation method |
JPS60132220A (en) * | 1983-12-20 | 1985-07-15 | Sanyo Electric Co Ltd | Microcomputer |
JPS60225924A (en) * | 1984-04-25 | 1985-11-11 | Seiko Epson Corp | Information processor |
JPS61127021A (en) * | 1984-11-27 | 1986-06-14 | Mitsubishi Electric Corp | Terminal equipment |
-
1986
- 1986-09-25 JP JP61226738A patent/JPH0833838B2/en not_active Expired - Lifetime
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS519540A (en) * | 1974-07-13 | 1976-01-26 | Fujitsu Ltd | |
JPS5539987A (en) * | 1978-09-14 | 1980-03-21 | Mitsubishi Electric Corp | Automatic operation restart system of computer system |
JPS59231623A (en) * | 1983-06-15 | 1984-12-26 | Fujitsu Ltd | Equivalent continuous operation method |
JPS60132220A (en) * | 1983-12-20 | 1985-07-15 | Sanyo Electric Co Ltd | Microcomputer |
JPS60225924A (en) * | 1984-04-25 | 1985-11-11 | Seiko Epson Corp | Information processor |
JPS61127021A (en) * | 1984-11-27 | 1986-06-14 | Mitsubishi Electric Corp | Terminal equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6108792A (en) * | 1988-09-06 | 2000-08-22 | Seiko Epson Corporation | Article for providing continuity of operation in a computer |
US5892977A (en) * | 1995-08-11 | 1999-04-06 | Kabushiki Kaisha Toshiba | Apparatus and method for read-accessing write-only registers in a DMAC |
EP1102174A1 (en) * | 1999-11-19 | 2001-05-23 | Mitsubishi Electric Europe B.V. | Semiconductor device with non-volatile mode register |
Also Published As
Publication number | Publication date |
---|---|
JPH0833838B2 (en) | 1996-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4175838B2 (en) | Information processing apparatus with standby mode, standby mode start method and standby mode cancel method | |
JPH04362717A (en) | System restarting device | |
EP0470624B1 (en) | DMA controller having jump function | |
US5361348A (en) | Debug circuit of a signal processor | |
US5481756A (en) | DMA controller mailing auto-initialize halting unit | |
JPH0588795A (en) | Data processor | |
JPS6381537A (en) | Computer system | |
JPH04311219A (en) | Data backup system | |
CN100370395C (en) | Information processing device, memory management program, and memory management method | |
JPH11102238A (en) | Computer system and suspend control method therefor | |
KR930002300B1 (en) | Method for stand-by function of p.c. | |
JP2701739B2 (en) | Processor switching method | |
JPS6048770B2 (en) | Information processing method | |
JP3080882B2 (en) | Data backup and restoration system | |
JPH04105110A (en) | Power controller | |
JPS63157238A (en) | computer | |
JPH06119257A (en) | Large scale integrated circuit incorporating internal state saving structure | |
JPH04273553A (en) | Computer system | |
JPH04209034A (en) | In-circuit emulator | |
JPH03292527A (en) | Arithmetic unit | |
JPH06223028A (en) | Suspend resume controller | |
JPS63298654A (en) | Microcomputer | |
JPS6220045A (en) | Current/stand-by switching system for memory device | |
JPS63311446A (en) | Power supply on/off function test system for logical device | |
JPH0218739B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |