[go: up one dir, main page]

JPS61292739A - Memory device - Google Patents

Memory device

Info

Publication number
JPS61292739A
JPS61292739A JP13448885A JP13448885A JPS61292739A JP S61292739 A JPS61292739 A JP S61292739A JP 13448885 A JP13448885 A JP 13448885A JP 13448885 A JP13448885 A JP 13448885A JP S61292739 A JPS61292739 A JP S61292739A
Authority
JP
Japan
Prior art keywords
data
input
lsb
multiplexer
memory
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
JP13448885A
Other languages
Japanese (ja)
Inventor
Yoshihide Arai
良英 新居
Hiromasa Isobe
裕正 磯部
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP13448885A priority Critical patent/JPS61292739A/en
Publication of JPS61292739A publication Critical patent/JPS61292739A/en
Pending legal-status Critical Current

Links

Landscapes

  • Static Random-Access Memory (AREA)

Abstract

PURPOSE:To inverse an LSB and an MSB at a high speed by providing a multiplexer which supplies data to a memory directly or with inversion of the LSB and the MSB and another multiplexer which outputs data directly or with inversion. CONSTITUTION:The data on a data bus 12 is written to a memory 10 at an address designated by an address bus 11. While a multiplexer which works with a selection signal S1 of a controller 3 switches selectively an input A to receive the data on the bus 12 as it is and an input B to receive an LSB and an MSB with inversion and writes them to the memory 10. In a read mode, a multiplexer 2 which works with a selection signal S2 switches selectively an output (1) to receive the data of the memory 10 as it is and an output (2) to receive the data with inversion of the LSB and MSB and outputs them to the bus 12.

Description

【発明の詳細な説明】 技術分野 本発明は、メモリ装置に関し、詳しくは、マイクロコン
ピュータシステムにおいて、データのMS B (Mo
st 51gn1ficant Bit)とLSB(L
eastS 1gn1ficant B it)の反転
を高速に行うメモリ装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a memory device, and more particularly, in a microcomputer system, data MS B (Mo
st 51gn1ficant Bit) and LSB (L
The present invention relates to a memory device that performs high-speed inversion of eastS1gn1ficantBit).

従来技術 ]ンピュータシステムで扱われる1ワード、1バイト等
のデータの最左端のビットをMSB (最上位ビット)
、最右端のビットをLSB(最下位ビット)と呼ぶ(第
3図(b)参照)、マイクロコンピュータシステム内で
データ(この場合、パラレルデータ)を扱う場合、デー
タ列が(a)L S Bから始まる系と、(b)MSB
から始まる系とがある。
Prior art] The leftmost bit of data such as 1 word or 1 byte handled by a computer system is MSB (Most Significant Bit)
, the rightmost bit is called the LSB (least significant bit) (see Figure 3 (b)). When handling data (in this case, parallel data) in a microcomputer system, the data string is (a) LSB The system starting from and (b) MSB
There is a system starting from .

マイクロコンピュータシステムの中には、これら(、)
と(b)の系が混在するシステムも多い、すなわち、複
数個の入出力機器を接続しているプロセッサでは、それ
らの入出力機器ごとに、LSBから始まるデータを扱う
ものと、MSBから始まるデータを扱うものとが混在す
るため、プロセッサに入力されるデータは(a)と(b
)の系が混在してしまうことになる。(a)の系では、
入力されたデータがMSBから始まる場合には、これを
LSBから始まるデータに変換する必要があり、また。
Some microcomputer systems have these (,)
There are many systems in which systems (b) and (b) are mixed; in other words, in a processor that connects multiple input/output devices, one handles data starting from the LSB and the other handles data starting from the MSB for each input/output device. The data input to the processor is mixed with those that handle (a) and (b).
) systems will be mixed. In system (a),
If the input data starts from the MSB, it needs to be converted to data starting from the LSB.

(b)の系では、同じように、LSBから始まるデータ
をMSBから始まるデータに変換する必要がある。
In the system (b), it is necessary to similarly convert data starting from the LSB to data starting from the MSB.

従来、LSBとMSBの反転操作を行う場合。Conventionally, when performing an inversion operation of the LSB and MSB.

