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
JP2969896B2 - Data write control method for RAM - Google Patents
[go: Go Back, main page]

JP2969896B2 - Data write control method for RAM - Google Patents

Data write control method for RAM

Info

Publication number
JP2969896B2
JP2969896B2 JP2273899A JP27389990A JP2969896B2 JP 2969896 B2 JP2969896 B2 JP 2969896B2 JP 2273899 A JP2273899 A JP 2273899A JP 27389990 A JP27389990 A JP 27389990A JP 2969896 B2 JP2969896 B2 JP 2969896B2
Authority
JP
Japan
Prior art keywords
data
ram
write
bit
address
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 - Lifetime
Application number
JP2273899A
Other languages
Japanese (ja)
Other versions
JPH04149896A (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 JP2273899A priority Critical patent/JP2969896B2/en
Publication of JPH04149896A publication Critical patent/JPH04149896A/en
Application granted granted Critical
Publication of JP2969896B2 publication Critical patent/JP2969896B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Static Random-Access Memory (AREA)
  • Dram (AREA)

Description

【発明の詳細な説明】 〔概 要〕 RAMのデータ書き込み制御方法に関し、 指定されたアドレスの任意のビットのみにデータを書
き込むことのできるRAMのデータ書き込み制御方法を提
供することを目的とし、 書き込み、読み出しアドレスを発生するアドレス発生
手段と、書き込みデータを選択するデータ制御手段とを
備え、データ制御手段でRAMから読み出したデータか、
新しい書き込みデータの何れかを選択してRAMにデータ
を書き込むことにより、任意のビットのみのデータ書き
込みを行うように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] The present invention relates to a RAM data write control method, which aims to provide a RAM data write control method capable of writing data only to an arbitrary bit of a specified address. Comprising an address generating means for generating a read address, and data control means for selecting write data, wherein data read from RAM by the data control means,
By selecting any of the new write data and writing the data to the RAM, data writing of only an arbitrary bit is performed.

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

本発明は、RAMのデータ書き込み制御方法に関する。 The present invention relates to a data write control method for a RAM.

RAM(Random Access Memory)は電子機器、通信機
器に広く採用されている随時読み出し書き込み可能な記
憶素子である。
RAM (Random Access Memory) is a storage element that can be read and written as needed, which is widely used in electronic devices and communication devices.

近年、電子機器、通信機器の機能の高度化に伴い機器
に必要とする記憶容量も大きくなり、RAMの使用個数も
増加してきている。
In recent years, as the functions of electronic devices and communication devices have become more sophisticated, the storage capacity required for the devices has increased, and the number of RAMs used has also increased.

かかる電子機器、通信機器の小型化、低消費電力化、
信頼度の向上が要求されており、このためRAMの使用数
も最小限に抑えることが必要である。
Such electronic devices and communication devices have been reduced in size and power consumption,
Improvements in reliability are required, and it is necessary to minimize the number of RAMs used.

〔従来の技術〕[Conventional technology]

第4図は従来例を説明する図、第5図はRAMへの書き
込みデータの例を説明する図を示す。
FIG. 4 is a diagram for explaining a conventional example, and FIG. 5 is a diagram for explaining an example of write data to a RAM.

第4図に示す従来例の11〜1nはRAMであり、22はアド
レスカウンタである。
In the conventional example shown in FIG. 4, 11 to 1n are RAMs, and 22 is an address counter.

図のRAMは1つのアドレスでnビット(例えば8ビッ
ト)のデータを書き込むことができるものとする。
It is assumed that the RAM in the figure can write data of n bits (for example, 8 bits) with one address.

第5図に示すように、アドレス「i」の第1ビットに
データAを書き込み、アドレス「j」の第2ビットにデ
ータBを書き込み、アドアレス「k」の第3ビットにデ
ータCを書き込み、データを書き込む以外のビットのデ
ータは前の状態を保つ場合、第4図においては、ビット
毎にRAM11〜1nを設け、最初のRAM11のアドレス「i」に
第1ビットにデータAを書き込み、2番目のRAM12にア
ドレス「j」の第2のビットにデータBを書き込み、以
下同様に第nビットのデータはRAM1nに書き込むように
構成している。
As shown in FIG. 5, data A is written to the first bit of address “i”, data B is written to the second bit of address “j”, and data C is written to the third bit of address “k”. In the case where the data of the bits other than the data to be written are kept in the previous state, in FIG. The data B is written to the second bit of the address "j" in the second RAM 12, and similarly, the data of the n-th bit is written to the RAM 1n.

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

