JPH01255053A - Memory access device - Google Patents

Memory access device

Info

Publication number
JPH01255053A
JPH01255053A JP8365588A JP8365588A JPH01255053A JP H01255053 A JPH01255053 A JP H01255053A JP 8365588 A JP8365588 A JP 8365588A JP 8365588 A JP8365588 A JP 8365588A JP H01255053 A JPH01255053 A JP H01255053A
Authority
JP
Japan
Prior art keywords
access
counter
counting
decoder
flag
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
JP8365588A
Other languages
Japanese (ja)
Inventor
Atsuyuki Mukai
向 厚幸
Takeshi Miyazaki
剛 宮崎
Etsuko Kajiwara
梶原 悦子
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP8365588A priority Critical patent/JPH01255053A/en
Publication of JPH01255053A publication Critical patent/JPH01255053A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a circuit to prevent the contention of asynchronous access from occurring by stopping the counting of a counter means transiently, and making access to a memory by selecting a memory access signal line corresponding to the value of the counter means. CONSTITUTION:A counter 5 repeats the counting of 00-11 periodically, and checks the coincidence of the count value of its own circuit with a signal value from a NAND45. When the counter 5 coincides with the signal values of flags F1-F4, a load is applied, and the count value of the counter 5 is outputted to a decoder 6. The decoder 6 decodes an inputted count value, and outputs RAM access signals S1-S4 via an AND7. The output of the decoder 6 is fed back to a selector 4, and is added on the counter 5 via ANDs 41-44 and the NAND45. And the counting of the counter 5 is stopped transiently while the load is applied on the counter 5, and the input of another flag is waited for a while. Also, the output of the decoder 6 is added on an FF8, and flag clear signals 1-4 are generated, and are fed back to the AND311 of a register 3, then, the access is released at every completion of the access.

Description

【発明の詳細な説明】 〔概 要〕 複数の要求元から非同期にメモリにアクセスする装置に
関し、 この非同期のアクセスの競合を防止する回路を提供する
ことを目的とし、 複数の要求元から、非同期にセレクタを介してメモリに
アクセスする装置において、 複数のメモリアクセス要求信号線を保持する保持手段と
、該保持手段の出力のうち一つを選択する選択手段と、
該選択手段の出力を周期的に計数する計数手段と、該計
数手段の計数値をデコードするデコーダと、該デコード
の出力と前記保持手段の一致をとるANDを備え、前記
計数手段により計数した値をデコーダでデコードした該
値で示される要求信号線を選択手段により選択する場合
に、該針数手段の計数を一時停止して咳値に対応してメ
モリアクセス信号線を選択してメモリにアクセスするよ
うに構成する。
[Detailed Description of the Invention] [Summary] The purpose of this invention is to provide a circuit that prevents contention of asynchronous accesses regarding a device that accesses memory asynchronously from multiple requesters. In a device that accesses memory via a selector, the device comprises: holding means holding a plurality of memory access request signal lines; selection means selecting one of the outputs of the holding means;
comprising a counting means for periodically counting the output of the selection means, a decoder for decoding the counted value of the counting means, and an AND for matching the output of the decoding with the holding means, and a value counted by the counting means. When the selection means selects the request signal line indicated by the value decoded by the decoder, the counting of the stitch number means is temporarily stopped and the memory access signal line is selected corresponding to the cough value to access the memory. Configure it to do so.

〔産業上の利用分野〕[Industrial application field]

本発明は、複数の要求元から非同期にメモリにアクセス
する装置に関する。
The present invention relates to a device that asynchronously accesses memory from multiple request sources.

加入者情報を低レートの回線、例えば16’Kbへの速
度で伝送する場合、低速のデータに変換するデータ変換
装置を用いる。この変換装置には、メモリとしてランダ
ムアクセスメモリ(以下RAMと称で す)ψ釉い、加入者情報を一時RAMに書き込んでおい
てから読み出してデータを伝送している。
When transmitting subscriber information over a low-rate line, for example 16'Kb, a data converter is used to convert the subscriber information into low-speed data. This conversion device has a random access memory (hereinafter referred to as RAM) as a memory, and subscriber information is temporarily written in the RAM and then read out to transmit data.

この書き込みと読み出しく以下リート”/ライトと称す
る)のアクセスは、データ変換装置側からと伝送回線の
側からの両側からランダムに行い、かつ、両側のアクセ
スの速度は異なるため各種の競合が発生するようになる
These write and read accesses (hereinafter referred to as read/write) are performed randomly from both sides, from the data conversion device side and from the transmission line side, and the access speeds on both sides are different, resulting in various conflicts. I come to do it.

従ってこのようなデータ変換装置には、この各種のアク
セスの競合を防止する回路が必要となる。
Therefore, such a data conversion device requires a circuit that prevents these various access conflicts.

〔従来の技術〕 第4図は、従来のシーケンス回路を用いたRAMアクセ
ス方法を示す図である。図中、21はフラグ発生部、2
2はアドレス発生部、23はアドレスセレクタ、24は
RAM 、また、25は優先順位割当部である。
[Prior Art] FIG. 4 is a diagram showing a RAM access method using a conventional sequence circuit. In the figure, 21 is a flag generating section;
2 is an address generation section, 23 is an address selector, 24 is a RAM, and 25 is a priority assignment section.

21のフラグ発生部は、複数のアクセスであるアクセス
1〜アクセスnに1対1に対応し、要求信号のN個のフ
ラグを発生しラッチする。
The flag generating unit 21 corresponds one-to-one to accesses 1 to n, which are a plurality of accesses, and generates and latches N flags of the request signal.

22のアドレス発生部では、このN個のフラグを受けて
アクセス1〜nのN種類のアドレスを独立して発生し、
23のアドレスセレクタを介して24のRAMのアクセ
スを行う。
The address generation unit 22 receives these N flags and independently generates N types of addresses for accesses 1 to n.
24 RAMs are accessed via 23 address selectors.

なお21のフラグ発生部からのフラグは、25の優先順
位割当部にも大刀されている。この25の優先順位割当
部は、予めアクセス1より優先順位が割り当てられてお
り、別々のフラグを同時に受けた場合は優先順位の高い
方を優先して処理を行い、優先順位の低い方はその間を
待機させるように制御をし、アドレスセレクタの動作順
序を決める選択信号をアドレスセレクタ23に出力する
Note that the flag from the flag generation section 21 is also sent to the priority assignment section 25. These 25 priority assignment units are assigned a priority in advance from access 1, and if different flags are received at the same time, the one with the higher priority will be given priority, and the one with the lower priority will be processed in the meantime. A selection signal for determining the order of operation of the address selectors is output to the address selector 23.

この結果、23のアドレスセレクタは、25の優先順位
割当部の出力の選択信号の順に制御されたアドレスを発
生して24のRAMをアクセスする。
As a result, the address selector 23 generates addresses controlled in the order of the selection signals output from the priority assignment section 25 and accesses the RAM 24.

第5図は、従来のRAMアクセスのタイミングを示す図
である。
FIG. 5 is a diagram showing the timing of conventional RAM access.

第5図に示すように、アクセス1に対応してフラグ1が
、アクセス2に対応してフラグ2が、またアクセスnに
対応してフラグnを発生し、Tdl、Ta2 、Tdn
だけ遅れてT s l、Ts2、Tsnの間でアクセス
が行われたとする。この場合、Tsl、Ts2、Tsn
は装置の処理速度により決まる時間であり、必ずしも一
定でない。このためRAMアクセス2では時間t2 、
RAMアクセスnでは時間tnの時間がRAMアクセス
1と競合してしまうが、フラグlの優先度が高いため、
フラグ2は時間L2、フラグNは時間tnの間マスクさ
れてしまう。このため、フラグ2とフラグNが先にアク
セスを開始しても、フラグ1によってそのアクセスが中
断され、フラグ1がRAMをアクセスするようになる。
As shown in FIG. 5, flag 1 is generated in response to access 1, flag 2 is generated in response to access 2, and flag n is generated in response to access n.
Assume that access is performed between Tsl, Ts2, and Tsn after a delay of 100 min. In this case, Tsl, Ts2, Tsn
is a time determined by the processing speed of the device, and is not necessarily constant. Therefore, in RAM access 2, time t2,
In RAM access n, time tn conflicts with RAM access 1, but since flag l has a high priority,
Flag 2 is masked for time L2, and flag N is masked for time tn. Therefore, even if flag 2 and flag N start accessing first, the access is interrupted by flag 1, and flag 1 starts accessing the RAM.

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

