JPS6156812B2 - - Google Patents
Info
- Publication number
- JPS6156812B2 JPS6156812B2 JP57052093A JP5209382A JPS6156812B2 JP S6156812 B2 JPS6156812 B2 JP S6156812B2 JP 57052093 A JP57052093 A JP 57052093A JP 5209382 A JP5209382 A JP 5209382A JP S6156812 B2 JPS6156812 B2 JP S6156812B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- dma
- program counter
- selector
- input condition
- 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
Links
- 230000001934 delay Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 4
- 101100524644 Toxoplasma gondii ROM4 gene Proteins 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30094—Condition code generation, e.g. Carry, Zero flag
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Executing Machine-Instructions (AREA)
- Bus Control (AREA)
Description
【発明の詳細な説明】
(a) 発明の技術分野
本発明は入力条件セレクタ付プログラムカウン
タ制御回路に係り、直接メモリアクセス(以下
DMAと称す)要求時、セレクタへ入力する複数
ビツトの条件分岐用のフラグを、DMA要求直前
の状態に確実に保持する入力条件セレクタ付プロ
グラムカウンタ制御方式に関する。[Detailed Description of the Invention] (a) Technical Field of the Invention The present invention relates to a program counter control circuit with an input condition selector, and relates to a program counter control circuit with an input condition selector.
The present invention relates to a program counter control system with an input condition selector that reliably maintains a multi-bit conditional branch flag input to a selector at the time of a request (referred to as DMA) in the state immediately before the DMA request.
(b) 技術の背景
入力条件セレクタ付プログラムカウンタとは、
本特許出願人が57年に特許出願した、入力条件セ
レクタ付順序回路を、プログラムカウンタとして
使用したもので、入力条件セレクタ付順序回路の
概要は、読出専用メモリ(以下ROMと称す)と
フリツプフロツプ(以下FFと称す)で構成さ
れ、該FFの出力が現状態の出力で、これと、複
数ビツトの入力条件を、該ROMに入力し、その
出力が次の状態の出力となる順序回路に、該複数
ビツトの入力条件の中から所定の1ビツトを選択
するセレクタと、この選択をするための選択信号
を出力する手段を該ROMに設け、選択された1
ビツトを該ROMの入力条件とすることで該ROM
の容量を小さく出来るものである。本発明はこの
入力条件セレクタ付プログラムカウンタの制御方
式に関するものである。(b) Technical background What is a program counter with input condition selector?
A sequential circuit with an input condition selector, for which the applicant of this patent applied for a patent in 1957, is used as a program counter. The output of the FF is the output of the current state, and this and the input conditions of multiple bits are input to the ROM, and the output becomes the output of the next state. The ROM is provided with a selector for selecting a predetermined one bit from among the input conditions of the plurality of bits, and a means for outputting a selection signal for making this selection.
By setting the bit as the input condition of the ROM,
The capacity can be reduced. The present invention relates to a control system for this program counter with input condition selector.
(c) 従来技術と問題点
第1図は従来例の入力条件セレクタ付プログラ
ムカウンタの制御回路の要部のブロツク図、第2
図は第1図の各部のタイムチヤートを示すもの
で、Aはクロツク、BはDMA要求信号、CはFF
8の出力、DはFF3へのクロツク、Eはプログ
ラムアドレス(ROM4への入力)Fはプログラ
ム命令出力(ROM4の出力)、Gは複数ビツトの
条件分岐用フラグ、HはDMA許可信号である。(c) Prior art and problems Figure 1 is a block diagram of the main part of the control circuit of a conventional program counter with input condition selector.
The figure shows a time chart of each part in Figure 1, where A is the clock, B is the DMA request signal, and C is the FF.
8, D is a clock to FF3, E is a program address (input to ROM 4), F is a program instruction output (output from ROM 4), G is a multi-bit conditional branch flag, and H is a DMA enable signal.
図中1は入力条件セレクタ付プログラムカウン
タ、2はROM、3,8はFF、4はプログラムの
入つているROM、5はセレクタ、6はアンド回
路、7はノツト回路、9は遅延回路を示す。 In the figure, 1 is a program counter with an input condition selector, 2 is a ROM, 3 and 8 are FFs, 4 is a ROM containing a program, 5 is a selector, 6 is an AND circuit, 7 is a note circuit, and 9 is a delay circuit. .
この回路では、第2図Bの如くDMA要求信号
がくると、FF8の出力は半周期おくれてCの如
くDMA処理中は“1”の出力となつている。こ
の信号と、アンド回路6により、Dの如くFF3
へのクロツクを止める。これにより、ROM4へ
のプログラムアドレスはEに示す如くNo.2の状
態でストツプする。又一方FF8の出力で、Fの
如くROM4の出力をNO・OPERATIONの命令
とし、プロセツサ内のバス(図示していない)を
開放してDMA処理が出来るようにする。Fに示
すROM4の命令出力、No.1、No.2、No.3はプロ
グラムアドレスのNo.1、No.2、No.3に対応し、
NOPはNO・OPERATIONを示す。FF3へのク
ロツクが止まるのでセレクタ5の出力である複数
ビツトの条件分岐フラグはGに示す如く、DMA
許可がおりDMA実行の直前の、No.4の状態で止
まる。GのNo.2、No.3、No.4は上記プログラム
アドレス、プログラム命令出力のNo.2、No.3、
No.4に夫々対応している。Hに示すDMA許可信
号は、遅延回路9により1命令の実行時間遅れて
出力される。DMA処理が終われば、クロツクが
FF3に送られ、DMA実行直前の状態から継続し
て動作する。しかし、DMA実行中に、今止まつ
ているNo.4の複数ビツトの条件分岐用フラグが
かわることがある。このため、セレクタ5の出力
の1ビツトの条件分岐用フラグもかわり、DMA
処理が終わつた時は、DMA実行直前の状態から
継続して動作をしなければならないのに、異つた
動作をし、継続動作が出来ない欠点がある。 In this circuit, when a DMA request signal is received as shown in FIG. 2B, the output of FF8 is delayed by half a period, and becomes a "1" output during DMA processing as shown in C. By using this signal and the AND circuit 6, FF3 is
Stop the clock. As a result, the program address to the ROM 4 is stopped at No. 2 as shown in E. On the other hand, with the output of FF8, the output of ROM4 is set as a NO-OPERATION command as shown in F, and the bus (not shown) in the processor is opened to enable DMA processing. The command outputs of ROM4 shown in F, No. 1, No. 2, and No. 3 correspond to program addresses No. 1, No. 2, and No. 3,
NOP indicates NO・OPERATION. Since the clock to FF3 is stopped, the multi-bit conditional branch flag output from selector 5 is output from DMA as shown in G.
Permission is granted and the program stops in state No. 4, just before DMA execution. G No.2, No.3, No.4 are the above program addresses, program command output No.2, No.3,
Each corresponds to No.4. The DMA permission signal indicated by H is output by the delay circuit 9 with a delay of one instruction execution time. Once the DMA processing is complete, the clock will turn off.
It is sent to FF3 and continues operating from the state immediately before DMA execution. However, during DMA execution, the conditional branch flag of No. 4, which is currently stopped, may change. Therefore, the 1-bit conditional branch flag output from selector 5 is also changed, and the DMA
When the processing is finished, the operation must be continued from the state immediately before the DMA execution, but the disadvantage is that the operation is different and cannot be continued.
(d) 発明の目的
本発明の目的は上記の欠点をなくし、DMA処
理完了後確実に、DMA実行直前の状態から、継
続動作が可能な入力条件セレクタ付プログラムカ
ウンタ制御方式の提供にある。(d) Object of the Invention The object of the present invention is to eliminate the above-mentioned drawbacks and to provide a program counter control system with an input condition selector that can reliably continue operation from the state immediately before DMA execution after completion of DMA processing.
(e) 発明の構成
本発明は上記の目的を達成するために、入力条
件セレクタ付プログラムカウンタ制御回路におい
て、セレクタへ入力する複数ビツトの条件分岐用
フラグを保持するフリツプフロツプを具備し、
DMA要求時、DMA許可を与える遅延回路の出力
で該フリツプフロツプへのクロツクを止め、
DMA実行直前の該複数ビツトの条件分岐用フラ
グを保持し、DMA実行中にかわることのないよ
うにしたことを特徴とする。(e) Structure of the Invention In order to achieve the above object, the present invention includes a program counter control circuit with an input condition selector, which includes a flip-flop that holds a multi-bit conditional branch flag to be input to the selector.
When a DMA request is made, the output of the delay circuit that grants DMA permission stops the clock to the flip-flop,
The present invention is characterized in that the conditional branch flag of the plurality of bits immediately before the DMA execution is held so that it does not change during the DMA execution.
(f) 発明の実施例
以下本発明の1実施例につき図に従つて説明す
る。第3図は本発明の実施例の入力条件セレクタ
付プログラムカウンタ制御回路の要部のブロツク
図、第4図は第3図の各部のタイムチヤートで、
Aはクロツク、BはDMA許可信号、CはFF10
へのクロツクである。(f) Embodiment of the invention An embodiment of the invention will be described below with reference to the drawings. FIG. 3 is a block diagram of the main parts of the program counter control circuit with input condition selector according to the embodiment of the present invention, and FIG. 4 is a time chart of each part of FIG.
A is clock, B is DMA permission signal, C is FF10
It is a clock to
図中第1図と同一機能のものは同一記号で示
す。10はFF、11はアンド回路を示す。 Components in the figure that have the same functions as those in FIG. 1 are indicated by the same symbols. 10 is a FF, and 11 is an AND circuit.
第3図で第1図と異なる点は、複数ビツトの条
件分岐用フラグを保持するFF10と、FF10へ
のクロツクを制御するためのアンド回路11を設
けた点のみであり、通常の動作は第1図の説明と
同じである。DMA要求信号がくると、Bに示す
如きDMA許可信号を出力する遅延回路9の出力
を、アンド回路11に加え、Cに示す如く、FF
10へのクロツクを止め、FF10にて、DMA実
行直前の、複数ビツトの条件分岐用フラグを保持
さす。このことにより、DMA実行中に該条件分
岐用フラグは変化することはない。 The only difference between FIG. 3 and FIG. 1 is that an FF10 that holds a multi-bit conditional branch flag and an AND circuit 11 are provided to control the clock to the FF10. This is the same as the explanation for Figure 1. When the DMA request signal comes, the output of the delay circuit 9 which outputs the DMA permission signal as shown in B is added to the AND circuit 11, and the FF is inputted as shown in C.
The clock to 10 is stopped, and FF10 holds the multiple-bit conditional branch flag immediately before DMA execution. As a result, the conditional branch flag does not change during DMA execution.
従つてDMA処理終了後確実に継続処理が実行
出来る。 Therefore, continuation processing can be reliably executed after the DMA processing is completed.
(g) 発明の効果
以上詳細に説明せる如く、本発明によれば、
DMA処理完了後、DMA要求直前の状態から、確
実に継続処理が出来る効果がある。(g) Effects of the invention As explained in detail above, according to the present invention,
After the DMA processing is completed, it is possible to reliably continue processing from the state immediately before the DMA request.
第1図は従来例の入力条件セレクタ付プログラ
ムカウンタの制御回路の要部のブロツク図、第2
図は第1図の各部のタイムチヤート、第3図は本
発明の実施例の入力条件セレクタ付プログラムカ
ウンタの制御回路の要部のブロツク図、第4図は
第3図の各部のタイムチヤートである。
図中1は入力条件セレクタ付プログラムカウン
タ、2はROM、3,8,10はFF、4はプログ
ラムの入つているROM、5はセレクタ、6,1
1はアンド回路、7はノツト回路、9は遅延回路
である。
Figure 1 is a block diagram of the main part of the control circuit of a conventional program counter with input condition selector.
The figure is a time chart of each part in Fig. 1, Fig. 3 is a block diagram of the main part of the control circuit of the program counter with input condition selector according to the embodiment of the present invention, and Fig. 4 is a time chart of each part in Fig. 3. be. In the figure, 1 is a program counter with input condition selector, 2 is ROM, 3, 8, 10 are FF, 4 is ROM containing the program, 5 is a selector, 6, 1
1 is an AND circuit, 7 is a NOT circuit, and 9 is a delay circuit.
Claims (1)
する第1のフリツプフロツプの出力で、プログラ
ムカウンタへのクロツクを止めると共に、該プロ
グラムカウンタで指示する命令を不動作に切換
え、かつ該第1のフリツプフロツプの出力を遅延
せしめる遅延回路の出力を、直接メモリアクセス
許可信号とする入力条件セレクタ付プログラムカ
ウンタ制御回路において、セレクタへ入力する、
複数ビツトの条件分岐用フラグを保持する第2の
フリツプフロツプを具備し、直接メモリアクセス
要求時、該遅延回路の出力で、該第2のフリツプ
フロツプへのクロツクを止めることを特徴とする
入力条件セレクタ付プログラムカウンタ制御方
式。1 When a direct memory access request is made, the output of the first flip-flop holding this signal stops the clock to the program counter, disables the instruction indicated by the program counter, and outputs the first flip-flop. In a program counter control circuit with an input condition selector that uses the output of the delay circuit that delays the direct memory access permission signal as a direct memory access permission signal, inputting the output to the selector;
An input condition selector comprising a second flip-flop holding a multi-bit conditional branch flag, and stopping the clock to the second flip-flop at the output of the delay circuit when a direct memory access is requested. Program counter control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57052093A JPS58169248A (en) | 1982-03-30 | 1982-03-30 | Control system of program counter provided with input condition selector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57052093A JPS58169248A (en) | 1982-03-30 | 1982-03-30 | Control system of program counter provided with input condition selector |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS58169248A JPS58169248A (en) | 1983-10-05 |
JPS6156812B2 true JPS6156812B2 (en) | 1986-12-04 |
Family
ID=12905215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57052093A Granted JPS58169248A (en) | 1982-03-30 | 1982-03-30 | Control system of program counter provided with input condition selector |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS58169248A (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0690700B2 (en) * | 1984-05-31 | 1994-11-14 | 富士通株式会社 | Semiconductor integrated circuit |
JPS6191752A (en) * | 1984-10-11 | 1986-05-09 | Nec Corp | Microcomputer |
JPH0789346B2 (en) * | 1985-07-05 | 1995-09-27 | 日本電気株式会社 | DMA controller |
-
1982
- 1982-03-30 JP JP57052093A patent/JPS58169248A/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS58169248A (en) | 1983-10-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4665484A (en) | Shared memory multiprocessing system & method | |
US6145027A (en) | DMA controller with split channel transfer capability and FIFO buffering allowing transmit channel to get ahead of corresponding receive channel by preselected number of elements | |
JPH0221018B2 (en) | ||
JPH04245324A (en) | Arithmetic unit | |
JP2548428B2 (en) | Timing generator | |
JPS6156812B2 (en) | ||
JPH0250611A (en) | Microcomputer | |
JPH0612107A (en) | Sequence arithmetic processor and sequence arithmetic processing unit | |
JPH08339290A (en) | Equipment and method for insertion of address into data stream in data-processing system | |
JPH01258163A (en) | Direct memory access controller | |
JP2002312005A (en) | Prorammable controller | |
JPS62209650A (en) | Memory access system | |
JPS6242301B2 (en) | ||
JP2693598B2 (en) | Program execution controller for digital signal processor | |
JPS6134168B2 (en) | ||
JPS6156814B2 (en) | ||
JP2766191B2 (en) | Digital signal processing device and signal processing method | |
JP3022186B2 (en) | Digital signal processor | |
JPH04303247A (en) | Microcomputer device | |
JP2686234B2 (en) | Digital signal processing device and signal processing method | |
JPH0194437A (en) | Information processor | |
JPS60246439A (en) | Information processor | |
JPH02219105A (en) | Programmable controller | |
JPH02130633A (en) | On-line editing method for program | |
JPH02139652A (en) | Microcomputer |