JPH05158791A - Two-port memory - Google Patents

Two-port memory

Info

Publication number
JPH05158791A
JPH05158791A JP3324415A JP32441591A JPH05158791A JP H05158791 A JPH05158791 A JP H05158791A JP 3324415 A JP3324415 A JP 3324415A JP 32441591 A JP32441591 A JP 32441591A JP H05158791 A JPH05158791 A JP H05158791A
Authority
JP
Japan
Prior art keywords
port
input
random
serial
access
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
JP3324415A
Other languages
Japanese (ja)
Inventor
Yuji Kamiyama
祐史 神山
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3324415A priority Critical patent/JPH05158791A/en
Publication of JPH05158791A publication Critical patent/JPH05158791A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the program load on random port side microprocessor at the time of dividing the memory cell of a 2-port memory into plural blocks. CONSTITUTION:After a storage in a shift register 33 from a serial port, an access to the memory cell indicated by a serial access cell selecting register 5 is made by an address indicated by a data transfer address preparing part 6. From a random port, the access to the memory cell indicated by a random access cell selecting register 3 is made by an input address from an outside. The contents of the serial access cell selecting register 5 and the random access cell selecting register 3 are managed by the microprocessor connected with the random port side. Thus, it is not necessary to manage the divided blocks by the address.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は2つの独立したデータ処
理装置間の転送データを格納する2ポートメモリに関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a two-port memory for storing transfer data between two independent data processing devices.

【0002】[0002]

【従来の技術】従来、2つの独立したデータ処理装置間
の転送データを格納する2ポートメモリとして画像用の
2ポートメモリが広く使用されている。画像用の2ポー
トメモリは、例えば次の文献に記載されている。「並列
図形処理」,鷺島敬之他著,コロナ社,1991年8
月,152〜154ページ。
2. Description of the Related Art Conventionally, a 2-port memory for images has been widely used as a 2-port memory for storing transfer data between two independent data processing devices. A 2-port memory for images is described in the following document, for example. "Parallel figure processing", Takayuki Sagishima et al., Corona Publishing Co., Ltd., 1991, 8
Mon, pages 152-154.

【0003】以下図面を参照しながら、上記した従来の
2ポートメモリについて説明する。図3は従来の2ポー
トメモリのブロック図を示すものである。図3におい
て、31は2つのデータ入出力ポートを持つメモリセ
ル、32はメモリセル31の一方のポートでランダムに
アクセスされるポートに接続されたランダム入出力ポー
ト、33はメモリセル31のもう一方のポートに接続さ
れたデータ線を並列に入出力するシフトレジスタ、34
はシフトレジスタ33と外部との間で直列にデータ入出
力するシリアル入出力ポート、35はメモリセル31を
アクセスするアドレスを入力するアドレス入力ポート、
36はランダム入出力ポート側からのアクセス要求信号
を入力しメモリセル31に対してアクセス制御するラン
ダムポートアクセス制御部、37は外部より入力するク
ロックに同期してシリアル入出力ポート34とシフトレ
ジスタ33との間のデータ転送を制御し、外部より入力
するデータ転送要求信号に従ってメモリセル31に対し
てシフトレジスタ33との間でデータ転送を制御するシ
リアルポートアクセス制御部である。
The above-mentioned conventional two-port memory will be described below with reference to the drawings. FIG. 3 is a block diagram of a conventional 2-port memory. In FIG. 3, 31 is a memory cell having two data input / output ports, 32 is a random input / output port connected to one of the memory cell 31 that is randomly accessed, and 33 is the other of the memory cells 31. Shift register for inputting / outputting in parallel data lines connected to the ports of the
Is a serial input / output port for serially inputting / outputting data between the shift register 33 and the outside, 35 is an address input port for inputting an address for accessing the memory cell 31,
Reference numeral 36 denotes a random port access control unit for inputting an access request signal from the random input / output port side and controlling access to the memory cell 31, and 37 denotes a serial input / output port 34 and a shift register 33 in synchronization with a clock input from the outside. Is a serial port access control unit that controls data transfer between the memory cell 31 and the shift register 33 according to a data transfer request signal input from the outside.

【0004】以上のように構成された2ポートメモリに
ついて、以下その動作を説明する。但し、シリアル入出
力ポート34は入力専用とし、シーケンシャルにアクセ
スされる読出し専用の記憶装置が接続され、ランダム入
出力ポート32は出力専用とし、通常のマイクロプロセ
ッサが接続され、ランダムに読出す場合を考える。
The operation of the 2-port memory configured as described above will be described below. However, when the serial input / output port 34 is exclusively used for input, a read-only storage device that is sequentially accessed is connected, and the random input / output port 32 is exclusively used for output, an ordinary microprocessor is connected, and random reading is performed. Think

【0005】まず、シリアルポート側からのデータ入力
を説明する。シリアルポートアクセス制御部37はシリ
アルポート制御クロックに同期してシリアル入出力ポー
ト34から順次入力されるデータをシフトレジスタ33
へ格納する。シフトレジスタ33へのデータ列の格納が
終了すると、データ転送要求信号が入力され、アドレス
入力ポート35から入力されるアドレスに従ってメモリ
セル31へ格納制御信号を出力しシフトレジスタ33の
内容を格納する。以上の一連の動作を繰り返し、記憶装
置からのデータが順次メモリセル31へ格納される。こ
のメモリセル31への格納アドレスおよびデータ転送要
求信号は、ランダム入出力ポート32に接続されるマイ
クロプロセッサが出力する。
First, data input from the serial port side will be described. The serial port access controller 37 shifts the data sequentially input from the serial input / output port 34 in synchronization with the serial port control clock.
Store to. When the storage of the data string in the shift register 33 is completed, the data transfer request signal is input, the storage control signal is output to the memory cell 31 according to the address input from the address input port 35, and the content of the shift register 33 is stored. By repeating the above series of operations, the data from the memory device is sequentially stored in the memory cell 31. The storage address to the memory cell 31 and the data transfer request signal are output by the microprocessor connected to the random input / output port 32.

