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
JPH07120259B2 - Data processing device - Google Patents
[go: Go Back, main page]

JPH07120259B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JPH07120259B2
JPH07120259B2 JP62044290A JP4429087A JPH07120259B2 JP H07120259 B2 JPH07120259 B2 JP H07120259B2 JP 62044290 A JP62044290 A JP 62044290A JP 4429087 A JP4429087 A JP 4429087A JP H07120259 B2 JPH07120259 B2 JP H07120259B2
Authority
JP
Japan
Prior art keywords
register
data
type mos
bit
source
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
JP62044290A
Other languages
Japanese (ja)
Other versions
JPS63208935A (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.)
NEC Corp
Original Assignee
NEC Corp
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 filed Critical NEC Corp
Priority to JP62044290A priority Critical patent/JPH07120259B2/en
Publication of JPS63208935A publication Critical patent/JPS63208935A/en
Publication of JPH07120259B2 publication Critical patent/JPH07120259B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はビットバウンダリによるデータ転送を行なうデ
ータ処理装置に関する。
TECHNICAL FIELD The present invention relates to a data processing device for performing data transfer by bit boundary.

〔従来の技術〕[Conventional technology]

第8図はデータバス上、あるいはレジスタ内の任意のビ
ット長データをデータバス幅と同一ビット長のレジスタ
へ転送する場合の例を示す図である。
FIG. 8 is a diagram showing an example in the case of transferring arbitrary bit length data on the data bus or in the register to a register having the same bit length as the data bus width.

レジスタ(ソースレジスタ)11とレジスタ(ディスティ
ネーションレジスタ)12は同一ビット長のレジスタであ
って、そこにはそれぞれデータAとB,データCとDが格
納されている(第8図(1),(2))。この状態でレ
ジスタ11中のデータAのみをレジスタ12へ転送し、レジ
スタ12には最終的にデータAとDを格納するものとす
る。まず、レジスタ11のデータA,Bを保存するため、デ
ータA,Bを他のレジスタに退避させる。次に、レジスタ1
1のA以外のデータを“0"にし、レジスタ12のD以外の
データを“0"にする(第8図(3),(4))。その後
レジスタ11,12の論理和をとり、結果をレジスタ12に格
納する(第8図(5))。
The register (source register) 11 and the register (destination register) 12 are registers having the same bit length, and data A and B and data C and D are stored therein (FIG. 8 (1), (2)). In this state, only the data A in the register 11 is transferred to the register 12, and the data A and D are finally stored in the register 12. First, in order to save the data A and B in the register 11, the data A and B are saved in another register. Then register 1
Data other than A of 1 is set to "0", and data other than D of the register 12 is set to "0" ((3) and (4) in FIG. 8). After that, the logical sum of the registers 11 and 12 is calculated and the result is stored in the register 12 ((5) in FIG. 8).

第9図および第10図はワードバウンダリをまたがってデ
ータ転送する場合の例を示す図である。ソーレジスタで
あるレジスタaのデータのうち下位側11ビットをメモリ
(n,n+1)の上位側に、ソースレジスタaのデータの
うち上位側5ビットをメモリ(n+2,n+3)の下位側
に第9図に示されるようにそれぞれ書込む場合について
第10図に従って説明する(ここでメモリ(n,n+1)は
n番地とn+1番地のデータで構成される1つのデータ
を意味する)。
FIG. 9 and FIG. 10 are diagrams showing an example of a case where data is transferred across word boundaries. The lower 11 bits of the data in the register a, which is a saw register, are placed in the upper side of the memory (n, n + 1), and the upper 5 bits of the data in the source register a are placed in the lower side of the memory (n + 2, n + 3). As shown in the figure, the case of writing each will be described with reference to FIG. 10 (here, the memory (n, n + 1) means one data composed of data at addresses n and n + 1).

(1)レジスタaのデータをレジスタbに転送する。(1) Transfer the data in register a to register b.

(2)メモリ(n,n+1)からデータを読出し、レジス
タcに転送する。
(2) Read data from the memory (n, n + 1) and transfer it to the register c.

(3)レジスタbのデータを左へ5ビットシフトする。(3) The data in register b is shifted to the left by 5 bits.

(4)レジスタbの下位5ビットを“0"にする。(4) Set the lower 5 bits of register b to "0".

(5)レジスタcの上位11ビットを“0"にする。(5) The upper 11 bits of register c are set to "0".

(6)レジスタbのデータとレジスタcのデータとの論
理和をとりレジスタcに格納する。
(6) The logical sum of the data in register b and the data in register c is calculated and stored in register c.

(7)レジスタcのデータをメモリ(n,n+1)に書込
む。
(7) Write the data in register c to memory (n, n + 1).

(8)レジスタaのデータをレジスタbに転送する。(8) Transfer the data in register a to register b.

(9)メモリ(n+2,n+3)からデータを読出し、レ
ジスタcへ転送する。
(9) Read data from the memory (n + 2, n + 3) and transfer it to the register c.

(10)レジスタbのデータを右へ11ビットシフトする。(10) Shift the data in register b to the right by 11 bits.

