JPS622333B2 - - Google Patents

Info

Publication number
JPS622333B2
JPS622333B2 JP56039537A JP3953781A JPS622333B2 JP S622333 B2 JPS622333 B2 JP S622333B2 JP 56039537 A JP56039537 A JP 56039537A JP 3953781 A JP3953781 A JP 3953781A JP S622333 B2 JPS622333 B2 JP S622333B2
Authority
JP
Japan
Prior art keywords
data
byte length
byte
memory reference
write
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
Application number
JP56039537A
Other languages
Japanese (ja)
Other versions
JPS57155644A (en
Inventor
Masaaki Inao
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 JP3953781A priority Critical patent/JPS57155644A/en
Publication of JPS57155644A publication Critical patent/JPS57155644A/en
Publication of JPS622333B2 publication Critical patent/JPS622333B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30032Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE

Description

【発明の詳細な説明】 本発明は、8バイト単位で読出し/書込みが行
われるメモリと、8バイトのフエツチ・データ・
レジスタと、8バイトの書込レジスタを有し、且
つ書込データが8バイトであり、メモリ参照単位
が8バイト以内であるバイト・マシンにおけるア
ライン制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a memory that is read/written in 8-byte units and an 8-byte fetch data
The present invention relates to an alignment control method in a byte machine that has a register, an 8-byte write register, write data of 8 bytes, and a memory reference unit of 8 bytes or less.

第1図は本発明が適用されるバツフア記憶装置
を説明するものであつて、第1図イはフエツチ系
の概要を説明する図、第1図ロはストア系の概要
を説明する図である。第1図イ,ロにおいて、1
は実効アドレス・レジスタ、2はバツフア記憶、
3はフエツチ・アライン回路、4はフエツチ・デ
ータ・レジスタ、5はストア・アライン回路、6
は書込レジスタ、FDはフエツチ・データ、SDは
書込データをそれぞれ示している。
FIG. 1 illustrates a buffer storage device to which the present invention is applied, in which FIG. 1A is a diagram explaining an overview of a fetch system, and FIG. . In Figure 1 A and B, 1
is the effective address register, 2 is the buffer memory,
3 is a fetch align circuit, 4 is a fetch data register, 5 is a store align circuit, 6
indicates a write register, FD indicates fetch data, and SD indicates write data.

バツフア記憶2は例えば64Kバイトのものであ
り、またバイト毎にアドレスが割付けられている
ものである。バツフア記憶2の読出し/書込みの
単位は8バイトである。フエツチ・アライン回路
3はシフタであつて、バツフア記憶2から読出さ
れた8バイトのフエツチ・データFDをシフト量
指示信号に従つてバイト単位でシフトするもので
ある。フエツチ・データ・レジスタ4は8バイト
のものであり、これにはフエツチ・アライン回路
3の出力する8バイトのデータがセツトされる。
書込データSDは8バイトであり、また書込レジ
スタ6も8バイトのものである。ストア・アライ
ン回路5もシフタであつて、このストア・アライ
ン回路5は書込データをシフト量指示信号に従つ
てバイト単位でシフトする。ストア・アライン回
路5の出力は書込レジスタ6にセツトされる。
The buffer memory 2 is, for example, 64K bytes, and an address is assigned to each byte. The reading/writing unit of the buffer memory 2 is 8 bytes. The fetch align circuit 3 is a shifter that shifts the 8-byte fetch data FD read from the buffer memory 2 in byte units in accordance with a shift amount instruction signal. The fetch data register 4 is of 8 bytes, and 8 bytes of data output from the fetch align circuit 3 is set therein.
The write data SD is 8 bytes, and the write register 6 is also 8 bytes. The store/align circuit 5 is also a shifter, and this store/align circuit 5 shifts the write data in byte units according to the shift amount instruction signal. The output of the store/align circuit 5 is set in the write register 6.

シフト量指示信号は、実効アドレス、およびメ
モリ参照バイト長に基づいて作成されるが、従来
技術においてはシフト量指示信号を作成するため
の回路が複雑になり、また相当の時間を必要とし
た。メモリ参照バイト長は8バイト以内である。
The shift amount instruction signal is created based on the effective address and the memory reference byte length, but in the prior art, the circuit for creating the shift amount instruction signal is complicated and requires a considerable amount of time. The memory reference byte length is within 8 bytes.

本発明は、上記の欠点を除去するものであつて
少ない金物量で、しかも高速でシフト量指示信号
を作成できるようにしたアライン制御方式を提供
することを目的としている。そしてそのため、本
発明のアライン制御方式は、指定された読出し開
始アドレスから8バイトのデータをメモリより読
出し、読出された8バイトのデータを上記読出し
開始アドレスとメモリ参照バイト長とアライン指
示情報に従つて、アライン回路によりアラインし
て8バイトのフエツチ・データ・レジスタにセツ
トする場合、又は8バイトの書込データを書込開
始アドレスとメモリ参照バイト長とアライン指示
情報に従つてアライン回路によりアラインして8
バイトの書込レジスタにセツトする場合に用いら
れるアライン制御方式であつて、 アライン指示情報と3ビツトのメモリ参照バイ
ト長が入力されると共に3ビツトのデータを出力
するデータ変換手段と、該データ変換手段の出力
する3ビツトとメモリ・アクセス・アドレスの最
下位3ビツトとを加算する加算器と、該加算器の
出力をデコードするデコーダと、該デコーダの出
力をシフト量指示信号として上記アライン回路に
送る手段とを設け、 且つ上記データ変換手段を、 アライン指示情報が、読出し開始アドレスのデ
ータを含めたメモリ参照バイト長で指示されたバ
イト長のデータを上記フエツチ・データ・レジス
タに右詰めでセツトすること、又は上記8バイト
の書込データの中の右からメモリ参照バイト長で
指示されたバイト長のデータが有効であることを
指定している場合には、メモリ参照バイト長を表
す3ビツトを出力し、 上記アライン指示情報が、読出し開始アドレス
を含めメモリ参照バイト長で指示されたバイト長
のデータを上記フエツチ・データ・レジスタの第
3バイト位置を限界としてセツトすること、又は
書込データの第3バイト位置のデータを含め左半
部に存在するメモリ参照バイト長で指示されたバ
イト長のデータが有効であることを指定している
場合には、メモリ参照バイト長を示す3ビツトの
内の最上位ビツトを強制的に論理「1」にしたも
のを出力し、 上記アライン指示情報が、読出し開始アドレス
のデータを含めメモリ参照バイト長で指示された
バイト長のデータを上記フエツチ・データ・レジ
スタに左詰めでセツトすること、又は上記書込デ
ータの中の左からメモリ参照バイト長で指定され
たバイト長のデータが有効であることを指定して
いる場合には、「111」なるデータを出力するよう
に構成したこと を特徴とするものである。以下、本発明を図面を
参照しつつ説明する。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an alignment control system which eliminates the above-mentioned drawbacks and which allows a shift amount instruction signal to be generated at high speed with a small amount of metal. Therefore, the align control method of the present invention reads 8 bytes of data from the memory from a specified read start address, and uses the read 8 bytes of data according to the read start address, memory reference byte length, and alignment instruction information. Therefore, when aligning with the align circuit and setting in the 8-byte fetch data register, or aligning the 8-byte write data with the align circuit according to the write start address, memory reference byte length, and alignment instruction information. te8
This is an alignment control method used when setting a byte write register, and includes a data conversion means that inputs alignment instruction information and a 3-bit memory reference byte length and outputs 3-bit data, and the data conversion means. an adder that adds the 3 bits output by the means and the least significant 3 bits of the memory access address; a decoder that decodes the output of the adder; and an output of the decoder that is sent to the align circuit as a shift amount instruction signal and the data conversion means is configured to set the data of the byte length specified by the memory reference byte length including the data of the read start address in the fetch data register in a right-justified manner. or if it is specified that the data of the byte length indicated by the memory reference byte length from the right in the 8-byte write data is valid, the 3 bits representing the memory reference byte length are specified. and the alignment instruction information sets the data of the byte length specified by the memory reference byte length including the read start address, with the third byte position of the fetch data register as the limit, or the write data If it is specified that the data of the byte length indicated by the memory reference byte length existing in the left half including the data at the third byte position is valid, the 3-bit data indicating the memory reference byte length The most significant bit of the data is forcibly set to logic "1", and the align instruction information transfers the data of the byte length specified by the memory reference byte length, including the data of the read start address, to the fetch data. - If it is specified that the register is set left-aligned, or that the data of the byte length specified by the memory reference byte length from the left in the write data is valid, it will be "111". It is characterized by being configured to output data. Hereinafter, the present invention will be explained with reference to the drawings.

第2図はバツフア記憶2の1部の構成を示して
いる。なお、図においてEARは実効アドレスを
示している。第2図はバツフア記憶の1ライン
(64バイト)分を示すものであつて、実際にはこ
のようなラインがセツトの分だけ縦方向につなが
れているものと考えてよい。実効アドレスのビツ
ト26ないし31の6ビツトは、フエツチ時のラ
イン内の先頭アドレスを意味している。図示の例
において、ライン内アドレス「011101」ないし
「100100」番地にA、B、C、D、E、F、G、
Hなるデータが格納されている。なお、Aないし
Hのそれぞれは8バイトのデータである。ライン
内の先頭アドレス「011101」を指定してリードを
起動すると、バツフア記憶2からD、E、F、
G、H、A、B、Cなる形式の8バイトのデータ
が読出される。
FIG. 2 shows the structure of a part of the buffer memory 2. As shown in FIG. Note that in the figure, EAR indicates an effective address. FIG. 2 shows one line (64 bytes) of buffer storage, and in reality, it can be considered that a set of such lines are connected in the vertical direction. Six bits, bits 26 to 31 of the effective address, represent the first address within the line at fetch time. In the illustrated example, A, B, C, D, E, F, G,
Data H is stored. Note that each of A to H is 8 bytes of data. When you start reading by specifying the start address "011101" in the line, D, E, F,
8-byte data in G, H, A, B, C format is read.

第3図はデータ・フエツチ時のタイム・チヤー
トを示すものである。第3図において、B1はバ
ツフア・アクセス1サイクル、B2はバツフア・
アクセス2サイクル、Rはレジスタ・セツト・サ
イクル、Liはメモリ参照バイト長をそれぞれ示し
ている。実効アドレスEARは命令制御ユニツト
から送られて来るものであり、そのビツト20か
らビツト31又はビツト21から31まではペー
ジ内アドレスを示している。メモリ参照バイト長
Liも命令制御ユニツトから送られて来るものであ
り、3ビツトのデコード信号で表現されている。
この3ビツトをL−DEC0、1、2とすると、L
−DEC0、1、2が「000」は先頭アドレスのデ
ータを含めた有効バイト長が1、「001」であると
有効バイト長が2であることを意味している。以
下同様である。メモリ参照バイト長Liの中には、
L−DEC0、1、2という信号の外に、ライト・
ジヤスト・8バイト(以下、Rj8という)、ライ
ト・ジヤスト・ミドル(以下、RjMという)およ
びレフト・ジヤスト(以下Ljという)がある。
Rj8はフエツチのときにはフエツチ・データFD
をレジスタに右詰めにセツトすべきことを意味
し、RjMはフエツチのときにはバイト3の位置を
限界として右詰めにセツトすべきことを意味して
いる。RjMが上つている時は、有効バイト長は4
を越えることはない。Ljはフエツチのときには
フエツチ・データFDを左詰めでレジスタにセツ
トすべきことを意味している。Rj8、RjMおよび
Ljは同時にオンになることはない。
FIG. 3 shows a time chart during a data fetch. In FIG. 3, B1 is one cycle of buffer access, and B2 is one cycle of buffer access.
2 access cycles, R indicates the register set cycle, and Li indicates the memory reference byte length. The effective address EAR is sent from the instruction control unit, and bits 20 to 31 or 21 to 31 indicate the address within the page. Memory reference byte length
Li is also sent from the instruction control unit and is expressed as a 3-bit decoded signal.
If these 3 bits are L-DEC0, 1, and 2, then L
-DEC0, 1, 2 "000" means that the effective byte length including the data at the start address is 1, and "001" means that the effective byte length is 2. The same applies below. In the memory reference byte length Li,
In addition to the L-DEC0, 1, and 2 signals, write/
There are just 8 bytes (hereinafter referred to as Rj8), right just middle (hereinafter referred to as RjM), and left just (hereinafter referred to as Lj).
Rj8 is fetish data FD when fetish
This means that RjM should be set to the right in the register, and RjM should be set to the right with the position of byte 3 as the limit when fetching. When RjM is rising, the effective byte length is 4
It never exceeds. Lj means that when performing a fetch, the fetch data FD should be set in the register in a left-aligned manner. Rj8, RjM and
Lj will never be on at the same time.

第4図、第5図、第6図はフエツチ時のアライ
ンを説明するものであり、第4図はRj8を説明す
るものである。第4図イはRj8の具体例を示すも
のであつて、第2図に示すようにバツフア記憶2
にデータが格納され、実効アドレスのビツト26
ないし31が「011101」であり、さらにメモリ参
照バイト長が「101」(有効バイト長6)であるこ
とを前提としている。第4図イから判るようにフ
エツチ・データFDを左へ3バイトだけシフトす
ると、データAを含む6バイトのデータがフエツ
チ・データ・レジスタ4に右詰めでセツトするこ
とが出来る。なお、G、Hは、レジスタ上は無効
バイトであることを意味している。
FIGS. 4, 5, and 6 explain alignment during fetching, and FIG. 4 explains Rj8. Figure 4A shows a specific example of Rj8, and as shown in Figure 2, the buffer memory 2
The data is stored in bit 26 of the effective address.
It is assumed that 31 through 31 are "011101" and that the memory reference byte length is "101" (effective byte length 6). As can be seen from FIG. 4A, by shifting the fetch data FD by 3 bytes to the left, 6 bytes of data including data A can be set in the fetch data register 4 right-justified. Note that G and H mean invalid bytes on the register.

第4図ロはRj8の場合の実効アドレスのビツト
29ないし31、有効バイト長およびシフト量の
関係を示すものである。なお、シフトは左シフト
を意味している。第4図ロから EAR+L=111→S=0 EAR+L=110→S=7 EAR+L=101→S=6 EAR+L=100→S=5 EAR+L=011→S=4 EAR+L=010→S=3 EAR+L=001→S=2 EAR+L=000→S=1 ……………(1)式 であることが判る。なお、上式において、EAR
は実効アドレスのビツト29ないし31、Lはメ
モリ参照バイト長のL−DEC0ないし2、Sはシ
フト量を表わしている。
FIG. 4B shows the relationship between bits 29 to 31 of the effective address, effective byte length, and shift amount in the case of Rj8. Note that shift means left shift. From Figure 4 B EAR+L=111→S=0 EAR+L=110→S=7 EAR+L=101→S=6 EAR+L=100→S=5 EAR+L=011→S=4 EAR+L=010→S=3 EAR+L=001 →S=2 EAR+L=000→S=1 It can be seen that the equation (1) is satisfied. In addition, in the above formula, EAR
represents bits 29 to 31 of the effective address, L represents the memory reference byte length L-DEC0 to 2, and S represents the shift amount.

第5図はRjMを説明するものである。第5図イ
はRjMの具体例を示すものであつて、第2図に示
すようにバツフア記憶2にデータが格納され、実
効アドレスのビツト26ないし31が「011101」
であり、さらにメモリ参照バイト長が「001」(有
効バイト長2)であることを前提としている。第
5図イから判るように、フエツチ・データFDを
左へ3バイトだけシフトすると、データAを含む
2バイトのデータをフエツチ・データ・レジスタ
4の3バイト位置を限界として右詰でセツトする
ことが出来る。
FIG. 5 explains RjM. FIG. 5A shows a specific example of RjM. As shown in FIG. 2, data is stored in the buffer memory 2, and bits 26 to 31 of the effective address are "011101".
It is further assumed that the memory reference byte length is "001" (effective byte length 2). As can be seen from Figure 5A, if the fetch data FD is shifted to the left by 3 bytes, 2 bytes of data including data A can be set to the right with the 3 byte position of fetch data register 4 as the limit. I can do it.

第5図ロはRjMの場合の実効アドレスのビツト
29ないし31、有効バイト長およびシフト量の
関係を示すものである。なお、シフトは左シフト
を示している。RjMの場合は、RjMという信号で
メモリ参照バイト長のL−DEC0を強制的に
「1」として実効アドレスのビツト29ないし3
1とを加算すると、(1)式で示した加算結果とシフ
ト量の関係をそのまゝ適用することが出来る。
FIG. 5B shows the relationship between bits 29 to 31 of the effective address, effective byte length, and shift amount in the case of RjM. Note that the shift indicates a left shift. In the case of RjM, the RjM signal forces the memory reference byte length L-DEC0 to "1" and sets bits 29 to 3 of the effective address.
When 1 is added, the relationship between the addition result and the shift amount shown in equation (1) can be applied as is.

第6図はLjを説明するものである。第6図イ
はLjの具体例を示すものであつて、第2図に示
すようにバツフア記憶2にデータが格納され、実
効アドレスのビツト26ないし31が「011101」
であり、さらにメモリ参照バイト長が「101」(有
効バイト長6)であることを前提としている。第
6図イから判るように、フエツチ・データFDを
左へ5バイトだけシフトすると、データAを含む
6バイトのデータを左詰でセツトすることが出来
る。Ljの場合は、Ljという信号でメモリ参照バ
イト長のL−DEC0、1、2を強制的に「111」
として実効アドレスのビツト29ないし31とを
加算すると、(1)式で示した加算結果とシフト量の
関係をそのまま適用することが出来る。
FIG. 6 explains Lj. FIG. 6A shows a specific example of Lj. As shown in FIG. 2, data is stored in the buffer memory 2, and bits 26 to 31 of the effective address are "011101".
It is further assumed that the memory reference byte length is "101" (effective byte length 6). As can be seen from FIG. 6A, by shifting the fetch data FD by 5 bytes to the left, 6 bytes of data including data A can be set to the left. In the case of Lj, the Lj signal forces the memory reference byte length L-DEC0, 1, and 2 to "111".
When bits 29 to 31 of the effective address are added as , the relationship between the addition result and the shift amount shown in equation (1) can be applied as is.

第7図は本発明で使用されるシフト量指示信号
生成回路の1実施例を示すものであつて、7ない
し9はOR回路、10は3ビツトの加算器、11
はデコーダをそれぞれ示している。OR回路7に
は+Ljと+RjMと+L−DEC0が入力され、OR
回路8には+Ljと+L−DEC1が入力され、OR
回路9には+Ljと+L−DEC2とが入力されてい
る。なお、符号7ないし9の部分はデータ変換手
段を構成している。
FIG. 7 shows one embodiment of the shift amount instruction signal generation circuit used in the present invention, in which 7 to 9 are OR circuits, 10 is a 3-bit adder, and 11 is an OR circuit.
indicate decoders, respectively. +Lj, +RjM and +L-DEC0 are input to OR circuit 7, and OR
+Lj and +L-DEC1 are input to circuit 8, and OR
+Lj and +L-DEC2 are input to the circuit 9. Note that portions 7 to 9 constitute data conversion means.

第8図はバツフア記憶2に格納前の書込データ
SDと格納後の書込データとの関係を示すもので
ある。第8図は実効アドレスのビツト26ないし
31が「011101」であり、且つLjの場合を示し
ている。ストアの場合には、Ljの意味は書込デ
ータSDの中の有効な部分は左からであることを
示す。即ち、第8図の例ではAから有効であり、
そのときのメモリ参照バイト長か有効バイトがL
であることを示していると、データAを含めてL
バイトのデータが書込データとして有効であるこ
とを意味している。Rj8は、書込データの中の有
効な部分は右からであることを示す。即ち第8図
の例ではHを含めてHから左側のLバイトのデー
タが有効であることを示す。RjMは、書込データ
のSDの中の有効な部分は第3バイト位置から左
であることを意味している。即ち、第8図の例で
は、Dを含めてDから左側のLバイトのデータが
書込データとして有効であることを意味してい
る。
Figure 8 shows written data before being stored in buffer memory 2.
This shows the relationship between SD and write data after storage. FIG. 8 shows a case where bits 26 to 31 of the effective address are "011101" and Lj. In the case of store, the meaning of Lj indicates that the valid portion in the write data SD is from the left. That is, in the example of FIG. 8, it is valid from A,
The memory reference byte length or effective bytes at that time is L
If it shows that L including data A
This means that the byte data is valid as write data. Rj8 indicates that the valid portion of the write data is from the right. That is, in the example of FIG. 8, data of L bytes to the left of H including H is valid. RjM means that the valid portion in the SD of write data is to the left of the third byte position. That is, in the example of FIG. 8, this means that L bytes of data including D and to the left of D are valid as write data.

第9図ないし第11図はそれぞれストア時の
Rj8、RjM、Ljを説明するものである。第9図は
Rj8の具体例を示すものであるが、この例は実効
アドレスのビツト26ないし31が「011101」で
あり、有効バイト長6(101)であるとしてい
る。この場合には書込データSDは右へ3バイト
だけシフトされ、書込レジスタ6にセツトされ
る。説明は省略するが、ストアで且つRj8の場合
の実効アドレス29ないし31、有効バイト長お
よびシフト量の関係は、第4図ロに示すようにな
る。たゞし、シフトは右シフトとなる。
Figures 9 to 11 are respectively at the time of storage.
This explains Rj8, RjM, and Lj. Figure 9 is
A specific example of Rj8 is shown, in which bits 26 to 31 of the effective address are "011101" and the effective byte length is 6 (101). In this case, the write data SD is shifted to the right by 3 bytes and set in the write register 6. Although the explanation will be omitted, the relationship between the effective addresses 29 to 31, effective byte length, and shift amount in the case of store and Rj8 is as shown in FIG. 4B. However, the shift is to the right.

第10図はRjMの具体例を示すものであるが、
この例は実効アドレスビツト26ないし31が
「011101」であり、有効バイト長2(001)である
としている。この場合には、書込データSDは右
へ3バイトだけシフトされ、書込レジスタ6にセ
ツトされる。ストアで且つRjMの場合の実効アド
レスのビツト29ないし31、有効バイト長およ
びシフト量の関係は第5図ロに示すようになる。
たゞし、シフトは右シフトになる。
Figure 10 shows a specific example of RjM.
In this example, effective address bits 26 to 31 are "011101" and the effective byte length is 2 (001). In this case, the write data SD is shifted to the right by 3 bytes and set in the write register 6. In the case of store and RjM, the relationship between bits 29 to 31 of the effective address, effective byte length, and shift amount is as shown in FIG. 5B.
However, the shift becomes a right shift.

第11図はLjの具体例を示すものであるが、
この例は実効アドレス・ビツト26ないし31が
「011101」であり、有効バイト長6(101)である
としている。この場合には、書込データSDは右
へ5バイトだけシフトされ、書込レジスタ6にセ
ツトされる。ストアで且つLjの場合の実効アド
レスのビツト29ないし31、有効バイト長およ
びシフト量の関係は、第6図ロに示すようにな
る。たゞし、シフトは右シフトである。
Figure 11 shows a specific example of Lj,
In this example, effective address bits 26 to 31 are "011101" and the effective byte length is 6 (101). In this case, the write data SD is shifted to the right by 5 bytes and set in the write register 6. In the case of store and Lj, the relationship between bits 29 to 31 of the effective address, effective byte length, and shift amount is as shown in FIG. 6B. However, the shift is a right shift.

ストアの場合でもRj8のときには第4図ロの関
係が成立し、RjMのときには第5図ロの関係が成
立し、Ljのときには第6図ロの関係が成立する
ので第7図のシフト量指示信号生成回路をその
まゝ使用することが出来る。
Even in the case of store, when Rj8, the relationship in Figure 4 (B) holds true, when RjM, the relationship in Figure 5 (B) holds true, and when Lj, the relationship in Figure 6 (B) holds, so the shift amount instruction in Figure 7 is established. The signal generation circuit can be used as is.

以上の説明から明らかなように、本発明によれ
ば、少ない金物量で、しかも高速でシフト量指示
信号を作成することが出来る。
As is clear from the above description, according to the present invention, a shift amount instruction signal can be created at high speed with a small amount of hardware.

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

第1図は本発明が適用されるバツフア記憶装置
の概要を示す図、第2図はバツフア記憶の一部の
構成を示す図、第3図はデータ・フエツチ時のタ
イム・チヤート、第4図ないし第6図はフエツチ
時のアラインを説明する図であり、第4図はRj8
を説明する図、第5図はRjMを説明する図、第6
図はLjを説明する図、第7図は本発明で使用さ
れるシフト量指示信号生成回路の1実施例を示す
図、第8図はバツフア記憶に格納前の書込データ
と格納後の書込データの関係を示す図、第9図な
いし第11図はそれぞれストア時のRj8、RjM、
Ljを説明するものであつて、第9図はRj8の具体
例を示す図、第10図はRjMの具体例を示す図、
第11図はLjの具体例を示す図である。 1……実効アドレス・レジスタ、2……バツフ
ア記憶、3……フエツチ・アライン回路、4……
フエツチ・データ・レジスタ、5……ストア・ア
ライン回路、6……書込レジスタ、7ないし9…
…OR回路、10……3ビツト加算器、11……
デコーダ。
FIG. 1 is a diagram showing an overview of a buffer storage device to which the present invention is applied, FIG. 2 is a diagram showing a partial configuration of the buffer storage, FIG. 3 is a time chart during data fetch, and FIG. 4 Figures 6 to 6 are diagrams explaining the alignment during fetish, and Figure 4 is for Rj8.
Figure 5 is a diagram explaining RjM, Figure 6 is a diagram explaining RjM.
The figure is a diagram explaining Lj, FIG. 7 is a diagram showing one embodiment of the shift amount instruction signal generation circuit used in the present invention, and FIG. Figures 9 to 11 show the relationships between Rj8, RjM, and RjM at the time of storage, respectively.
For explaining Lj, FIG. 9 is a diagram showing a specific example of Rj8, FIG. 10 is a diagram showing a specific example of RjM,
FIG. 11 is a diagram showing a specific example of Lj. 1...Effective address register, 2...Buffer memory, 3...Fetch align circuit, 4...
Fetch data register, 5...Store align circuit, 6...Write register, 7 to 9...
...OR circuit, 10...3-bit adder, 11...
decoder.

Claims (1)

【特許請求の範囲】 1 指定された読出し開始アドレスから8バイト
のデータをメモリより読出し、読出された8バイ
トのデータを上記読出し開始アドレスとメモリ参
照バイト長とアライン指示情報に従つて、アライ
ン回路によりアラインして8バイトのフエツチ・
データ・レジスタにセツトする場合、又は8バイ
トの書込データを書込開始アドレスとメモリ参照
バイト長とアライン指示情報に従つてアライン回
路によりアラインして8バイトの書込レジスタに
セツトする場合に用いられるアライン制御方式で
あつて、 アライン指示情報と3ビツトのメモリ参照バイ
ト長が入力されると共に3ビツトのデータを出力
するデータ変換手段と、該データ変換手段の出力
する3ビツトとメモリ・アクセス・アドレスの最
下位3ビツトとを加算する加算器と、該加算器の
出力をデコードするデコーダと、該デコーダの出
力をシフト量指示信号として上記アライン回路に
送る手段とを設け、 且つ上記データ変換手段を、 アライン指示情報が、読出し開始アドレスのデ
ータを含めたメモリ参照バイト長で指示されたバ
イト長のデータを上記フエツチ・データ・レジス
タに右詰めでセツトすること、又は上記8バイト
の書込データの中の右からメモリ参照バイト長で
指示されたバイト長のデータが有効であることを
指定している場合には、メモリ参照バイト長を表
す3ビツトを出力し、 上記アライン指示情報が、読出し開始アドレス
を含めメモリ参照バイト長で指示されたバイト長
のデータを上記フエツチ・データ・レジスタの第
3バイト位置を限界としてセツトすること、又は
書込データの第3バイト位置のデータを含め左半
部に存在するメモリ参照バイト長で指示されたバ
イト長のデータが有効であることを指定している
場合には、メモリ参照バイト長を示す3ビツトの
内の最上位ビツトを強制的に論理「1」にしたも
のを出力し、 上記アライン指示情報が、読出し開始アドレス
のデータを含めメモリ参照バイト長で指示された
バイト長のデータを上記フエツチ・データ・レジ
スタに左詰めでセツトすること、又は上記書込デ
ータの中の左からメモリ参照バイト長で指定され
たバイト長のデータが有効であることを指定して
いる場合には、「111」なるデータを出力するよう
に構成したこと を特徴とするアライン制御方式。
[Scope of Claims] 1. 8-byte data is read from the memory from a specified read-out start address, and the read-out 8-byte data is sent to an align circuit according to the read-out start address, memory reference byte length, and alignment instruction information. 8-byte fetish aligned by
Used when setting the 8-byte write data in the data register, or when aligning the 8-byte write data using the align circuit according to the write start address, memory reference byte length, and alignment instruction information and setting it in the 8-byte write register. This is an alignment control method that inputs alignment instruction information and a 3-bit memory reference byte length, and a data conversion means that outputs 3-bit data, and the 3-bit output from the data conversion means and a memory access an adder for adding the lowest three bits of the address; a decoder for decoding the output of the adder; and means for sending the output of the decoder as a shift amount instruction signal to the align circuit, and the data conversion means. The alignment instruction information sets the data of the byte length specified by the memory reference byte length including the data of the read start address in the above fetch data register in a right-aligned manner, or the 8-byte write data of the above If the data of the byte length indicated by the memory reference byte length from the right in Set the data of the byte length specified by the memory reference byte length including the start address, with the third byte position of the fetch data register as the limit, or set the data of the left half including the data of the third byte position of the write data. If the data of the byte length indicated by the memory reference byte length existing in the memory reference byte length is specified to be valid, the most significant bit of the 3 bits indicating the memory reference byte length is forcibly set to a logical value. 1", and the alignment instruction information sets the data of the byte length specified by the memory reference byte length, including the data of the read start address, in the fetch data register in a left-justified manner, or The feature is that if the data of the byte length specified by the memory reference byte length from the left in the write data is specified as valid, the data "111" is output. Align control method.
JP3953781A 1981-03-20 1981-03-20 Alignment controlling system Granted JPS57155644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3953781A JPS57155644A (en) 1981-03-20 1981-03-20 Alignment controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3953781A JPS57155644A (en) 1981-03-20 1981-03-20 Alignment controlling system

Publications (2)

Publication Number Publication Date
JPS57155644A JPS57155644A (en) 1982-09-25
JPS622333B2 true JPS622333B2 (en) 1987-01-19

Family

ID=12555795

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3953781A Granted JPS57155644A (en) 1981-03-20 1981-03-20 Alignment controlling system

Country Status (1)

Country Link
JP (1) JPS57155644A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04197027A (en) * 1990-11-27 1992-07-16 Nec Shizuoka Ltd Battery/ac adapter power source supply device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5394133A (en) * 1977-01-28 1978-08-17 Hitachi Ltd Data converter
JPS5597642A (en) * 1979-01-19 1980-07-25 Hitachi Ltd Data processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5394133A (en) * 1977-01-28 1978-08-17 Hitachi Ltd Data converter
JPS5597642A (en) * 1979-01-19 1980-07-25 Hitachi Ltd Data processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04197027A (en) * 1990-11-27 1992-07-16 Nec Shizuoka Ltd Battery/ac adapter power source supply device

Also Published As

Publication number Publication date
JPS57155644A (en) 1982-09-25

Similar Documents

Publication Publication Date Title
US5602780A (en) Serial to parallel and parallel to serial architecture for a RAM based FIFO memory
US4374410A (en) Data processing system
JPH04107070A (en) Encoding and decoding device
JPS6069746A (en) Control system of vector data processor
KR850002617A (en) Microcomputer Memory Paging System
JPS622333B2 (en)
US6038692A (en) Error correcting memory system
JP3931593B2 (en) Data writing circuit
KR100243185B1 (en) Data communication system between processors using shared memory
KR20040019940A (en) Access circuit
JPS6362083A (en) Projection data generation system
JPS6048828B2 (en) Memory addressing method
KR900001530Y1 (en) Data transfer circuit between font rom and character generating ram
JP3340449B2 (en) Line memory circuit and data storage method
JPH0773140A (en) Circuit structure of shared register and its data transmission method
JPS6027971A (en) Expanding method of address space
JPH0344748A (en) Read control system for memory data
JPS646490B2 (en)
JPS59117375A (en) Mh coding system
JPH04195895A (en) Ic memory
JPS6029785A (en) Memory
JPH05334179A (en) Memory integrated circuit
JPS617769A (en) Image memory write control system
JPH07202635A (en) Digital signal processor
JPH01316849A (en) Cache memory device