JPS58146081A - Memory input-output circuit - Google Patents

Memory input-output circuit

Info

Publication number
JPS58146081A
JPS58146081A JP2762682A JP2762682A JPS58146081A JP S58146081 A JPS58146081 A JP S58146081A JP 2762682 A JP2762682 A JP 2762682A JP 2762682 A JP2762682 A JP 2762682A JP S58146081 A JPS58146081 A JP S58146081A
Authority
JP
Japan
Prior art keywords
bit
circuit
data
memory
bits
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
JP2762682A
Other languages
Japanese (ja)
Inventor
Jun Hoyano
保屋野 純
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP2762682A priority Critical patent/JPS58146081A/en
Publication of JPS58146081A publication Critical patent/JPS58146081A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/10Input/output [I/O] data interface arrangements, e.g. I/O data control circuits, I/O data buffers

Abstract

PURPOSE:To improve the utilizing efficiency of a memory, by providing a circuit which makes only a specific bit effective among bit selecting signals, a bit position selecting circuit which selects the bit position of the output from the circuit mentioned above on a data bus, and a code bit extending circuit. CONSTITUTION:In ordinary memory accessing, a bit select signal 21 makes all bits effective, but bit selecting signals which make only lower rank bits (b), intermediate rank bits (c), or higher rank bits (d) effective also exist. In accordance with the bit selecting signal 21, effective bits are fetched from a bit selecting circuit 22 and a bit position selecting circuit 24, and outputted onto a data bus 14. In this way, accessing in which one word of the data memory is divided into parts >=2 is performed and, therefore, the memory is effectively used.

Description

【発明の詳細な説明】 本発明はマイクロプログラム制御による演算処理装置に
おけるデータメモリの入出力回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an input/output circuit for a data memory in an arithmetic processing device controlled by a microprogram.

マイクロプログラム制御によるディジタル処理装置にお
いて、データバスのビット数は必要な演算精度によシ決
まる0通常データメモリの1ワード邑シのビット数も上
記のビット数に合わせる。
In a digital processing device controlled by a microprogram, the number of bits of the data bus is determined by the required operational precision.The number of bits of one word of the normal data memory is also adjusted to the above number of bits.

しかしながら多種類のデータを取扱う場合が多く、その
場合データを表現するのに必要なビット数は同じではな
い0 従来、メモリ入出力回路は第1図に示すように、アドレ
ス信号11、データメモリ12、データ入出力ゲート1
3、データバス14から構成される。
However, in many cases, many types of data are handled, and in that case, the number of bits required to represent the data is not the same. Conventionally, a memory input/output circuit has an address signal 11, a data memory 12, and , data input/output gate 1
3. It consists of a data bus 14.

アドレス信号11によって選択されたデータメモリ12
の、1ワードがNビットからなるデータは、データ入出
力ゲート13を通してNビットのデータバス14と入出
力されるO常に1データ当り1ワードとられるので、(
N/2)ピッIfれば十分表現できるデータでもこれを
tワード格納するとすると、NXtビットの容量のデー
タメモリが使用される0ところが実際にデータとして意
味をもつのは(N/2)Xtビットである0したがりて
、データメモリの1ワード当りのビット数が固定すると
、データによっては不必要なビットまで使用しているこ
とになシ、メモリの使用効率が悪いという欠点があった
Data memory 12 selected by address signal 11
The data, each word of which consists of N bits, is input/output to and from the N-bit data bus 14 through the data input/output gate 13. Since one word is always taken per data, (
If we store t words of data that can be expressed sufficiently with N/2) bits, a data memory with a capacity of NXt bits is used, but the actual data has a meaning of (N/2)Xt bits. Therefore, if the number of bits per word of the data memory is fixed, unnecessary bits may be used depending on the data, resulting in poor memory usage efficiency.