【0006】次に、ランダムポートアクセス制御部36
はランダムアクセス要求信号を入力されると、アドレス
入力ポート35から入力されるアドレスに従って、メモ
リセル31の内容をランダム入出力ポート32へ出力す
る。このメモリセル31からの読出しアドレスは、ラン
ダム入出力ポート32に接続されるマイクロプロセッサ
が出力する。
Next, the random port access controller 36
When the random access request signal is input, outputs the content of the memory cell 31 to the random input / output port 32 according to the address input from the address input port 35. The read address from the memory cell 31 is output by the microprocessor connected to the random input / output port 32.

【0007】以上の動作により、シリアル入出力ポート
34に接続される記憶装置から順次読出されたデータが
メモリセル31に格納され、ランダム入出力ポート32
に接続されるマイクロプロセッサがランダムに読出し処
理する。
By the above operation, the data sequentially read from the storage device connected to the serial input / output port 34 is stored in the memory cell 31, and the random input / output port 32 is provided.
The microprocessor connected to the CPU performs random read processing.

【0008】[0008]

【発明が解決しようとする課題】しかしながら上記のよ
うな構成では、シリアル入出力ポート34から順次読出
されたデータがメモリセル31に格納される速度と、メ
モリセル31からランダム入出力ポート32に読出され
る速度に差があり、その対策のためメモリセル31を複
数のブロックに分割する場合、ランダム入出力ポート3
2に接続されるマイクロプロセッサのプログラムが明示
的にブロックに応じたアドレス管理を行わなければなら
ない。さらに、ランダムポート側からのアクセスアドレ
スのみならずシリアルポート側からのアクセスアドレス
およびその更新タイミングをも一括して管理する必要が
あり、ランダム入出力ポート32に接続されるマイクロ
プロセッサのプログラムに非常に大きな負荷が発生する
という課題を有していた。
However, in the above configuration, the speed at which the data sequentially read from the serial input / output port 34 is stored in the memory cell 31, and the data read from the memory cell 31 to the random input / output port 32 are read. When the memory cell 31 is divided into a plurality of blocks as a countermeasure against the difference in the speeds, the random input / output port 3
The program of the microprocessor connected to 2 must explicitly manage the address according to the block. Further, it is necessary to collectively manage not only the access address from the random port side but also the access address from the serial port side and the update timing thereof, which is very important for the program of the microprocessor connected to the random input / output port 32. There was a problem that a large load was generated.

【0009】本発明はかかる点に鑑み、2ポートメモリ
のメモリセルを複数のブロックに分割する場合に、ラン
ダムポート側のマイクロプロセッサのプログラム負荷を
軽減する2ポートメモリを提供することを目的とする。
In view of the above points, an object of the present invention is to provide a 2-port memory which reduces the program load of the microprocessor on the random port side when the memory cell of the 2-port memory is divided into a plurality of blocks. ..

【0010】[0010]

【課題を解決するための手段】上記課題を解決するため
に本発明の2ポートメモリは、2つのデータ入出力ポー
トを持つ複数のメモリセルと、複数のメモリセルの各々
の一方のポートでランダムにアクセスされるポートに共
通に接続されたランダム入出力ポートと、複数のメモリ
セルの各々のもう一方のポートで行単位に同時アクセス
されるポートに共通に接続されたデータ線を並列に入出
力するシフトレジスタと、シフトレジスタと外部との間
で直列にデータ入出力するシリアル入出力ポートと、ラ
ンダム入出力ポートから複数のメモリセルを共通にアク
セスするアドレスを入力するランダムアクセスアドレス
入力ポートと、ランダム入出力ポート側からアクセスす
るメモリセルを複数のメモリセルの中から選択する情報
を格納するランダムアクセスセル選択レジスタと、ラン
ダム入出力ポート側からのアクセス要求信号を入力しラ
ンダムアクセスセル選択レジスタの内容に従ってメモリ
セルに対してアクセス制御するランダムポートアクセス
制御部と、シフトレジスタからアクセスするメモリセル
を複数のメモリセルから選択する情報を格納するシリア
ルアクセスセル選択レジスタと、シフトレジスタと複数
のメモリセルとの間のデータ転送で使用するアドレスを
生成し複数のメモリセルへ共通に出力するデータ転送ア
ドレス生成部と、外部より入力するクロックに同期して
シリアル入出力ポートとシフトレジスタとの間のデータ
転送を制御し、外部より入力するデータ転送要求信号と
シリアルアクセスセル選択レジスタの内容に従って複数
のメモリセルのうちの一つのメモリセルに対してシフト
レジスタとの間でデータ転送を制御し、データ転送アド
レス生成部での生成アドレスを制御するシリアルポート
アクセス制御部と、ランダムアクセスセル選択レジスタ
に対する設定変更要求信号とシリアルアクセスセル選択
レジスタに対する設定変更要求信号とを入力しランダム
アクセスセル選択レジスタとシリアルアクセスセル選択
レジスタの内容を設定変更するメモリセル設定変更制御
部という構成を備えたものである。
In order to solve the above-mentioned problems, a two-port memory according to the present invention has a plurality of memory cells having two data input / output ports and a random port at each one of the plurality of memory cells. Random I / O port commonly connected to the port accessed to the port and the data line commonly connected to the port simultaneously accessed row by row at the other port of each of the plurality of memory cells are input / output in parallel. Shift register, a serial input / output port for serially inputting / outputting data between the shift register and the outside, a random access address input port for inputting an address commonly accessing a plurality of memory cells from the random input / output port, Random I / O port is a lander that stores information to select the memory cell to be accessed from the multiple I / O port side. An access cell selection register, a random port access control unit that inputs an access request signal from the random input / output port side and controls access to the memory cell according to the contents of the random access cell selection register, and a memory cell accessed from the shift register A serial transfer cell selection register that stores information to be selected from multiple memory cells, and a data transfer address that generates an address used for data transfer between the shift register and multiple memory cells and outputs it to multiple memory cells in common. Controls the data transfer between the serial I / O port and the shift register in synchronization with the generator and the clock input from the outside, and multiple memories according to the data transfer request signal input from the outside and the contents of the serial access cell selection register. The memory of one of the cells The serial port access control unit that controls the data transfer between the shift register and the shift register, and the generated address in the data transfer address generation unit, the setting change request signal for the random access cell selection register, and the serial access cell selection A memory cell setting change control unit for inputting a setting change request signal to the register and changing the settings of the contents of the random access cell selection register and the serial access cell selection register is provided.

