Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0783513B2 - Semiconductor memory device - Google Patents
[go: Go Back, main page]

JPH0783513B2 - Semiconductor memory device - Google Patents

Semiconductor memory device

Info

Publication number
JPH0783513B2
JPH0783513B2 JP62217511A JP21751187A JPH0783513B2 JP H0783513 B2 JPH0783513 B2 JP H0783513B2 JP 62217511 A JP62217511 A JP 62217511A JP 21751187 A JP21751187 A JP 21751187A JP H0783513 B2 JPH0783513 B2 JP H0783513B2
Authority
JP
Japan
Prior art keywords
address
data
random
write
sequential
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.)
Expired - Fee Related
Application number
JP62217511A
Other languages
Japanese (ja)
Other versions
JPS6460190A (en
Inventor
慶三 青山
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 JP62217511A priority Critical patent/JPH0783513B2/en
Publication of JPS6460190A publication Critical patent/JPS6460190A/en
Publication of JPH0783513B2 publication Critical patent/JPH0783513B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Use Of Switch Circuits For Exchanges And Methods Of Control Of Multiplex Exchanges (AREA)

Description

【発明の詳細な説明】 〔概 要〕 本発明は半導体記憶装置、特に、電話交換機の通話路等
の多重通信に係るタイムスイッチメモリ(TSW)装置に
関し、 書込み命令の供給方法を工夫することによって、簡単な
構成で、シーケンシャルリード中のメモリにランダムラ
イトを挿入すること、及び、シーケンシャルリード中の
データに目標としないデータが挿入されないようにする
(読出しデータの連続性を確保する)ことを目的とし、 書込み命令とランダムアドレスとに基づいてランダムラ
イトされたデータをシーケンシャルアドレスに基づいて
シーケンシャルリードする第1の記憶手段と、第1の記
憶手段がシーケンシャルリードしている期間に、書込み
命令とランダムアドレスとに基づいてデータをランダム
ライトし、第1の記憶手段がランダムライトしている期
間に、ランダムライトされたデータをシーケンシャルア
ドレスに基づいてシーケンシャルリードする第2の記憶
手段と、ランダムアドレスとシーケンシャルアドレスと
を比較して両アドレスが一致したときに、アドレス一致
信号を発生するアドレス比較手段と、アドレス比較手段
からのアドレス一致信号に応じてシーケンシャルリード
中の第1又は第2の記憶手段のいずれかにランダムライ
トを挿入する書込み命令を出力する書込み命令制御手段
とを備える。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention relates to a semiconductor memory device, and more particularly to a time switch memory (TSW) device relating to multiplex communication such as a communication path of a telephone exchange, by devising a method of supplying a write command. The purpose is to insert a random write into the memory during sequential read with a simple configuration, and to prevent unintended data from being inserted into the data during sequential read (to ensure continuity of read data). The first storage means for sequentially reading the data randomly written based on the write instruction and the random address based on the sequential address, and the write instruction and the random instruction during the period during which the first storage means is sequentially read. Randomly write data based on the address and the first storage means runs. When the random write and the sequential address are compared with each other by comparing the second storage means for sequentially reading the randomly written data based on the sequential address during the mullite writing, when the both addresses match, an address match signal is issued. An address comparison unit that is generated and a write command control unit that outputs a write command that inserts a random write into either the first or second storage unit during the sequential read according to the address match signal from the address comparison unit. Prepare

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

本発明は半導体記憶装置に関するものであり、更に詳し
く言えば、電話交換機の通話路等の多重通信に係るタイ
ムスイッチメモリ装置(時分割変換機:以下TSW装置と
いう)に関するものである。
The present invention relates to a semiconductor memory device, and more particularly to a time switch memory device (time division converter: hereinafter referred to as TSW device) related to multiplex communication such as a communication path of a telephone exchange.

〔従来技術〕[Prior art]

第4及び第5図は従来例に係る説明図である。第4図
は、従来例に係るTSW装置の時分割交換の概要説明図で
あり、第5図は、従来例に係る制御メモリを2バンク構
成した図をそれぞれ示している。例えば、電話交換機の
通話路等の多重通信に適用されるTSW装置は、第4図に
示すように、タイムスイッチメモリ(以下TSWメモリと
いう)101,制御メモリ103及びシーケンシャルカウンタ1
05を備える。TSWメモリは入力ハイウエイ102及び出力ハ
イウエイ103に接続される。入力ハイウエイ102は電話加
入者からの通話データを伝送する回線であり、出力ハイ
ウエイ103は、時分割交換された通話データを伝送する
回線である。
4 and 5 are explanatory views according to a conventional example. FIG. 4 is a schematic explanatory diagram of time division exchange of a TSW device according to a conventional example, and FIG. 5 is a diagram in which a control memory according to the conventional example has two banks. For example, as shown in FIG. 4, a TSW device applied to multiplex communication such as a communication path of a telephone exchange has a time switch memory (hereinafter referred to as TSW memory) 101, a control memory 103 and a sequential counter 1
Equipped with 05. The TSW memory is connected to the input highway 102 and the output highway 103. The input highway 102 is a line for transmitting call data from a telephone subscriber, and the output highway 103 is a line for transmitting time-division exchanged call data.

当該TSW装置の機能は、例えば、タイムスロットt0,t1,t
2,t3に相当する時刻(時分割的)に、4人の加入者によ
って、入力ハイウエイ102が占有され、この時刻に通話
データA,B,C,Dが伝送されてくる場合であって、この通
話データA,B,C,Dを時分割交換して出力ハイウエイ103に
伝送する場合、当該タイムスロットt0,t1,t2,t3に応じ
たランダムアドレスが制御メモリ103からTSWメモリ101
に出力される。
The function of the TSW device is, for example, time slots t0, t1, t
When the input highway 102 is occupied by four subscribers at a time (time division) corresponding to 2, t3, and the call data A, B, C, D are transmitted at this time, When this call data A, B, C, D is time-division exchanged and transmitted to the output highway 103, a random address corresponding to the time slot t0, t1, t2, t3 is transmitted from the control memory 103 to the TSW memory 101.
Is output to.

すなわち、TSWメモリ101に通話データを書込む動作につ
いては、タイムスロットt0に相当する時刻に、制御メモ
リ103の格納番地#0からアドレス=2が読み出され、
このアドレス=2がTSWメモリ101に出力される。同様
に、タイムスロットt1に相当する時刻には、格納番地#
1からアドレス=1が読み出され、タイムスロットt2に
相当する時刻には、格納番地#2からアドレス=3が読
み出され、タイムスロットt3に相当する時刻には、格納
番地#3からアドレス=0が読み出される。これらアド
レス=2,1,3,0がTSWメモリ101に出力される。
That is, regarding the operation of writing the call data in the TSW memory 101, the address = 2 is read from the storage address # 0 of the control memory 103 at the time corresponding to the time slot t0.
This address = 2 is output to the TSW memory 101. Similarly, at the time corresponding to the time slot t1, the storage address #
Address = 1 is read from 1 and address = 3 is read from storage address # 2 at the time corresponding to time slot t2. Address = 3 is read from storage address # 3 at the time corresponding to time slot t3. 0 is read. These addresses = 2, 1, 3, 0 are output to the TSW memory 101.

TSWメモリ101では制御メモリ103によって指定された指
定番地#0に通話データDが書き込まれる。同様に、デ
ータBが格納番地#1に書き込まれ、データAが格納番
地#2に書き込まれ、データCが格納番地#3にそれぞ
れ書き込まれる。これにより、TSWメモリ101は制御メモ
リ104が指定する番地に通話データを格納することがで
きる。
In the TSW memory 101, the call data D is written in the designated address # 0 designated by the control memory 103. Similarly, the data B is written in the storage address # 1, the data A is written in the storage address # 2, and the data C is written in the storage address # 3. As a result, the TSW memory 101 can store the call data at the address specified by the control memory 104.

また、TSWメモリ101から通話データを読出す場合につい
ては、タイムスロットt0に相当する時刻に、シーケンシ
ャルカウンタ105により格納番地#0が選択され、通話
データDが読み出される。同様に、タイムスロットt1に
相当する時刻に、格納番地#1が選択され、通話データ
Bが読み出され、タイムスロットt2に相当する時刻に、
格納番地#2が選択され、通話データAが読み出され、
タイムスロットt3に相当する時刻に、格納番地#3が選
択され、通話データCが読み出される。これら時分割デ
ータD,B,A,Cが出力ハイウエイ103に伝送される。時分割
データD,B,A,Cは、通話相手となる4人の加入者α,
β,γ,δに伝送される。
When the call data is read from the TSW memory 101, the storage address # 0 is selected by the sequential counter 105 at the time corresponding to the time slot t0, and the call data D is read. Similarly, at the time corresponding to the time slot t1, the storage address # 1 is selected, the call data B is read, and at the time corresponding to the time slot t2,
Stored address # 2 is selected, call data A is read,
At the time corresponding to the time slot t3, the storage address # 3 is selected and the call data C is read. These time division data D, B, A, C are transmitted to the output highway 103. The time-division data D, B, A, C are for four subscribers α,
It is transmitted to β, γ, and δ.

これにより、加入者A−γ,B−β,C−δ,D−α間の回線
が接続されたことになり、加入者Aの信号を加入者δ
に、他も同様に、それぞれ伝送することができる。制御
メモリ104は各タイムスロットt0〜t3で指定された各#
0〜#3番地のランダムアドレス=2,1,3,0を通話終了
時まで保持する。
As a result, the line between the subscribers A-γ, B-β, C-δ, and D-α is connected, and the signal of the subscriber A is transmitted to the subscriber δ.
In addition, the others can be similarly transmitted. The control memory 104 stores each # specified in each time slot t0 to t3.
Random addresses of addresses 0 to # 3 = 2, 1, 3, 0 are held until the end of the call.

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

従って、加入者の回線路を通話終了時まで確保するため
には、制御メモリ104は、通話データのランダム書込み
及び時分割データのランダム読出しのためのアドレスを
連続してTSWメモリ101に出力しなくてはらなない。
Therefore, in order to secure the subscriber's channel until the end of the call, the control memory 104 does not continuously output addresses for random writing of call data and random reading of time division data to the TSW memory 101. Don't let it go.

通常は、制御メモリ104からTSWメモリ101にアドレスが
シーケンシャルに読出されているが、新たな通話が生じ
た場合には、その通話相手の接続先情報を制御メモリ10
4の対応する番地に書き込む必要がある。制御メモリ104
への書込み要求は、新たな通話が生じたときに発生し、
この新たな通話は、いつ何時に発生するかは全くランダ
ムである。
Normally, the addresses are sequentially read from the control memory 104 to the TSW memory 101. However, when a new call is made, the connection destination information of the call partner is stored in the control memory 10.
You need to write to the corresponding address of 4. Control memory 104
Request to write occurs when a new call is made,
This new call is totally random when and when it happens.

従って、新たな通話が生じたからと言って、その都度、
読出しを中止して書込み要求を実行することができな
い。この書込みを敢えて実行すれば、読出し順序が異な
ったり、読出しデータに隙間が生じることになり、正常
な通話が確保できなくなる。このように制御メモリ104
からのアドレスの読出しは連続的でなければならない。
Therefore, each time a new call is made,
The read request cannot be canceled and the write request cannot be executed. If this writing is intentionally executed, the reading order will be different or a gap will be created in the read data, making it impossible to secure a normal call. In this way control memory 104
The reading of addresses from must be continuous.

次に、第3図(b)を参照しながら、読出しを打ち切っ
て、書込みを実行した場合の具体例を説明する。第3図
は、本発明の関連技術に係る半導体記憶装置の構成図を
示している。たとえば、本出願人が同日に出願(特願昭
62−217510号)した半導体記憶装置に見られるようなタ
イムスイッチメモリは、同図(a)に示すように、D型
フリップ・フロップ回路1a,1b,2a〜2c,4a、カウンタ1c,
セレクタ3a,3b,アドレスセレクタ5a〜5c,RAM(随時書込
み及び読出し可能なメモリ)6a,6b,プリデコーダ7a,7b,
クロック発生回路8及び制御回路9等を備える。
Next, with reference to FIG. 3B, a specific example of the case where the reading is stopped and the writing is executed will be described. FIG. 3 is a block diagram of a semiconductor memory device according to the related art of the present invention. For example, the applicant filed on the same day (Japanese Patent Application
No. 62-217510), the time switch memory as seen in the semiconductor memory device is, as shown in FIG. 1A, a D-type flip-flop circuit 1a, 1b, 2a to 2c, 4a, a counter 1c,
Selectors 3a, 3b, address selectors 5a-5c, RAMs (writable and readable memory at any time) 6a, 6b, predecoders 7a, 7b,
The clock generation circuit 8 and the control circuit 9 are provided.

D型フリップ・フロップ(以下DFFという)回路1aは入
力データDin(8ビット)をクロック信号(以下CLK信
号という)の立ち上がりに同期してラッチし、データD
INを出力する。DFF1bは入力ランダムアドレスra(10bi
t)をCLK信号の立ち上がりに同期してラッチし、ランダ
ムアドレスRAをセレクタ5a及び5bにそれぞれ出力する。
The D-type flip-flop (hereinafter referred to as DFF) circuit 1a latches the input data Din (8 bits) in synchronization with the rising edge of the clock signal (hereinafter referred to as CLK signal), and the data D
Output IN. DFF1b is the input random address ra (10bi
t) is latched in synchronization with the rising edge of the CLK signal, and the random address RA is output to the selectors 5a and 5b, respectively.

カウンタ1cはクリア信号fcを入力してCLK信号を計数
し、シーケンシャルアドレスSAをアドレスセレクタ5a及
び5bに出力する。
The counter 1c inputs the clear signal fc, counts the CLK signal, and outputs the sequential address SA to the address selectors 5a and 5b.

アドレスセレクタ5aはDFF1bにラッチされたランダムア
ドレスRA又はカウンタ1cからのシーケンシャルアドレス
SAを制御回路9からの制御信号c1に応じて選択し、アド
レスRA又はSAをプリデコーダ7aに出力する。同様に、ア
ドレスセレクタ5bはランダムアドレスRA又はシーケンシ
ャルアドレスSAを制御信号c2に応じて選択し、アドレス
RA又はSAをプリデコーダ7bに出力する。
The address selector 5a is a random address RA latched in DFF1b or a sequential address from the counter 1c.
SA is selected according to the control signal c1 from the control circuit 9, and the address RA or SA is output to the predecoder 7a. Similarly, the address selector 5b selects the random address RA or the sequential address SA according to the control signal c2, and
RA or SA is output to the predecoder 7b.

プリデコーダ7aはアドレスRA又はSAをプリデコードし、
プリデコードされたアドレスRA又はDFF2bに出力する。
プリデコーダ7bはアドレスSA又はSAをプリデコードし、
プリデコードされたアドレスSA又はSAをDFF2cに出力す
る。
The predecoder 7a predecodes the address RA or SA,
Output to predecoded address RA or DFF2b.
The predecoder 7b predecodes the address SA or SA,
The predecoded address SA or SA is output to DFF2c.

DFF2aはデータDINをCLK信号の立ち上がりに同期してラ
ッチする。DFF2bは、プリデコードされたアドレスRA又
はSAをCLK信号の立ち上がりに同期してラッチし、アド
レス(#1)をRAM6aに出力する。DFF2cは、プリデコー
ドされたアドレスRA又はSAをCLK信号の立ち上がりに同
期してラッチし、アドレス(#2)をRAM6bに出力す
る。
The DFF2a latches the data DIN in synchronization with the rising edge of the CLK signal. The DFF 2b latches the predecoded address RA or SA in synchronization with the rising edge of the CLK signal, and outputs the address (# 1) to the RAM 6a. The DFF 2c latches the predecoded address RA or SA in synchronization with the rising edge of the CLK signal, and outputs the address (# 2) to the RAM 6b.

RAM6aは、書込み命令W(#1)及びアドレスA(#
1)に応じてデータDINの書込み処理をしたり、アドレ
スA(#1)に応じてデータD(#1)の読出し処理を
する。RAM6bは、書込み命令W(#2)及びアドレスA
(#2)に応じてデータDINの書込み処理をしたり、ア
ドレスA(#2)に応じてデータD(#2)の読出し処
理をする。
The RAM 6a has a write command W (# 1) and an address A (#
The data DIN is written according to 1) and the data D (# 1) is read according to address A (# 1). RAM6b has write command W (# 2) and address A
The data DIN is written according to (# 2) and the data D (# 2) is read according to address A (# 2).

DFF3aはデータD(#1)をCLK信号の立ち上がりに同期
してラッチする。同様に、DFF3bはデータD(#2)をC
LK信号の立ち上がりに同期してラッチする。セレクタ5c
は、読出しデータD(#1)又はD(#2)を制御回路
9からの制御信号c3に応じて選択してDFF4aに出力す
る。
The DFF 3a latches the data D (# 1) in synchronization with the rising edge of the CLK signal. Similarly, DFF3b converts data D (# 2) to C
Latch in synchronization with the rising edge of the LK signal. Selector 5c
Selects the read data D (# 1) or D (# 2) according to the control signal c3 from the control circuit 9 and outputs it to DFF4a.

DFF4aは読出しデータD(#1)又はD(#2)をCLK信
号の立ち上がりに同期してラッチし、それを読出し出力
データdoutとして出力する。
The DFF 4a latches the read data D (# 1) or D (# 2) in synchronization with the rising edge of the CLK signal, and outputs it as read output data dout.

クロック発生回路8は、各DFF1a,1b,2a〜2c,4a,カウン
タ1cにCLK信号を供給し、また、RAM6a,6bにライトイネ
ーブル信号(以下書込み信号という)W1,W2をそれぞれ
供給する。
The clock generation circuit 8 supplies a CLK signal to each DFF 1a, 1b, 2a to 2c, 4a and a counter 1c, and also supplies write enable signals (hereinafter referred to as write signals) W1 and W2 to the RAMs 6a and 6b, respectively.

制御回路9は各セレクタ3a,3b,5a〜5cに制御信号c1〜c3
を出力してダブルバッファ処理をする。ダブルバッファ
処理とは、2つのRAM6a,6bに、書込み命令W1,W2及びア
ドレスSA,RAを交互に供給し、シーケンシャルリード及
びランダムライトを交互に実行させることをいう 具体的には、制御回路9はデータの書込み又は読出し期
間を規定する1フレーム毎に、シーケンシャルアドレス
SAを一方のセレクタ5aによって選択させ、このアドレス
SAを一方のRAM6aに供給して読出しデータD(#1)の
シーケンシャルリードを実行させ、また、ランダムアド
レスDAを他方のセレクタ5bによって選択させ、このアド
レスRAと書込み命令W2を他方のRAM6に供給してデータD
INのランダムライトを実行させる。
The control circuit 9 sends control signals c1 to c3 to the selectors 3a, 3b, 5a to 5c.
Is output and double buffer processing is performed. The double buffer process is to alternately supply the write commands W1 and W2 and the addresses SA and RA to the two RAMs 6a and 6b to alternately execute the sequential read and the random write, specifically, the control circuit 9 Is a sequential address for each frame that defines the data write or read period.
SA is selected by one selector 5a, and this address
The SA is supplied to one RAM 6a to execute the sequential read of the read data D (# 1), the random address DA is selected by the other selector 5b, and the address RA and the write command W2 are supplied to the other RAM 6 And data D
Random write of IN is executed.

次のフレームでは、制御回路9は、反対に、ランダムア
ドレスRAをセレクタ5aによって選択させ、このアドレス
RA及び書込み命令W1ををRAM6aに供給してデータDINの
ランダムライトを実行させ、また、シーケシャルアドレ
スSAをセレクタ5bによって選択され、このアドレスSAを
RAM6bに供給して読出しデータD(#1)のシーケンシ
ャルリードを実行させる。
In the next frame, on the contrary, the control circuit 9 causes the selector 5a to select the random address RA and
The RA and the write command W1 are supplied to the RAM 6a to execute the random write of the data DIN, and the sequential address SA is selected by the selector 5b.
The data is supplied to the RAM 6b to execute the sequential read of the read data D (# 1).

すなわち、本発明の関連技術に係る半導体記憶装置によ
れば、1フレーム毎にランダムライト及びシーケンシャ
ルリードを切り換えるアドレスセレクタ5a,5bと、1フ
レーム毎に書込み命令W1をRAM6a又は書込み命令W2をRAM
6bに供給するクロック発生回路8が同一チップ内部に設
けられる。
That is, according to the semiconductor memory device of the related art of the present invention, the address selectors 5a and 5b for switching the random write and the sequential read for each frame, the write command W1 for each frame, the RAM 6a, or the write command W2 for each frame.
The clock generation circuit 8 supplied to 6b is provided inside the same chip.

このため、RAM6aがシーケンシャルリードをしている期
間に、書込み命令WE2とランダムアドレスに応じてRAM6b
をランダムライトさせ、反対に、RAM6bがシーケンシャ
ルリードをしている期間に、書込み命令W1とランダムア
ドレスに応じてRAM6aをランダムライトさせることがで
きる。
Therefore, while RAM6a is performing sequential read, RAM6b is read according to write command WE2 and random address.
On the contrary, the RAM 6a can be randomly written according to the write command W1 and the random address while the RAM 6b is sequentially reading.

しかし、シーケシャルリード中のRAM6aに、新たな加入
者からの通話要求等によって、チップ外部からランダム
書込み命令が挿入され、ある読出し番地のデータを書き
換える要求があった場合に、シーケンシャルリード中の
データに、目標としないデータが混入する恐れがある。
However, when a random write command is inserted from outside the chip into the RAM6a during sequential read due to a call request from a new subscriber, etc., and there is a request to rewrite data at a certain read address, the data during sequential read is In addition, there is a risk that unintended data will be mixed.

このようなデータ書き換え要求に対し、シーケンシャル
リード中のRAM6aに、ランダムライトを挿入する場合、
クロック発生回路8からRAM6aに供給する書込み命令W1
をCPU等の書込み命令weに基づいて強制的にアクティブ
にし、更に、アドレスセレクタ5aを切り換えて、RAM6a
にランダムアドレスを供給する方法が考えられる。
In response to such a data rewrite request, when inserting random write into RAM6a during sequential read,
Write command W1 supplied from the clock generation circuit 8 to the RAM 6a
Is forcibly activated based on the write command we of the CPU, etc., and the address selector 5a is switched to RAM6a.
It is possible to supply a random address to the.

次に、その具体例を説明する。第3図(b)は、タイム
スイッチメモリの動作を説明するタイムチャートであ
る。例えば、ランダムアドレス=a,b,c,d,e…に対し
て、読出し時には、連続的に発生されたシーケンシャル
アドレス=0,1,2,3,4…によって、格納番地0=a,1=b,
2=c,3=d,4=e…の読出しデータD(#1)やD(#
2)を出力する半導体記憶装置において、第3図(b)
に示すように、CPUからの書込み要求がRAM6aの「d」番
地に対するものであり、CPUの書込み命令weが、クロッ
ク信号(以下単にCLK信号という)の立ち上がり時に
生じたものとすると、次のCLK信号の立ち上がりで
は、RAM6aに書込み命令WE1が入力されると共に、アドレ
スセレクタ5aからRAM6aに、シーケンシャルアドレスSA
=「3」に変わって、ランダムアドレス=「d」が供給
される。
Next, a specific example will be described. FIG. 3B is a time chart explaining the operation of the time switch memory. For example, for random address = a, b, c, d, e ..., at the time of reading, the sequentially generated sequential address = 0,1,2,3,4 ... causes the storage address 0 = a, 1. = B,
2 = c, 3 = d, 4 = e ... Read data D (# 1) or D (#
In the semiconductor memory device outputting 2), FIG.
As shown in, if the write request from the CPU is to the address “d” of the RAM 6a and the write command we of the CPU is generated at the rising edge of the clock signal (hereinafter simply referred to as CLK signal), the next CLK At the rising edge of the signal, the write command WE1 is input to the RAM 6a and the sequential address SA from the address selector 5a to the RAM 6a.
Random address = “d” is supplied instead of “= 3”.

これにより、「d」番地への書込みが達成される。その
後、CLK信号の立ち上がりで、読出しデータD(#
1)がラッチされ、次のCLK信号の立ち上がりで読出
しデータD(#1)は出力データdoutとなる。このCLK
信号の立ち上がりで出力されたデータは「d」番地に
対するデータである。
Thereby, the writing to the address "d" is achieved. After that, the read data D (#
1) is latched, and the read data D (# 1) becomes output data dout at the next rising edge of the CLK signal. This CLK
The data output at the rising edge of the signal is the data for the address "d".

しかし、アドレスセレクタ5aの切り換えタイミングによ
っては、セレクタ5aからRAM6aに、シーケンシャルアド
レスSA=「3」に変わって、ランダムアドレス=「d」
を供給することができない場合がある。
However, depending on the switching timing of the address selector 5a, the sequential address SA changes to "3" from the selector 5a to the RAM 6a, and the random address = "d".
May not be available.

このため、ランダムアドレス=「d」以外のアドレスに
よって、RAM6aがランダムライトを実行することから、
誤ったデータDINが書き込まれる。従って、d≠3とな
る時には、出力データdoutにランダムライトによる目
標データを再現性良く挿入できない。
For this reason, since the RAM 6a executes random write with an address other than the random address = “d”,
Wrong data DIN is written. Therefore, when d ≠ 3, the target data by random writing cannot be inserted into the output data dout with good reproducibility.

これにより、目標としないデータが誤ってシーケンシャ
ルリード中のデータに挿入されてしまう(データ不連続
部分が生じる)という問題がある。
As a result, there is a problem that untargeted data is erroneously inserted into the data during the sequential read (a data discontinuity occurs).

このような読出しデータの不連性を避けるために、第5
図に示すような2バンク構成の制御メモリが考えられ
る。この制御メモリは、第5図(a)に示すように、2
つのバンクI,IIをRAM等により構成し、一方のバンクI
がシーケンシャルリードを行っている期間に、他方のバ
ンクIIに対してランダムライトを実行するものである。
そして、バンクIの0番地から最終番地のデータの読出
しが終了すると、第5図(b)に示すように、バンクが
切り換えられ、バンクIIがシーケンシャルリードをし、
バンクIがランダムライトを実行する。このような動作
を繰り返すことにより、制御メモリに要求される読出し
データの連続性を確保しようとするものである。
In order to avoid such discontinuity of read data, the fifth
A control memory having a two-bank configuration as shown in the figure can be considered. This control memory, as shown in FIG.
One bank I, II is composed of RAM etc., and one bank I
The random write is executed to the other bank II during the sequential read.
When the reading of the data from the 0th address to the last address of the bank I is completed, the banks are switched as shown in FIG. 5 (b), and the bank II performs the sequential read,
Bank I performs a random write. By repeating such operations, the continuity of read data required for the control memory is ensured.

しかし、メモリを2つのバンクに分割するために、メモ
リ周辺の制御回路が増加する。また、シーケンシャルリ
ード中のバンクに書込み要求が生じると、バンク構成を
採らない場合と同様に、読出しデータの連続性が崩れて
しまうという問題がある。
However, since the memory is divided into two banks, the number of control circuits around the memory is increased. In addition, when a write request is issued to a bank during sequential reading, the continuity of read data is broken as in the case where the bank configuration is not adopted.

本発明は、かかる従来例の問題点に鑑み創作されたもの
であり、書込み命令の供給方法を工夫することによっ
て、ランダムアドレスの供給を伴うことなく、簡単な構
成で、シーケンシャルリード中のメモリにランダムライ
トを挿入すること、及び、シーケンシャルリード中のデ
ータに目標としないデータが挿入されないようにする
(読出しデータの連続性を確保する)ことが可能となる
半導体記憶装置の提供を目的とする。
The present invention was created in view of the problems of the conventional example, and by devising a method of supplying a write command, a simple configuration can be applied to a memory during sequential read without supplying a random address. An object of the present invention is to provide a semiconductor memory device capable of inserting random write and preventing untargeted data from being inserted into data during sequential read (securing read data continuity).

〔問題点を解決するための手段〕[Means for solving problems]

本発明の半導体記憶装置は、その原理図を第1図に示す
ように、書込み命令とランダムアドレスとに基づいてラ
ンダムライトされたデータをシーケンシャルアドレスに
基づいてシーケンシャルリードする第1の記憶手段と、
前記第1の記憶手段がシーケンシャルリードしている期
間に、書込み命令とランダムアドレスとに基づいてデー
タをランダムライトし、前記第1の記憶手段がランダム
ライトしている期間に、前記ランダムライトされたデー
タをシーケンシャルアドレスに基づいてシーケンシャル
リードする第2の記憶手段と、前記ランダムアドレスと
シーケンシャルアドレスとを比較して両アドレスが一致
したときに、アドレス一致信号を発生するアドレス比較
手段と、前記アドレス比較手段からのアドレス一致信号
に応じてシーケンシャルリード中の第1又は第2の記憶
手段のいずれかにランダムライトを挿入する書込み命令
を出力する書込み命令制御手段とを備えることを特徴と
し、上記目的を達成する。
As shown in the principle diagram of FIG. 1, the semiconductor memory device of the present invention includes first memory means for sequentially reading data randomly written based on a write command and a random address based on a sequential address,
Data is randomly written based on a write command and a random address during a period when the first storage unit is sequentially reading, and the random write is performed during a period when the first storage unit is randomly writing. Second storage means for sequentially reading data based on a sequential address, address comparison means for generating an address match signal when both addresses are compared by comparing the random address and the sequential address, and the address comparison Write command control means for outputting a write command for inserting a random write into either the first or second storage means during sequential read in response to an address match signal from the means. To achieve.

〔作 用〕[Work]

本発明の半導体記憶装置の動作を説明する。例えば、タ
イムスイッチメモリ等にアドレス情報(以下単にデータ
という)を供給する場合、書込み命令とランダムアドレ
スとに基づいて1フレームのデータが第1の記憶手段に
よりランダムライトされ、この第1の記憶手段がランダ
ムライトをしている期間に、第2の記憶手段では、シー
ケンシャルアドレスに基づいて1フレームのデータがシ
ーケンシャルリードされる。
The operation of the semiconductor memory device of the present invention will be described. For example, when address information (hereinafter simply referred to as data) is supplied to the time switch memory or the like, one frame of data is randomly written by the first storage means based on the write command and the random address, and this first storage means is used. During the period in which random writing is performed, data of one frame is sequentially read in the second storage means based on the sequential address.

その後、第1の記憶手段では、シーケンシャルアイドル
に基づいて1フレームのデータがシーケンシャルリード
され、この第1の記憶手段がシーケンシャルリードして
いる期間に、書込み命令とランダムアドレスとに基づい
て1フレームのデータが第2の記憶手段によりランダム
ライトされる。
Thereafter, in the first storage means, one frame of data is sequentially read based on the sequential idle, and during the period in which the first storage means is sequentially read, one frame of data is read based on the write command and the random address. The data is randomly written by the second storage means.

また、第1,第2の記憶手段がシーケンシャルリード及び
ランダムライトを繰り返しているときに、ランダムアド
レスとシーケンシャルアドレスとがアドレス比較手段に
より比較され、その比較結果はアドレス一致信号又はア
ドレス不一致信号として書込み命令制御手段に出力され
る。
Further, when the first and second storage means repeat the sequential read and random write, the random address and the sequential address are compared by the address comparison means, and the comparison result is written as an address match signal or an address mismatch signal. It is output to the command control means.

さらに、第1又は第2の記憶手段のいずれかのシーケン
シャルリード期間に、ランダムライトを強制的に挿入す
る書込み命令が、書込み命令制御手段に供給された場
合、ランダムライトの挿入によって入力されるランダム
アドレスもシーケンシャルアドレスとアドレス比較手段
により比較されるため、それが一致したときには、当該
比較手段から書込み命令制御手段にアドレス一致信号が
出力され、該制御手段からシーケンシャルリードしてい
る第1又は第2の記憶手段のいずれかにランダムライト
を強制的に挿入する書込み命令が供給される。
Furthermore, when a write command for forcibly inserting a random write is supplied to the write command control device during the sequential read period of either the first or second storage device, the random command is input by the random write insertion. Since the address is also compared with the sequential address by the address comparison means, when the addresses match, the address comparison signal is output from the comparison means to the write command control means, and the first or second sequential read from the control means. A write command for forcibly inserting a random write is supplied to any one of the storage means.

このため、本発明の関連技術のように、アドレスセレク
タを介して強制的にシーケンシャルアドレスをランダム
アドレスに切り換えることなく、シーケンシャルリード
中の記憶手段に、ランダムアドレスに一致したシーケン
シャルアドレスが供給されるため、シーケンシャルリー
ド中の記憶手段にランダムライトを挿入することが可能
となる。
Therefore, unlike the related art of the present invention, the sequential address matching the random address is supplied to the storage means during the sequential read without forcibly switching the sequential address to the random address via the address selector. , Random write can be inserted in the storage means during sequential read.

これにより、シーケンシャルアドレスに基づいてシーケ
ンシャルリード中の第1又は第2の記憶手段において、
データを書き換えることでき、シーケンシャルリード中
のデータ目標としないデータが挿入されない。すなわ
ち、読出しデータの連続性が確保される。
As a result, in the first or second storage means during the sequential read based on the sequential address,
Data can be rewritten and data that is not the data target during sequential read is not inserted. That is, the continuity of read data is ensured.

〔実施例〕〔Example〕

次に図参照しながら本発明の実施例について説明をす
る。第1図は、本発明の実施例に係る半導体記憶装置の
原理図である。例えば、半導体記憶装置の一例となる制
御メモリは、第1図に示すように、データ入力手段11a,
カウンタ11b,アドレスセレクタ12,第1,第2のRAM(随時
書込み/読出し可能なメモリ)13,14,データセレクタ1
5,データ出力回路16,クロック発生回路17,制御回路18,
アドレス比較手段19,書込み命令処理手段20,書込み命令
出力手段21及び選択手段22を備える。制御メモリは、第
3図(a)に示したタイムスイッチメモリに入力ランダ
ムアドレスを供給するものである。
Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a principle diagram of a semiconductor memory device according to an embodiment of the present invention. For example, a control memory, which is an example of a semiconductor memory device, has data input means 11a,
Counter 11b, address selector 12, first and second RAM (writable / readable memory at any time) 13, 14, data selector 1
5, data output circuit 16, clock generation circuit 17, control circuit 18,
An address comparison unit 19, a write command processing unit 20, a write command output unit 21, and a selection unit 22 are provided. The control memory supplies the input random address to the time switch memory shown in FIG.

データ入力手段11aは入力データDIN及びランダムアド
レスraを入力し、データDINを第1,第2のRAM13,14に供
給する。なお、データ入力手段11aには不図示のD型フ
リップ・フロップ回路(DFF)が設けられ、クロック信
号CLKに同期してデータDINを第1,第2のRAM13,14に供
給する。
The data input means 11a inputs the input data DIN and the random address ra and supplies the data DIN to the first and second RAMs 13 and 14. The data input means 11a is provided with a D-type flip-flop circuit (DFF) not shown, and supplies the data DIN to the first and second RAMs 13 and 14 in synchronization with the clock signal CLK.

データDINは,例えば、多重度n=1024回線のアナログ
音声信号をA/D変換し、それをパルスコード変調(PCM)
したものである。
The data DIN is, for example, A / D converted from an analog voice signal with a multiplicity of n = 1024 lines and is pulse code modulated (PCM).
It was done.

また、データ入力手段11aはアドレスraをアドレスセレ
クタ12に出力する。カウンタ11bはクリア信号fcを入力
してシーケンシャルアドレスSAをアドレスセレクタ12に
供給する。
The data input means 11a also outputs the address ra to the address selector 12. The counter 11b inputs the clear signal fc and supplies the sequential address SA to the address selector 12.

アドレスセレクタ12はランダムアドレスRA又はシーケン
シャルアドレスSAのいずれかを選択してアドレスRA又は
SAの一方をRAM13又はRAM14に出力する。例えば、セレク
タ12は、制御回路18からの制御信号に基づいてRAM13に
アドレスRAを出力し、このときには、RAM14にアドレスS
Aを出力する。反対に、セレクタ12は、RAM13にアドレス
SAを出力しているときには、RAM14にアドレスRAを出力
する。
The address selector 12 selects either the random address RA or the sequential address SA to select the address RA or
One of the SAs is output to RAM13 or RAM14. For example, the selector 12 outputs the address RA to the RAM 13 based on the control signal from the control circuit 18, and the address S to the RAM 14 at this time.
Output A. Conversely, the selector 12 addresses the RAM 13
When SA is output, the address RA is output to RAM14.

RAM13は第1の記憶手段の一例であり、書込み命令WE
(#1)とランダムアドレスRAとに基づいてデータDIN
をランダムライトし、シーケンシャルアドレスSAに基づ
いてデータD(#1)をシーケンシャルリードするもの
である。
The RAM 13 is an example of the first storage means, and the write command WE
Data DIN based on (# 1) and random address RA
Is randomly written and the data D (# 1) is sequentially read based on the sequential address SA.

RAM14は第2の記憶手段の一例であり、書込み命令WE
(#2)とランダムアドレスRAとに基づいてデータDIN
をランダムライトし、このデータDINをシーケンシャル
アドレスSAに基づいて読出しデータD(#2)をシーケ
ンシャルリードするものである。例えば、RAM14はRAM13
がシーケンシャルリードしている期間に、書込み命令WE
(#2)とランダムアドレスRAとに基づいてデータDIN
をランダムライトし、RAM13がランダムライトしている
期間に、シーケンシャルアドレスSAに基づいて読出しデ
ータD(#2)をシーケンシャルリードするものであ
る。RAM13,14は同一のRAMを分割して2バンク構成とし
ても良い。
The RAM 14 is an example of the second storage means, and the write command WE
Data DIN based on (# 2) and random address RA
Is randomly written, and the read data D (# 2) is sequentially read from this data DIN based on the sequential address SA. For example, RAM14 is RAM13
Write command WE during the sequential read
Data DIN based on (# 2) and random address RA
Is randomly written, and the read data D (# 2) is sequentially read based on the sequential address SA while the RAM 13 is randomly writing. The RAMs 13 and 14 may have a two-bank configuration by dividing the same RAM.

データセレクタ15はRAM13からのデータD(#1)又はR
AM14からのデータD(#2)のいずれかを制御回路18か
らの制御信号に基づいて選択し、データD(#1)又は
D(#2)の一方をデータ出力回路16に出力する。
The data selector 15 is the data D (# 1) or R from the RAM 13
One of the data D (# 2) from the AM 14 is selected based on the control signal from the control circuit 18, and either the data D (# 1) or D (# 2) is output to the data output circuit 16.

データ出力回路16はクロック発生回路からのクロック信
号CLKに同期してデータセレクタ15からのデータD(#
1)又はD(#2)を通信回線等に出力する。クロック
発生回路17は制御回路18からの制御信号に基づいてクロ
ック信号CLKを発生し、この信号CLKをデータ入力手段11
a及びデータ出力回路16に出力する。
The data output circuit 16 synchronizes with the clock signal CLK from the clock generation circuit and outputs the data D (#
1) or D (# 2) is output to a communication line or the like. The clock generation circuit 17 generates a clock signal CLK based on the control signal from the control circuit 18, and uses this signal CLK for the data input means 11
a and the data output circuit 16.

制御回路18はアドレスセレクタ12,データセレクタ15及
びクロック発生回路18の入出力を制御する。例えば、制
御回路18はセレクタ12に、アドレスを選択するための制
御信号を出力し、データセレクタ15に、データを選択す
るための制御信号を出力し、クロック発生回路17にクロ
ック信号CLKのタイミング制御をするための制御信号を
それぞれ出力する。
The control circuit 18 controls input / output of the address selector 12, the data selector 15, and the clock generation circuit 18. For example, the control circuit 18 outputs a control signal for selecting an address to the selector 12, outputs a control signal for selecting data to the data selector 15, and controls the timing of the clock signal CLK to the clock generation circuit 17. The control signals for performing are output.

なお、これまでは本発明の関連技術のタイムスイッチメ
モリ(同日出願の半導体記憶装置)にランダムアドレス
を供給する制御メモリと同様である。本発明の実施例で
は、次の付加手段を設けている。
Note that the above is the same as the control memory for supplying a random address to the time switch memory (semiconductor memory device of the same application) of the related art of the present invention. In the embodiment of the present invention, the following additional means is provided.

すなわち、図1に示すように、当該制御メモリにアドレ
ス比較手段19,書込み命令処理手段20,書込み命令出力手
段21及び選択手段22が新たに設けられる。
That is, as shown in FIG. 1, an address comparison unit 19, a write command processing unit 20, a write command output unit 21, and a selection unit 22 are newly provided in the control memory.

アドレス比較手段19はランダムアドレスRAとシーケンシ
ャルアドレスSAとを比較して両アドレスが一致したとき
に、アドレス一致信号COMPを書込み命令処理手段20に
出力するものである。例えば、ランダムアドレスRA(10
bit)とシーケンシャルアドレス(10bit)SAとを比較し
て、両アドレスが一致したときに、アドレス一致信号C
OMPを書込み命令処理手段20に出力する。
The address comparison means 19 compares the random address RA with the sequential address SA and outputs an address match signal COMP to the write command processing means 20 when both addresses match. For example, random address RA (10
bit) and sequential address (10bit) SA are compared, and when both addresses match, the address match signal C
The OMP is output to the write command processing means 20.

書込み命令処理手段20,書込み命令出力手段21及び選択
手段22は、書込み命令制御手段を構成するものであり、
アドレス比較手段19からのアドレス一致信号COMPに応
じてランダムライトを挿入する書込み命令weをシーケン
シャルリード中のRAM13又は14のいずれかに出力する。
The write command processing means 20, the write command output means 21, and the selection means 22 constitute write command control means,
In response to the address match signal COMP from the address comparison means 19, a write command we for inserting random write is output to either the RAM 13 or 14 during the sequential read.

例えば、書込み命令処理手段20は、ランダムライトを挿
入する書込み命令weをアドレス比較手段19からのアドレ
ス一致信号COMPに応じてラッチし、書込み処理信号WE2
を書込み命令出力手段21に出力するものである。書込み
命令weは当該制御メモリが内蔵されるTSW装置のCPU等か
ら供給される。具体的には、電話加入者からTSW装置に
通話要求が発生することで、該書込み命令weはアサート
する。
For example, the write command processing means 20 latches the write command we for inserting the random write in response to the address match signal COMP from the address comparison means 19 and writes the write processing signal WE2.
Is output to the write command output means 21. The write command we is supplied from the CPU or the like of the TSW device in which the control memory is built. Specifically, when the telephone subscriber issues a call request to the TSW device, the write command we asserts.

書込み命令出力手段21は書込み処理信号WE2とクロック
発生回路からの書込みパルスφWEとを入力して書込み命
令WE3を選択手段22に出力するものである。選択手段22
はRAM13又はRAM14を選択して書込み命令WE3を出力する
ものである。
The write command output means 21 inputs the write processing signal WE2 and the write pulse φWE from the clock generation circuit and outputs the write command WE3 to the selection means 22. Selection means 22
Selects the RAM 13 or RAM 14 and outputs the write command WE3.

第2図(a)は、本発明の実施例に係る制御メモリの書
込み命令制御手段の論理回路図である。第2図(a)に
おいて、アドレス比較手段19は、例えば、10ビット分の
E−OR論理回路90〜99及び比較演算回路901から成る。
E−OR論理回路90は、データ入力手段11aからのシーケ
ンシャルアドレスSA0とランダムアドレスRA0とを比較
し、その比較信号を比較演算回路901に出力する。同様
に各E−OR論理回路91〜99は、データ入力手段11aから
のシーケンシャルアドレスSA1〜SA9とランダムアドレス
RA1〜RA9を比較し、その比較信号を比較演算回路901に
出力する。
FIG. 2A is a logic circuit diagram of the write command control means of the control memory according to the embodiment of the present invention. In FIG. 2 (a), the address comparison means 19 comprises, for example, 10-bit E-OR logic circuits 90 to 99 and a comparison operation circuit 901.
The E-OR logic circuit 90 compares the sequential address SA 0 from the data input means 11a with the random address RA 0 and outputs the comparison signal to the comparison operation circuit 901. Similarly, each of the E-OR logic circuits 91 to 99 has a sequential address SA 1 to SA 9 and a random address from the data input means 11a.
RA 1 to RA 9 are compared, and the comparison signal is output to the comparison operation circuit 901.

比較演算回路901では、各E−OR論理回路90〜99の比較
信号から、アドレスが一致するものがある場合には、ア
ドレス一致信号COMPを書込み命令処理手段20に出力す
る。
The comparison operation circuit 901 outputs an address coincidence signal COMP to the write instruction processing means 20 when there is a coincident address among the comparison signals of the E-OR logic circuits 90 to 99.

書込み命令処理手段20は、DFF201,203及びNAND回路202
から成る。DFF201は、CPU等からのランダムライトを挿
入する書込み命令weを比較演算回路901からのアドレス
一致信号COMPに応じてラッチし、その出力信号をNAND
回路202に出力する。NAND回路202はアドレス一致信号C
OMPとDFF201からの出力信号との論理信号をDFF203に出
力する。DFF203は回路202からの論理信号に応じて書込
み処理信号WE2を書込み命令出力手段21に出力するもの
である。
The write command processing means 20 includes a DFF 201, 203 and a NAND circuit 202.
Consists of. The DFF 201 latches a write command we for inserting a random write from the CPU or the like according to the address match signal COMP from the comparison operation circuit 901, and outputs the output signal NAND.
Output to the circuit 202. The NAND circuit 202 receives the address match signal C
The logical signal of the OMP and the output signal from DFF201 is output to DFF203. The DFF 203 outputs the write processing signal WE2 to the write command output means 21 according to the logic signal from the circuit 202.

書込み命令出力手段21は、インバータ回路211及びNAND
回路222から成る。インバータ回路211は書込み処理信号
WE2を論理反転してその反転信号をNAND回路222に出力す
る。NAND回路222はクロック発生回路17からの書込みパ
ルスφWEとインバータ回路211からの反転信号とを入力
して書込み命令WE3を選択手段22に出力する。
The write command output means 21 includes an inverter circuit 211 and a NAND.
The circuit 222. Inverter circuit 211 is a write processing signal
WE2 is logically inverted and the inverted signal is output to the NAND circuit 222. The NAND circuit 222 inputs the write pulse φWE from the clock generation circuit 17 and the inverted signal from the inverter circuit 211 and outputs the write command WE3 to the selection means 22.

次に、本発明の実施例に係る制御メモリの動作を説明す
る。第2図(b)は、本発明の実施例に係る制御メモリ
の動作波形図であり、シーケンシャルリード中の制御メ
モリでRAM13のd(=3)番地にランダムライトを挿入
する場合の動作タイムチャートを示している。
Next, the operation of the control memory according to the embodiment of the present invention will be described. FIG. 2B is an operation waveform diagram of the control memory according to the embodiment of the present invention, and is an operation time chart when a random write is inserted into the address d (= 3) of the RAM 13 in the control memory during the sequential read. Is shown.

第2図(b)において、CLKはクロック信号、SAはシー
ケンシャルアドレス、RAはランダムアドレス、weは書込
み命令、COMPはアドレス一致信号、WE2はラッチされた
書込み処理信号、φWEは書込みパルス、WE3は書込み命
令をそれぞれ示している。書込み命令WE3は、例えば、
シーケンシャルリード中のRAM13に供給される。また、
A(#1)はシーケンシャルリード中のRAM13に入力す
るシーケンシャルアドレスである。D(#1)は、読出
しデータ、dout…読出し出力データの各信号を示して
いる。
In FIG. 2 (b), CLK is a clock signal, SA is a sequential address, RA is a random address, we is a write command, COMP is an address match signal, WE2 is a latched write processing signal, φWE is a write pulse, and WE3 is Write commands are shown respectively. The write command WE3 is, for example,
It is supplied to the RAM 13 during sequential reading. Also,
A (# 1) is a sequential address input to the RAM 13 during sequential read. D (# 1) indicates each signal of read data, dout ... Read output data.

例えば、シーケンシャルリード中の制御メモリでRAM13
のd(=3)番地にランダムライトを挿入する要求が生
じた場合、書込み要求は直ぐには実行されない。実際の
書込み動作が行われるのは、読出しアドレスがd=3番
地を示したときであり、本発明の実施例では、読出しア
ドレスが書込みアドレスに一致したときである。このよ
うにすることにより、書込みが実行される3番地以外の
読出しデータは、書込みによって妨害されることなく、
連続的に読み出すことができる。
For example, the control memory during sequential read is RAM13
If there is a request to insert a random write at address d (= 3), the write request will not be executed immediately. The actual write operation is performed when the read address indicates the address d = 3, and in the embodiment of the present invention, when the read address matches the write address. By doing so, the read data other than the address 3 where the writing is executed is not disturbed by the writing,
It can be read continuously.

すなわち、第2図(b)において、クロック信号CLKの
の立ち上がりに同期して、例えば、シーケンシャルア
ドレスSAがクリア(SA=0)され、ランダムアドレスRA
(d=3)がデータ入力回路11aによりラッチされ、書
込み命令weが書込み命令処理手段20により入力される。
That is, in FIG. 2B, for example, the sequential address SA is cleared (SA = 0) in synchronization with the rising of the clock signal CLK, and the random address RA
(D = 3) is latched by the data input circuit 11a, and the write command we is input by the write command processing means 20.

次のクロック信号CLKのの立ち上がりに同期して、前
サイクルのシーケンシャルアドレスSAの内容「0」がRA
M13に入力され、1クロック遅れて、クロック信号CLKの
の立ち上がりに同期して、0番地からの読出しデータ
D(#1)の内容「0」がデータ出力回路15にラッチさ
れ、さらに、1クロック遅れて、クロック信号CLKの
の立ち上がりに同期して、出力端子に読出し出力データ
dout=「0」が出力される。
In synchronization with the rising edge of the next clock signal CLK, the content "0" of the sequential address SA of the previous cycle is RA.
The content "0" of the read data D (# 1) from address 0 is input to M13 and synchronized with the rising edge of the clock signal CLK with a delay of one clock, and the data output circuit 15 latches the content "0". After a delay, the read output data dout = “0” is output to the output terminal in synchronization with the rising edge of the clock signal CLK.

また、クロック信号CLKのの立ち上がりに同期して、
シーケンシャルアドレスSAの内容は「3」となるが、こ
れはランダムアドレスRAで指定された番地d=3と一致
するため、アドレス一致信号COMPが「H」(ハイ)レ
ベルとなり、次のクロック信号CLKのの立ち上がりに
同期して、書込み命令処理手段20から書込み命令出力手
段21に書込み処理信号WE2が出力される。
Also, in synchronization with the rising edge of the clock signal CLK,
The content of the sequential address SA becomes "3", but since this matches the address d = 3 specified by the random address RA, the address match signal COMP becomes "H" (high) level and the next clock signal CLK. The write processing signal WE2 is output from the write command processing means 20 to the write command output means 21 in synchronization with the rising edge of.

この書込み処理手段WE2を受けて書込み命令出力手段21
からの書込み命令WE3は、選択手段22に出力され、選択
手段22は書込み命令WE3をRAM13に出力する。
Upon receiving the write processing means WE2, write command output means 21
The write command WE3 from is output to the selection means 22, and the selection means 22 outputs the write command WE3 to the RAM 13.

これにより、RAM13では3番地への書込みが達成され
る。その後、クロック信号CLKのの立ち上がりに同期
して、読出しデータD(#1)の内容「3」がデータ出
力回路15にラッチされ、さらに、1クロック遅れて、ク
ロック信号CLKのの立ち上がりに同期して、出力端子
に読出し出力データdout=「3」が出力される。
As a result, the writing to the address 3 is achieved in the RAM 13. After that, the content “3” of the read data D (# 1) is latched in the data output circuit 15 in synchronization with the rising edge of the clock signal CLK, and further, one clock later, in synchronization with the rising edge of the clock signal CLK. The read output data dout = “3” is output to the output terminal.

このようにして本発明の実施例に係る制御メモリによれ
ば、第1図に示すように、アドレス比較手段19と、書込
み命令処理手段20と、書込み命令出力手段21と、選択手
段22とを備える。
Thus, according to the control memory of the embodiment of the present invention, as shown in FIG. 1, the address comparing means 19, the write command processing means 20, the write command outputting means 21, and the selecting means 22 are provided. Prepare

このため、ランダムアドレスRAとシーケンシャルアドレ
スSAとがアドレス比較手段により常時比較され、両アド
レスRA,SAの指定番地が一致し、かつ、書込み命令weが
得られた場合、アシーケンシャルリード中のRAM13又はR
AM14に書込み命令WE3に出力することができる。
Therefore, when the random address RA and the sequential address SA are constantly compared by the address comparing means, the designated addresses of both the addresses RA and SA match, and the write command we is obtained, the RAM 13 or the RAM 13 during the sequential read or R
Can be output to the write command WE3 in AM14.

すなわち、RAM13又は14のいずれかがシーケンシャルリ
ードしている期間に、外部からランダムライトを強制的
に挿入する書込み命令weが、書込み命令処理手段20に供
給されると、ランダムライトの挿入によって入力される
ランダムアドレスRAとシーケンシャルアドレスSAとがア
ドレス比較手段19により比較され、それが一致すると、
アドレス一致信号COMPが当該比較手段19から書込み命
令処理手段20に出力され、該処理手段20から書込み命令
出力手段21及び選択手段22を介して、シーケンシャルリ
ードしているRAM13又は14のいずれかに書込み命令WE3を
供給することができる。
That is, when the write command we forcibly inserting the random write from the outside is supplied to the write command processing means 20 while the RAM 13 or 14 is sequentially read, the write command we is input by the random write insertion. Random address RA and sequential address SA are compared by the address comparison means 19, and if they match,
The address coincidence signal COMP is output from the comparison means 19 to the write command processing means 20, and is written from the processing means 20 to the RAM 13 or 14 which is sequentially read through the write command output means 21 and the selection means 22. The instruction WE3 can be supplied.

このため、本発明の関連技術のように、アドレスセレク
タ12を介して強制的にシーケンシャルアドレスSAをラン
ダムアドレスRAに切り換えることなく、シーケンシャル
リード中のRAM13又はRAM14にランダムライトを挿入する
ことが可能となる。
Therefore, unlike the related art of the present invention, it is possible to insert a random write into the RAM 13 or the RAM 14 during the sequential read without forcibly switching the sequential address SA to the random address RA via the address selector 12. Become.

これにより、ランダムライトにあってシーケンシャルリ
ード中のRAM13又はRAM14にランダムアドレスRAを供給す
ることが無くなる。また、シーケシャルアドレスSAに基
づいてシーケンシャルリード中のRAM13又は14におい
て、データを書き換えることでき、シーケンシャルリー
ド中のデータに目標としないデータが挿入されることが
なくなり、読出し出力データdoutの連続性を保つこと
ができる。
As a result, it is not necessary to supply the random address RA to the RAM 13 or RAM 14 in random write and during sequential read. Further, the data can be rewritten in the RAM 13 or 14 during the sequential read based on the sequential address SA, and the untargeted data is not inserted in the data during the sequential read, and the continuity of the read output data dout is ensured. Can be kept.

なお、3番地に新たに書き込まれた新しいデータ〔読出
しデータD(#1)〕が回線に出力されるが、同番地の
古いデータは新しい通話の開始によって、不要となった
ものである。従って、古いデータの代わりに新しいデー
タを伝送することに何ら問題が生じない。また、書込み
命令weは書込み動作が実行されるまで保持する必要はな
く、本発明の実施例のようにDFF回路201によってラッチ
すれば足りる。
Note that new data [read data D (# 1)] newly written at the address 3 is output to the line, but the old data at the same address has become unnecessary due to the start of a new call. Therefore, there is no problem in transmitting new data instead of old data. Further, the write command we does not need to be held until the write operation is executed, and it is sufficient to latch it by the DFF circuit 201 as in the embodiment of the present invention.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明の半導体記憶装置によれ
ば、ランダムアドレスとシーケンシャルアドレスとを比
較して両アドレスが一致したときに、ランダムライトを
挿入する書込み命令をシーケンシャルリード中の記憶手
段に記憶する書込み命令制御手段が備えられる。
As described above, according to the semiconductor memory device of the present invention, the random address and the sequential address are compared, and when the two addresses match, the write command for inserting the random write is stored in the storage means during the sequential read. A write command control means is provided.

このため、シーケンシャルリード中の記憶手段に供給さ
れているシーケンシャルアドレスを敢えてランダムアド
レスに切り換えることなく、シーケンシャルリード中の
記憶手段にランダムライトを挿入することができ、シー
ケンシャルアドレスに基づいてデータを書き換えること
ができ、シーケンシャルリード中のデータに目標としな
いデータが挿入されなくなる(読出しデータと連続性が
確保できる)。
Therefore, a random write can be inserted in the storage means during sequential read without intentionally switching the sequential address supplied to the storage means during sequential read to a random address, and data can be rewritten based on the sequential address. Therefore, untargeted data is not inserted into the data during the sequential read (the continuity with the read data can be secured).

これにより、同一のRAMを分割した2バンク構成の制御
メモリを簡単に構成することができ、外部からシーケン
シャルリード又はランダムライトが自由に選択可能なダ
ブルバッファ機能付きタイムスイッチメモリの提供に寄
与するところが大きい。
As a result, it is possible to easily configure a control memory having a two-bank configuration in which the same RAM is divided, which contributes to the provision of a time switch memory with a double buffer function in which sequential read or random write can be freely selected from the outside. large.

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

第1図は、本発明の実施例に係る原理図、 第2図は、本発明の実施例に係る動作を説明する図、 第3図(a)は、本発明が適用される半導体記憶装置の
説明図、 第3図(b)は、同図(a)の回路動作を説明する図、 第4図は、従来例に係るTSW装置の時分割交換の概要
図、 第5図は、従来例に係る制御メモリを2バンク構成にし
た図である。 (符号の説明) 11a……データ入力回路、 11b……カウンタ、 12……アドレスセレクタ、 6a,6b,13,14……第1,第2のRAM(ランダムアクセスメモ
リ)、 15……データセレクタ、 16……データ出力回路、 8,17……クロック発生回路、 9,18……制御回路、 19……アドレス比較手段、 20……書込み命令処理手段、 21……書込み命令出力手段、 22……選択手段、 1a〜1c,2a〜2c,3a〜3c,4a〜4c,201,203……DFF(D型フ
リップ・フロップ回路)、 5a,5b……セレクタ、 7a,7b……プリデコーダ、 10a……パリティチェック回路、 90〜99……E−OR論理回路、 901……比較演算回路、 202,222……NAND回路、 DIN……入力データ、 ra……入力ランダムアドレス、 RA……ランダムアドレス、 SA……シーケンシャルアドレス、 fc……クリア信号、 CLK……クロック信号、 we……書込み命令、 W1,W2(上線を省略する)……ライトイネーブル信号、 WE0……ラッチされた書込み命令、 WE1……書込み処理信号、 WE2……ラッチされた書込み処理信号、 WE3……書込み命令、 φWE……ライトパルス信号、 C1〜C4……制御信号、 COMP……アドレス一致信号、 A(#1),A(#2)……ランダム/シーケンシャルア
ドレス、 D(#1),D(#2)……読出しデータ、 dout……読出し出力データ、 dout′……補助読出し出力データ。
FIG. 1 is a principle diagram according to an embodiment of the present invention, FIG. 2 is a diagram for explaining an operation according to the embodiment of the present invention, and FIG. 3 (a) is a semiconductor memory device to which the present invention is applied. FIG. 3 (b) is a diagram for explaining the circuit operation of FIG. 3 (a), FIG. 4 is a schematic diagram of time division exchange of a TSW device according to a conventional example, and FIG. 5 is a conventional diagram. It is the figure which made the control memory which relates to the example the 2 banks constitution. (Description of symbols) 11a ... data input circuit, 11b ... counter, 12 ... address selector, 6a, 6b, 13,14 ... first and second RAM (random access memory), 15 ... data selector , 16 ... data output circuit, 8, 17 ... clock generation circuit, 9, 18 ... control circuit, 19 ... address comparison means, 20 ... write command processing means, 21 ... write command output means, 22 ... ... Selection means, 1a to 1c, 2a to 2c, 3a to 3c, 4a to 4c, 201,203 ... DFF (D type flip-flop circuit), 5a, 5b ... selector, 7a, 7b ... predecoder, 10a ... ... parity check circuit, 90 to 99 ... E-OR logic circuit, 901 ... comparison operation circuit, 202,222 ... NAND circuit, DIN ... input data, ra ... input random address, RA ... random address, SA ... … Sequential address, fc …… Clear signal, CLK …… Clock signal, we …… Write command, W1, W2 (The upper line is omitted.) Write enable signal, WE0 ... Latched write command, WE1 ... Write processing signal, WE2 ... Latched write processing signal, WE3 ... Write command, φWE ... Write pulse signal , C1 to C4 ... Control signal, COMP ... Address match signal, A (# 1), A (# 2) ... Random / sequential address, D (# 1), D (# 2) ... Read data, dout ... Readout output data, dout '... Auxiliary readout output data.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】書込み命令とランダムアドレスとに基づい
てランダムライトされたデータをシーケンシャルアドレ
スに基づいてシーケンシャルリードする第1の記憶手段
と、前記第1の記憶手段がシーケンシャルリードしてい
る期間に、書込み命令とランダムアドレスとに基づいて
データをランダムライトし、前記第1の記憶手段がラン
ダムライトしている期間に、前記ランダムライトされた
データをシーケンシャルアドレスに基づいてシーケンシ
ャルリードする第2の記憶手段と、前記ランダムアドレ
スとシーケンシャルアドレスとを比較して両アドレスが
一致したときに、アドレス一致信号を発生するアドレス
比較手段と、前記アドレス比較手段からのアドレス一致
信号に応じてシーケンシャルリード中の第1又は第2の
記憶手段のいずれかにランダムライトを挿入する書込み
命令を出力する書込み命令制御手段とを備えることを特
徴とする半導体記憶装置。
1. A first storage unit for sequentially reading data randomly written based on a write command and a random address based on a sequential address; and a period during which the first storage unit is sequentially read. Second storage means for randomly writing data based on a write command and a random address, and for sequentially reading the randomly written data based on a sequential address while the first storage means is performing random writing. And the random address and the sequential address are compared with each other, and when the two addresses match, an address comparing means for generating an address matching signal and a first during the sequential reading in response to the address matching signal from the address comparing means Or any of the second storage means The semiconductor memory device characterized by comprising a write instruction control means for outputting a write command to insert a random write to.
JP62217511A 1987-08-31 1987-08-31 Semiconductor memory device Expired - Fee Related JPH0783513B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62217511A JPH0783513B2 (en) 1987-08-31 1987-08-31 Semiconductor memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62217511A JPH0783513B2 (en) 1987-08-31 1987-08-31 Semiconductor memory device

Publications (2)

Publication Number Publication Date
JPS6460190A JPS6460190A (en) 1989-03-07
JPH0783513B2 true JPH0783513B2 (en) 1995-09-06

Family

ID=16705376

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62217511A Expired - Fee Related JPH0783513B2 (en) 1987-08-31 1987-08-31 Semiconductor memory device

Country Status (1)

Country Link
JP (1) JPH0783513B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5181122A (en) * 1990-06-26 1993-01-19 Konami Kogyo Kabushiki Kaisha Display device for displaying a wide picture
JPH0741099B2 (en) * 1991-06-05 1995-05-10 コナミ株式会社 Video game console

Also Published As

Publication number Publication date
JPS6460190A (en) 1989-03-07

Similar Documents

Publication Publication Date Title
US5130979A (en) Frame converter using a dual-port random access memory
JPH0157876B2 (en)
JPH0783513B2 (en) Semiconductor memory device
KR100253565B1 (en) Bidirectional Data Input / Output Circuit of Synchronous Memory and Its Control Method
EP0215455B1 (en) Write circuit for an erasable programmable read only memory device of a microcomputer
JPH0828913B2 (en) Time multiplex switch
US4081610A (en) Fast access antiphase control memory for digital data switches
US20040141399A1 (en) Method and integrated circuit capable of reading and writing data simultaneously
JP3101957B2 (en) Serial data shift circuit
KR100205589B1 (en) Memory access circuit of time switch
JPH0686376A (en) Digital tone generating circuit
JPH10340596A (en) Data storage device and semiconductor storage device
JP3110192B2 (en) Programmable read-only memory
JP2563244B2 (en) Erasable store circuit
KR19990036939A (en) Time-Multiple Switches Operate as Single- and Double-Buffered Types
JP2595707B2 (en) Memory device
KR890000843B1 (en) Inward operation circuit of time switch
JP2914289B2 (en) Control method of time division switch
JPH029392Y2 (en)
KR100315904B1 (en) Circuit of Preventing Error Operation of the Tone Sender Logic
JPH05143283A (en) Data speed converter
JP3034548B2 (en) Time switch
JPS59212061A (en) Out pulse dial circuit
JPH04324191A (en) Semiconductor memory
JPS63220695A (en) Half-fixed line housing system in time division line switching system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees