JPH03260728A - Register data writing system - Google Patents

Register data writing system

Info

Publication number
JPH03260728A
JPH03260728A JP5918390A JP5918390A JPH03260728A JP H03260728 A JPH03260728 A JP H03260728A JP 5918390 A JP5918390 A JP 5918390A JP 5918390 A JP5918390 A JP 5918390A JP H03260728 A JPH03260728 A JP H03260728A
Authority
JP
Japan
Prior art keywords
processor
data
register
memory
address
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
JP5918390A
Other languages
Japanese (ja)
Inventor
Tsuneo Fujiwara
藤原 常雄
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 JP5918390A priority Critical patent/JPH03260728A/en
Publication of JPH03260728A publication Critical patent/JPH03260728A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the writing efficiency by providing a memory to temporarily hold the data to be written into each register and transferring the data stored in the memory to those registers at one time. CONSTITUTION:A processor 10 outputs previously the data to a data bus 001 via an address 002 for a register corresponding to the address of a memory 20. Then the processor 10 writes the data to be written in the registers 50 and 60 into the memory 20. When it is required to write data to each register from the processor 10, the processor 10 switches a selector signal 007 to a counter output address 003 and produces an instructions with a data writing instruction signal 006. A counter 30 is counted up by a processor basic clock 004, and the addresses of the memory 20 are successively switched. Then the data to be written into the registers 50 and 60 corresponding to the address 002 are successively outputted from the memory 20. Thus the processor 10 can write data into the registers with high efficiency.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置におけるレジスタの書込み方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a register writing method in an information processing device.

〔従来の技術〕[Conventional technology]

従来、情報処理装置におけるレジスタのデータ書込みは
、プロセッサから各レジスタに対し、1度に1つのレジ
スタに対しデータを書込むという方式が一般的であった
2. Description of the Related Art Conventionally, data writing to registers in information processing devices has generally been carried out by a processor writing data to each register one register at a time.

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

上述した従来のレジスタのデータ書込み方式では、プロ
セッサから各レジスタに対する書込みが1つづつ順次行
なわれる為、レジスタの数が多いとフロセッサはレジス
タの書込みに占有されてしまい、又処理上複数のレジス
タに対し同じデータを書込む場合等で効率が悪くなり処
理能力が問題となってくる。
In the conventional register data writing method described above, the processor writes to each register one by one, so if there are a large number of registers, the processor is occupied with writing to the registers. On the other hand, when writing the same data, efficiency deteriorates and processing capacity becomes a problem.

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

本発明のレジスタデータ書込み方式は、プロセッサと、
外プロセッサから書込み可能な複数のレジスタと、外各
レジスタに書込むデータを一時的に保持するメモリと、
該メモリのアドレスを切り換えるアドレスカウンタと、
前記レジスタに対するデータ書込み制御を行うクロック
制御回路と、前記プロセッサから出力されるアドレス信
号と前記アドレスカウンタの出力を前記プロセッサから
出力されるセレクタ切り換え信号により切り換えるセレ
クタと、 一4=に前記プロセッサと前記メモリと前記各レジスタ
に共通に接続されるデータバスと、前記プロセッサと前
記カウンタ及び前記クロック制御回路に共通に入力され
るクロック信号と、前記プロセッサから出力されるアド
レス信号と前記アドレスカウンタの前記プロセッサから
前記メモリに向うメモリデータ書込みクロックと、前記
プロセッサから前記カウンタ及び前記クロック制御回路
に向うレジスタ書込み指示信号と、前記クロック制御回
路からレジスタに向うレジスタ書込みクロックとを有す
ることにより、 前記メモリのデータを前記各レジスタに対して一度に転
送することを特徴とする。
The register data writing method of the present invention includes a processor,
Multiple registers that can be written to by an external processor, and a memory that temporarily holds data to be written to each external register.
an address counter that switches the address of the memory;
a clock control circuit that controls data writing to the register; a selector that switches an address signal output from the processor and an output of the address counter using a selector switching signal output from the processor; a data bus commonly connected to the memory and each of the registers; a clock signal commonly input to the processor, the counter, and the clock control circuit; an address signal output from the processor; and the processor of the address counter. By having a memory data write clock directed from the processor to the memory, a register write instruction signal directed from the processor to the counter and the clock control circuit, and a register write clock directed from the clock control circuit to the register. is transferred to each of the registers at once.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

10はプロセッサ、20はメモリ、30はアドレスカウ
ンタ、40はクロック制御回路、50゜60はレジスタ
、001はデータバス、002はメモリアドレス、00
3はカウンタ出力アドレス、004はプロセッサ用基本
クロック、005はメモリ書込クロック、006はデー
タ書込指示信号、007はセレクト信号、008,00
9はレジスタ50.60用のデータ書込クロック、01
0はレジスタ選択及びレジスタデータ書込クロックを含
む制御信号である。
10 is a processor, 20 is a memory, 30 is an address counter, 40 is a clock control circuit, 50.60 is a register, 001 is a data bus, 002 is a memory address, 00
3 is the counter output address, 004 is the processor basic clock, 005 is the memory write clock, 006 is the data write instruction signal, 007 is the select signal, 008,00
9 is the data write clock for registers 50 and 60, 01
0 is a control signal including a register selection and register data write clock.