【0011】[0011]

【作用】本発明は上記した構成により、まず初期化とし
てランダムポート側からアクセスするメモリセルをラン
ダムアクセスセル選択レジスタに設定し、シリアルポー
ト側からアクセスするメモリセルをシリアルアクセスセ
ル選択レジスタに、さらにシリアルポート側からメモリ
セルをアクセスする最初のアドレスをデータ転送アドレ
ス生成部に設定する。シリアルポート側からのデータ入
力を行う場合、シリアルポートアクセス制御部はシリア
ルポート制御クロックに同期してシリアル入出力ポート
から順次入力されるデータをシフトレジスタへ格納す
る。シフトレジスタへのデータ列の格納が終了すると、
予めシリアルアクセスセル選択レジスタに設定されたメ
モリセルに対してデータ転送要求信号を出力し、データ
転送アドレス生成部が出力するアドレスに従ってシフト
レジスタの内容を格納する。シフトレジスタからメモリ
セルへのデータ転送が終了するとデータ転送アドレス生
成部はシリアルポートアクセス制御部から入力される制
御信号に従い、次の格納アドレスを生成する。以上の一
連の動作を繰り返し、シリアルポート側からのデータが
順次、メモリセルへ格納される。
According to the present invention, the memory cell to be accessed from the random port side is set in the random access cell selection register as initialization, the memory cell to be accessed from the serial port side is set in the serial access cell selection register, and further, as initialization. The first address for accessing the memory cell from the serial port side is set in the data transfer address generation unit. When data is input from the serial port side, the serial port access control unit stores the data sequentially input from the serial input / output port in the shift register in synchronization with the serial port control clock. After storing the data string in the shift register,
A data transfer request signal is output to the memory cell set in advance in the serial access cell selection register, and the contents of the shift register are stored according to the address output by the data transfer address generation unit. When the data transfer from the shift register to the memory cell is completed, the data transfer address generation unit generates the next storage address according to the control signal input from the serial port access control unit. By repeating the above series of operations, the data from the serial port side are sequentially stored in the memory cells.

【0012】次に、ランダムポートアクセス制御部はラ
ンダムアクセス要求信号を入力されると、予めランダム
アクセスセル選択レジスタに設定されたメモリセルに対
して読出し制御信号を出力し、ランダムアクセスアドレ
ス入力ポートから入力されるアドレスに従って、メモリ
セルの内容がランダム入出力ポートへ出力される。
Next, when the random access request signal is input, the random port access control unit outputs a read control signal to the memory cell previously set in the random access cell selection register, and the random access address input port outputs the read control signal. The contents of the memory cell are output to the random input / output port according to the input address.

【0013】以上の動作により、ランダム入出力ポート
に接続されるマイクロプロセッサのプログラムが明示的
にブロックに応じたアドレス管理を行なう必要がなくな
り、さらに、シリアルポート側からのアクセスアドレス
およびその更新タイミングをも管理する必要がなくな
り、ランダム入出力ポートに接続されるマイクロプロセ
ッサのプログラムの負荷を軽減することが可能となる。
By the above operation, the program of the microprocessor connected to the random input / output port does not need to explicitly manage the address according to the block, and the access address from the serial port side and its update timing can be set. Need not be managed, and the load on the program of the microprocessor connected to the random input / output port can be reduced.

【0014】[0014]

【実施例】以下本発明の第一の実施例の2ポートメモリ
について、図面を参照しながら説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A two-port memory according to a first embodiment of the present invention will be described below with reference to the drawings.