(11)レジスタbの上位11ビットを“0"にする。(11) Set the upper 11 bits of register b to "0".

(12)レジスタcの下位5ビットを“0"にする。(12) Set the lower 5 bits of register c to "0".

(13)レジスタbのデータとレジスタcのデータとの倫
理和をとり、レジスタcに格納する。
(13) The ethics of the data in register b and the data in register c is calculated and stored in register c.

(14)レジスタcのデータをメモリ(n+2,n+3)に
書込む。
(14) Write the data in register c to memory (n + 2, n + 3).

このようにワードバウンダリによるデータ転送方式では
14ステップも必要となる。
In this way, in the data transfer method by word boundary
It also requires 14 steps.

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

上述した従来のデータ転送方式では、まず、不要なデー
タをすべて“0"にし、かつアキュムレータ等を用いて論
理和をとり、さらにその結果をレジスタに格納しなけれ
ばならず、また、データを保存する場合は他のレジスタ
に退避しなければならないなど、手続きが繁雑で、その
ために、データ処理ステップが多くなり、実行速度が低
下するという欠点がある。
In the conventional data transfer method described above, first, all unnecessary data must be set to "0", the logical sum must be calculated using an accumulator, and the result must be stored in a register. If this is the case, the procedure is complicated, such as having to save to another register, resulting in the disadvantage that the number of data processing steps increases and the execution speed decreases.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のデータ処理装置は、ソースレジスタからディス
ティネーションレジスタに転送されるデータの転送境界
のビット位置情報であるビットバウンダリを保持してい
るビットバウンダリレジスタと、前記データを構成する
各ビットのうち、ビットバウンダリより上位あるいは下
位に該当するビットを選択する方向制御手段を有し、ラ
イト信号を入力したとき方向手段により選択されたビッ
トバウンダリの上位あるいは下位のデータのビットのみ
ソースレジスタからディスティネーションレジスタに書
込ませるデータ転送制御回路とを有する。
The data processing device of the present invention includes a bit boundary register that holds a bit boundary that is bit position information of a transfer boundary of data transferred from a source register to a destination register, and among each bit that configures the data, It has a direction control means to select the bit corresponding to the upper or lower bits of the bit boundary, and when the write signal is input, only the upper or lower bits of the data of the bit boundary selected by the direction means are transferred from the source register to the destination register. And a data transfer control circuit for writing.

〔作用〕[Action]

このように、ビットバウンダリレジスタにより指示され
るビットバウンダリに基づいて方向制御手段により選択
されたビットバウンダリより上位あるいは下位のデータ
のビットのみソースレジスタからディスティネーション
レジスタにデータ転送制御回路がデータを書込み可能と
しているので、ソースレジスタ,ディスティネーション
レジスタの各ビット中データ転送上不要なビットをクリ
アする必要がなくなり、クリアする必要がないことか
ら、ソースレジスタのデータをそのまま残しておきたい
場合も他のレジスタに退避する必要もなく、その分少い
ステップ数でデータ転送処理ができるので、実行時間の
かかるバイトバウンダリ、ワードバウンダリをまたぐデ
ータの転送を高速に実行することが可能になる。
In this way, the data transfer control circuit can write data from the source register to the destination register only for the bits of data higher or lower than the bit boundary selected by the direction control means based on the bit boundary indicated by the bit boundary register. Therefore, it is not necessary to clear the unnecessary bits for data transfer in each bit of the source register and the destination register, and it is not necessary to clear them. Therefore, if you want to keep the data of the source register as it is, Since it is not necessary to save the data in the data transfer process and the data transfer process can be performed in a small number of steps, it is possible to perform the data transfer at a high speed at a byte boundary or a word boundary, which requires a long execution time.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のデータ処理装置のビットバウンダリに
よるデータ転送を行なう場合の一実施例を示すブロック
図である。
FIG. 1 is a block diagram showing an embodiment in the case of performing data transfer by a bit boundary of the data processing device of the present invention.

本実施例は、16ビット長のソースレジスタ1とビットバ
ウンダリ情報を保持しているビットバウンダリレジスタ
3と、ソースレジスタ1のデータを入力する16ビット長
のディスティネーションレジスタ2と、ビットバウンダ
リ情報をビットバウンダリレジスタ3より入力し、その
ビットバウンダリ情報に該当する、ディスティネーショ
ンレジスタ2の所定ビットより上位側あるいは下位側の
ビットにのみ、入力したライト信号を出力し、そのビッ
トに対応するソースレジスタ1のデータをディスティネ
ーションレジスタ2に書込むデータ転送制御回路4とか
ら構成されている。
In this embodiment, a 16-bit length source register 1 and a bit-boundary register 3 that holds bit boundary information, a 16-bit length destination register 2 that inputs the data of the source register 1, and a bit-boundary information bit The write signal that is input from the boundary register 3 and that corresponds to the bit boundary information and that is higher or lower than the predetermined bit of the destination register 2 is output, and the input write signal of the source register 1 corresponding to that bit is output. The data transfer control circuit 4 writes data in the destination register 2.