ソフトウェアによりテーブルを作成し、そのテーブルを
参照することにより、データを反転している。しかし、
この方法では、1バイト単位または1ワ一ド単位にソフ
トウェアで処理を行うため、ワード数の多いデータでは
非常に時間がかかつている。これは、大量のデータを扱
う画像処理においては、致命的な欠点となる。
Data is inverted by creating a table using software and referring to the table. but,
In this method, processing is performed by software in units of bytes or units of words, so it takes a very long time for data with a large number of words. This is a fatal drawback in image processing that handles a large amount of data.

目     的 本発明の目的は、このような従来の欠点を解消し、コン
ピュータシステムにおいて、LSBとMSBの反転を、
高速かつ簡単に行うことが可能なメモリ装置を提供する
ことにある。
Purpose An object of the present invention is to eliminate such conventional drawbacks and to invert the LSB and MSB in a computer system.
It is an object of the present invention to provide a memory device that can be used at high speed and easily.

構   成 上記目的を達成するため、本発明のメモリ装置は、複数
の入出力機器に接続され、かつ入出力機器ごとにデータ
のスタートビットがLSBであるものと1M5Bである
ものが混在するコンピュータシステムにおいて、メモリ
手段と、該メモリ手段への書込みまたは読出しの際に、
データ列をそのまま入出力させる部分およびデータ列の
LSBとMSBを反転させて入出力させる部分とを具備
したマルチプレクサとを有し、上記2つの入出力部分の
切換えを、上記メモリ手段のアドレスまたは入出力機器
アドレスの一部ないし全部により行うことに特徴がある
Configuration In order to achieve the above object, the memory device of the present invention provides a computer system that is connected to a plurality of input/output devices, and in which data start bits for each input/output device are both LSB and 1M5B. a memory means, and upon writing to or reading from the memory means,
The multiplexer has a part that inputs and outputs the data string as it is and a part that inverts the LSB and MSB of the data string and inputs and outputs the data string. The feature is that it is performed using part or all of the output device address.

以下1本発明の構成を、実施例により詳細に説明する。Hereinafter, the configuration of the present invention will be explained in detail by way of examples.

第1図は1本発明の一実施例を示すメモリ装置周辺のブ
ロック図である。
FIG. 1 is a block diagram of the periphery of a memory device showing an embodiment of the present invention.

第1図において、lは第1のマルチプレクサ、2は第2
のマルチプレクサ、3はコントローラ。
In FIG. 1, l is the first multiplexer and 2 is the second multiplexer.
3 is a multiplexer, and 3 is a controller.

10はメモリ、11はアドレスバス、12はデータバス
、RDはリード指令信号、WRはライト指令信号、矢印
はデータや信号の転送方向をそれぞれ示す。
10 is a memory, 11 is an address bus, 12 is a data bus, RD is a read command signal, WR is a write command signal, and arrows indicate the transfer direction of data and signals, respectively.

第1図においては、メモリlの入力側と出力側において
、データバス12とメモリ10の間に。
In FIG. 1, between the data bus 12 and the memory 10 on the input and output sides of the memory l.

マルチプレクサ1および2を設ける。マルチプレクサ1
は入力側のマルチプレクサであり、その入力部にへ入力
側とB入力側とを設け、このうちB入力側のデータライ
ンは、LSBとMSBを反転させる。また、へ入力側の
データラインは、反転させることなく、そのまま接続さ
せる。さらに。
Multiplexers 1 and 2 are provided. Multiplexer 1
is a multiplexer on the input side, and its input section is provided with an input side and a B input side, of which the data line on the B input side has the LSB and MSB inverted. Furthermore, the data line on the input side is connected as is without being inverted. moreover.