【0015】図1は本発明の第一の実施例における2ポ
ートメモリのブロック図を示すものである。図1におい
て、32はランダム入出力ポート、33はシフトレジス
タ、34はシリアル入出力ポートで、以上は図3に示す
のと同じ構成である。1−1から1−nは2つのデータ
入出力ポートを持つメモリセル、2はメモリセル1−1
から1−nをランダム入出力ポート32から共通にアク
セスするアドレスを入力するランダムアクセスアドレス
入力ポート、3はランダム入出力ポート32側からアク
セスする1つのメモリセルをメモリセル1−1から1−
nの中から選択する情報を格納するランダムアクセスセ
ル選択レジスタ、4はランダム入出力ポート32側から
のアクセス要求信号を入力しランダムアクセスセル選択
レジスタ3の内容に従って1つのメモリセルに対してア
クセス制御するランダムポートアクセス制御部、5はシ
フトレジスタ33からアクセスする1つのメモリセルを
メモリセル1−1から1−nの中から選択する情報を格
納するシリアルアクセスセル選択レジスタ、6はシフト
レジスタ33とメモリセル1−1から1−nとの間のデ
ータ転送で使用するアドレスを生成しメモリセル1−1
から1−nへ共通に出力するデータ転送アドレス生成
部、7は外部より入力するクロックに同期してシリアル
入出力ポート34とシフトレジスタ33との間のデータ
転送を制御し、外部より入力するデータ転送要求信号と
シリアルアクセスセル選択レジスタ5の内容に従ってメ
モリセル1−1から1−nのうちの一つのメモリセルに
対してシフトレジスタ33との間でデータ転送を制御
し、データ転送アドレス生成部6での生成アドレスを制
御するシリアルポートアクセス制御部、8はランダムア
クセスセル選択レジスタ3に対する設定変更要求信号と
シリアルアクセスセル選択レジスタ5に対する設定変更
要求信号とを入力しランダムアクセスセル選択レジスタ
3とシリアルアクセスセル選択レジスタ5の内容を設定
変更するメモリセル設定変更制御部である。
FIG. 1 is a block diagram of a 2-port memory according to the first embodiment of the present invention. In FIG. 1, reference numeral 32 is a random input / output port, 33 is a shift register, and 34 is a serial input / output port. The above is the same configuration as shown in FIG. 1-1 to 1-n are memory cells having two data input / output ports, 2 is a memory cell 1-1
To 1-n are inputted from the random input / output port 32 through the random access address input port for commonly accessing the random input / output port 32, and 3 is one memory cell to be accessed from the random input / output port 32 side.
The random access cell selection register 4 for storing information selected from n receives an access request signal from the random input / output port 32 side, and controls access to one memory cell according to the contents of the random access cell selection register 3. The random port access control unit 5 is a serial access cell selection register for storing information for selecting one memory cell to be accessed from the shift register 33 from the memory cells 1-1 to 1-n, and 6 is a shift register 33. An address used for data transfer between the memory cells 1-1 to 1-n is generated to generate the memory cell 1-1.
To 1-n are commonly output to the data transfer address generator 7, which controls data transfer between the serial input / output port 34 and the shift register 33 in synchronization with a clock input from the outside, and outputs the data input from the outside. According to the transfer request signal and the contents of the serial access cell selection register 5, one of the memory cells 1-1 to 1-n is controlled to transfer data to and from the shift register 33, and a data transfer address generator is provided. The serial port access control unit for controlling the generated address in 6 receives the setting change request signal for the random access cell selection register 3 and the setting change request signal for the serial access cell selection register 5, and inputs 8 to the random access cell selection register 3. Memory cell setting for changing the contents of serial access cell selection register 5 It is a change control section.

【0016】図1で示すように構成された2ポートメモ
リが、シリアル入出力ポート34を入力専用としシーケ
ンシャルにアクセスされる読出し専用の記憶装置に接続
され、ランダム入出力ポート32を出力専用とし通常の
マイクロプロセッサに接続されランダムに読出される場
合の動作を、以下に説明する。
A two-port memory configured as shown in FIG. 1 is connected to a read-only storage device which has a serial input / output port 34 as an input only and is sequentially accessed, and a random input / output port 32 as an output only. The following is a description of the operation in the case of being connected to the microprocessor and being randomly read.

【0017】まず初期化としてランダムポート側に接続
されるマイクロプロセッサがメモリセル設定変更制御部
8へ制御信号を出力し、ランダムポート側からアクセス
するメモリセルをランダムアクセスセル選択レジスタ3
に設定し、シリアルポート側からアクセスするメモリセ
ルをシリアルアクセスセル選択レジスタ5に設定する。
さらにシリアルポート側からメモリセルをアクセスする
最初のアドレスをデータ転送アドレス生成部6に設定す
る。シリアルポート側からのデータ入力を行う場合、シ
リアルポートアクセス制御部7はシリアルポート制御ク
ロックに同期してシリアル入出力ポート34から順次入
力されるデータをシフトレジスタ33へ格納する。シフ
トレジスタ33へのデータ列の格納が終了すると、予め
シリアルアクセスセル選択レジスタ5に設定されたメモ
リセルに対してデータ転送要求信号を出力し、データ転
送アドレス生成部6が出力するアドレスに従ってシフト
レジスタ33の内容を格納する。シフトレジスタ33か
らメモリセルへのデータ転送が終了するとデータ転送ア
ドレス生成部6はシリアルポートアクセス制御部7から
入力される制御信号に従い、次の格納アドレスを生成す
る。以上の一連の動作を繰り返し、シリアルポート側か
らのデータが順次、メモリセルへ格納される。
First, as initialization, the microprocessor connected to the random port side outputs a control signal to the memory cell setting change control unit 8 to select the memory cell to be accessed from the random port side as the random access cell selection register 3.
And the memory cell accessed from the serial port side is set in the serial access cell selection register 5.
Further, the first address for accessing the memory cell from the serial port side is set in the data transfer address generation unit 6. When data is input from the serial port side, the serial port access control unit 7 stores the data sequentially input from the serial input / output port 34 in the shift register 33 in synchronization with the serial port control clock. When the storage of the data string in the shift register 33 is completed, a data transfer request signal is output to the memory cells set in the serial access cell selection register 5 in advance, and the shift register is generated in accordance with the address output by the data transfer address generation unit 6. The contents of 33 are stored. When the data transfer from the shift register 33 to the memory cell is completed, the data transfer address generation unit 6 generates the next storage address according to the control signal input from the serial port access control unit 7. By repeating the above series of operations, the data from the serial port side are sequentially stored in the memory cells.

【0018】次に、ランダムポートアクセス制御部4は
ランダムアクセス要求信号を入力されると、予めランダ
ムアクセスセル選択レジスタ3に設定されたメモリセル
に対して読出し制御信号を出力し、ランダムアクセスア
ドレス入力ポート2から入力されるアドレスに従って、
メモリセルの内容がランダム入出力ポートへ出力され
る。
Next, when the random access request signal is input to the random port access control unit 4, the random port access control unit 4 outputs a read control signal to the memory cell previously set in the random access cell selection register 3 to input the random access address. According to the address input from port 2,
The contents of the memory cell are output to the random input / output port.