本発明の目的はこの欠点をなくし、メモリを有効に活用
し同容量でよシ多くのデータを扱えるメモリ入出力回路
を提供することにある〇本発明のメモリ入出力回路は、
ビット選択信号から特定ビットだけを有効にする回路と
、前記回路からの出力のデータバス上でのビット位置を
選択するビット位置選択回路および符号ビット延長回路
とを備え、データメモリの1ワードを2つ以上の部分に
分割したアクセスもおこなえるようにしたものでめる@ 第2図は本発明の一実施例を示す構成図で、第1図の従
来回路に対し、ビット選択回路z2、ビット位置選択回
路24および符号ビット延長回路23の関係を示す。
The purpose of the present invention is to eliminate this drawback and provide a memory input/output circuit that can effectively utilize memory and handle more data with the same capacity. The memory input/output circuit of the present invention has the following features:
It includes a circuit that enables only a specific bit from a bit selection signal, a bit position selection circuit and a sign bit extension circuit that select the bit position of the output from the circuit on the data bus, and one word of the data memory is divided into two. Figure 2 is a block diagram showing an embodiment of the present invention, in which the bit selection circuit z2, bit position The relationship between the selection circuit 24 and the sign bit extension circuit 23 is shown.

以下、本実施例によるデータメモリのアクセスを詳細に
説明する0第3図(a)、 (b)I (C)I (d
)t:i各ビットのデータメモリバス25上での位置と
ビット位置選択回路24および符号ビット延長回路23
を介したデータバス14上での位置との4つの対応例を
示した図であるO斜線部がビット選択回路22によシ選
択されて有効となっているビットを示し、Sで示す部分
は読み出し時、符号ビット延長回路23によシデータバ
スに出力される部分を示している0第5図はビット選択
回路22の具体的ブロック図である。2本のビット選択
信号10L102を入力したデコーダー回路103が対
応するビット群選択信号130〜133を選択的に10
”にする。このビット群選択信号130〜133をかの
回路104〜106を介してビット選択信号101゜1
02に応じたビット群有効信号107〜108を選択的
に′″0”にし、対応するメモリのピット群を有効にす
る。例えば、第3図(II)の場合、ビット群有効信号
107〜109が全て″0”になり、同図Φ)の場合は
メモリの下位ビット群有効信号109のみを′0″にす
るO 第6図は第2図のビット位置選択回路24と符号ビット
延長回路23の具体的ブロック図であるOビット選択信
号101,102に従いデータセレクター回路123は
、メモリのビット群のデータ118〜120のいずれか
を下位のデータノ(ス126に出力する。例えば第3図
(a)、Φ)の場合はメモリの下位ビット群のデータ1
20を、同図(C)の場合はメモリの中位ビット群のデ
ータ119を下位のデータバス126に出力する。デー
タ入出力ゲート回路121,122は第3図(a)の場
合のみそれぞれメモリの上位ビット群のデータ118を
上位のデータバス124に、メモリの中位ビット群のデ
ータ119を中位のデータノ(ス125に出力する0セ
レクタ一回路114はビット選択信号101,102に
応じてメモリのピット群の最上位ヒツト111〜113
のいずれかを出力し、前記出力がAND回路43を介し
て出力ゲート回路115に入力し、第3図の(a)以外
の場合に中位のデータバス125および上位のデータノ
(ス124に出力される。
The access to the data memory according to this embodiment will be explained in detail below.
)t:i The position of each bit on the data memory bus 25, the bit position selection circuit 24, and the sign bit extension circuit 23
This is a diagram showing four examples of correspondence with the positions on the data bus 14 via the O. The shaded area indicates the bit that has been selected by the bit selection circuit 22 and is enabled, and the area indicated by S is FIG. 5 is a concrete block diagram of the bit selection circuit 22, showing the portion outputted to the data bus by the sign bit extension circuit 23 during reading. The decoder circuit 103 inputting the two bit selection signals 10L102 selectively selects the corresponding bit group selection signals 130 to 133 to 10
The bit group selection signals 130 to 133 are passed through the circuits 104 to 106 to the bit selection signal 101゜1.
The bit group valid signals 107 to 108 corresponding to 02 are selectively set to ``0'' to enable the corresponding memory pit group. For example, in the case of FIG. 3 (II), the bit group valid signals 107 to 109 are all set to ``0'', and in the case of Φ) in the same figure, only the lower bit group valid signal 109 of the memory is set to ``0''. FIG. 6 is a concrete block diagram of the bit position selection circuit 24 and sign bit extension circuit 23 shown in FIG. For example, in the case of FIG. 3(a), Φ), data 1 of the lower bit group of the memory
20, and in the case of FIG. 3C, the data 119 of the middle bit group of the memory is output to the lower data bus 126. The data input/output gate circuits 121 and 122 send the data 118 of the upper bit group of the memory to the upper data bus 124 and send the data 119 of the middle bit group of the memory to the middle data bus 124 only in the case of FIG. 3(a). The 0 selector circuit 114 that outputs to the bit selection signal 125 selects the most significant hits 111 to 113 of the pit group of the memory according to the bit selection signals 101 and 102.
The output is input to the output gate circuit 115 via the AND circuit 43, and is output to the intermediate data bus 125 and the upper data bus 124 in cases other than (a) in FIG. be done.