マルチプレクサ1には、セレクト端子Sが設けられてお
り、この端子Sにコントローラ3からのセレクト信号S
1を接続する。一方、マルチプレクサ2は出力側のマル
チプレクサであって、メモリ10のデータ出力側に1出
力側と2出力側を設け、2出力側はLSBとMSBを反
転させ、1出力側はデータをそのままの状態で接続させ
る。マルチプレクサ2のS端子にはコントローラ3から
のセレクト信号S2が接続される。アドレスは、アドレ
スバス11を介して接続され、メモリ10にライト指令
信号WT、リード指令信号RDとともに入力される。
The multiplexer 1 is provided with a select terminal S, and a select signal S from the controller 3 is connected to this terminal S.
Connect 1. On the other hand, the multiplexer 2 is an output-side multiplexer, and has one output side and two output sides on the data output side of the memory 10, with the second output side inverting the LSB and MSB, and the first output side leaving the data unchanged. Connect with . A select signal S2 from the controller 3 is connected to the S terminal of the multiplexer 2. The address is connected via an address bus 11 and input to the memory 10 together with a write command signal WT and a read command signal RD.

先ず、MSBとLSHの反転したデータを必要とする場
合、マルチプレクサ1でB側を選択してメモリにライト
する。すなわち、データバス12を介してライトデータ
が入力すると、コントローラ3からセレクト信号S1を
マルチプレクサ1に送って、マルチプレクサ1を起動さ
せ、マルチプレクサ1でB側を選択することにより、デ
ータはLSBとMSBとが反転されて入力する。同時に
アドレスバス11を介してライトすべきメモリアドレス
が入力され、ライト指令信号WRの入力に同期してメモ
リに書き込まれる。一方、リードデ−タを反転して送出
する場合には、マルチプレクサ2で2出力側を選択して
リードする。すなわち、リードすべきアドレスがアドレ
スバス11を介して入力され、リード指令信号RDが入
力すると、メモリの該当番地からデータが読み出され、
同時にコントローラ3からのセレクト信号S2によりマ
ルチプレクサ2が起動されて、マルチプレクサ2により
2出力側が選択されることにより、り一ドデータはMS
BとLSBとが反転されて出力され、また、そのままの
データを必要とする場合には、前述の動作と逆に、マル
チプレクサ1で入力データに対してA入力側を選択し、
ライト指令信WRとライトアドレスの入力によりメモリ
10にライトされる。また、マルチプレクサ2で出力デ
ータに対して1側出力を選択し、リード指令信号RDと
リードアドレスの入力によりメモリ10からデータがリ
ードされると、そのままの状態でマルチプレクサ2を介
してデータバス12に出力される。さらに、1度反転し
てメ±す10に格納したデータを、出力側でマルチプレ
クサ2をコントロールすることにより、自由自在にMS
BとLSBを反転したデータまたはそのままのデータを
選択できる。
First, if data with the MSB and LSH inverted is required, multiplexer 1 selects the B side and writes it to the memory. That is, when write data is input via the data bus 12, the controller 3 sends a select signal S1 to the multiplexer 1, activates the multiplexer 1, and selects the B side with the multiplexer 1, so that the data is divided into the LSB and MSB. is inverted and input. At the same time, a memory address to be written is input via the address bus 11, and written to the memory in synchronization with the input of the write command signal WR. On the other hand, when the read data is inverted and sent out, the multiplexer 2 selects the 2nd output side and reads it. That is, when an address to be read is input via the address bus 11 and a read command signal RD is input, data is read from the corresponding address in the memory.
At the same time, the multiplexer 2 is activated by the select signal S2 from the controller 3, and the 2nd output side is selected by the multiplexer 2, so that the read data is MS
B and LSB are inverted and output, and if the data as is is required, reverse the operation described above, select the A input side for the input data with multiplexer 1,
The data is written to the memory 10 by inputting the write command signal WR and the write address. Furthermore, when the multiplexer 2 selects the 1st output for the output data and the data is read from the memory 10 by inputting the read command signal RD and the read address, it is transferred to the data bus 12 via the multiplexer 2 in that state. Output. Furthermore, by controlling multiplexer 2 on the output side, the data that has been inverted once and stored in memory 10 can be freely converted to MS.
You can select data with B and LSB inverted or the data as is.

このように、データをメモリ10にライトまたはリード
する作業のみで、LSBとMSBの反転動作および反転
データを元に戻す動作が自動的に行われる。しかも、ア
ドレスによりメモリ10のエリアは自由に選択できる。
In this way, the operation of inverting the LSB and MSB and the operation of restoring the inverted data are automatically performed by simply writing or reading data into the memory 10. Moreover, the area of the memory 10 can be freely selected based on the address.