上述の従来例の如く、例えば1つのRAM11のアドレス
「i」の第1ビットにデータAのみを書き込み、アドレ
ス「j」の第2ビットにデータBのみを書き込み、アド
レス「k」の第3ビットにデータCのみを書き込むよう
に、各アドレスの異なるビット番号にデータを書き込も
うとしても1つのRAMに対しては、1つのライトイネー
ブルWEしか存在しないのでビット毎に独立してデータを
書き込むことが不可能である。(書き込みたいビット以
外のデータも書き換えられてしまう)。
As in the above-described conventional example, for example, only data A is written to the first bit of address "i" of one RAM 11, only data B is written to the second bit of address "j", and the third bit of address "k" is written. Even if it is attempted to write data to a different bit number of each address so that only data C is written to one RAM, there is only one write enable WE for one RAM, so data can be written independently for each bit. Impossible. (Data other than the bit to be written is also rewritten).

したがって、ビットの数nだけRAM11〜1nが必要とな
り、装置の設置スペース、消費電力が大きくなる。
Therefore, RAMs 11 to 1n are required for the number n of bits, and the installation space and power consumption of the device are increased.

そこで、データを書き込むビット番号が異なっていて
も、1つのライトイネーブルWEの制御で1つのRAMの任
意のビットにデータを書き込むことにより、RAMの使用
個数を少なくする。
Therefore, even if the bit numbers for writing data are different, the number of RAMs used is reduced by writing data to an arbitrary bit of one RAM under the control of one write enable WE.

本発明は、指定されたアドレスの任意のビットのみに
データを書き込むことのできるRAMのデータ書き込み制
御方法を提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a data write control method for a RAM that can write data only to an arbitrary bit of a specified address.

〔課題を解決するための手段〕[Means for solving the problem]

第1図は本発明の原理を説明するブロック図を示す。 FIG. 1 is a block diagram illustrating the principle of the present invention.

第1図に示す本発明の原理ブロック図中の10は、デー
タの書き込み、読み出しを行うRAMであり、20は書き込
み、読み出しアドレスを発生するアドレス発生手段であ
り、30は書き込みデータを選択するデータ制御手段であ
り、 データ制御手段30でRAM10から読み出したデータか、
新しい書き込みデータの何れかを選択してRAM10にデー
タを書き込むことにより本課題を解決するための手段と
する。
In the principle block diagram of the present invention shown in FIG. 1, 10 is a RAM for writing and reading data, 20 is an address generating means for generating a write and read address, and 30 is data for selecting write data. Control means, data read from the RAM 10 by the data control means 30,
By selecting any of the new write data and writing the data to the RAM 10, this is a means for solving this problem.

〔作 用〕(Operation)

RAM10の指定されたアドレスの任意のビットのデータ
のみを書き換えるとき、1つのアドレスを2つに分け
て、読み出し/書き込みサイクルを設け、指定されたア
ドレスの全ビットのデータを読み出した後にデータの書
き込みを行う。
When rewriting only data of an arbitrary bit of a specified address in the RAM 10, one address is divided into two, a read / write cycle is provided, and data is written after reading data of all bits of the specified address. I do.

このとき、データ制御手段30により新しいデータを書
き込むビットには、新しいデータを選択し、新しいデー
タを書き込まないビットには同じビットから読み出した
旧データを選択しRAM10への書き込みデータとする。
At this time, new data is selected as a bit to which new data is to be written by the data control means 30, and old data read from the same bit is selected as a bit to which new data is not to be written, and the data is written to the RAM 10.

したがって、RAM10の指定されたアドレスの任意のビ
ットへのデータ書き込み制御を、1つのライトイネーブ
ルWEの制御で行うことが可能となる。
Therefore, data write control to an arbitrary bit of a specified address of the RAM 10 can be performed by controlling one write enable WE.