第3図(a)は通常のメモリアクセスの場合であり、ビ
ット選択信号21は全ビット有効を指定する。
FIG. 3(a) shows the case of normal memory access, where the bit selection signal 21 specifies that all bits are valid.

前記毎号を入力したビット選択回路22はデー5タメモ
リの全ビットを有効にする。同前記信号を入力したビッ
ト位置選択回路24はデータメモリノ(ス25上のデー
タを何も変更しないでデータノ<ス14上に出力する。
The bit selection circuit 22 inputting each issue makes all bits of the data memory valid. The bit position selection circuit 24 inputting the signal outputs the data on the data memory node 25 to the data node 14 without changing anything.

符号ビット延長回路23社データバスに出力しないOこ
れによシデータメモリバス25と同じデータがデータノ
(ス14上に出力される・ 纂3図(b)の場合、ビット選択信号21は下位ビット
のみ(斜線S)有効を指定するOこの信号に応じビット
選択回路22は下位ビットだけを有効にする。ビット位
置選択回路24は有効になっているデータメモリ12の
ビットのみをデータノ(ス14上に出力するO符号ビッ
ト延長回路23は有効となりている下位ビットの最上位
ビットをデータバス14上の残シのビット分(8で示す
部分)延長しデータバス14に出力するOこれによシデ
ータバス14上では、菖3図(a)の場合と同じビット
数のデータとなり、符号も延長されているので同図(a
)の場合と同じデータ形式として演算可能でめる0第3
図(C)の場合同図Φ)と異なる点は、選択されたデー
タメモリ12の中位ビットをデータメモリバス25上の
ピット位置からピット位置選択回路24によシデータバ
ス14の下位ビットにピット位置を変更することである
。データバス14上の残りのビットにデータメモリの選
択された中位ビットのうちの最上位ビットを符号ビット
延長回路23がデータバス14上に出力することは第3
図(b)と同じである。第3図(d)の場合も同図(C
)と同様であシ、データメモリバス25上の上位ビット
がピット位置の変更と符号ビットが延長されてデータバ
ス14上に出力される。
The sign bit extension circuit 23 does not output to the data bus. This causes the same data as the data memory bus 25 to be output to the data bus 14. In the case of Figure 3 (b), the bit selection signal 21 is the lower bit. In response to this signal, the bit selection circuit 22 makes only the lower bits valid.The bit position selection circuit 24 selects only the enabled bits of the data memory 12 on the data node (slash 14). The O sign bit extension circuit 23 extends the most significant bit of the enabled lower bits by the remaining bits on the data bus 14 (the part indicated by 8) and outputs it to the data bus 14. 14, the data has the same number of bits as in the case of Iris 3 (a), and the code is also extended, so the same figure (a)
) can be calculated as the same data format as in the case of
The difference between the case of FIG. It is to change. The sign bit extension circuit 23 outputs the most significant bit of the selected middle bits of the data memory onto the data bus 14 as the remaining bits on the data bus 14.
This is the same as in Figure (b). In the case of Fig. 3(d), the same figure (C
), the upper bits on the data memory bus 25 are outputted onto the data bus 14 with the pit position changed and the sign bit extended.

なお、符号ビット延長回路23け第4図に示した回路に
よシ、符号ビットのかわりにuO”のデータを延長して
データバス14上に出力することも可能である。つまり
符号選択信号26を″1”にすることによシ、延長ビッ
ト42が符号ビット41と同じになシ符号ビットが延長
される。また符号選択信号26を0”にすることによシ
、常に延長ビット42が0″になシ@0#が延長される
It is also possible to extend the data of uO'' instead of the sign bit and output it on the data bus 14 by using the sign bit extension circuit 23 shown in FIG. By setting ``1'' to ``1'', the extension bit 42 is the same as the sign bit 41, and the sign bit is extended.Also, by setting the code selection signal 26 to ``0'', the extension bit 42 is always set. 0″ is extended to @0#.

書き込み時は、符号延長回路23は動作しないことを除
けば、読み出し時とは逆にデータバス14上のデータの
ビット位置がビット位置選択回路24によシ変更されて
データメモリバス25上に出力されるだけで、他の動作
は読み出し時と同様である。
During writing, the bit position of the data on the data bus 14 is changed by the bit position selection circuit 24 and output onto the data memory bus 25, contrary to when reading, except that the sign extension circuit 23 does not operate. Other operations are the same as when reading.

このように同一アドレスの1ワードがビット選択信号2
1の操作で4つの異なったデータとしてアクセスできる
◇ 以上の説明から明らかなように、本発明によれば、デー
タメモリの1ワードを2つ以上の部分に分割したアクセ
スも可i℃たことによシデータの有効部分だけを格納す
ることができ、効率よくメモリを使用でき、同容量でよ
シ多くのデータをストアすることができる。
In this way, one word at the same address is used as the bit selection signal 2.
◇ As is clear from the above explanation, according to the present invention, it is also possible to access one word of the data memory by dividing it into two or more parts. It is possible to store only the valid part of the data, allowing efficient use of memory, and allowing more data to be stored with the same capacity.

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

第1区は従来のメモリ入出力回路のブロック図、第2図
祉本発明によるメモリ入出力回路の一実施例を示すブロ
ック図、183図は各ビットのデータメモリバス上の位
置とピット位置選択回路および符号延長回路を介したデ
ータバス上でのピット位置との対応例を示した説明図、
第4図は第2図の延長ビット選択回路を示す回路図、第
5図は第2図のビット選択回路を具体的に示すブロック
図、第6図は第2図のピット位置選択回路と符号ビット
延長回路を具体的に示すブロック図である。 11・・・・・・アドレス信号、12・・・・・・デー
タメモリ、13・・・・・・データ入出力ゲート、14
・川・・データバス、21・・・・・・ビット選択信号
、22・・・・・・ビット選択回路、23・・・・・・
符号ビット延長回路、24・・・・・・ピット位置選択
回路、25・・・・・・データメモリバス、26・・・
・・・符号選択信号、41・・・・・・符号ビット、4
2・・・・延長ビット、43・・・・・・ANDゲート
、101・・・・・・ビット選択信号、102・・・・
・・ビット選択信号、103・・・・・・デコーダー回
路、104. 105,106・・・・・・AND回路
、107・・・・・・メモリの上位ビット群有効信号、
108・・・・・・メモリの中位ビット群有効信号、1
09・・・・・・メモリの下位ビット群有効信号、11
1・・・・・・メモリの上位ビット群の最上位ビy)、
112・・・・・・メモリの中位ビット群の最上位ピッ
l−,113・・・・・・メモリの下位ビット群の最上
位ビット、114・・・・・・セレクター回路、115
・・・・・・出力ゲート回路、116・・・・・・OR
回路、117・・・・・・インバーター回路、118・
・・・・・メモリの上位ビット群のデータ、119・・
・・・・メモリの中位ビット群のデータ、120・・・
・・・メモリの下位ビット群のデータ、121,122
・・・・・・データ入出力ゲート回路、123・・・・
・・データセレクター回路、124・・・・・・上位の
データバス、125・旧・・中位のデータバス、126
・・・・・・下位のデータバス、130・・・・・・全
ビット選択信号、131・・・・・・上位ビット群選択
信号、132・・・・・・中位ビット群選択信号、13
3篤 l 図 ス 2図 鶏 、3 辺 篤 4 図
The first section is a block diagram of a conventional memory input/output circuit, the second section is a block diagram showing an embodiment of the memory input/output circuit according to the present invention, and the third section is a block diagram showing the position of each bit on the data memory bus and pit position selection. An explanatory diagram showing an example of correspondence with pit positions on a data bus via a circuit and a sign extension circuit,
Figure 4 is a circuit diagram showing the extension bit selection circuit in Figure 2, Figure 5 is a block diagram specifically showing the bit selection circuit in Figure 2, and Figure 6 is the pit position selection circuit in Figure 2 and its symbols. FIG. 2 is a block diagram specifically showing a bit extension circuit. 11...Address signal, 12...Data memory, 13...Data input/output gate, 14
・River...Data bus, 21...Bit selection signal, 22...Bit selection circuit, 23...
Sign bit extension circuit, 24...Pit position selection circuit, 25...Data memory bus, 26...
...Sign selection signal, 41...Sign bit, 4
2...Extension bit, 43...AND gate, 101...Bit selection signal, 102...
. . . Bit selection signal, 103 . . . Decoder circuit, 104. 105, 106...AND circuit, 107...Memory upper bit group valid signal,
108... Memory middle bit group valid signal, 1
09...Memory lower bit group valid signal, 11
1...The most significant bit y of the upper bit group of memory),
112... Most significant bit l- of middle bit group of memory, 113... Most significant bit of lower bit group of memory, 114... Selector circuit, 115
...Output gate circuit, 116...OR
Circuit, 117... Inverter circuit, 118.
...Data of upper bit group of memory, 119...
...Data of middle bit group of memory, 120...
... Data of lower bit group of memory, 121, 122
...Data input/output gate circuit, 123...
... Data selector circuit, 124 ... Upper data bus, 125 - Old ... Middle data bus, 126
......lower data bus, 130...all bit selection signal, 131...upper bit group selection signal, 132...middle bit group selection signal, 13
3 Atsushi l Figures 2 Figures Chicken, 3 Hen Atsushi 4 Figures