【0019】以上の動作で使用されるシリアルポート側
からアクセスされるメモリセルとランダムポート側から
アクセスされるメモリセルは、ランダムポート側に接続
されるマイクロプロセッサがそれぞれシリアルアクセス
セル選択レジスタ5とランダムアクセスセル選択レジス
タ3の内容を設定変更することにより管理される。
The memory cell accessed from the serial port side and the memory cell accessed from the random port side used in the above operation are the serial access cell selection register 5 and the random cell connected to the random port side, respectively. It is managed by changing the setting of the contents of the access cell selection register 3.

【0020】以上のように本実施例によれば、ランダム
入出力ポート32に接続されるマイクロプロセッサのプ
ログラムが明示的にメモリセルに応じたアドレス管理を
行なう必要がなくなり、プログラムの負荷を軽減するこ
とが可能となる。
As described above, according to this embodiment, the program of the microprocessor connected to the random input / output port 32 does not need to explicitly manage the address according to the memory cell, and the load of the program is reduced. It becomes possible.

【0021】次に、以下本発明の第二の実施例の2ポー
トメモリについて、図面を参照しながら説明する。図2
は本発明の第二の実施例における2ポートメモリのブロ
ック図を示すものである。図1において、1−1から1
−nはメモリセル、2はランダムアクセスアドレス入力
ポート、3はランダムアクセスセル選択レジスタ、4は
ランダムポートアクセス制御部、6はデータ転送アドレ
ス生成部、7はシリアルポートアクセス制御部で、以上
は図1に示すのと同じ構成である。また、32はランダ
ム入出力ポート、33はシフトレジスタ、34はシリア
ル入出力ポートで、以上は図3に示すのと同じ構成であ
る。11はシフトレジスタ33からアクセスする1つの
メモリセルをメモリセル1−1から1−nの中から選択
する情報を格納するシリアルアクセスセル選択レジス
タ、12はランダムアクセスセル選択レジスタ3に対す
る設定変更要求信号を入力しランダムアクセスセル選択
レジスタ3の内容を設定変更するランダムアクセスセル
設定変更制御部、13はシリアルアクセスセル選択レジ
スタ11に対する設定変更要求信号を入力しシリアルア
クセスセル選択レジスタ11の内容を設定変更すると共
にデータ転送アドレス生成部6に対してシリアルポート
側からメモリセルをアクセスする最初のアドレスを設定
するシリアルアクセスセル設定変更制御部、14はラン
ダムアクセスセル選択レジスタ3の内容とランダムアク
セスセル設定変更制御部12が出力する変更情報とシリ
アルアクセスセル選択レジスタ11の内容とシリアルア
クセスセル設定変更制御部13が出力する変更情報とを
入力し、ランダムポート側が入出力する1つのメモリセ
ルとシリアルポート側が入出力する1つのメモリセルと
が一致するように変更されようとした時、ランダムアク
セスセル設定変更制御部12またはシリアルアクセスセ
ル設定変更制御部13へ変更を禁止する信号を出力する
と共にランダムポート側またはシリアルポート側へ設定
変更禁止信号を出力するセル変更調停部である。
Next, a two-port memory according to a second embodiment of the present invention will be described with reference to the drawings. Figure 2
FIG. 8 is a block diagram of a 2-port memory according to the second embodiment of the present invention. In FIG. 1, 1-1 to 1
-N is a memory cell, 2 is a random access address input port, 3 is a random access cell selection register, 4 is a random port access control unit, 6 is a data transfer address generation unit, 7 is a serial port access control unit, and above are the figures. The configuration is the same as that shown in FIG. Further, 32 is a random input / output port, 33 is a shift register, and 34 is a serial input / output port. The above is the same configuration as shown in FIG. Reference numeral 11 is a serial access cell selection register for storing information for selecting one memory cell to be accessed from the shift register 33 from among the memory cells 1-1 to 1-n, and 12 is a setting change request signal for the random access cell selection register 3. To change the setting of the contents of the random access cell selection register 3, the random access cell setting change control unit 13 inputs a setting change request signal to the serial access cell selection register 11 to change the settings of the serial access cell selection register 11. In addition, the serial access cell setting change control unit 14 sets the first address for accessing the memory cell from the serial port side to the data transfer address generation unit 6, and 14 is the contents of the random access cell selection register 3 and the random access cell setting change. Control unit 2 is input, the change information output from the serial access cell selection register 11 and the change information output from the serial access cell setting change control unit 13 are input, and one memory cell input / output by the random port side and input / output by the serial port side are input. When a change is made so as to match with one memory cell, the signal for prohibiting the change is output to the random access cell setting change control unit 12 or the serial access cell setting change control unit 13 and the random port side or serial A cell change arbitration unit that outputs a setting change prohibition signal to the port side.

【0022】図2で示すように構成された2ポートメモ
リが、シリアル入出力ポート34を入力専用としシーケ
ンシャルにアクセスされる読出し専用の記憶装置に接続
され、ランダム入出力ポート32を出力専用とし通常の
マイクロプロセッサに接続されランダムに読出される場
合の動作を、以下に説明する。
A two-port memory configured as shown in FIG. 2 is connected to a read-only storage device which uses the serial input / output port 34 as an input only and is sequentially accessed, and the random input / output port 32 as an output only. The following is a description of the operation in the case of being connected to the microprocessor and being randomly read.