〔実施例〕〔Example〕

以下本発明の要旨を第2図、第3図に示す実施例によ
り具体的に説明する。
Hereinafter, the gist of the present invention will be specifically described with reference to the embodiments shown in FIGS.

第2図は本発明の実施例を説明する図、第3図は本発
明の実施例のタイムチャートを説明する図をそれぞれ示
す。なお、全図を通じて同一符号は同一対象物を示す。
FIG. 2 is a diagram illustrating an embodiment of the present invention, and FIG. 3 is a diagram illustrating a time chart of the embodiment of the present invention. The same reference numerals indicate the same objects throughout the drawings.

第2図に示す本発明の実施例は、データの書き込み、
読み出しを行うRAM10、 ビット毎の書き込みデータを選択する選択信号を発生
する制御部21と、制御部21からの指示によりアドレスを
発生するアドレスカウンタ22、RAM10から読み出したデ
ータをラッチするラッチ回路30Aと、ビット毎の書き込
みデータとして、新しい書き込みデータまたは読み出し
てきたデータを選択するセレクタ(図中SELと示す)31
〜3nから構成した例である。
The embodiment of the present invention shown in FIG.
A RAM 10 for reading, a control unit 21 for generating a selection signal for selecting write data for each bit, an address counter 22 for generating an address according to an instruction from the control unit 21, a latch circuit 30A for latching data read from the RAM 10; Selector for selecting new write data or read data as write data for each bit (indicated as SEL in the figure) 31
1 to 3n.

第3図のタイムチャートにより動作を説明する。 The operation will be described with reference to the time chart of FIG.

データの読み出し、書き込みを行うアドレスであ
る。
This is the address where data is read and written.

ライトネーブルWEである。 Light Navel WE.

〜 新しい書き込みデータを示す。~ Indicates new write data.

第1ビットのデータ、第2ビットのデータ、第3ビッ
トのデータをそれぞれ、、、として示す。
The first bit data, the second bit data, and the third bit data are indicated as.

また網かけの部分のデータのみを新しいデータとして
RAM10に書き込む。
Also, only the data in the shaded part is new data.
Write to RAM10.

〜 RAM10より読み出した、第1ビットのデータ、
第2ビットのデータ、第3ビットのデータである。
~ 1st bit data read from RAM10,
The second bit data and the third bit data.

〜 セレクタ31〜3nにより選択した書き込みデータ
である。
To write data selected by the selectors 31 to 3n.

ここでは、アドレス「1」の第1ビット、第2ビット
では、外部からの新書き込みデータを選択して出力し、
第3ビットではRAM10から読み出してラッチ回路30Aでラ
ッチした旧データを選択して送出する。
Here, the first and second bits of the address “1” select and output externally-written new write data,
In the third bit, old data read from the RAM 10 and latched by the latch circuit 30A is selected and transmitted.

アドレス「2」以下も同様な動作を行い、〜の網
かけした部分のデータを新しいデータとして書き込み、
網かけしていない部分は、RAM10から読み出したデータ
をそのまま書き込む。
The same operation is performed for the address “2” and below, and the data in the shaded portion is written as new data,
For the portions not shaded, the data read from the RAM 10 is written as it is.

以上のように構成することにより、従来例に比較し
て、書き込むデータがnビットのとき、使用するRAMの
個数を1/nにするこが可能となる。
With the above configuration, when the data to be written is n bits, the number of RAMs to be used can be reduced to 1 / n as compared with the conventional example.

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

以上のような本発明によれば、1つのライトイネーブ
ルWEの制御で、指定のアドレスの任意のビットのデータ
のみを独立に書き換えことにより、使用によるRAMの個
数を少なくすることのできるRAMのデータ書き込み制御
方法を提供することができる。
According to the present invention as described above, under the control of one write enable WE, by independently rewriting only the data of an arbitrary bit at a specified address, the data of the RAM that can reduce the number of RAMs used can be reduced. A write control method can be provided.

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