Claims (1)

【特許請求の範囲】[Claims] データの書込み読出しを行なうデータメモリと、ビット
選択信号によシ前記データメモリ上の1ワードを2つ以
上の部分−に分割して?択的にアクセスするビット選択
回路と、前記ビット選択信号によシ前記データメモリの
出力の第一のデータバス上でのビット位置を選択するビ
ット位置選択回路と、符号ビットを延長する回路とを有
することを特徴とするメモリ入出力回路。
A data memory for writing and reading data, and dividing one word on the data memory into two or more parts according to a bit selection signal? a bit selection circuit for selectively accessing; a bit position selection circuit for selecting a bit position on a first data bus of the output of the data memory according to the bit selection signal; and a circuit for extending a sign bit. A memory input/output circuit comprising:
JP2762682A 1982-02-23 1982-02-23 Memory input-output circuit Pending JPS58146081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2762682A JPS58146081A (en) 1982-02-23 1982-02-23 Memory input-output circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2762682A JPS58146081A (en) 1982-02-23 1982-02-23 Memory input-output circuit

Publications (1)

Publication Number Publication Date
JPS58146081A true JPS58146081A (en) 1983-08-31

Family

ID=12226160

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2762682A Pending JPS58146081A (en) 1982-02-23 1982-02-23 Memory input-output circuit