第2図は第1図のデータ転送制御回路4とMOS型トラン
ジスタを主体に実現した具体例とその外部への接続状態
を示す回路図であり、第3図はその動作を示す波形図で
ある。
FIG. 2 is a circuit diagram showing a concrete example mainly implemented by the data transfer control circuit 4 and the MOS type transistor of FIG. 1 and a connection state to the outside, and FIG. 3 is a waveform diagram showing its operation. .

このデータ転送制御回路4は、ゲートが基本クロックφ
1を入力し、ソースがアースに接続されているN型MOS
トランジスタ96,100,101,〜,115と、入力端がビットバ
ウンダリレジスタ3の出力端Q0,Q1,〜,Q3にそれぞれ接
続されているインバータ90,91,〜,93と、ゲートがイン
バータ93の出力端に接続され、ソースがN型MOSトラン
ジスタ100,101,〜,107のドレインにそれぞれ接続された
N型MOSトランジスタ200,201,〜,207と、ゲートがイン
バータ93の入力端に接続され、ソースがN型MOSトラン
ジスタ108,109,〜,115のドレインにそれぞれ接続された
N型MOSトランジスタ208,209,〜,215と、ゲートがイン
バータ92の出力端に接続され、ソースがN型MOSトラン
ジスタ200,201,202,203,208,209,210,211のドレインに
それぞれ接続されたN型MOSトランジスタ300,301,302,3
03,308,309,310,311と、ゲートがインバータ92の入力端
に接続され、ソースがN型がN型MOSトランジスタ204,2
05.206.207,212,213,214,215のドレインにそれぞれ接続
されたN型MOSトランジスタ304,305,306,307,312,313,3
14,315と、ゲートがインバータ91の出力端に接続され、
ソースがN型MOSトランジスタ300,301,304,305,308,30
9,312,313のドレインにそれぞれ接続されたN型MOSトラ
ンジスタ400,401,404,405,408,409,412,413と、ゲート
がインバータ91の入力端に接続され、ソースがN型MOS
トランジスタ302,303,306,307,310,311,314,315のドレ
インにそれぞれ接続されたN型MOSトランジスタ402,40
3,406,407,410,411,414,415と、ゲートがインバータ90
の出力端に接続され、ソースがN型MOSトランジスタ40
0,402,404,406,408,410,412,414のドレインにそれぞれ
接続されたN型MOSトランジスタ500,502,504,506,508,5
10,512,514と、ゲートがインバータ90の入力端に接続さ
れ、ソースがN型MOSトランジスタ401,403,405,407,40
9,411,413,415のドレインにそれぞれ接続されたN型MOS
トランジスタ501,503,505,507,509,511,513,515と、N
型MOSトランジスタ500,501,〜,515のドレインにそれぞ
れ接続された制御線C0,C1,〜,C15と、ゲートが制御線C
0,C1,〜,C15にそれぞれ接続され、ソースがそれぞれ点P
0,P1,〜,P15にドレインがそれぞれ点P1,P2,〜,P
16に接続されたN型MOSトランジスタ600,601,〜,615
と、ゲートが基本クロックφ1を入力し、ソースが電源
VCCに接続され、ドレインがそれぞれ制御線C0,C1,〜,C1
5に接続されたP型MOSトランジスタ700,701,〜,715と、
ゲートが基本クロックφ1を入力し、ソースが電源VCC
に接続され、ドレインが点P0とN型MOSトランジスタの
ドレインとに接続されたP型トランジスタ98と、点P1
P2,〜,P16にそれぞれ接続された制御線M0,M1,〜,M15
と、一方の入力端にライト信号▲▼を入力し、他方
の入力端がそれぞれ制御線M0,M1,〜,M15に接続されたオ
ア回路800,801,〜,815とで構成されている。
In the data transfer control circuit 4, the gate is the basic clock φ.
N-type MOS that inputs 1 and has its source connected to ground
Transistors 96, 100, 101, ..., 115, inverters 90, 91, ..., 93 whose input terminals are connected to output terminals Q0, Q1, ..., Q3 of bit boundary register 3 respectively, and a gate connected to the output terminal of inverter 93 The sources are connected to the drains of the N-type MOS transistors 100, 101, to 107, respectively, and the gates are connected to the input terminals of the inverter 93, and the sources are connected to the N-type MOS transistors 108 and 109. N-type MOS transistors 208, 209, ..., 215 respectively connected to the drains of ~, 115, and a N-type MOS transistor whose gate is connected to the output terminal of the inverter 92 and whose source is connected to the drains of the N-type MOS transistors 200, 201, 202, 203, 208, 209, 210, 211, respectively. 300,301,302,3
03,308,309,310,311 and the gate are connected to the input terminal of the inverter 92, the source is N-type is N-type MOS transistor 204,2
05.206.207,212,213,214,215 N-type MOS transistors 304,305,306,307,312,313,3 respectively connected to the drain
14,315, the gate is connected to the output terminal of the inverter 91,
Source is N-type MOS transistor 300,301,304,305,308,30
N-type MOS transistors 400, 401, 404, 405, 408, 409, 412, 413 respectively connected to the drains of 9,312, 313, and a gate connected to the input terminal of the inverter 91 and a source connected to the N-type MOS
N-type MOS transistors 402, 40 connected to the drains of the transistors 302, 303, 306, 307, 310, 311, 314, 315, respectively.
3,406,407,410,411,414,415 and the gate is an inverter 90
Connected to the output terminal of the N-type MOS transistor 40
N-type MOS transistors 500, 502, 504, 506, 508, 5 respectively connected to the drains of 0, 402, 404, 406, 408, 410, 412, 414
10,512,514 and the gate are connected to the input terminal of the inverter 90, and the sources are N-type MOS transistors 401,403,405,407,40
N-type MOS connected to the drains of 9,411,413,415 respectively
Transistors 501,503,505,507,509,511,513,515 and N
Type MOS transistors 500, 501, ~, 515 control lines C0, C1, ~, C15 respectively connected to the drain and the gate is control line C
0, C1, ..., C15 are connected respectively, and the sources are connected to point P.
The drains are at points P 1 , P 2 , ~, P at 0 , P 1 , ~, P 15 , respectively.
N-type MOS transistor connected to 16 600,601, ~, 615
, The gate inputs the basic clock φ1, and the source is the power supply.
Connected to V CC and the drains are control lines C0, C1, ..., C1 respectively.
P-type MOS transistors 700, 701 to, 715 connected to 5, and
The gate inputs the basic clock φ1, the source is the power supply V CC
A P-type transistor 98 connected to the point P 0 and the drain of the N-type MOS transistor, and a point P 1 ,
P 2, ~, control lines M0 respectively connected to P 16, M1, ~, M15
And a write signal ▲ ▼ is input to one input terminal, and the other input terminal is composed of OR circuits 800, 801, to 815 connected to the control lines M0, M1, to M15, respectively.