【0023】まず初期化としてランダムポート側に接続
されるマイクロプロセッサがランダムアクセスセル設定
変更制御部12へ制御信号を出力し、ランダムポート側
からアクセスするメモリセルをランダムアクセスセル選
択レジスタ3に設定する。一方、シリアルポート側に接
続される記憶装置またはその記憶装置の読出し装置がシ
リアルアクセスセル設定変更制御部13へ制御信号を出
力し、シリアルポート側からアクセスするメモリセルを
シリアルアクセスセル選択レジスタ11に設定し、さら
にシリアルポート側からメモリセルをアクセスする最初
のアドレスをデータ転送アドレス生成部6に設定する。
シリアルポート側からのデータ入力を行う場合、シリア
ルポートアクセス制御部7はシリアルポート制御クロッ
クに同期してシリアル入出力ポート34から順次入力さ
れるデータをシフトレジスタ33へ格納する。シフトレ
ジスタ33へのデータ列の格納が終了すると、予めシリ
アルアクセスセル選択レジスタ11に設定されたメモリ
セルに対してデータ転送要求信号を出力し、データ転送
アドレス生成部6が出力するアドレスに従ってシフトレ
ジスタ33の内容を格納する。シフトレジスタ33から
メモリセルへのデータ転送が終了するとデータ転送アド
レス生成部6はシリアルポートアクセス制御部7から入
力される制御信号に従い、次の格納アドレスを生成す
る。以上の一連の動作を繰り返し、シリアルポート側か
らのデータが順次、メモリセルへ格納される。
First, as initialization, the microprocessor connected to the random port side outputs a control signal to the random access cell setting change control unit 12 to set the memory cell accessed from the random port side in the random access cell selection register 3. .. On the other hand, the storage device connected to the serial port side or the reading device of the storage device outputs a control signal to the serial access cell setting change control unit 13, and the memory cell accessed from the serial port side is stored in the serial access cell selection register 11. The data transfer address generation unit 6 sets the first address for accessing the memory cell from the serial port side.
When data is input from the serial port side, the serial port access control unit 7 stores the data sequentially input from the serial input / output port 34 in the shift register 33 in synchronization with the serial port control clock. When the storage of the data string in the shift register 33 is completed, a data transfer request signal is output to the memory cells set in the serial access cell selection register 11 in advance, and the shift register is generated in accordance with the address output by the data transfer address generation unit 6. The contents of 33 are stored. When the data transfer from the shift register 33 to the memory cell is completed, the data transfer address generation unit 6 generates the next storage address according to the control signal input from the serial port access control unit 7. By repeating the above series of operations, the data from the serial port side are sequentially stored in the memory cells.

【0024】次に、ランダムポートアクセス制御部4は
ランダムアクセス要求信号を入力されると、予めランダ
ムアクセスセル選択レジスタ3に設定されたメモリセル
に対して読出し制御信号を出力し、ランダムアクセスア
ドレス入力ポート2から入力されるアドレスに従って、
メモリセルの内容がランダム入出力ポート32へ出力さ
れる。
Next, when the random port access control unit 4 receives the random access request signal, it outputs a read control signal to the memory cell set in the random access cell selection register 3 in advance to input the random access address. According to the address input from port 2,
The content of the memory cell is output to the random input / output port 32.

【0025】以上の動作で使用されるランダムポート側
からアクセスされるメモリセルは、ランダムポート側に
接続されるマイクロプロセッサがランダムアクセスセル
選択レジスタ3の内容を設定変更することにより管理さ
れる。一方、シリアルポート側からアクセスされるメモ
リセルは、シリアルアクセスセル選択レジスタ11の内
容を設定変更することにより管理される。ここで、ラン
ダムアクセスセル選択レジスタ3の内容とシリアルアク
セスセル選択レジスタ11の内容が同じになるように変
更されようとした時、セル変更調停部14がその変更要
求を検出し、後から変更しようとしているポート側へ設
定変更禁止信号を出力し、変更を延期させる。
The memory cell accessed from the random port side used in the above operation is managed by the microprocessor connected to the random port side changing the setting of the random access cell selection register 3. On the other hand, the memory cell accessed from the serial port side is managed by changing the setting of the serial access cell selection register 11. Here, when the contents of the random access cell selection register 3 and the contents of the serial access cell selection register 11 are about to be changed, the cell change arbitration unit 14 detects the change request and tries to change it later. The setting change prohibition signal is output to the port that has been set, and the change is postponed.

【0026】以上のように本実施例によれば、ランダム
入出力ポートに接続されるマイクロプロセッサのプログ
ラムが明示的にメモリセルに応じたアドレス管理を行な
う必要がなくなり、さらにシリアルポート側からのアク
セスアドレスおよびその更新タイミングをも管理する必
要がなくなり、ランダム入出力ポートに接続されるマイ
クロプロセッサのプログラムの負荷を軽減することが可
能となる。
As described above, according to this embodiment, the program of the microprocessor connected to the random input / output port does not need to explicitly manage the address according to the memory cell, and the access from the serial port side It is no longer necessary to manage the address and its update timing, and the load on the program of the microprocessor connected to the random input / output port can be reduced.

【0027】[0027]

【発明の効果】以上説明したように本発明によれば、ラ
ンダム入出力ポートに接続されるマイクロプロセッサの
プログラムが明示的にメモリセルに応じたアドレス管理
を行なう必要がなくなり、さらにシリアルポート側から
のアクセスアドレスおよびその更新タイミングをも管理
する必要がなくなり、ランダム入出力ポートに接続され
るマイクロプロセッサのプログラムの負荷を軽減するこ
とが可能になるという点で、本発明の実用的効果は大き
い。
As described above, according to the present invention, it becomes unnecessary for the program of the microprocessor connected to the random input / output port to explicitly manage the address according to the memory cell, and further, from the serial port side. It becomes unnecessary to manage the access address and its update timing, and the load of the program of the microprocessor connected to the random input / output port can be reduced, and the practical effect of the present invention is great.

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

【図1】本発明の第一の実施例における2ポートメモリ
のブロック図である。
FIG. 1 is a block diagram of a 2-port memory according to a first embodiment of the present invention.

【図2】本発明の第二の実施例における2ポートメモリ
のブロック図である。
FIG. 2 is a block diagram of a 2-port memory according to a second embodiment of the present invention.

【図3】従来の2ポートメモリのブロック図である。FIG. 3 is a block diagram of a conventional 2-port memory.

【符号の説明】[Explanation of symbols]

