JPH05143752A - Automatic initial setting data reading circuit - Google Patents
Automatic initial setting data reading circuitInfo
- Publication number
- JPH05143752A JPH05143752A JP3334297A JP33429791A JPH05143752A JP H05143752 A JPH05143752 A JP H05143752A JP 3334297 A JP3334297 A JP 3334297A JP 33429791 A JP33429791 A JP 33429791A JP H05143752 A JPH05143752 A JP H05143752A
- Authority
- JP
- Japan
- Prior art keywords
- output
- signal
- register
- lsi
- input
- 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
Landscapes
- Microcomputers (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、汎用性を高めるため
に、LSI内部のレジスタに、外部から初期データ設定
を行う方式のLSIにおいて、初期設定データを外部か
ら自動的に上記レジスタに読み込む回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a circuit in which initial setting data is automatically read from the outside in an LSI of a system in which initial data is externally set to a register inside the LSI in order to improve versatility. Regarding
【0002】[0002]
【従来の技術】LSIにおいて、汎用性を重視する場合
に、LSI内部に外部からデータを書き込む記録器(以
後これをレジスタと呼ぶ)を設け、初期設定時にデータ
を書き込み、LSIを動作させることがある。例えば、
LSI内部にタイマ回路があった場合、通常ではタイマ
の設定値はLSI内部で固定され、外部からは変更でき
ないが、レジスタを設けることにより外部から設定する
ことが可能となる。このような構造にしておけば、シス
テムの変更により設定値が変更となっても、あらたにL
SIを作り直さずに対応できる。この場合、より汎用性
を増すためにレジスタを複数持つことが多く、極端な場
合にはLSIの可変できるすべての要素(カウンタ・タ
イマの設定値、シフトレジスタのシフト値等)をレジス
タにより設定する方式とし完全な汎用性を持たせること
もできる。なお、レジスタを複数持つ場合、外部からの
データの設定方法としてレジスタの数だけ外部ピンを設
ける方法があるが、ピン数が非常に多くなり現実性に乏
しくあまり行われていない。一般的には、LSIにバス
(アドレスバス、データバス)を設け、データの書き込
みを行う方式がとられている。なお、この方式では、L
SIをCPUを含むシステムで使用することが前提にな
る。図4にレジスタにデータを書き込む場合の構成を示
す。同図において、CPU1はバス2を介してROM3
からLSI4への設定データを1個読み込み、バス2を
介してそのデータをLSI4のレジスタに書き込む。さ
らに次のデータをROM3から読み込み、LSI4に書
き込む。この操作を繰り返してレジスタへの書き込みを
行うのである。2. Description of the Related Art In an LSI, when importance is attached to versatility, a recorder for writing data from outside (hereinafter referred to as a register) is provided inside the LSI, and data can be written at the time of initial setting to operate the LSI. is there. For example,
When a timer circuit is provided inside the LSI, normally, the set value of the timer is fixed inside the LSI and cannot be changed from the outside, but it is possible to set it from the outside by providing a register. With this structure, even if the set value is changed due to the system change, the L
It can be handled without recreating SI. In this case, there are often a plurality of registers to increase versatility, and in extreme cases, all variable elements of the LSI (set values of counter / timer, shift values of shift register, etc.) are set by the registers. It is possible to have a system with complete versatility. In the case of having a plurality of registers, there is a method of setting external pins as many as the number of registers as a method of setting data from the outside, but the number of pins is so large that it is not practical and is not often done. Generally, a method is adopted in which a bus (address bus, data bus) is provided in the LSI and data is written. In this system, L
It is assumed that SI is used in a system including a CPU. FIG. 4 shows a configuration for writing data to the register. In the figure, a CPU 1 is a ROM 3 via a bus 2.
Read one setting data from the LSI to the LSI 4 and write the data to the register of the LSI 4 via the bus 2. Further, the next data is read from the ROM 3 and written in the LSI 4. This operation is repeated to write to the register.
【0003】[0003]
【発明が解決しようとする課題】しかし、このようにL
SIのレジスタの書き込みにバス方式をとった場合、C
PUを持たないシステムでは使用できないという欠点が
ある。システムの小型化のために使うべきLSIが、C
PUを持たない小さなシステムでは使えないという矛盾
が生じる。However, in this way, L
If the bus method is used for writing SI registers, C
It has the drawback that it cannot be used in systems without a PU. The LSI that should be used for system miniaturization is C
There is a contradiction that it cannot be used in a small system without a PU.
【0004】本発明の目的は、前述のレジスタの書き込
みにバス方式をとったLSIを、CPUを持たないシス
テムでも使用できるようにすることである。It is an object of the present invention to make it possible to use the above-mentioned bus-based LSI for writing registers in a system having no CPU.
【0005】[0005]
【課題を解決するための手段】上記目的を達成するた
め、本発明の初期設定データ自動読み込み回路は、シス
テムクロックを取り込み、複数段出力を有するシフトレ
ジスタと、該シフトレジスタの初段を含む偶数段出力を
入力する第1のオア回路と、上記シフトレジスタの奇数
段出力を入力する第2のオア回路と、上記第1,第2の
回路の出力を夫々セット及びリセット端子に入力するフ
リップフロップと、上記フリップフロップの出力に対し
て逆位相の信号を入力するカウンタと、書き込み、アド
レス、データの各入力ポートを有するLSI内のレジス
タと、自動読込設定信号の状態に応じて外部から入力さ
れる書き込み信号と上記フリップフロップ出力とを択一
的に上記レジスタの書き込み入力ポートに供給せしめる
第1の信号選択手段と、上記自動読み取り設定信号の状
態に応じて、外部から上記アドレス端子に入力されるア
ドレス信号と上記カウンタ出力とを択一的に上記レジス
タのカウンタ入力ポートに供給せしめるとともに、この
カウンタの出力が選択された際と、この出力を上記アド
レス端子にも供給せしめる第2の信号選択手段と、を備
えたことを要旨とする。In order to achieve the above object, an initialization data automatic reading circuit of the present invention takes in a system clock, has a shift register having a plurality of output stages, and an even number stage including the first stage of the shift register. A first OR circuit for inputting an output, a second OR circuit for inputting an odd-numbered output of the shift register, and a flip-flop for inputting the outputs of the first and second circuits to set and reset terminals, respectively. , A counter for inputting a signal having a phase opposite to that of the output of the flip-flop, a register in the LSI having input ports for writing, address, and data, and externally input according to the state of the automatic read setting signal First signal selecting means for selectively supplying the write signal and the flip-flop output to the write input port of the register Depending on the state of the automatic reading setting signal, the address signal externally input to the address terminal and the counter output are selectively supplied to the counter input port of the register, and the output of the counter is selected. And a second signal selecting means for supplying the output to the address terminal.
【0006】[0006]
【作用】LSI内部のレジスタに、リセット時に初期設
定データを外部からCPUを使用しなくても、自動的に
読み込ませることができる。The register in the LSI can automatically read the initial setting data from the outside at the time of resetting without using the CPU.
【0007】[0007]
【実施例】以下図面に示す本発明の実施例を説明する。
図1は本発明によるLSI内部のレジスタへのバス方式
による初期設定データ自動読み込み回路の一実施例を示
す。同図において、10はシステムのクロック入力端
子、11はリセット入力端子、12は自動読込設定端
子、13は書き込み(WR)信号入力端子、14はアド
レスバス入出力端子、15はデータバス入出力端子、1
6,19,20はスリーステートバッファー、17は双
方向バスバッファー、18はインバータ、21はセット
・リセット・フリップフロップ、22はカウンタ、2
3,24はオア回路、25はLSI内部のレジスタ、2
6はシフトレジスタである。Embodiments of the present invention shown in the drawings will be described below.
FIG. 1 shows an embodiment of a circuit for automatically reading initial setting data to a register inside an LSI according to the present invention. In the figure, 10 is a system clock input terminal, 11 is a reset input terminal, 12 is an automatic read setting terminal, 13 is a write (WR) signal input terminal, 14 is an address bus input / output terminal, and 15 is a data bus input / output terminal. 1
6, 19 and 20 are three-state buffers, 17 is a bidirectional bus buffer, 18 is an inverter, 21 is a set / reset flip-flop, 22 is a counter, 2
3, 24 are OR circuits, 25 are registers inside the LSI, 2
6 is a shift register.
【0008】なお、本実施例は8ビットデータのレジス
タが4個ある場合の例であり、レジスタの数によりシフ
トレジスタ26の段数及びオア回路23,24の入力端
子数を可変させる必要がある。図1において、端子10
から15まではLSIの入出力ピンである。自動読込設
定端子12は、CPUがないシステムでLSIを使用す
る場合に“H”レベルに固定し、CPUがあるシステム
出力は“L”レベルに固定する。Note that this embodiment is an example in which there are four registers of 8-bit data, and it is necessary to change the number of stages of the shift register 26 and the number of input terminals of the OR circuits 23 and 24 depending on the number of registers. In FIG. 1, the terminal 10
1 to 15 are input / output pins of the LSI. The automatic read setting terminal 12 is fixed to the "H" level when the LSI is used in a system having no CPU, and the system output having the CPU is fixed to the "L" level.
【0009】まず、“Hレベル”に固定する場合、すな
わちCPUがないシステムの場合から説明する。この場
合、スリーステートバッファー16が閉じられ、スリー
ステートバッファー19が開かれる。これによりレジス
タ25のWRポートへの入力はLSI内部の本回路から
与えられることになる。また、双方向バスバッファー1
7は、LSIから見て出力方向に制御され、スリーステ
ートバッファー20が開かれるので、本回路から作られ
るアドレスは、レジスタ25のアドレスに入力されると
共に、アドレスバス14から外部に出力される。このア
ドレスバスは、図3に示すように外部ROMのアドレス
に、データバス15は外部ROMのデータにそれぞれ接
続される。信号の流れとしては、最初にリセット端子1
1にリセット信号が入力される。この場合、リセット信
号は端子10に入力されるシステムクロックと同期して
おり、且つシステムクロックの2周期分の期間“H”レ
ベルであることが必要である。リセット信号入力により
シフトレジスタ26の出力Q0からQ7を、図2に示
す。図1で、26のシフトレジスタ出力のQ0,Q2,
Q4,Q6は、4入力オア回路23の各入力端子へ入力
され、それぞれの出力パルスの立上りでセット・リセッ
ト・フリップフロップ21をセットする。シフトレジス
タ26の出力のQ1,Q3,Q5,Q7は、4入力オア
回路24の各入力端子へ入力され、それぞれの出力パル
スの立上りでセット・リセット・フリップフロップ21
をセットする。そして、セット・リセット・フリップフ
ロップ21の出力は、レジスタ25のデータ書き込み信
号WRとなり、その波形を図2に示す。また、この書き
込み信号WRを反転した信号は、バイナリカウンタ22
のCLK端子に入力され、パルスの立上りでカウンタ2
2がカウントアップされる。このカウンタ22の出力
は、レジスタ25のアドレス及びLSIのアドレスバス
14(外部ピン)に出力される。図3に示すように、L
SIのアドレスバス14は、外部ROMのアドレスバス
に接続されているため、外部ROMはそのアドレスのデ
ータをデータバス15に出力する。このデータがLSI
のデータバスを介して、図1のレジスタ25へのデータ
として入力される。そして、レジスタ25のWR信号の
立上りにそのデータが読み込まれる。タイミング的に
は、図2に示すように、カウンタ値が完全に安定したと
ころで、書き込み信号(WR)が出力される。この時点
では、外部ROMからのデータも確定しているため、レ
ジスタ25へのデータの書き込みは確実に行われる。First, the case of fixing to "H level", that is, the case of a system having no CPU will be described. In this case, the three-state buffer 16 is closed and the three-state buffer 19 is opened. As a result, the input to the WR port of the register 25 is given from this circuit inside the LSI. Also, bidirectional bus buffer 1
7 is controlled in the output direction when viewed from the LSI, and the three-state buffer 20 is opened, so that the address created by this circuit is input to the address of the register 25 and is output to the outside from the address bus 14. As shown in FIG. 3, this address bus is connected to the address of the external ROM, and the data bus 15 is connected to the data of the external ROM. As for the signal flow, the reset terminal 1 is first
A reset signal is input to 1. In this case, the reset signal needs to be in synchronization with the system clock input to the terminal 10 and at the “H” level for a period of two cycles of the system clock. The outputs Q0 to Q7 of the shift register 26 upon inputting the reset signal are shown in FIG. In FIG. 1, Q0, Q2 of 26 shift register outputs
Q4 and Q6 are input to the respective input terminals of the 4-input OR circuit 23, and set / reset flip-flop 21 is set at the rising edge of each output pulse. The outputs Q1, Q3, Q5, Q7 of the shift register 26 are input to the respective input terminals of the 4-input OR circuit 24, and the set / reset flip-flop 21 is output at the rising edge of each output pulse.
Set. The output of the set / reset flip-flop 21 becomes the data write signal WR of the register 25, and its waveform is shown in FIG. The signal obtained by inverting the write signal WR is the binary counter 22.
Is input to the CLK terminal of the
2 is counted up. The output of the counter 22 is output to the address of the register 25 and the address bus 14 (external pin) of the LSI. As shown in FIG.
Since the SI address bus 14 is connected to the address bus of the external ROM, the external ROM outputs the data of the address to the data bus 15. This data is LSI
1 is input as data to the register 25 of FIG. Then, the data is read at the rising edge of the WR signal of the register 25. In terms of timing, as shown in FIG. 2, the write signal (WR) is output when the counter value is completely stable. At this point in time, the data from the external ROM has also been determined, so writing of data to the register 25 is reliably performed.
【0010】なお、シフトレジスタ26のQ7の出力
は、図1のバイナリカウンタ22のクリア信号としても
使われ、レジスタ25への書き込みが終了すれば、カウ
ンタ22をクリアする。また、Q7の出力は、LSIの
内部回路に対するリセット信号としても使用される。以
上によりLSIの外部からリセット信号が入力されてか
ら、実際にLSIの内部へのリセット信号が出力される
までの間に、レジスタ25へのデータ書き込みが行われ
ることになる。次に図1の自動読み込み端子12が
“L”レベルに固定された場合の説明をする。この場
合、スリーステートバッファー16が開き、スリーステ
ートバッファー19,20が閉じる。また、双方向バッ
ファー17がLSIから見て入力方向に制御される。こ
の結果、アドレス及びWR信号は図4の場合のようにC
PUから与えられることになり、本回路で作られたアド
レス及びWR信号は無視される。なお、LSIの内部回
路に与えられるリセット信号は、自動読込設定端子12
が、“H”レベルに固定された場合と同じタイミングで
出力される。The output of Q7 of the shift register 26 is also used as the clear signal of the binary counter 22 of FIG. 1, and when the writing to the register 25 is completed, the counter 22 is cleared. The output of Q7 is also used as a reset signal for the internal circuit of the LSI. As described above, the data is written to the register 25 between the input of the reset signal from the outside of the LSI and the actual output of the reset signal to the inside of the LSI. Next, the case where the automatic reading terminal 12 of FIG. 1 is fixed to the "L" level will be described. In this case, the three-state buffer 16 is opened and the three-state buffers 19 and 20 are closed. Further, the bidirectional buffer 17 is controlled in the input direction when viewed from the LSI. As a result, the address and WR signals are C as in the case of FIG.
Since it is given from PU, the address and WR signal generated by this circuit are ignored. The reset signal given to the internal circuit of the LSI is the automatic read setting terminal 12
Are output at the same timing as when they are fixed to the "H" level.
【0011】[0011]
【発明の効果】以上説明したように本発明によれば、内
部レジスタの書き込みにバス方式をとったLSIを、C
PUを持たないシステムでも使用できるようになり、シ
ステム小型化に役立つ。As described above, according to the present invention, an LSI that uses the bus system for writing the internal register is
It can be used in a system that does not have a PU, which helps reduce the system size.
【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.
【図2】上記実施例の動作説明用のタイミングチャート
である。FIG. 2 is a timing chart for explaining the operation of the above embodiment.
【図3】上記実施例の動作説明用のブロック図である。FIG. 3 is a block diagram for explaining the operation of the above embodiment.
【図4】従来のLSI内のレジスタへのバス方式による
初期設定データの読み込み方法の説明図である。FIG. 4 is an explanatory diagram of a method of reading initial setting data into a register in a conventional LSI by a bus method.
10 システムクロック入力端子 11 リセット入力端子 12 自動読込設定端子 13 WR信号入力端子 14 アドレスバス入出力端子 15 データバス入出力端子 16,19,20 スリーステートバッファー 17 双方向バスバッファー 21 セット・リセット・フリップフロップ 22 バイナリカウンタ 23,24 4入力オア回路 25 レジスタ 26 シフトレジスタ 10 system clock input terminal 11 reset input terminal 12 automatic read setting terminal 13 WR signal input terminal 14 address bus input / output terminal 15 data bus input / output terminal 16, 19, 20 three-state buffer 17 bidirectional bus buffer 21 set reset flip-flop 22 binary counter 23, 24 4 input OR circuit 25 register 26 shift register
Claims (1)
力を有するシフトレジスタと、 該シフトレジスタの初段を含む偶数段出力を入力する第
1のオア回路と、 上記シフトレジスタの奇数段出力を入力する第2のオア
回路と、 上記第1,第2の回路の出力を夫々セット及びリセット
端子に入力するフリップフロップと、 上記フリップフロップの出力に対して逆位相の信号を入
力するカウンタと、書き込み、アドレス、データの各入
力ポートを有するLSI内のレジスタと、自動読込設定
信号の状態に応じて外部から入力される書き込み信号と
上記フリップフロップ出力とを択一的に上記レジスタの
書き込み入力ポートに供給せしめる第1の信号選択手段
と、 上記自動読込設定信号の状態に応じて、外部から上記ア
ドレス端子に入力されるアドレス信号と上記カウンタ出
力とを択一的に上記レジスタのカウンタ入力ポートに供
給せしめるとともに、このカウンタの出力が選択された
際と、この出力を上記アドレス端子にも供給せしめる第
2の信号選択手段と、 を備えたことを特徴とする初期設定データ自動読み込み
回路。1. A shift register having a plurality of stages of outputs which takes in a system clock, a first OR circuit which inputs an even number stage output including a first stage of the shift register, and a first OR circuit which inputs an odd number stage output of the shift register. 2 OR circuit, a flip-flop for inputting the outputs of the first and second circuits to the set and reset terminals, a counter for inputting a signal of an opposite phase to the output of the flip-flop, a writing and address , A register in the LSI having each data input port, and a write signal externally input according to the state of the automatic read setting signal and the flip-flop output are selectively supplied to the write input port of the register. According to the state of the first signal selection means and the automatic read setting signal, an address input from the outside to the address terminal is input. Second signal selecting means for selectively supplying the response signal and the counter output to the counter input port of the register and also supplying the output to the address terminal when the output of the counter is selected. An initial setting data automatic reading circuit characterized by including
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3334297A JPH05143752A (en) | 1991-11-22 | 1991-11-22 | Automatic initial setting data reading circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3334297A JPH05143752A (en) | 1991-11-22 | 1991-11-22 | Automatic initial setting data reading circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05143752A true JPH05143752A (en) | 1993-06-11 |
Family
ID=18275771
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3334297A Pending JPH05143752A (en) | 1991-11-22 | 1991-11-22 | Automatic initial setting data reading circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05143752A (en) |
-
1991
- 1991-11-22 JP JP3334297A patent/JPH05143752A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5175819A (en) | Cascadable parallel to serial converter using tap shift registers and data shift registers while receiving input data from FIFO buffer | |
JP3013714B2 (en) | Semiconductor storage device | |
JPH05273311A (en) | Logic integrated circuit | |
JPH05143752A (en) | Automatic initial setting data reading circuit | |
JPS5927624A (en) | Integrated circuit possible for logical change | |
JPH0763135B2 (en) | Semiconductor integrated logic circuit | |
JP2788729B2 (en) | Control signal generation circuit | |
JPH02156177A (en) | Semiconductor integrated circuit device | |
JP2806849B2 (en) | Memory address controller | |
JP2646561B2 (en) | Clock distribution circuit | |
JPS5947394B2 (en) | Variable length two-dimensional register | |
JP3254781B2 (en) | Semiconductor device | |
SU1667005A1 (en) | Programme-control device | |
JPS6144342B2 (en) | ||
JP2716284B2 (en) | Semiconductor integrated circuit | |
JPH04243313A (en) | Flip-flop | |
JPS6160456B2 (en) | ||
JPH08287674A (en) | Continuous access memory | |
JPS6337415B2 (en) | ||
JPH0611544A (en) | Test pattern generator | |
JPH06118138A (en) | Testing circuit | |
JPH0490196A (en) | Clock pulse detecting circuit | |
JPS61269288A (en) | Storage element module | |
JPS59211317A (en) | Flip-flop | |
JPH0289300A (en) | Semiconductor memory element |