JPH05204749A - Memory space allocating circuit - Google Patents
Memory space allocating circuitInfo
- Publication number
- JPH05204749A JPH05204749A JP3724792A JP3724792A JPH05204749A JP H05204749 A JPH05204749 A JP H05204749A JP 3724792 A JP3724792 A JP 3724792A JP 3724792 A JP3724792 A JP 3724792A JP H05204749 A JPH05204749 A JP H05204749A
- Authority
- JP
- Japan
- Prior art keywords
- data
- address
- counter
- memory space
- output
- 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
Abstract
Description
【0001】[0001]
【産業上の利用分野】この発明は、メモリ空間割当回路
に関し、特にメモリ空間を自動的に割当できるメモリ空
間割当回路に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory space allocation circuit, and more particularly to a memory space allocation circuit that can automatically allocate a memory space.
【0002】[0002]
【従来の技術】図4はBusに接続されたボード内のそ
のボード自体のアドレス割当回路を示す図であり、図に
おいて、100はボードであり、Busはデータ・レジ
スタ3に接続され、ディップ・スイッチ1とデータ・レ
ジスタ3の出力はコンパレータ2に入力され、コンパレ
ータ2はボード内部にCS(チップ・セレクト)信号を
送出する。2. Description of the Related Art FIG. 4 is a diagram showing an address allocation circuit of a board itself connected to a bus, in which 100 is a board, and Bus is connected to a data register 3 and a dip The outputs of the switch 1 and the data register 3 are input to the comparator 2, and the comparator 2 sends out a CS (chip select) signal inside the board.
【0003】次に動作について説明する。図4におい
て、Busにボード100を接続した時に、ディップ・
スイッチ1にボード自体のアドレスを設定する。Bus
からアクセスされるアドレスは、データ・レジスタ3に
入力される。ボード自体のアドレスはディップ・スイッ
チ1から、またBusからアクセスされたアドレスは、
データ・レジスタ3から各々コンパレータ2に入力され
る。コンパレータ2では入力されたアドレスを比較し、
アドレスが等しければ、ボードをイネーブルにするCS
(チップ・セレクト)信号をアクティブにし、ボードを
動作させる。Next, the operation will be described. In Fig. 4, when the board 100 is connected to the Bus, the dip
The switch 1 sets the address of the board itself. Bus
The address accessed from is input to the data register 3. The address of the board itself is accessed from the DIP switch 1, and the address accessed from Bus is
Input from the data register 3 to each comparator 2. The comparator 2 compares the input addresses,
If the addresses are equal, CS to enable the board
Activate the (Chip Select) signal to activate the board.
【0004】[0004]
【発明が解決しようとする課題】従来のメモリ空間割当
は以上のようにディップ・スイッチにボード自体のアド
レスを設定することによりなされるので、もし、同一B
us上に同一アドレスを保持したボードが接続された場
合、Bus上でデータが衝突し、システムが誤動作する
などの問題点があった。Since the conventional memory space allocation is made by setting the address of the board itself in the DIP switch as described above, if the same B
When a board holding the same address is connected to us, there is a problem that data collides on the bus and the system malfunctions.
【0005】この発明は上記のような問題点を解消する
ためになされたもので、同一Bus上に同一アドレスを
保持したボードが存在しないようにすることにより、シ
ステムの誤動作を防止できるメモリ空間割当回路を得る
ことを目的とする。The present invention has been made in order to solve the above-mentioned problems, and it is possible to prevent a malfunction of a system by preventing a board holding the same address from existing on the same bus. Aim to get the circuit.
【0006】[0006]
【課題を解決するための手段】この発明に係るメモリ空
間割当回路は、初期化信号により初期化されクロック信
号に応じて上記メモリ空間の特定番地を順次出力するア
ドレスカウンタと、上記初期化信号により初期化され上
記クロック信号に応じて特定データを順次出力するデー
タカウンタと、上記アドレスカウンタにより指定された
上記メモリ空間の特定番地から読出されたデータと上記
データカウンタの出力する特定データとを比較し、その
一致,不一致を出力する比較手段と、該比較手段の出力
が不一致であるとき、上記アドレスカウンタの指定する
特定番地に上記データカウンタの出力する特定データを
書き込むデータ割当手段とを備え、割り当てられていな
いメモリ空間の特定番地に特定データを書き込むことに
より、自動的に特定番地を割り当てるものである。A memory space allocation circuit according to the present invention comprises an address counter which is initialized by an initialization signal and sequentially outputs specific addresses of the memory space according to a clock signal, and an initialization signal by the initialization signal. A data counter, which is initialized and sequentially outputs specific data in response to the clock signal, compares the data read from a specific address in the memory space designated by the address counter with the specific data output by the data counter. , A matching means for outputting the coincidence and the non-coincidence, and a data allocating means for writing the specific data output by the data counter to a specific address designated by the address counter when the outputs of the comparing means are non-coincident. By writing specific data to a specific address in a memory space that is It is intended to assign the address.
【0007】[0007]
【作用】この発明においては、割り当てられていないメ
モリ空間の特定番地に特定データを書き込む構成とした
から、同一Bus上に同一アドレスを保持したボードが
存在しないようにすることができ、システムの誤動作を
防止できる。In the present invention, since the specific data is written in the specific address of the unallocated memory space, it is possible to prevent the board holding the same address from existing on the same bus, and the system malfunctions. Can be prevented.
【0008】[0008]
【実施例】以下、この発明の一実施例を図について説明
する。図1はこの発明の一実施例によるメモリ空間割当
回路を示すブロック図で、本実施例のメモリ空間割当回
路は各ボードに設けられる。図に示すように、基準クロ
ック信号CLKがクロック発生器9に入力され、クロッ
ク発生器9の出力ReadはBus11とデレイフリッ
プフロップ3のCLK端子に入力され、クロック発生器
9の出力Writeは第2のオアゲート2に入力され、
出力CLK1は第1のオアゲート1に入力される。DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a memory space allocation circuit according to an embodiment of the present invention. The memory space allocation circuit of this embodiment is provided on each board. As shown in the figure, the reference clock signal CLK is input to the clock generator 9, the output Read of the clock generator 9 is input to Bus 11 and the CLK terminal of the delay flip-flop 3, and the output Write of the clock generator 9 is the second. Input to OR gate 2 of
The output CLK1 is input to the first OR gate 1.
【0009】デレイフリップフロップ3のQ出力は第1
のオアゲート1に入力され、QC出力は第2のオアゲー
ト2に入力される。また第1のオアゲート1の出力はア
ドレス・カウンタ4及びデータ・カウンタ5に入力され
る。第2のオアゲート2の出力はボード・レジスタ10
に入力される。アドレス・カウンタ4のカウント値出力
はBus11に接続される。データ・カウンタ5のカウ
ント値出力はBus11,コンパレータ8及びボード・
レジスタ10に入力される。Bus11上のデータはデ
ータ・レジスタ6に入力され、データ・レジスタ6の出
力はコンパレータ8に入力される。コンパレータ8の出
力はデレイフリップフロップのD端子に入力される。接
続検出器7の出力はアドレス・カウンタ4,データ・カ
ウンタ5及びデータ・レジスタ6に入力される。The Q output of the delay flip-flop 3 is the first
Is input to the OR gate 1, and the QC output is input to the second OR gate 2. The output of the first OR gate 1 is input to the address counter 4 and the data counter 5. The output of the second OR gate 2 is the board register 10
Entered in. The count value output of the address counter 4 is connected to Bus11. The count value output of the data counter 5 is Bus 11, the comparator 8 and the board.
It is input to the register 10. The data on the Bus 11 is input to the data register 6, and the output of the data register 6 is input to the comparator 8. The output of the comparator 8 is input to the D terminal of the delay flip-flop. The output of the connection detector 7 is input to the address counter 4, the data counter 5, and the data register 6.
【0010】次に動作について説明する。図1における
CLK入力,接続検出器7の出力A,クロック発生器9
の出力CLK1,Read, Write,コンパレータ
8の出力Compout,第1のオアゲート1の出力
B,第2のオアゲート2の出力C,アドレス・カウント
値,データ・カウント値,データ・レジスタ値を図2に
示す。図3は割り当てるメモリ空間を示し、当該メモリ
空間はアドレス0000H 番地にデータ00H を、アド
レス1000H 番地にデータ10H を、アドレス200
0H 番地にデータ20H を割り当てられているものと
し、アドレス3000H 番地以降のメモリ空間は未割当
である。アドレス3000H 番地はメモリ空間が未割当
のため、データFFH が入っている。Next, the operation will be described. CLK input in FIG. 1, output A of connection detector 7, clock generator 9
Output CLK1, Read, Write, output Compout of comparator 8, output B of first OR gate 1, output C of second OR gate 2, address count value, data count value, and data register value in FIG. Show. FIG. 3 shows a memory space to be allocated. In the memory space, data 00 H is stored at address 0000 H , data 10 H is stored at address 1000 H , and address 200 is stored.
It is assumed that the data 20 H is allocated to the address 0 H and the memory space after the address 3000 H is unallocated. Since the memory space is not allocated at the address 3000 H , the data FF H is stored.
【0011】図1,2,3において、クロック発生器9
はデータ入力として基準クロックCLKを入力すること
により、図2に示すような、Write,Read,C
LK1の波形を発生するものとする。1, 2, and 3, the clock generator 9
Inputs the reference clock CLK as a data input, so that Write, Read, C as shown in FIG.
It is assumed that the LK1 waveform is generated.
【0012】接続検出器7はボードがBus11に接続
されたことを検出すると、図2に示すようにA波形を出
力する。このA波形はアドレス・カウンタ4,データ・
カウンタ5,及びデータ・レジスタ6に入力され、これ
によりアドレス・カウンタ4,データ・カウンタ5,及
びデータ・レジスタ6は初期設定される。When the connection detector 7 detects that the board is connected to the Bus 11, it outputs the A waveform as shown in FIG. This A waveform is for address counter 4, data
The data is input to the counter 5 and the data register 6, whereby the address counter 4, the data counter 5, and the data register 6 are initialized.
【0013】そして、アドレス・カウンタ4とデータ・
カウンタ5がCLK1波形の打ち上がりエッジでカウン
ト・アップし、アドレス・カウンタ4で指定されたメモ
リ空間のアドレス番地のデータをRead波形の打ち下
がりでデータ・レジスタ6が読み出す。データ・カウン
タ5の値とデータ・レジスタ6の値はコンパレータ8に
入力され、コンパレータ8はこれらの値を比較し、一致
していれば“L”、不一致なら“H”レベルの波形をC
ompoutとして出力する。The address counter 4 and the data
The counter 5 counts up at the rising edge of the CLK1 waveform, and the data at the address address of the memory space designated by the address counter 4 is read by the data register 6 at the falling edge of the Read waveform. The value of the data counter 5 and the value of the data register 6 are input to the comparator 8, and the comparator 8 compares these values. If they match, the waveform of “L” level is output, and if they do not match, the “H” level waveform is output to C level.
Output as ompout.
【0014】アドレス・カウンタ4の値が3000H ,
データ・カウンタ5の値が30H になった時、Read
波形の打ち下がりで図3のメモリ空間のアドレス300
0H 番地内のデータFFH をデータ・レジスタ6が読み
出し、Compout波形はデータ・カウンタ5とデー
タ・レジスタ6の値が不一致なので“H”を出力し続け
る。そして、デレイフリップフロップ3はRead波形
の打ち下がりエッジでD端子に入力されたCompou
tの“H”レベル出力をQ出力に出力する。これによ
り、オアゲート1の出力(B波形)は常に“H”とな
り、アドレス・カウンタ4,データ・カウンタ5のカウ
ント・アップを中止する。そして、第2のオアゲート2
の出力(C波形)が“L”の時データ・カウンタ5の値
30H をボード・レジスタ10に書き込み、ボード自体
のアドレスを決定する。また、図3のアドレス3000
H 番地にもデータ30H が書き込まれる。The value of the address counter 4 is 3000 H ,
When the value of the data counter 5 reaches 30 H , Read
Address 300 in the memory space of FIG.
The data FF H in the address 0 H is read by the data register 6, and the Compout waveform continues to output “H” because the values of the data counter 5 and the data register 6 do not match. Then, the delay flip-flop 3 receives the COMPOU input to the D terminal at the falling edge of the Read waveform.
The "H" level output of t is output to the Q output. As a result, the output of the OR gate 1 (B waveform) is always "H", and the count up of the address counter 4 and the data counter 5 is stopped. And the second OR gate 2
When the output (C waveform) is "L", the value 30 H of the data counter 5 is written to the board register 10 to determine the address of the board itself. Also, the address 3000 in FIG.
Data 30 H is also written in address H.
【0015】このように、本実施例では、ホストコンピ
ュータのメモリの特定番地を順次指定するアドレスカウ
ンタと、特定データを順次出力するデータカウンタと、
アドレスカウンタにより指定される番地のメモリデータ
とデータカウンタが出力するデータとを比較するコンパ
レータとを備え、コンパレータの出力が不一致を示すと
きの特定番地にそのときのデータカウンタの出力データ
を書込み、かつこの出力データをボードレジスタに格納
する構成としたから、ホストコンピュータのメモリ内の
未割当の番地にボードのアドレスに該当するデータを自
動的に割り当てることができ、同一Busに接続される
ボードが同一のアドレスを持つことがなくなり、システ
ムの誤動作を防止できる。As described above, in this embodiment, the address counter for sequentially designating the specific address of the memory of the host computer, the data counter for sequentially outputting the specific data,
It is provided with a comparator that compares the memory data of the address specified by the address counter with the data output by the data counter, and writes the output data of the data counter at that time to a specific address when the output of the comparator indicates a mismatch, and Since this output data is stored in the board register, the data corresponding to the board address can be automatically assigned to the unallocated address in the memory of the host computer, and the boards connected to the same Bus are the same. Since it does not have the address of, the malfunction of the system can be prevented.
【0016】なお、上記実施例では、アドレスカウンタ
値の変化のしかたを0000H ,1000H ,2000
H ,…となるように、データカウンタ値の変化のしかた
を00H ,10H ,20H ,…となるように設定したも
のについて説明したが、これは用途に合わせて自由に設
定することができるものである。In the above embodiment, the method of changing the address counter value is 0000 H , 1000 H , 2000.
Although the method of changing the data counter value is set to 00 H , 10 H , 20 H , ... so that it becomes H 2 , ... Is described, this can be freely set according to the application. It is possible.
【0017】[0017]
【発明の効果】以上のように、この発明によれば、割り
当てられていないメモリ空間の特定番地に特定データを
書き込むことにより、メモリ空間の割当を行なう構成と
したので、同一Bus上に同一アドレスを保持したボー
ドが存在しないようにすることができ、システムの誤動
作を防止することができる効果がある。As described above, according to the present invention, since the memory space is allocated by writing the specific data in the specific address of the memory space which is not allocated, the same address is allocated on the same bus. It is possible to prevent the board that holds the device from existing and prevent the malfunction of the system.
【図1】この発明の一実施例によるメモリ空間割当回路
を示すブロック図である。FIG. 1 is a block diagram showing a memory space allocation circuit according to an embodiment of the present invention.
【図2】図1のメモリ空間割当回路の動作を説明するた
めの各出力波形図である。FIG. 2 is an output waveform diagram for explaining an operation of the memory space allocation circuit of FIG.
【図3】この発明の一実施例によりメモリ領域の割当が
なされるメモリ空間を示す図である。FIG. 3 is a diagram showing a memory space in which memory areas are allocated according to an embodiment of the present invention.
【図4】従来のメモリ空間アドレス割当を説明するため
の図である。FIG. 4 is a diagram for explaining conventional memory space address allocation.
1,2 オアゲート 3 デレイフリップフロップ 4 アドレスカウンタ 5 データカウンタ 6 データレジスタ 7 接続検出器 8 コンパレータ 9 クロック発生器 10 ボードレジスタ 11 Bus 1, 2 or gate 3 delay flip-flop 4 address counter 5 data counter 6 data register 7 connection detector 8 comparator 9 clock generator 10 board register 11 Bus
Claims (1)
保するメモリ空間割当回路であって、 初期化信号により初期化されクロック信号に応じて上記
メモリ空間の特定番地を順次出力するアドレスカウンタ
と、 上記初期化信号により初期化され上記クロック信号に応
じて特定データを順次出力するデータカウンタと、 上記アドレスカウンタにより指定された上記メモリ空間
の特定番地から読出されたデータと上記データカウンタ
の出力する特定データとを比較し、その一致,不一致を
出力する比較手段と、 該比較手段の出力が不一致であるとき、上記アドレスカ
ウンタの指定する特定番地に上記データカウンタの出力
する特定データを書き込むデータ割当手段とを備えたこ
とを特徴とするメモリ空間割当回路。1. A memory space allocation circuit for securing a certain memory area in a certain memory space, wherein the address counter is initialized by an initialization signal and sequentially outputs a specific address of the memory space according to a clock signal. A data counter initialized by the initialization signal and sequentially outputting specific data in response to the clock signal, data read from a specific address of the memory space designated by the address counter, and a specific output by the data counter. Comparing means for comparing the data and outputting the coincidence or non-coincidence, and data allocating means for writing the specific data output by the data counter to a specific address designated by the address counter when the outputs of the comparing means do not coincide And a memory space allocation circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3724792A JPH05204749A (en) | 1992-01-27 | 1992-01-27 | Memory space allocating circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3724792A JPH05204749A (en) | 1992-01-27 | 1992-01-27 | Memory space allocating circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05204749A true JPH05204749A (en) | 1993-08-13 |
Family
ID=12492304
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3724792A Pending JPH05204749A (en) | 1992-01-27 | 1992-01-27 | Memory space allocating circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05204749A (en) |
-
1992
- 1992-01-27 JP JP3724792A patent/JPH05204749A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5892929A (en) | Avoiding non-unique identifiers for bus devices | |
US6880094B2 (en) | Cas latency select utilizing multilevel signaling | |
JP2547654B2 (en) | Data processing device | |
US6601130B1 (en) | Memory interface unit with programmable strobes to select different memory devices | |
US5715410A (en) | Interface circuit for supporting PCMCIA cards in an X-terminal | |
EP0266428B1 (en) | Method of assigning a board slot number | |
JPS61211758A (en) | Multiprocessor system | |
US6324122B1 (en) | RAM synchronized with a signal | |
JPH05204749A (en) | Memory space allocating circuit | |
JP3804832B2 (en) | Memory device and computer system | |
JPH09282866A (en) | Classification of semiconductor memory device | |
US6453401B1 (en) | Memory controller with timing constraint tracking and checking unit and corresponding method | |
US5530818A (en) | Semiconductor integrated circuit device for optionally selecting the correspondence between a chip-select signal and address space | |
EP0795152B1 (en) | Adaptive dram timing | |
US5581793A (en) | System for bypassing setup states in a bus operation | |
JPS6126700B2 (en) | ||
KR19990032037A (en) | Isa System with Plug and Play Capability of Multiple Logic Units | |
JPH0474736B2 (en) | ||
EP0528773A1 (en) | A system for performing dynamically the configuration of expansion boards on personal computers having a standard bus | |
JPS5821734B2 (en) | Direct memory access control method | |
JPH02136921A (en) | Register access method | |
JPH02284244A (en) | Access control system for dual port memory | |
JPH04358220A (en) | Electronic disk device | |
JPH03160542A (en) | Microcomputer device | |
JPS63289661A (en) | Method for allocating address to input/output device |