そしてこのデータ転送制御回路4のオア回路800,801,
〜,815の出力はそれぞれディスティネーションレジスタ
2を構成しているレジスタセルB0,B1,〜,B15に出力され
る。
The OR circuit 800, 801, of the data transfer control circuit 4
The outputs of ˜, 815 are output to the register cells B0, B1, ˜, B15 forming the destination register 2, respectively.

各レジスタセルB0,B1,〜,B15は、ゲートがオア回路800,
801,〜,815の出力をそれぞれ入力し、ソースが各レジス
タセルB0,B1,〜,B15の対応するソースレジスタ1のビッ
トのデータを入力するP型MOSトランジスタQPと、ゲー
トとドレインがそれぞれP型MOSトランジスタQPのゲー
トとドレインに接続されたN型MOSトランジスタQNと、
入力端がP型MOSトランジスタQPのドレインに接続され
たインバータIと、入力端がインバータIの出力端に、
出力端がN型MOSトランジスタQNのソースに接続された
インバータJとを有している。
The gates of the register cells B0, B1, ..., B15 are OR circuits 800,
The P-type MOS transistor Q P for inputting the outputs of 801, ..., 815 and the source for inputting the bit data of the corresponding source register 1 of each register cell B0, B1, ..., B15, the gate and the drain, respectively. An N-type MOS transistor Q N connected to the gate and drain of the P-type MOS transistor Q P ,
An input terminal is connected to the drain of the P-type MOS transistor Q P and an input terminal is connected to the output terminal of the inverter I.
It has an inverter J whose output end is connected to the source of the N-type MOS transistor Q N.

次に、本実施例の動作を第3図により説明する。Next, the operation of this embodiment will be described with reference to FIG.

基本クロックφ1が“0"である時は、N型MOSトランジ
スタ96,100,101,〜,115はオフでありP型MOSトランジス
タ98,700,701,〜,715はオンである。したがって、点P0
はP型MOSトランジスタ98を介して電源VCCと接続され、
N型MOSトランジスタ600,601,〜,615の各ゲートもP型M
OSトランジスタ700,701,〜,715を介して電源VCCに接続
されるので信号線Xはプリチャージされる。また、基本
クロックφ1が“0"レベルの期間はレジスタセルB0,B1,
〜,B15への書込みは禁止されている。
When the basic clock φ1 is "0", the N-type MOS transistors 96, 100, 101, ..., 115 are off and the P-type MOS transistors 98, 700, 701, ..., 715 are on. Therefore, the point P 0
Is connected to the power supply V CC through the P-type MOS transistor 98,
The gates of N-type MOS transistors 600, 601, to 615 are also P-type M
The signal line X is precharged because it is connected to the power supply V CC through the OS transistors 700, 701 to 715. Further, while the basic clock φ1 is at "0" level, the register cells B0, B1,
Writing to ~, B15 is prohibited.