上記したように従来は、アクセス1と他のアクセスが競
合したときは、アクセスlにより他のアクセスがマスク
されてしまうという問題がある。
As described above, conventionally, there is a problem in that when access 1 conflicts with another access, access 1 masks the other access.

本発明は、この非同期のアクセスの競合を防止する回路
を提供することを目的とする。
An object of the present invention is to provide a circuit that prevents this asynchronous access conflict.

(課題を解決するための手段〕 第1図は、本発明の原理構成を示す図である。(Means for solving problems) FIG. 1 is a diagram showing the basic configuration of the present invention.

図中に示すように、複数の要求元から非同期に1のセレ
クタを介してメモリ2にアクセスする装置において、 3は保持手段であり、複数のメモリアクセス要求信号線
を保持するもの、4は選択手段であり、前記保持手段3
の出力のうち一つを選択するもの、5は計数手段であり
、前記選択手段4の出力を周期的に計数するもの、6は
デコーダであり、前記計数手段5の計数値をデコードす
るものである。
As shown in the figure, in a device in which a plurality of request sources asynchronously access the memory 2 via a selector 1, 3 is a holding means that holds a plurality of memory access request signal lines, and 4 is a selector. means, and the holding means 3
5 is a counting means that periodically counts the output of the selection means 4; 6 is a decoder that decodes the count value of the counting means 5; be.

この計数手段5のデコード値を7のANDに加えて前記
デコード6と前記保持手段3との一致をとり、メモリ2
にアクセスを指示するものである。
The decoded value of the counting means 5 is added to the AND of 7 to find a match between the decoded value 6 and the holding means 3, and the memory 2
It instructs access to.

〔作 用〕[For production]

本発明は、第1図に示すように、3の保持手段により複
数の要求信号線をラッチし、4の選択手段によりその出
力のうち一つを選択し、5の計数手段に加えて周期的に
計数を行った後、デコーダ6に加えてデコートした該値
を出力し、該値を7のANDを介しメモリ2に加えてア
クセスするようにする。。
As shown in FIG. 1, in the present invention, a plurality of request signal lines are latched by the holding means 3, one of the outputs is selected by the selection means 4, and in addition to the counting means 5, a periodic After counting, the decoded value is output to the decoder 6, and the value is added to the memory 2 via AND of 7 for access. .

なおデコーダ6の出力は選択手段1に帰還し要求信号線
の入力している間は、該計数手段5の計数を一時停止す
るようにしている。
Note that the output of the decoder 6 is fed back to the selection means 1, and the counting of the counting means 5 is temporarily stopped while the request signal line is being input.

〔実施例〕〔Example〕

第2図は、本発明の一実施例を示す回路図である。図中
、3は保持手段としてのレジスタで、31.32.33
.34の同一構成を持つ4個の第1〜4のレジスタから
なっており、また各々のレジスタは311のAND、3
12のNAND、313のFFからなっている。4は選
択手段としてのセレクタで、41.42.43.44の
ANDと45のNANDからなり、5は計数手段として
のカウンタ、また、6はデコーダ、7はNAND、8は
FFである。
FIG. 2 is a circuit diagram showing one embodiment of the present invention. In the figure, 3 is a register as a holding means, 31.32.33
.. It consists of 4 registers 1 to 4 with 34 identical configurations, and each register is 311 AND, 3
It consists of 12 NANDs and 313 FFs. 4 is a selector as a selection means, consisting of AND of 41, 42, 43, and 44 and NAND of 45; 5 is a counter as a counting means; 6 is a decoder; 7 is NAND; and 8 is FF.

いま、要求信号がフラグ1〜フラグ4(以下F1〜F4
と称す)の4種類とする。例えば、Flが発生し第1の
レジスタに入力したとする。このときFlの信号レベル
は、’LOW’ から’high’に転じ、312ON
ANDにて“high’から°LOW’ に転した出力
を313のFFに加え、クロックで計数して2進数で表
されるフラグエに相当する該信号値の“00゛を出力し
て保持をし、その該信号値の00”を4のセレクタの4
1のANDを介し45のNANDに加える。同様に、3
2〜34の第2〜4のレジスタは、F2の入力で“01
”、F3では“10’、F4では“11°の該信号値を
出力し、42.43.44のANDを通り45のNAN
Dにて合成され、5のカウンタの端子°L゛に入力する
Now, the request signal is flag 1 to flag 4 (hereinafter F1 to F4).
There are four types. For example, assume that Fl is generated and input to the first register. At this time, the signal level of Fl changes from 'LOW' to 'HIGH', and 312 ON.
The output converted from "high" to "°LOW" by AND is added to the FF of 313, and the signal value "00" corresponding to the flag expressed in binary is output and held by counting with the clock. , the corresponding signal value 00'' is set to 4 in selector 4.
Add to 45 NANDs via an AND of 1. Similarly, 3
The second to fourth registers of numbers 2 to 34 are set to “01” at the input of F2.
”, F3 outputs the corresponding signal value of “10”, F4 outputs the signal value of “11°, passes through AND of 42.43.44, and outputs the signal value of 45 NAN
The signals are synthesized at D and input to the terminal °L of the counter 5.

カウンタ5は周期的に00°、 “01”、 “10”
、“11”の計数を繰り返すカウンタで、自回路の計数
値と45のNANDからの該信号値とを照合して一致を
調べ、カウンタ5がフラグの該信号値と一致したときに
ロードが加わわり、カウンタ5の計数値を出力して6の
デコーダに加え、デコード6によりデコーダし、7のA
NDを通り、RAMアクセス信号の81〜S4を出力す
る。     □例えばフラグ4が入力し、そのとき5
のカウンタの状態が“OO゛ であったとする。5のカ
ウンタの状態は、 “01’ 、’10 ’ と計数が
進み“11”までに進んできたときに一時動作を停止し
て“11゜を選択してデコーダ6に出力する。デコーダ
6では、この2進数“11゛をデコードし7のANDに
加え、7のANDにおいて第4のレジスタ34の出力と
の一致をとり、一致したときに選択信号S4を発生して
RAMアクセスを行わせるようにする。
Counter 5 periodically reads 00°, “01”, “10”
, a counter that repeats counting "11" compares the count value of its own circuit with the signal value from the NAND of 45 to check for a match, and when the counter 5 matches the signal value of the flag, a load is added. Instead, the count value of counter 5 is output and added to the decoder 6, decoded by decode 6, and A of 7 is output.
It passes through ND and outputs RAM access signals 81 to S4. □For example, if flag 4 is input, then 5
Assume that the state of the counter of 5 is "OO゛".The state of the counter of 5 is "01", then '10', and when it reaches "11", the operation is temporarily stopped and the state of the counter 5 is "11°". is selected and outputted to the decoder 6.The decoder 6 decodes this binary number "11" and adds it to the AND of 7, matches the output of the fourth register 34 in the AND of 7, and when they match, A selection signal S4 is generated to allow RAM access.

なお、6のデコーダの出力をセレクタ4に帰還し、41
.42.43.44と45のNANDを介してカウンタ
5に加え、5のカウンタにロードがかかっている間はカ
ウンタ5の計数を一時停止させ、他のフラグの入るのを
暫く待機させる。
Note that the output of decoder 6 is fed back to selector 4, and
.. 42, 43, and is added to counter 5 via NAND of 44 and 45. While the counter 5 is being loaded, the counting of the counter 5 is temporarily stopped and the input of another flag is waited for a while.

また、デコーダ6の出力を、8OFFに加えてカウント
してフラグクリヤ信号1〜4を発生してレジスタ3の3
11のANDに帰還し、アクセスが終了の都度そのアク
セスを解除するようにしている。
In addition, the output of the decoder 6 is counted in addition to 8OFF to generate flag clear signals 1 to 4,
11, and the access is canceled each time the access ends.

第3図は本発明のシーケンス回路のタイミングを示す図
である。
FIG. 3 is a diagram showing the timing of the sequence circuit of the present invention.

いま、アクセ響4、アクセス2の順にアクセスされると
し、アクセス4に対応し、クロックの1周期の時間幅に
相当するパルス幅TF4をもつ(B)のフラグ4の信号
が発生して34の第4のレジスタに入力したとする。こ
のフラグ4の信号は、立ち下がりの時間において時間幅
TL4を持つ(C)の信号を第4レジスタ34より出力
する。なお該出力はアクセスに1対lに対応して必ず発
生する。
Now, assume that access is accessed in the order of access 4 and access 2, and the signal of flag 4 in (B) corresponding to access 4 and having a pulse width TF4 corresponding to the time width of one cycle of the clock is generated. Assume that it is input to the fourth register. This flag 4 signal outputs a signal (C) having a time width TL4 from the fourth register 34 at the falling time. Note that the output is always generated in one-to-one correspondence to the accesses.

このときの5のカウンタの計数値は、(D)に示すよう
に“00”、’ 01’ 、’ 10“、“11”と周
期的に進み、フラグ4に割り当てられた11゛に達する
とロードされ、そのときの状態の信号を6のデコーダに
加えてデコードし、7のANDに加えることにより (
F)の選択信号S4を発生させ(G)のRAMアクセス
4を行う。また同時に、(E)のフラグクリヤ4を(C
)で示す第4レジスタ34の出力信号の終了時間に一致
した時間において、8のFFから発生さセ、4のカウン
タに帰還して加えてアクセス4を終了さゼる。
At this time, the count value of counter 5 progresses periodically from "00" to "01" to "10" to "11" as shown in (D), and when it reaches 11, which is assigned to flag 4, By adding the loaded and current state signal to the decoder of 6, decoding it, and adding it to the AND of 7, (
The selection signal S4 of (F) is generated and the RAM access 4 of (G) is performed. At the same time, flag clear 4 of (E) is
), the signal generated from the FF 8 is fed back to the counter 4, and access 4 is terminated.

なお、(D)のカウンタ5の計数時間“TA″間に、次
のアクセスの(11)で示すフラグ2が来たとしても、
カウンタ5が°01゛ に進むまでは選択信号S2は発
生しない。このためRAMはアクセスは行われず、ある
待ち時間TW2のちにRAM2のアクセスが開始される
ようになる。
Note that even if the flag 2 shown in (11) of the next access comes during the counting time "TA" of the counter 5 in (D),
The selection signal S2 is not generated until the counter 5 advances to 01. Therefore, the RAM is not accessed, and after a certain waiting time TW2, access to the RAM2 is started.

〔効果〕〔effect〕

本発明の回路によれば、非同期のアクセスの競合を防止
することが可能となり、優先順位の高いアクセスによっ
て優先順位の低いアクセスがマスクされるという問題の
解決が可能となる。
According to the circuit of the present invention, it is possible to prevent contention of asynchronous accesses, and it is possible to solve the problem that lower priority accesses are masked by higher priority accesses.

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

第1図は本発明の原理構成を示す図、 第2図は本発明の一実施例を示す回路図、第3図は本発
明のシーケンス回路のタイミングを示す図、 第4図は従来のシーケンス回路を用いたRAMアクセス
方法、 第5図は従来のRAMアクセスのタイミングを示す図、 である。 図において、 ■はセレクタ、2はメモリ、 3は保持手段、4は選択手段、5は計数手段、6はデコ
ーダ、7ばAND、 を示す。
Fig. 1 is a diagram showing the principle configuration of the present invention, Fig. 2 is a circuit diagram showing an embodiment of the present invention, Fig. 3 is a diagram showing the timing of the sequence circuit of the present invention, and Fig. 4 is a diagram showing the conventional sequence circuit. RAM access method using circuit FIG. 5 is a diagram showing the timing of conventional RAM access. In the figure, (2) is a selector, 2 is a memory, 3 is a holding means, 4 is a selection means, 5 is a counting means, 6 is a decoder, and 7 is an AND.

Claims (1)

【特許請求の範囲】 複数の要求元から、非同期にセレクタ(1)を介してメ
モリ(2)にアクセスする装置において、複数のメモリ
アクセス要求信号線を保持する保持手段(3)と、該保
持手段(3)の出力のうち一つを選択する選択手段(4
)と、該選択手段(4)の出力を周期的に計数する計数
手段(5)と、該計数手段(5)の計数値をデコードす
るデコーダ(6)と、該デコード(6)の出力と前記保
持手段(3)の一致をとるAND(7)を備え、 前記計数手段(5)により計数した値をデコーダ(6)
でデコードした該値で示される要求信号線を選択手段(
4)により選択する場合に、該計数手段(5)の計数を
一時停止して該値に対応し、メモリアクセス信号線を選
択してメモリ(2)をアクセスすることを特徴とするメ
モリアクセス装置。
[Claims] A device for asynchronously accessing a memory (2) from a plurality of request sources via a selector (1), comprising: a holding means (3) for holding a plurality of memory access request signal lines; selection means (4) for selecting one of the outputs of means (3);
), a counting means (5) for periodically counting the output of the selection means (4), a decoder (6) for decoding the counted value of the counting means (5), and an output of the decoding (6). AND (7) for matching the holding means (3), and a decoder (6) for the value counted by the counting means (5).
The selection means (
4), the memory access device is characterized in that, when the selection is made in accordance with 4), the counting of the counting means (5) is temporarily stopped, the memory access signal line is selected in response to the value, and the memory (2) is accessed. .
JP8365588A 1988-04-04 1988-04-04 Memory access device Pending JPH01255053A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8365588A JPH01255053A (en) 1988-04-04 1988-04-04 Memory access device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8365588A JPH01255053A (en) 1988-04-04 1988-04-04 Memory access device