第1図は本発明の原理を説明するブロック図、 第2図は本発明の実施例を説明する図、 第3図は本発明の実施例のタイムチャートを説明する
図、 第4図は従来例を説明する図、 第5図はRAMへの書き込みデータの例を説明する図、 をそれぞれ示す。 図において、 10、11〜1nはRAM、 20はアドレス発生手段、 21は制御部、 22はアドレスカウンタ、 30はデータ制御手段、 30Aはラッチ回路、 31〜3nはセレクタ、 をそれぞれ示す。
FIG. 1 is a block diagram illustrating the principle of the present invention, FIG. 2 is a diagram illustrating an embodiment of the present invention, FIG. 3 is a diagram illustrating a time chart of the embodiment of the present invention, and FIG. FIG. 5 is a diagram for explaining an example, and FIG. 5 is a diagram for explaining an example of write data to the RAM. In the figure, 10 and 11 to 1n are RAMs, 20 is an address generation means, 21 is a control unit, 22 is an address counter, 30 is a data control means, 30A is a latch circuit, and 31 to 3n are selectors.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】RAM(10)のデータ書き込み制御方法であ
って、 書き込み、読み出しアドレスを発生するアドレス発生手
段(20)と、 書き込みデータを選択するデータ制御手段(30)とを備
え、 前記データ制御手段(30)で前記RAM(10)から読み出
したデータか、新しい書き込みデータの何れかを選択し
て前記RAM(10)にデータを書き込むことにより、任意
のビットのみのデータ書き込みを行うことを特徴とする
RAMのデータ書き込み制御方法。
1. A data write control method for a RAM (10), comprising: an address generating means (20) for generating a write / read address; and a data control means (30) for selecting write data. By selecting either the data read from the RAM (10) or the new write data by the control means (30) and writing the data to the RAM (10), it is possible to perform data writing of only arbitrary bits. Feature
RAM data write control method.
JP2273899A 1990-10-12 1990-10-12 Data write control method for RAM Expired - Lifetime JP2969896B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2273899A JP2969896B2 (en) 1990-10-12 1990-10-12 Data write control method for RAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2273899A JP2969896B2 (en) 1990-10-12 1990-10-12 Data write control method for RAM

Publications (2)

Publication Number Publication Date
JPH04149896A JPH04149896A (en) 1992-05-22
JP2969896B2 true JP2969896B2 (en) 1999-11-02

Family

ID=17534125

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2273899A Expired - Lifetime JP2969896B2 (en) 1990-10-12 1990-10-12 Data write control method for RAM

Country Status (1)

Country Link
JP (1) JP2969896B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009259329A (en) * 2008-04-16 2009-11-05 Toshiba Corp Semiconductor integrated circuit device

Also Published As

Publication number Publication date
JPH04149896A (en) 1992-05-22

Similar Documents

Publication Publication Date Title
KR100393860B1 (en) Random access memory
EP0147500A2 (en) Semiconductor memory device
JPH0466079B2 (en)
US6035381A (en) Memory device including main memory storage and distinct key storage accessed using only a row address
EP1026600B1 (en) Method and apparatus for interfacing with RAM
JP2969896B2 (en) Data write control method for RAM
US5873126A (en) Memory array based data reorganizer
JPS6216294A (en) Memory device
KR100472723B1 (en) Device and method for controlling bank refresh
JP3102754B2 (en) Information utilization circuit
KR100492985B1 (en) How to Control Working Register Blocks and Working Register Blocks for Microcontrollers or Microprocessors
JP2590695B2 (en) Time division switch circuit
JPS623504B2 (en)
JPS61227295A (en) Semiconductor memory device
JPS63282870A (en) Address specification system for memory unit
JPS59231791A (en) Semiconductor memory
JPH0696583A (en) Semiconductor memory
JP2970711B2 (en) Time slot interchange circuit system
JPS6398048A (en) semiconductor storage device
JPS6216600B2 (en)
JPS61246848A (en) Operation hysteresis storage circuit
JPH01207848A (en) Storage device
JPH0672910B2 (en) Test pattern memory circuit
KR19990027057U (en) Memory access time margin circuit using dual port RAM
JPH08237084A (en) Timing signal generation circuit