1−1〜1−n メモリセル 2 ランダムアクセスアドレス入力ポート 3 ランダムアクセスセル選択レジスタ 4 ランダムポートアクセス制御部 5 シリアルアクセスセル選択レジスタ 6 データ転送アドレス生成部 7 シリアルポートアクセス制御部 8 メモリセル設定変更制御部 32 ランダム入出力ポート 33 シフトレジスタ 34 シリアル入出力ポート 1-1 to 1-n memory cell 2 random access address input port 3 random access cell selection register 4 random port access control unit 5 serial access cell selection register 6 data transfer address generation unit 7 serial port access control unit 8 memory cell setting change Control unit 32 Random input / output port 33 Shift register 34 Serial input / output port

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 2つのデータ入出力ポートを持つ複数の
メモリセルと、 上記複数のメモリセルの各々の一方のポートでランダム
にアクセスされるポートに共通に接続されたランダム入
出力ポートと、 上記複数のメモリセルの各々のもう一方のポートで行単
位に同時アクセスされるポートに共通に接続されたデー
タ線を並列に入出力するシフトレジスタと、 上記シフトレジスタと外部との間で直列にデータ入出力
するシリアル入出力ポートと、 上記ランダム入出力ポートから上記複数のメモリセルを
共通にアクセスするアドレスを入力するランダムアクセ
スアドレス入力ポートと、 上記ランダム入出力ポート側からアクセスする上記メモ
リセルを上記複数のメモリセルの中から選択する情報を
格納するランダムアクセスセル選択レジスタと、 上記ランダム入出力ポート側からのアクセス要求信号を
入力し上記ランダムアクセスセル選択レジスタの内容に
従って上記メモリセルに対してアクセス制御するランダ
ムポートアクセス制御部と、 上記シフトレジスタからアクセスする上記メモリセルを
上記複数のメモリセルから選択する情報を格納するシリ
アルアクセスセル選択レジスタと、 上記シフトレジスタと上記複数のメモリセルとの間のデ
ータ転送で使用するアドレスを生成し上記複数のメモリ
セルへ共通に出力するデータ転送アドレス生成部と、 外部より入力するクロックに同期して上記シリアル入出
力ポートと上記シフトレジスタとの間のデータ転送を制
御し、外部より入力するデータ転送要求信号と上記シリ
アルアクセスセル選択レジスタの内容に従って上記複数
のメモリセルのうちの一つのメモリセルに対して上記シ
フトレジスタとの間でデータ転送を制御し、上記データ
転送アドレス生成部での生成アドレスを制御するシリア
ルポートアクセス制御部と、 上記ランダムアクセスセル選択レジスタに対する設定変
更要求信号と上記シリアルアクセスセル選択レジスタに
対する設定変更要求信号とを入力し上記ランダムアクセ
スセル選択レジスタと上記シリアルアクセスセル選択レ
ジスタの内容を設定変更するメモリセル設定変更制御部
とを備えたことを特徴とする2ポートメモリ。
1. A plurality of memory cells having two data input / output ports, a random input / output port commonly connected to a port randomly accessed at one port of each of the plurality of memory cells, and A shift register that inputs and outputs in parallel a data line commonly connected to the ports that are simultaneously accessed row by row at the other port of each of the plurality of memory cells, and data is serially output between the shift register and the outside. The serial input / output port for inputting / outputting, the random access address input port for inputting an address for commonly accessing the plurality of memory cells from the random input / output port, and the memory cell for accessing from the random input / output port side are A random access cell selection register that stores information to be selected from a plurality of memory cells, A random port access control unit for inputting an access request signal from the random input / output port side and controlling access to the memory cell according to the contents of the random access cell selection register; and a memory cell accessed from the shift register, A serial access cell selection register that stores information to be selected from a plurality of memory cells, and an address used for data transfer between the shift register and the plurality of memory cells are generated and commonly output to the plurality of memory cells. The data transfer address generator controls the data transfer between the serial input / output port and the shift register in synchronization with the clock input from the outside, and the data transfer request signal input from the outside and the serial access cell selection register. Multiple memory according to the contents of A serial port access control unit that controls data transfer to and from the shift register for one memory cell of the memory cell, and a generation address in the data transfer address generation unit; and the random access cell selection register. A random access cell selection register and a memory cell setting change control unit for changing the contents of the serial access cell selection register by inputting a setting change request signal for the serial access cell selection register and a setting change request signal for the serial access cell selection register. A 2-port memory characterized in that
【請求項2】 2つのデータ入出力ポートを持つ複数の
メモリセルと、 上記複数のメモリセルの各々の一方のポートでランダム
にアクセスされるポートに共通に接続されたランダム入
出力ポートと、 上記複数のメモリセルの各々のもう一方のポートで行単
位に同時アクセスされるポートに共通に接続されたデー
タ線を並列に入出力するシフトレジスタと、 上記シフトレジスタと外部との間で直列にデータ入出力
するシリアル入出力ポートと、 上記ランダム入出力ポートから上記複数のメモリセルを
共通にアクセスするアドレスを入力するランダムアクセ
スアドレス入力ポートと、 上記ランダム入出力ポート側からアクセスする上記メモ
リセルを上記複数のメモリセルの中から選択する情報を
格納するランダムアクセスセル選択レジスタと、 上記ランダム入出力ポート側からのアクセス要求信号を
入力し上記ランダムアクセスセル選択レジスタの内容に
従って上記メモリセルに対してアクセス制御するランダ
ムポートアクセス制御部と、 上記シフトレジスタからアクセスする上記メモリセルを
上記複数のメモリセルから選択する情報を格納するシリ
アルアクセスセル選択レジスタと、 上記シフトレジスタと上記複数のメモリセルとの間のデ
ータ転送で使用するアドレスを生成し上記複数のメモリ
セルへ共通に出力するデータ転送アドレス生成部と、 外部より入力するクロックに同期して上記シリアル入出
力ポートと上記シフトレジスタとの間のデータ転送を制
御し、外部より入力するデータ転送要求信号と上記シリ
アルアクセスセル選択レジスタの内容に従って上記複数
のメモリセルのうちの一つのメモリセルに対して上記シ
フトレジスタとの間でデータ転送を制御し、上記データ
転送アドレス生成部での生成アドレスを制御するシリア
ルポートアクセス制御部と、 上記ランダムアクセスセル選択レジスタに対する設定変
更要求信号を入力し上記ランダムアクセスセル選択レジ
スタの内容を設定変更するランダムアクセスセル設定変
更制御部と、 上記シリアルアクセスセル選択レジスタに対する設定変
更要求信号を入力し上記シリアルアクセスセル選択レジ
スタの内容を設定変更するシリアルアクセスセル設定変
更制御部と、 上記ランダムアクセスセル選択レジスタの内容と上記ラ
ンダムアクセスセル設定変更制御部が出力する変更情報
と上記シリアルアクセスセル選択レジスタの内容と上記
シリアルアクセスセル設定変更制御部が出力する変更情
報とを入力し、上記ランダムアクセスポートが入出力す
る上記メモリセルと上記シリアルアクセスポートが入出
力する上記メモリセルとが一致するように変更されよう
とした時、上記ランダムアクセスセル設定変更制御部ま
たは上記シリアルアクセスセル設定変更制御部へ変更を
禁止する信号を出力すると共に上記ランダムアクセス入
出力ポート側またはシリアルアクセス入出力ポート側へ
設定変更禁止信号を出力するセル変更調停部とを備えた
ことを特徴とする2ポートメモリ。
2. A plurality of memory cells having two data input / output ports, a random input / output port commonly connected to a port randomly accessed by one port of each of the plurality of memory cells, A shift register that inputs and outputs in parallel a data line commonly connected to the ports that are simultaneously accessed row by row at the other port of each of the plurality of memory cells, and data is serially output between the shift register and the outside. The serial input / output port for inputting / outputting, the random access address input port for inputting an address for commonly accessing the plurality of memory cells from the random input / output port, and the memory cell for accessing from the random input / output port side are A random access cell selection register that stores information to be selected from a plurality of memory cells, A random port access control unit for inputting an access request signal from the random input / output port side and controlling access to the memory cell according to the contents of the random access cell selection register; and a memory cell accessed from the shift register, A serial access cell selection register that stores information to be selected from a plurality of memory cells, and an address used for data transfer between the shift register and the plurality of memory cells are generated and commonly output to the plurality of memory cells. The data transfer address generator controls the data transfer between the serial input / output port and the shift register in synchronization with the clock input from the outside, and the data transfer request signal input from the outside and the serial access cell selection register. Multiple memory according to the contents of A serial port access control unit that controls data transfer to and from the shift register for one memory cell of the memory cell, and a generation address in the data transfer address generation unit; and the random access cell selection register. Of the serial access cell selection register by inputting a setting change request signal to the serial access cell selection register and a random access cell setting change control unit for changing the setting of the contents of the random access cell selection register. Serial access cell setting change control unit for changing settings, contents of the random access cell selection register, change information output by the random access cell setting change control unit, contents of the serial access cell selection register, and the serial access cell Setting When the change information output from the change control unit is input and the memory cell input / output by the random access port and the memory cell input / output by the serial access port are changed to match, A cell change that outputs a change prohibition signal to the random access cell setting change control unit or the serial access cell setting change control unit and outputs a setting change prohibition signal to the random access I / O port side or the serial access I / O port side A two-port memory having an arbitration unit.
JP3324415A 1991-12-09 1991-12-09 Two-port memory Pending JPH05158791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3324415A JPH05158791A (en) 1991-12-09 1991-12-09 Two-port memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3324415A JPH05158791A (en) 1991-12-09 1991-12-09 Two-port memory