次に、基本クロックφ1が“1"レベルになると、ビット
バウンダリレジスタ3は設定された出力を出力端Q0,Q1,
Q2,Q3に出力する(本具体例では出力端Q0,Q1,Q2,Q3の出
力レベルはそれぞれ“1",“0",“0",“1"レベルとす
る)。出力端Q0が“1"レベルであると、N型MOSトラン
ジスタ501,503,505,507,509,511,513,515がオンし、N
型MOSトランジスタ500,502,504,506,508,510,512,514が
オフする。出力端Q1が“0"レベルであると、N型MOSト
ランジスタ400,401,404,405,408,409,412,413はオン
し、N型MOSトランジスタ402,403,406,407,410,411,,41
4,415はオフする。同様に、出力端Q2,Q3の出力レベルに
よってN型MOSトランジスタ200,201,〜,215,300,301,
〜,315のオン/オフが設定される。また、基本クロック
φ1は“1"レベルであるからN型MOSトランジスタ96,10
0,101,〜,115はオンし、P型MOSトランジスタ98,700,70
1,〜,715はオフしている。この場合各制御線C0,C1,〜,C
15とアース間に接続されたN型MOSトランジスタ100,10
1,〜,515が全部オンとなっているのは制御線C9とアース
間のN型MOSトランジスタ109,209,309,409,509である。
このため、制御線C9のみ“0"レベルとなる。制御線C9が
“0"レベルであるとN型MOSトランジスタ609はオフす
る。N型MOSトランジスタ609はオフしているため制御線
Xの点P10,P11,〜,P16はプリチャージされた電位
“1"レベルを保持し、点P0,P1,〜,P9はオンしている
N型MOSトランジスタ96を介してアースに接続されてい
るので“0"レベルとなる。一方入力端が制御線M9,M10,
〜,M15を介して“1"レベルの点P10,P11,〜,P16にそ
れぞれ接続されているオア回路809,810,〜,815は、他の
入力端に入力するライト信号WRの出力を禁止する。しか
し、オア回路800,801,〜,808は一方の入力端が制御線M
0,M1,〜,M8を介して“0"レベルの点P1,P2,〜,P9にそ
れぞれ接続されているので他方の入力端に入力するライ
ト信号WRを出力する。したがって、オア回路809,810,
〜,815により書込み禁止とされたディスティネーション
レジスタ2のレジスタセルB9,B10,〜,B15にソースレジ
スタ1からのデータD9,D10,〜,D15は書込まれないが、
オア回路800,801,〜,808によりライト信号を入力したレ
ジスタセルB0,B1,〜,B8にはソースレジスタ1からのデ
ータD0,D1,〜,D8が書込まれる。このように、本具体例
においてはビットバウンダリレジスタ3で指定したビッ
トバウンダリに基づき、ディスティネーションレジスタ
2の該当するレジスタおよびそのレジスタセルより下位
のビットに対応するレジスタセルにのみデータ書込み可
能とし、他のレジスタセルへのデータ書込みは禁止して
いる。
Next, when the basic clock φ1 becomes "1" level, the bit boundary register 3 outputs the set output to the output terminals Q0, Q1,
Output to Q2 and Q3 (in this specific example, the output levels of the output terminals Q0, Q1, Q2, and Q3 are "1", "0", "0", and "1" levels, respectively). When the output terminal Q0 is at "1" level, the N-type MOS transistors 501, 503, 505, 507, 509, 511, 513, 515 turn on, and N
Type MOS transistors 500, 502, 504, 506, 508, 510, 512, 514 are turned off. When the output terminal Q1 is at "0" level, the N-type MOS transistors 400, 401, 404, 405, 408, 409, 412, 413 turn on, and the N-type MOS transistors 402, 403, 406, 407, 410, 411, 41.
4,415 turns off. Similarly, depending on the output levels of the output terminals Q2 and Q3, N-type MOS transistors 200, 201, to 215, 300, 301,
~, 315 on / off is set. Further, since the basic clock φ1 is at "1" level, the N-type MOS transistors 96, 10
0,101, to 115 are turned on, and P-type MOS transistors 98,700,70
1, ~, 715 are off. In this case, each control line C0, C1, ..., C
N-type MOS transistor 100,10 connected between 15 and ground
It is the N-type MOS transistors 109, 209, 309, 409, 509 between the control line C9 and ground that all 1, to 515 are turned on.
Therefore, only the control line C9 becomes the "0" level. When the control line C9 is at "0" level, the N-type MOS transistor 609 is turned off. Since the N-type MOS transistor 609 is off, points P 10 , P 11 , ~, P 16 of the control line X hold the precharged potential "1" level, and points P 0 , P 1 , ~, P Since 9 is connected to the ground through the N-type MOS transistor 96 which is turned on, it becomes "0" level. On the other hand, the input terminal is the control line M9, M10,
The OR circuits 809, 810, ~, 815 connected to the "1" level points P 10 , P 11 , ~, P 16 via ~, M15 respectively output the write signal WR input to the other input terminals. Ban. However, one of the input terminals of the OR circuits 800, 801, to 808 has a control line M.
0, M1, ~, through M8 "0" level points P 1, P 2, ~, and outputs a write signal WR to input because it is connected to P 9 to the other input terminal. Therefore, the OR circuit 809,810,
Although the data D9, D10, ~, D15 from the source register 1 is not written to the register cells B9, B10, ~, B15 of the destination register 2 which are write-protected by ~, 815,
The data D0, D1, ..., D8 from the source register 1 is written in the register cells B0, B1, ..., B8 to which the write signals are input by the OR circuits 800, 801, ..., 808. As described above, in this specific example, based on the bit boundary specified by the bit boundary register 3, data can be written only to the corresponding register of the destination register 2 and the register cell corresponding to the bit lower than the register cell, Writing data to the register cell is prohibited.