Country Status (1)

Country Link
JP (1) JPS58146081A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005222519A (en) * 2004-02-09 2005-08-18 Arm Ltd Access to bit value in data word stored in memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005222519A (en) * 2004-02-09 2005-08-18 Arm Ltd Access to bit value in data word stored in memory

Similar Documents

Publication Publication Date Title
US5093783A (en) Microcomputer register bank accessing
US4885581A (en) Digital-to-analog converter circuit
US4414622A (en) Addressing system for a computer, including a mode register
JPS5644946A (en) Code error correction and detection system
EP0217479A2 (en) Information processing unit
JPS58146081A (en) Memory input-output circuit
US4388707A (en) Memory selecting system
JPH0227759B2 (en)
JPS5947394B2 (en) Variable length two-dimensional register
JPS6131490B2 (en)
JPH0731608B2 (en) Information processing equipment
JP3611049B2 (en) Internal register circuit
JPH08147262A (en) Microprocessor
JPS5862686A (en) Image memory unit
JPS6348119B2 (en)
JPS6220024Y2 (en)
JPS5862685A (en) Image memory unit
JPS6017131B2 (en) memory control circuit
JPH0789439B2 (en) Semiconductor integrated circuit device
SU1191913A1 (en) Information input-output device
JPS55134463A (en) Multiprocessor
JPS59114657A (en) Memory interface circuit of microcomputer
JPH0517574B2 (en)
JPS6289294A (en) Address decoding circuit
JPH0778722B2 (en) Register file method