第2図は、第1図のコントローラの構成図である。FIG. 2 is a configuration diagram of the controller shown in FIG. 1.

コントローラ3は、第2図に示すように、アドレスデコ
ーダ21とラッチ回路22とAND’7’−ト23から
構成される。そして、コントローラ3は、入出力機器(
Ilo)にマツピングされている。
The controller 3 is composed of an address decoder 21, a latch circuit 22, and an AND'7' gate 23, as shown in FIG. The controller 3 is an input/output device (
Ilo).

通常、プロセッサは入出力機器に対して固有のアドレス
を定め、このアドレスを指定することにより入出力機器
にライト命令、リード命令を送出して、主メモリと入出
力機器との間でデータの授受を行っているが、このとき
指定された入出力アドレスをデコードした出力と、ライ
ト指令との論理積をとり、あらかじめ設定されたデータ
によりライト側がリード側を選択してマルチプレクサ1
または2にセレクト信号SL、S2を送ることによって
、LSBとMSBを反転させるか否かを決定する。すな
わち、入出力機器アドレス゛ADRをアドレスデコーダ
21でデコードするとともに、IOライト指令をAND
ゲート23に導く、ラッチ回路22は、データDOをラ
ッチしたときセレクト信号S1を送出し、データD1を
ラッチしたときセレクト信号S2を送出する。アドレス
デコーダ21がI10アドレスをデコードして、これが
コントローラのアドレスとなることによりGE倍信号立
つと、プロセッサから出されたI10ライト指令が有効
となり、ANDゲート23を通ってラッチ回路22に入
力することによって、その時のデータがラッチされる。
Normally, a processor determines a unique address for an input/output device, and by specifying this address, it sends write commands and read commands to the input/output device, and exchanges data between the main memory and the input/output device. At this time, the output obtained by decoding the specified input/output address is logically ANDed with the write command, and the write side selects the read side based on the preset data, and the multiplexer 1
Alternatively, by sending select signals SL and S2 to 2, it is determined whether or not to invert the LSB and MSB. That is, the input/output device address "ADR" is decoded by the address decoder 21, and the IO write command is ANDed.
The latch circuit 22 leading to the gate 23 sends out a select signal S1 when it latches the data DO, and sends out a select signal S2 when it latches the data D1. When the address decoder 21 decodes the I10 address and this becomes the address of the controller, the GE multiplication signal rises, the I10 write command issued from the processor becomes valid, and is input to the latch circuit 22 through the AND gate 23. The data at that time is latched.

データがDOであれば。If the data is DO.

セレクト信号S1が立ち、またデータがDIであれば、
セレクト信号S2が立つ、これにより、マルチプレクサ
1または2が起動されて、マルチプレクサ1によりへ入
力側かB入力側が選択され。
If the select signal S1 rises and the data is DI,
The select signal S2 rises, thereby activating multiplexer 1 or 2, and multiplexer 1 selects the input side or the input side B.

マルチプレクサ2により1出力側か2出力側が選択され
る。
The multiplexer 2 selects the 1 output side or the 2 output side.

効   果 以上説明したように1本発明によれば、データのLSB
とMSHの反転が超高速で実現され、かつ簡単なハード
ウェアにより自動的に行うことができる。
Effects As explained above, according to the present invention, the LSB of data
The inversion of MSH and MSH can be realized at extremely high speed and can be performed automatically using simple hardware.

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

第1図は本発明の一実施例を示すメモリ装置周辺部のブ
ロック図、第2図は第1図におけるコントローラの構成
図、第3図はLSBとMSHの反転動作の説明図である
。 l、2:マルチプレクサ、3:コントローラ、10:メ
モリ、11ニアドレスバス、12:データバス、21ニ
アドレスデコーダ、22:ランチ回路、23 : AN
Dゲート。
FIG. 1 is a block diagram of the peripheral portion of a memory device showing an embodiment of the present invention, FIG. 2 is a configuration diagram of the controller in FIG. 1, and FIG. 3 is an explanatory diagram of the inversion operation of LSB and MSH. l, 2: Multiplexer, 3: Controller, 10: Memory, 11 Near address bus, 12: Data bus, 21 Near address decoder, 22: Launch circuit, 23: AN
D gate.