第4図はデータ書込みを模式的に示す図である。ソース
レジスタ1のデータA,Bとディスティネーションレジス
タ2のデータC,DよりデータC,Bを作るのには、本具体例
の処理に従って単純にソースレジスタ1のデータA,Bを
ディスティネーションレジスタ2に書込めばディスティ
ネーションレジスタ2にデータC,Bが得られる。
FIG. 4 is a diagram schematically showing data writing. In order to create the data C, B from the data A, B of the source register 1 and the data C, D of the destination register 2, simply the data A, B of the source register 1 is processed according to the processing of this specific example. If it is written in, the data C and B can be obtained in the destination register 2.

第5図は第1図の実施例の第2の具体例である。第1の
具体例では所定ビットより下位のビットに対応するレジ
スタセルにのみ書込み可能であったが、本具体例では所
定ビットより下位または上位を選択できるような手段を
有する。したがって説明はこの選択手段を中心に説明
し、他の部分は第1の具体例と同様なので詳細な説明は
省略する。
FIG. 5 shows a second specific example of the embodiment shown in FIG. In the first specific example, only the register cells corresponding to the bits lower than the predetermined bit can be written, but this specific example has means for selecting the lower or higher bits than the predetermined bit. Therefore, the description will be focused on this selecting means, and the other parts are similar to those of the first specific example, and detailed description thereof will be omitted.

この選択手段は方向制御信号DIRを入力するインバータ9
4と、ゲートがインバータ94の入力端に、ドレインが点P
16に、ソースがアースにそれぞれ接続されたN型MOSト
ランジスタ95と、ゲートがインバータ94の出力端に、ド
レインが点P0に、ソースがN型MOSトランジスタ96のド
レインにそれぞれ接続されたN型MOSトランジスタ97と
で構成されている。
This selecting means is an inverter 9 for inputting the direction control signal DIR.
4, the gate is the input terminal of the inverter 94, and the drain is the point P.
16 , an N-type MOS transistor 95 whose source is connected to the ground, and an N-type MOS transistor whose gate is connected to the output terminal of the inverter 94, whose drain is connected to the point P 0 , and whose source is connected to the drain of the N-type MOS transistor 96, respectively. It is composed of a MOS transistor 97.

したがって、例えば第1の具体例で説明した場合のよう
に、制御線C9が選択され“0"レベルになったとき、方向
制御信号DIRが“0"レベルであればN型MOSトランジスタ
95はオフ、N型MOSトランジスタ97はオンであるから第
1の具体例とまったく同じでありディスティネーション
レジスタ2のレジスタセルB0,B1,〜,B8にのみ書込み可
能となる。しかし、方向制御信号DIRが“1"レベルであ
るとN型MOSトランジスタがオン、N型MOSトランジスタ
97がオフとなるため点P1,P2,〜,P9の“1"レベルは保
持され、点P10,P11,〜,P16はN型MOSトランジスタ95
を介してアースに接続されるため“0"レベルとなる。一
方の入力端が“1"レベルの点P1,P2,〜,P9に接続され
たオア回路800,801,〜,808は他の入力端に入力するライ
ト信号WRの出力を禁止する。一方の入力端が“0"レベル
の点P10,P11,〜,P16に接続されたオア回路809,810,
〜,815はライト信号WRを出力する。ライト信号WRを入力
するディスティネーションレジスタ2のレジスタセルB
9,B10,〜,B15にのみ書込み可能となり、レジスタセルB
0,B1,〜,B8への書込みは禁止される。
Therefore, as in the case described in the first specific example, if the direction control signal DIR is "0" level when the control line C9 is selected and becomes "0" level, the N-type MOS transistor
Since 95 is off and the N-type MOS transistor 97 is on, it is exactly the same as in the first embodiment, and only the register cells B0, B1, ..., B8 of the destination register 2 can be written. However, when the direction control signal DIR is at "1" level, the N-type MOS transistor is turned on and the N-type MOS transistor is turned on.
97 the point P 1 to become OFF, P 2, ~, "1 " level of the P 9 is held, the point P 10, P 11, ~, P 16 is N-type MOS transistor 95
Since it is connected to the ground via, it becomes "0" level. One input terminal is "1" level points P 1, P 2, ~, OR circuits 800 and 801 connected to the P 9, ~, 808 prohibits the output of the write signal WR to input to the other input terminal. The OR circuit 809,810, whose one input terminal is connected to the points P 10 , P 11 , ..., P 16 at the "0" level
~, 815 outputs the write signal WR. Register cell B of destination register 2 to which write signal WR is input
Only 9, B10, to, B15 can be written, and register cell B
Writing to 0, B1, to, B8 is prohibited.