Publications (1)

Publication Number Publication Date
JPH01255053A true JPH01255053A (en) 1989-10-11

Family

ID=13808470

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8365588A Pending JPH01255053A (en) 1988-04-04 1988-04-04 Memory access device

Country Status (1)

Country Link
JP (1) JPH01255053A (en)

Similar Documents

Publication Publication Date Title
US3900835A (en) Branching circuit for microprogram controlled central processor unit
US5633816A (en) Random number generator with wait control circuitry to enhance randomness of numbers read therefrom
US5467454A (en) Bus use request adjusting apparatus allowing changing priority levels
JPH01255053A (en) Memory access device
US5202999A (en) Access request prioritization and summary device
US5590302A (en) Device for generating structured addresses
JPH11509658A (en) Extended chip select reset device and method
JPS59178667A (en) Memory device
JPS5965354A (en) Priority control system for reception of processing request
JP2923886B2 (en) Digital tone signal generation circuit
JP3280694B2 (en) Serial interface circuit
JPH0721113A (en) Multiprocessor system
JPH02143347A (en) Information processor
JPS5886652A (en) Time-division multifile access control circuit
SU1575190A1 (en) Device for controlling dynamic memory
JP2513326B2 (en) Electronic musical instrument
JPH05108119A (en) Communication processing method using serial transmission line
JPH0736839A (en) Multiprocessor system
JPH04246744A (en) Arbitration circuit
JPH09114779A (en) Wait control system for information processor
JPH0567035A (en) Data alignment system for dma transfer
JPH02306725A (en) Method and apparatus for code conversion
JPH04135248A (en) Trace data reading system
JPS6324349A (en) Memory access device
JPH02139652A (en) Microcomputer