本実施例では、プロセッサ10が2つのレジスタ50.
60に対しデータを書込む場合について説明するが、任
意の数のレジスタを持つ時も同様な動作となる。
In this embodiment, the processor 10 has two registers 50.
The case where data is written to 60 will be explained, but the same operation will be performed when an arbitrary number of registers are provided.

通常は、プロセッサ10からレジスタ50゜60に対し
データが書込まれる場合、書込まれるデータがデータバ
ス001に出力され、制御信号010内のレジスタ選択
信号及びデータ書込クロックによりレジスタ50又は6
0に書込まれる。
Normally, when data is written from the processor 10 to the registers 50 and 60, the data to be written is output to the data bus 001, and the register selection signal in the control signal 010 and the data write clock are used to write the data to the register 50 or 60.
Written to 0.

プロセッサ10からレジスタ50.60に対して一度に
データを書込む必要が生じた場合の動作は以下のように
なる。あらかじめ、アドレス002の番地とレジスタ5
0.60は一対一に対応させている(この例ではアドレ
スの0番地に対してレジスタ50、アドレスの1番地に
対してレジスタ60が対応している)。
The operation when it becomes necessary to write data from the processor 10 to the registers 50 and 60 at once is as follows. In advance, address 002 and register 5
0.60 is a one-to-one correspondence (in this example, address 0 corresponds to register 50, and address 1 corresponds to register 60).

プロセッサ10は、あらかじめメモリ20のアドレスに
対応したレジスタに対してアドレス002ヲ用いてデー
タバス001にデータを出力し、メモリ書込クロック0
05によりメモリ002のアドレス0番地及び1番地に
対し、レジスタ50゜60に書込むデータを書込んでお
く。
The processor 10 uses address 002 to output data to the data bus 001 in advance for the register corresponding to the address of the memory 20, and outputs data to the data bus 001 using the memory write clock 0.
05, the data to be written in registers 50 and 60 is written to addresses 0 and 1 of memory 002.

プロセッサ10から各レジスタに対しデータを書込む必
要が生じると、プロセッサ10はセレクタ信号007を
カウンタ出力アドレス003側に切換えデータ書込み指
示信号006により指示を行う。
When it becomes necessary for the processor 10 to write data to each register, the processor 10 switches the selector signal 007 to the counter output address 003 side and issues an instruction using the data write instruction signal 006.

基本クロック004によりカウンタ30がインクリメン
トされ、メモリ20のアドレスが順次切り換わり、メモ
リ20からアドレス002の番地に対応するレジスタ5
0.60に書込むデータが順番に出力される。
The counter 30 is incremented by the basic clock 004, the addresses in the memory 20 are sequentially switched, and the register 5 corresponding to the address 002 from the memory 20 is
The data written to 0.60 is output in order.

又、クロック制御回路40にデータバス001よりデー
タが入力されデータにはレジスタに書込むかどうかの指
示するビットを持っておりその指示なりロック制御回路
40内にて判断する。
Further, data is inputted to the clock control circuit 40 from the data bus 001, and the data has a bit for instructing whether to write to the register or not, and the lock control circuit 40 judges whether the data is written or not.

そして、レジスタ書込み信号008,009が基本クロ
ック004に同期してレジスタ50及び60に対して順
次書込まれることになる。
Then, register write signals 008 and 009 are sequentially written to registers 50 and 60 in synchronization with basic clock 004.

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

以上説明したように本発明は、プロセッサと、プロセッ
サから書込み可能な複数のレジスタと、各レジスタに書
込むデータを一時的に保持するメモリと、メモリのアド
レスを切り換えるアドレスカウンタと、レジスタに対す
るデータ書込み制御を行うクロック制御回路を持ち、プ
ロセッサ、メモリ及びレジスタに共通に接続されるデー
タバスと、プロセッサから出力されるアドレス信号とア
ドレスカウンタの出力をプロセッサから出力されるセレ
クタ切り換え信号により切り換えるセレクタと、プロセ
ッサからメモリに向うメモリデータ書込みクロックと、
プロセッサからカウンタ及びクロック制御回路に向うレ
ジスタ書込み指示信号と、クロック制御回路からレジス
タに向うレジスタ書込みクロックを有することにより、
プロセッサからレジスタに対するデータ書込み処理が効
率よく行える効果がある。
As explained above, the present invention includes a processor, a plurality of registers that can be written to by the processor, a memory that temporarily holds data to be written to each register, an address counter that switches memory addresses, and a register that can write data to the registers. a data bus having a clock control circuit for controlling the processor, a data bus commonly connected to the processor, the memory, and the register; a selector that switches the address signal output from the processor and the output of the address counter using a selector switching signal output from the processor; a memory data write clock from the processor to the memory;
By having a register write instruction signal from the processor to the counter and clock control circuit, and a register write clock from the clock control circuit to the register,
This has the effect that data writing processing from the processor to the register can be performed efficiently.

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