Publications (1)

Publication Number Publication Date
JPH05158791A true JPH05158791A (en) 1993-06-25

Family

ID=18165544

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3324415A Pending JPH05158791A (en) 1991-12-09 1991-12-09 Two-port memory

Country Status (1)

Country Link
JP (1) JPH05158791A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004192694A (en) * 2002-12-10 2004-07-08 Renesas Technology Corp Semiconductor storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004192694A (en) * 2002-12-10 2004-07-08 Renesas Technology Corp Semiconductor storage device

Similar Documents

Publication Publication Date Title
EP0561306B1 (en) Method for accessing a clock-synchronous semiconductor memory device
EP0174845B1 (en) Semiconductor memory device
US6049856A (en) System for simultaneously accessing two portions of a shared memory
JPH04293135A (en) Memory access system
US20050180240A1 (en) Method and system for fast memory access
KR100279137B1 (en) Semiconductor memory, data reading method and writing method of semiconductor memory
US6125422A (en) Dependent bank memory controller method and apparatus
WO2000067129A1 (en) Memory control unit
KR100359360B1 (en) Semiconductor memory device
JPH06139191A (en) Bus cycle timing control circuit
JPH03286234A (en) Memory control device
JPH05158791A (en) Two-port memory
JPS593790A (en) Storage device using dynamic memory element
US6862667B2 (en) Synchronous DRAM utilizable as shared memory
US20030126382A1 (en) Memory, processor system and method for performing write operations on a memory region
JP2590695B2 (en) Time division switch circuit
JP2914279B2 (en) High-speed memory access device
JP3816666B2 (en) Memory control circuit
JP2970711B2 (en) Time slot interchange circuit system
JPS6132290A (en) Memory device
JPH10320975A (en) Semiconductor-type memory device
JPH04312143A (en) Memory device
JPH02165385A (en) Image memory control system
JPH0325785A (en) Memory device
JPH06301629A (en) Main storage device