Claims (2)

【特許請求の範囲】[Claims] (1)複数の入出力機器に接続され、かつ入出力機器ご
とにデータのスタートビットがLSBであるものと、M
SBであるものとが混在するコンピュータシステムにお
いて、上記スタートビットがLSBまたはMSBである
データ列を格納するメモリと、該メモリへの入力データ
列をそのままの状態で入力させる端子か、LSBとMS
Bを反転させた状態で入力させる端子の一方を選択する
マルチプレクサと、該メモリからの出力データ列をその
ままの状態で出力させる端子か、LSBとMSBを反転
させて出力させる端子の一方を選択するマルチプレクサ
と、両マルチプレクサの一方を選択起動させるコントロ
ーラとを設けることを特徴とするメモリ装置。
(1) Connected to multiple input/output devices, and the data start bit for each input/output device is LSB, and M
In a computer system in which the start bit is LSB or MSB, there is a memory that stores a data string whose start bit is LSB or MSB, and a terminal that inputs the input data string to the memory as is, or a terminal that stores the data string whose start bit is LSB or MSB, or
A multiplexer that selects one of the terminals to input with B inverted, and a terminal that outputs the output data string from the memory as it is or a terminal that inverts the LSB and MSB and outputs them. A memory device comprising a multiplexer and a controller that selectively activates one of the multiplexers.
(2)上記コントローラは、入出力機器アドレスをデコ
ードした出力で、入出力ライト命令を有効とし、該入出
力ライト命令であらかじめ設定されたデータをラッチし
て、該データの内容によりマルチプレクサを選択起動さ
せる信号を送出することを特徴とする特許請求の範囲第
1項記載のメモリ装置。
(2) The above controller enables the input/output write command by decoding the input/output device address, latches the data set in advance by the input/output write command, and selects and activates the multiplexer according to the content of the data. 2. The memory device according to claim 1, wherein the memory device transmits a signal to cause
JP13448885A 1985-06-20 1985-06-20 Memory device Pending JPS61292739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13448885A JPS61292739A (en) 1985-06-20 1985-06-20 Memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13448885A JPS61292739A (en) 1985-06-20 1985-06-20 Memory device

Publications (1)

Publication Number Publication Date
JPS61292739A true JPS61292739A (en) 1986-12-23

Family

ID=15129497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13448885A Pending JPS61292739A (en) 1985-06-20 1985-06-20 Memory device

Country Status (1)

Country Link
JP (1) JPS61292739A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6478320A (en) * 1987-09-19 1989-03-23 Fujitsu Ltd Data processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6478320A (en) * 1987-09-19 1989-03-23 Fujitsu Ltd Data processing system

Similar Documents

Publication Publication Date Title
US4575796A (en) Information processing unit
JPS5824954A (en) Address controlling system
JPS61292739A (en) Memory device
JPS61235969A (en) Memory device
JPH0227696B2 (en) JOHOSHORISOCHI
JP2821176B2 (en) Information processing device
JP2976443B2 (en) Information processing device that exchanges data via system bus
JPS6162961A (en) Input/ouput device
JPH064398A (en) Information processor
JPS6383844A (en) Microprocessor system
JPS5886623A (en) Memory control system
JP3266610B2 (en) DMA transfer method
JP2884620B2 (en) Digital image processing device
JPS6315953Y2 (en)
JPH01171191A (en) Storage element with arithmetic function
JPS6027058B2 (en) Interrupt control circuit
JPS61161560A (en) Memory device
JPS63173143A (en) Memory interface circuit
JPH0330899B2 (en)
JPH02171949A (en) Dma transfer system
JPS6226729B2 (en)
JPH02127750A (en) 16-bit dma data transfer circuit
JPH06161945A (en) Memory data transfer device
JPH0652039A (en) Data transfer system
JPS592468A (en) Communication system in multiprocessor system