第6図は模式的に示す図である。ソースレジスタ1のデ
ータA,Bとディスティネーションレジスタ2のデータC,D
とからデータC,Bを得るには方向制御信号DIRを“0"レベ
ルとし、データA,Dを得るには方向制御信号DIRを“1"レ
ベルとしてデータ処理を行えば、ディスティネーション
レジスタ2にデータC,BあるいはデータA,Dがそれぞれ得
られる。
FIG. 6 is a diagram schematically showing. Source register 1 data A and B and destination register 2 data C and D
To obtain the data C and B, the direction control signal DIR is set to "0" level, and to obtain the data A and D, the direction control signal DIR is set to "1" level. Data C and B or data A and D are obtained, respectively.

第7図は、第9,10図で説明したデータ処理に第2の具体
例を適用した場合を示す説明図である。
FIG. 7 is an explanatory diagram showing a case where the second specific example is applied to the data processing described in FIGS.

(1)レジスタaのデータをレジスタbに転送する。(1) Transfer the data in register a to register b.

(2)メモリ(n,n+1)からデータを読出し、ディス
ティネーションレジスタであるレジスタcに転送する。
(2) Read data from the memory (n, n + 1) and transfer it to the destination register c.

(3)レジスタbのデータを左へ5ビットローテイトす
る。
(3) Rotate the data in register b to the left by 5 bits.

(4)ビットバウンダリを5ビット目と6ビット目の間
として、方向制御信号DIRを“1"として5ビット目以下
のデータは書込み禁止としてレジスタbのデータをレジ
スタcにデータ転送制御回路4を介して書込む。
(4) The bit boundary is set between the 5th bit and the 6th bit, the direction control signal DIR is set to "1", and the data of the 5th bit and below is write-inhibited. Write through.

(5)レジスタcのデータをメモリ(n,n+1)に書込
む。
(5) Write the data in register c to memory (n, n + 1).

(6)メモリ(n+2,n+3)のデータを読出し、レジ
スタcに転送する。
(6) Read the data in the memory (n + 2, n + 3) and transfer it to the register c.

(7)方向制御信号DIRを“0"として、レジスタbのデ
ータをレジスタcにデータ転送制御回路4を介して書込
む。
(7) The direction control signal DIR is set to "0", and the data in the register b is written into the register c via the data transfer control circuit 4.

(8)レジスタcのデータをメモリ(n+2,n+3)に
書込む。
(8) Write the data in register c to memory (n + 2, n + 3).

このように従来14ステップ要したものを8ステップで実
行できる。
In this way, it is possible to execute what has conventionally required 14 steps in 8 steps.

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

以上説明したように本発明は、ビットバウンダリレジス
タにより指示されるビットバウンダリに基づいて方向制
御手段により選択されたビットバウンダリより上位ある
いは下位のデータのビットのみソースレジスタからディ
スティネーションレジスタに書込ませることにより、実
行時間のかかるバイトバウンダリ、ワードバウンダリを
またぐデータの転送を高速に実行することが可能になる
効果がある。
As described above, according to the present invention, only the bits of data higher or lower than the bit boundary selected by the direction control means based on the bit boundary designated by the bit boundary register are written from the source register to the destination register. As a result, there is an effect that it is possible to perform high-speed transfer of data that crosses a byte boundary and a word boundary, which takes a long time to execute.

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

