JPS62221059A - Central processing unit - Google Patents
Central processing unitInfo
- Publication number
- JPS62221059A JPS62221059A JP61063057A JP6305786A JPS62221059A JP S62221059 A JPS62221059 A JP S62221059A JP 61063057 A JP61063057 A JP 61063057A JP 6305786 A JP6305786 A JP 6305786A JP S62221059 A JPS62221059 A JP S62221059A
- Authority
- JP
- Japan
- Prior art keywords
- data
- transfer
- register
- termination
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000010586 diagram Methods 0.000 description 4
Landscapes
- Executing Machine-Instructions (AREA)
- Bus Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は中央処理装置に関し、特に、データ転送用プロ
グラムの手間を低減した中央処理装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a central processing unit, and more particularly to a central processing unit that reduces the effort of a data transfer program.
従来の中央処理装置として、例えば、第4図に示すもの
がある。この中央処理装置1は後述する所定の演算を行
う演算部2と、転送データのソースアドレスおよびディ
スティネーションアドレスを割り当てられるアドレスレ
ジスタ31.32、データ転送の回数を設定される転送
回数設定レジスタ33、および転送データを一時的に保
持するテンポラリレジスタコ4等を有するレジスタ群3
(汎用レジスタで構成される)と、ソースアドレスオ
よびディスティネーションアドレスに基づいて外部メモ
リ (図示せず)のアドレスを制御するアドレスバス制
御部6と、テンポラリレジスタ34に保持されているデ
ータの転送を制御するデータバス制御部7と、以上述べ
た内部回路の制御を行う中央制御部8より構成されてい
る。As a conventional central processing unit, there is one shown in FIG. 4, for example. This central processing unit 1 includes an arithmetic unit 2 that performs predetermined calculations to be described later, address registers 31 and 32 to which source addresses and destination addresses of transfer data are assigned, a transfer number setting register 33 to which the number of data transfers is set; and a register group 3 including a temporary register 4 for temporarily holding transfer data, etc.
(consisting of general-purpose registers), an address bus control unit 6 that controls the address of an external memory (not shown) based on the source address and destination address, and transfer of data held in the temporary register 34. , and a central control section 8 that controls the internal circuits described above.
以上の構成において、第5図のタイムチャートに基づい
てその操作を説明する。The operation of the above configuration will be explained based on the time chart of FIG.
まず、転送回数設定レジスタ33に繰り返しデータ転送
回数が設定される。次に、転送データのソースアドレス
およびディスティネーションアドレスがソースアドレス
レジスタ31およびディスティネーションアドレスレジ
スタ32に割り当てられ、アドレスバス制御部6および
データバス制御部7の制御に基づいて外部メモリのソー
スアドレスから転送データが読み出されてテンポラリレ
ジスタ34に保持される。保持された転送データはアド
レスバス制御部6およびデータバス制御部7の制御に基
づいて外部メモリのディスティネーションアドレスに書
き込まれる。この書き込みの操作に基づいて演算部2は
転送回路設定レジスタ33の設定回数から1だけ減算す
る。このようにして、中央制御部8の制御のもとで行わ
れる演算部2の演算操作に基づいて外部メモリのソース
アドレスからディスティネーションアドレスへデータが
繰り返して転送される。この繰り返しデータ転送によっ
て転送回数設定レジスタ33の設定値が0になると、中
央制御部8はデータ転送の終了と次の命令を指令する。First, the number of repeated data transfers is set in the transfer number setting register 33. Next, the source address and destination address of the transfer data are assigned to the source address register 31 and the destination address register 32, and the data is transferred from the source address of the external memory under the control of the address bus control unit 6 and the data bus control unit 7. Data is read and held in the temporary register 34. The held transfer data is written to the destination address of the external memory under the control of the address bus control section 6 and the data bus control section 7. Based on this write operation, the calculation unit 2 subtracts 1 from the number of times set in the transfer circuit setting register 33. In this way, data is repeatedly transferred from the source address of the external memory to the destination address based on the arithmetic operation of the arithmetic unit 2 performed under the control of the central control unit 8. When the set value of the transfer count setting register 33 becomes 0 due to this repeated data transfer, the central control unit 8 instructs the end of the data transfer and the next command.
しかし、従来の中央処理装置によれば、転送データの長
さが一定していないデータを転送するときは転送前にデ
ータ数を計算して転送回数を設定しなければならないた
め、プログラムの手間がかかるという不都合がある。However, with conventional central processing units, when transferring data whose length is not constant, it is necessary to calculate the number of data and set the number of transfers before transfer, which reduces the effort of programming. There is an inconvenience that it takes.
例えば、表示装置に転送する表示データ(例えば、AS
CIIデータによるメツセージ等)は任意の長さのもの
が多いため、上述した不都合が生ずる。For example, display data to be transferred to a display device (for example, AS
Since many messages (such as messages based on CII data) have an arbitrary length, the above-mentioned disadvantage occurs.
本発明は上記に鑑みてなされたものであり、繰り返しデ
ータ転送命令におけるターミネイトデータを内部レジス
タに割り当て、転送データがターミネイトデータと一致
した時次の命令を実行するようにした中央処理装置を提
供するものである。The present invention has been made in view of the above, and provides a central processing unit that allocates termination data in a repeated data transfer instruction to an internal register, and executes the next instruction when the transfer data matches the termination data. It is something.
以下本発明による中央処理装置を詳細に説明する。The central processing unit according to the present invention will be explained in detail below.
第1図は本発明の一実施例を示し、第4図と同一の部分
は同一の引用数字で示しているので重複する説明は省略
するが、レジスタ群3はデータ転送命令におけるターミ
ネイトデータを設定されるターミネイトデータレジスタ
35を有し、また、ターミネイトデータレジスタ35の
ターミネイトデータとテンポラリレジスタ34の転送デ
ータを比較すると比較器4が設けられている。FIG. 1 shows an embodiment of the present invention, and the same parts as in FIG. 4 are indicated by the same reference numerals, so redundant explanation will be omitted. Register group 3 sets termination data in a data transfer instruction. In addition, a comparator 4 is provided to compare the termination data in the termination data register 35 and the transfer data in the temporary register 34.
以上の構成において、第2図のタイムチャートおよび第
3図のフローチャートに基づいてその操作を説明する。In the above configuration, the operation thereof will be explained based on the time chart of FIG. 2 and the flow chart of FIG. 3.
まず、ターミネイトデータレジスタ35に繰り返しデー
タ転送命令におけるターミネイトデータが設定される。First, the termination data in the repeated data transfer command is set in the termination data register 35.
次に、ソースアドレスレジスタ31およびディスティネ
ーションアドレスレジスタ32に転送データがメモリさ
れる外部メモリのソースアドレスおよび転送データが転
送される外部メモリのディスティネーションアドレスが
割り当てられると、アドレスバス制御部6およびデータ
バス制御部7の制御に基づいて外部メモリから転送デー
タが読み出されてテンポラリレジスタ34に転送データ
が保持される。この転送データは比較器4においてター
ミネイトデータレジスタ35のターミネイトデータと比
較され、両者が不一致のときは比較器4は一致信号を出
力せず、また、アドレスバス制御部6およびデータバス
制御部7の制御に基づいてテンポラリレジスタ34のデ
ータが外部メモリのディスティネーションアドレスに書
き込まれる。このようなデータ転送が中央制御部8の制
御に基づく演算部2の演算によって繰り返して行われ、
転送データがターミネイトと一致したとき比較器4は一
致信号を出力する。一致信号が出力されたとき中央制御
部8はデータ転送命令の終了とともに次の命令を実行す
る。Next, when the source address of the external memory to which the transfer data is stored and the destination address of the external memory to which the transfer data is transferred are assigned to the source address register 31 and the destination address register 32, the address bus controller 6 and the data Transfer data is read from the external memory under the control of the bus control unit 7 and is held in the temporary register 34. This transfer data is compared with the termination data of the termination data register 35 in the comparator 4, and when the two do not match, the comparator 4 does not output a match signal, and the address bus control section 6 and data bus control section 7 Based on the control, the data in the temporary register 34 is written to the destination address in the external memory. Such data transfer is repeatedly performed by the calculation of the calculation unit 2 under the control of the central control unit 8,
When the transfer data matches the termination, the comparator 4 outputs a match signal. When the coincidence signal is output, the central control unit 8 executes the next command upon completion of the data transfer command.
以上説明した通り、本発明の中央処理装置によれば、転
送データがターミネイトデータと一致したとき次の命令
を実行するようにしたため、データ長が不定のデータを
転送するときでも転送前にデータ数を計算する必要がな
く、プログラムの手間がかかるということもなくなる。As explained above, according to the central processing unit of the present invention, the next instruction is executed when the transfer data matches the terminate data. There is no need to calculate , and the time and effort required for programming is eliminated.
第1図は本発明の一実施例を示すブロック図。第2図は
本発明のタイムチャート図。第3図は本発明の制御用フ
ローチャート図。第4図は従来の中央処理装置のブロッ
ク図。第5図は従来の中央処理装置のタイムチャート図
。
符号の説明
1−−−−−−一中央処理装置 2−−−−−
−−一演算部3−−−−−−−レジスタ群
4−−−−−−一比較器6−・−アドレスバス制御部
?−−−−−・−・データバス制御部
8−−−−−・−・中央処理部FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a time chart diagram of the present invention. FIG. 3 is a control flowchart of the present invention. FIG. 4 is a block diagram of a conventional central processing unit. FIG. 5 is a time chart diagram of a conventional central processing unit. Explanation of symbols 1 -------- Central processing unit 2 -------
---Arithmetic unit 3----Register group
4-----Comparator 6--Address bus control section? −−−−−・−・Data bus control unit 8−−−−−・−・Central processing unit
Claims (1)
るアドレスレジスタと、転送データを一時的に保持する
テンポラリレジスタを備えて前記ソースアドレスのデー
タを前記テンポラリレジスタに取り込んでから前記ディ
スティネーションアドレスへ転送する中央処理装置にお
いて、 繰り返しデータ転送命令におけるターミネ イトデータを設定されるターミネイトデータレジスタと
、 前記テンポラリレジスタに一時的に保持さ れる前記転送データと前記ターミネイトデータレジスタ
に設定された前記ターミネイトデータとを比較して両デ
ータが一致したときデータ一致信号を出力する比較回路
と、 データ一致信号に基づいてデータ転送の終 了を指令する制御手段とを設けたことを特徴とする中央
処理装置。[Claims] An address register to which a source address and a destination address for repeated data transfer instructions are assigned, and a temporary register for temporarily holding transfer data, and the data at the source address is taken into the temporary register. in a central processing unit that transfers data from a data transfer command to a destination address, a termination data register to which termination data in a repeated data transfer instruction is set, and a termination data register to which termination data is temporarily held in the temporary register and which are set to the termination data register. a comparison circuit that outputs a data match signal when the data matches the terminated data; and a control means that commands the termination of data transfer based on the data match signal. Processing equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61063057A JPS62221059A (en) | 1986-03-20 | 1986-03-20 | Central processing unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61063057A JPS62221059A (en) | 1986-03-20 | 1986-03-20 | Central processing unit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62221059A true JPS62221059A (en) | 1987-09-29 |
Family
ID=13218328
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61063057A Pending JPS62221059A (en) | 1986-03-20 | 1986-03-20 | Central processing unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62221059A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04363723A (en) * | 1991-10-23 | 1992-12-16 | Casio Comput Co Ltd | Arithmetic processing unit |
JPH056273A (en) * | 1991-10-23 | 1993-01-14 | Casio Comput Co Ltd | Operation processor |
JP2008083762A (en) * | 2006-09-26 | 2008-04-10 | Nec Electronics Corp | Microcomputer |
-
1986
- 1986-03-20 JP JP61063057A patent/JPS62221059A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04363723A (en) * | 1991-10-23 | 1992-12-16 | Casio Comput Co Ltd | Arithmetic processing unit |
JPH056273A (en) * | 1991-10-23 | 1993-01-14 | Casio Comput Co Ltd | Operation processor |
JP2008083762A (en) * | 2006-09-26 | 2008-04-10 | Nec Electronics Corp | Microcomputer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4514808A (en) | Data transfer system for a data processing system provided with direct memory access units | |
US6728797B2 (en) | DMA controller | |
JPS62221059A (en) | Central processing unit | |
JPH01258163A (en) | Direct memory access controller | |
JPH0237425A (en) | Digital signal processor | |
JPH0736806A (en) | Dma system | |
JPH0567035A (en) | Data alignment system for dma transfer | |
JPH03152651A (en) | Information transmission system | |
JPH03246654A (en) | Method for controlling data transfer | |
JPH04346150A (en) | Data transfer processing system | |
JPS6126162A (en) | Input/output control method | |
JPH05120203A (en) | Dma control system | |
JPH04262449A (en) | Data transfer system | |
JPS63165931A (en) | Storing system for information on discontinuous instruction fetch address | |
JPH01234957A (en) | Method and device for controlling dma | |
JPH04111149A (en) | Circuit system for dma device | |
JPH09146877A (en) | Inter-memory data transfer controller | |
JPH0769885B2 (en) | Data transfer device | |
JPH0266667A (en) | Parallel computing element | |
JPS62111343A (en) | Channel control circuit | |
JPH02287661A (en) | Data access system | |
JPH02136949A (en) | Input/output controller | |
JPS61288252A (en) | Data transfer system | |
JPH01183753A (en) | Input/output controller | |
JPH0478931A (en) | Designated word interruption generating system |