第1図は本発明の一実施例のブロック図である。 10・・・・・・プロセッサ、20・・・・・・メモリ
、30・・・・・・アドレスカウンタ、40・・・・・
・クロック制御回路、50・・・・・・レジスタ、60
・・・・・・レジスタ、001・・・・・・データバス
、002・・・・・・メモリアドレス、003・・・・
・・カウンタ出力アドレス、004・・・・・・基本ク
ロック、005・・・・・・メモリ書込みクロック、0
06・・・・・・データ書込み指示信号、007・・・
・・・セレクタ信号、008・・・・・・データ書込み
クロ、り、009・・・・・・データ書込みクロック、
OlO・・・・・・制御信号。
FIG. 1 is a block diagram of one embodiment of the present invention. 10...Processor, 20...Memory, 30...Address counter, 40...
・Clock control circuit, 50...Register, 60
...Register, 001...Data bus, 002...Memory address, 003...
... Counter output address, 004 ... Basic clock, 005 ... Memory write clock, 0
06... Data write instruction signal, 007...
... Selector signal, 008 ... Data write clock, 009 ... Data write clock,
OlO... Control signal.

Claims (1)

【特許請求の範囲】 プロセッサと、該プロセッサから書込み可能な複数のレ
ジスタと、該各レジスタに書込むデータを一時的に保持
するメモリと、該メモリのアドレスを切り換えるアドレ
スカウンタと、前記レジスタに対するデータ書込み制御
を行うクロック制御回路と、前記プロセッサから出力さ
れるアドレス信号と前記アドレスカウンタの出力を前記
プロセッサから出力されるセレクタ切り換え信号により
切り換えるセレクタと、 前記プロセッサと前記メモリと前記各レジ スタに共通に接続されるデータバスと、前記プロセッサ
と前記カウンタ及び前記クロック制御回路に共通に入力
されるクロック信号と、前記プロセッサから出力される
アドレス信号と前記アドレスカウンタの前記プロセッサ
から前記メモリに向うメモリデータ書込みクロックと、
前記プロセッサから前記カウンタ及び前記クロック制御
回路に向うレジスタ書込み指示信号と、前記クロック制
御回路からレジスタに向うレジスタ書込みクロックとを
有することにより、 前記メモリのデータを前記各レジスタに対して一度に転
送することを特徴とするレジスタのデータ書込み方式。
[Scope of Claims] A processor, a plurality of registers that can be written by the processor, a memory that temporarily holds data to be written to each register, an address counter that switches addresses of the memory, and data for the registers. a clock control circuit that performs write control; a selector that switches an address signal output from the processor and the output of the address counter using a selector switching signal output from the processor; a data bus connected to the processor, a clock signal commonly input to the processor, the counter, and the clock control circuit; an address signal output from the processor; and memory data writing of the address counter from the processor to the memory. clock and
By having a register write instruction signal from the processor to the counter and the clock control circuit, and a register write clock from the clock control circuit to the register, data in the memory is transferred to each register at once. A register data writing method characterized by:
JP5918390A 1990-03-09 1990-03-09 Register data writing system Pending JPH03260728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5918390A JPH03260728A (en) 1990-03-09 1990-03-09 Register data writing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5918390A JPH03260728A (en) 1990-03-09 1990-03-09 Register data writing system

Publications (1)

Publication Number Publication Date
JPH03260728A true JPH03260728A (en) 1991-11-20

Family

ID=13106040

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5918390A Pending JPH03260728A (en) 1990-03-09 1990-03-09 Register data writing system

Country Status (1)

Country Link
JP (1) JPH03260728A (en)

Similar Documents

Publication Publication Date Title
JPH03260728A (en) Register data writing system
JPH1091593A (en) Data processor provided with microprocessor and optional calculation unit
JPH03204753A (en) Dma controller
JPH02132543A (en) Information processor
JP2826490B2 (en) Vector data processing device
JPS62182857A (en) Input and output controller
JPH0267665A (en) Interface circuit
JP3078594B2 (en) Image storage device
JP2577604Y2 (en) Image memory and data processing device
JPH0355646A (en) Data storage circuit
JPH047730A (en) Magnetic disk control system
JPH05204830A (en) Input/output controller
JPH05128279A (en) One-chip microcomputer
JPS629430A (en) Data buffer control system
JPH06223036A (en) Serial communication device
JPH0667769A (en) Single chip microcomputer
JPS6343784B2 (en)
JPH0553906A (en) Register access system
JPS6356739A (en) History memory control system
JPH06295261A (en) Data transfer device of storage device
JPH04181374A (en) Vector processor
JPS63136136A (en) Register control circuit
JPH06161945A (en) Memory data transfer device
JPS61259358A (en) Dma circuit
JPH11110284A (en) Data transfer device