第1図は本発明のデータ処理装置の一実施例を示す構成
図、第2図は第1図のデータ転送制御回路4をMOSトラ
ンジスタを主に実現した第1の具体例を示す回路図、第
3図は第1の具体例の動作を示す波形図、第4図は第1
の具体例によりソースレジスタ1からディスティネーシ
ョンレジスタ2にデータが書込まれる状態を模式的に示
す図、第5図はデータ転送制御回路4の第2の具体例を
示す回路図、第6図は第2の具体例によりソースレジス
タ1からディスティネーションレジスタ2にデータが書
込まれる状態を模式的に示す図、第7図はソースレジス
タ1のデータがワードバウンダリにまたがってデータ転
送制御回路4により転送される状態を示す図、第8,9,10
図は従来方法によりデータが転送される状態を示す図で
ある。 1……ソースレジスタ、2……ディスティネーションレ
ジスタ、3……ビットバウンダリレジスタ、4……デー
タ転送制御回路、90,91,〜,93……インバータ、95,96,9
7……N型MOSトランジスタ、98……P型MOSトランジス
タ、100,101,〜,615……N型MOSトランジスタ、700,70
1,〜,715……P型MOSトランジスタ、800,801,〜,815…
…オア回路、B0,B1,〜,B15……レジスタセル、C0,C1,
〜,C15……制御線、M0,M1,〜,M15……制御線、▲▼
……ライト信号、DIR……方向制御信号、φ1……基本
クロック。
FIG. 1 is a block diagram showing an embodiment of a data processing device of the present invention, and FIG. 2 is a circuit diagram showing a first specific example in which the data transfer control circuit 4 of FIG. FIG. 3 is a waveform diagram showing the operation of the first concrete example, and FIG.
5 schematically shows a state in which data is written from the source register 1 to the destination register 2 according to the concrete example of FIG. 5, FIG. 5 is a circuit diagram showing a second concrete example of the data transfer control circuit 4, and FIG. FIG. 7 is a diagram schematically showing a state in which data is written from the source register 1 to the destination register 2 according to the second specific example. FIG. 7 shows that the data in the source register 1 is transferred by the data transfer control circuit 4 over a word boundary. Fig.8,9,10
The figure is a diagram showing a state in which data is transferred by a conventional method. 1 ... Source register, 2 ... Destination register, 3 ... Bit boundary register, 4 ... Data transfer control circuit, 90,91, ..., 93 ... Inverter, 95,96,9
7 ... N-type MOS transistor, 98 ... P-type MOS transistor, 100,101,-, 615 ... N-type MOS transistor, 700,70
1, ~, 715 …… P-type MOS transistor, 800,801, ~, 815…
... OR circuit, B0, B1, ~, B15 ... register cell, C0, C1,
〜, C15 …… Control line, M0, M1, 〜, M15 …… Control line, ▲ ▼
…… Write signal, DIR …… Direction control signal, φ1 …… Basic clock.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ソースレジスタからディスティネーション
レジスタの全ビットへデータを同時に転送可能な機能を
有するデータ処理装置において、 前記ディスティネーションレジスタの全ビットより少な
いビットを転送する際当該少ないビットが転送されるべ
き前記ディスティネーションレジスタのビット位置を指
定する手段と、該指定されたビット位置に対してのみ前
記書き込み信号を供給する手段と、前記指定されたビッ
ト位置以外のビット位置には前記書き込み信号の供給を
禁止する手段とを設け、指定されたビット位置に対して
のみ前記ソースレジスタから転送されるデータを書き込
み、他のビット位置ではその時に記憶されているデータ
をそのまま保存するようにしたことを特徴とするデータ
処理装置。
1. A data processing device having a function capable of simultaneously transferring data from a source register to all bits of a destination register, and when transferring less than all bits of the destination register, the few bits are transferred. Means for specifying the bit position of the destination register to be supplied, means for supplying the write signal only to the specified bit position, and supply of the write signal to bit positions other than the specified bit position Means for prohibiting the data transfer, and the data transferred from the source register is written only to the designated bit position, and the data stored at that time is stored as it is at other bit positions. And data processing device.
JP62044290A 1987-02-26 1987-02-26 Data processing device Expired - Lifetime JPH07120259B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62044290A JPH07120259B2 (en) 1987-02-26 1987-02-26 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62044290A JPH07120259B2 (en) 1987-02-26 1987-02-26 Data processing device

Publications (2)

Publication Number Publication Date
JPS63208935A JPS63208935A (en) 1988-08-30
JPH07120259B2 true JPH07120259B2 (en) 1995-12-20

Family

ID=12687375

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62044290A Expired - Lifetime JPH07120259B2 (en) 1987-02-26 1987-02-26 Data processing device

Country Status (1)

Country Link
JP (1) JPH07120259B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4139899A (en) * 1976-10-18 1979-02-13 Burroughs Corporation Shift network having a mask generator and a rotator
JPS6051748B2 (en) * 1978-04-28 1985-11-15 株式会社東芝 Memory writing method
JPS6149248A (en) * 1984-08-17 1986-03-11 Fujitsu Ltd High-speed writing system of pattern

Also Published As

Publication number Publication date
JPS63208935A (en) 1988-08-30

Similar Documents

Publication Publication Date Title
JPH07122092A (en) Semiconductor memory device
CN112634969A (en) Memory device and method for reading page media stream
JP3754593B2 (en) Integrated circuit having memory cells for storing data bits and method for writing write data bits to memory cells in integrated circuits
JPH02257494A (en) Sequentral reading access for series memory having starting address determined by users
JPH0612863A (en) Dual port DRAM
KR920003858B1 (en) Logic operation circuit
US6556501B1 (en) Multi-port computer register file having shared word lines for read and write ports and storage elements that power down or enter a high-impendance state during write operations
US4551821A (en) Data bus precharging circuits
US5535379A (en) Timer apparatus capable of writing identical data to a plurality of timers built in a microcomputer
JPH0447397B2 (en)
JPS6128198B2 (en)
JPH07120259B2 (en) Data processing device
JP3999356B2 (en) Method and apparatus for controlling synchronous random access memory, and synchronous random access memory apparatus having the same
JP2723765B2 (en) Programmable logic array and microcomputer using the same
JPH02146188A (en) Synchronous static random access memory
JPS5987562A (en) Debugging device
JPH06349281A (en) Semiconductor device
JP3737144B2 (en) Interrupt request circuit and interrupt request processing method
JPH0438797A (en) Comparing circuit of associative memory
JPH04177698A (en) Semiconductor memory device
JPH09320275A (en) Semiconductor memory device
JPH04271091A (en) Semiconductor memory device
EP0306953A2 (en) Address/control signal input circuit for cache controller
JPH11214520A (en) Semiconductor integrated device
JPS6249679B2 (en)