JPS60252954A - Program control circuit - Google Patents

Program control circuit

Info

Publication number
JPS60252954A
JPS60252954A JP10850184A JP10850184A JPS60252954A JP S60252954 A JPS60252954 A JP S60252954A JP 10850184 A JP10850184 A JP 10850184A JP 10850184 A JP10850184 A JP 10850184A JP S60252954 A JPS60252954 A JP S60252954A
Authority
JP
Japan
Prior art keywords
program
instruction
address
programs
control circuit
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
JP10850184A
Other languages
Japanese (ja)
Inventor
Sumio Koseki
小関 純夫
Takao Gotoda
後藤田 卓男
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 JP10850184A priority Critical patent/JPS60252954A/en
Publication of JPS60252954A publication Critical patent/JPS60252954A/en
Pending legal-status Critical Current

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)

Abstract

PURPOSE:To produce no waste time for the working of a microprogram by changing programs successively for each instruction cycle in case plural programs are executed within the same device and therefore eliminating a jump time. CONSTITUTION:A memory 34 stores a group of instructions, and systems of programs P1 and P2 are selected by address selectors 32-1 and 32-2 respectively. A program switch signal X is inverted every instruction cycle. Thus in the case of logic O, for example, the instructions of the program P1 are read out. While the instructions of the program P2 are read out with logic 1. These read-out instructions are executed by a microprocessor in the next instruction cycle. Thus the instructions of two types of programs are read and executed alternately.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム制御回路、特に複数のプログラムを
同一の装置内で実行する場合のプログラム制御回路に関
する本のである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is a book related to a program control circuit, particularly a program control circuit used when a plurality of programs are executed within the same device.

同一の装置内で複数の、相互に関連性のないプログラム
を実行する例は種々見られる。その−例として、電話回
線と複数の加入者端末との間に設けられる宅内用のイン
タフェース装置が挙げられる。このインタフェース装置
ではいわゆる多重・分離操作が行われ、このためにマイ
クロプロセッサが用いられる。このマイクロゾロ七、す
においては各加入者端末からのデータを電話回線に送や
出す際の多重操作を行うためのプログラムと、電話回線
より受信した多重化データを各加入者端末に送シ出す際
の分離操作を行うためのプログラムとが相互に独立して
存在する。しかし相互に独立とは言っても、単一のマイ
クロデロセ、すを使用すること、および多重と分離にお
いてデータのタイミングを双方で同期を採る必要がある
こと等の理由により、結局、上記2つのプログラムは何
らかの制御のもとに実行されなければならない。これが
プログラム制御回路の役割である。
There are various examples of executing a plurality of mutually unrelated programs within the same device. An example thereof is an in-home interface device provided between a telephone line and a plurality of subscriber terminals. This interface device performs so-called multiplexing and demultiplexing operations, and a microprocessor is used for this purpose. In this MicroZoro 7, there is a program for performing multiplex operations when sending and transmitting data from each subscriber terminal to the telephone line, and a program for transmitting the multiplexed data received from the telephone line to each subscriber terminal. The program for performing the separation operation exists independently from each other. However, even though they are mutually independent, due to reasons such as the use of a single microprocessor and the need to synchronize the timing of data in multiplexing and demultiplexing, the above two programs end up must be carried out under some kind of control. This is the role of the program control circuit.

〔従来の技術〕[Conventional technology]

第6図は本発明のプログラム制御回路が適用される一例
を示すシステム図である。本図において、11は複数の
加入者端末(電話機)であり、各々の加入者線12を介
し、インタフェース装置13および電話回線14を経由
して、端局15に接続する。端局15内には多重・分離
装置(MUX)16があり、データの多重・分離操作を
行う。なお、電話回線14と装置16の間にもインタフ
ェース装置17が設けられ、これより電話回線14に送
出された下り多重データは、インタフェース装置13に
て分離され、各加入者線12毎に分配される。逆に各加
入者端末11からの上り分離データは各加入者線12毎
に集約され、インタフェース装置13で多重化され、端
局15に送出される。
FIG. 6 is a system diagram showing an example to which the program control circuit of the present invention is applied. In the figure, reference numeral 11 denotes a plurality of subscriber terminals (telephones), which are connected to a terminal station 15 via respective subscriber lines 12, an interface device 13, and a telephone line 14. A multiplexing/demultiplexing device (MUX) 16 is provided in the terminal station 15 and performs data multiplexing/demultiplexing operations. Note that an interface device 17 is also provided between the telephone line 14 and the device 16, and the downlink multiplexed data sent from this to the telephone line 14 is separated by the interface device 13 and distributed to each subscriber line 12. Ru. Conversely, uplink separated data from each subscriber terminal 11 is aggregated for each subscriber line 12, multiplexed by the interface device 13, and sent to the terminal station 15.

本発明は、第6図のシステムを例にとれば、特にインタ
フェース装置13に適用される。
The present invention is particularly applicable to the interface device 13, taking the system of FIG. 6 as an example.

このインタフェース装置13では既述の如く単一のマイ
クロデロセ、すを共用して、2種類のプログラムを走ら
せることになるので、プログラム双方を何らかの形で調
整し、ジョブの衝突を回避しなければならない。このた
めに、従来2つの方式が提案されている。第1の方式は
、2種類のプログラムを個別に管理する2つのプログラ
ム制御回路を個々に準備するというものである。一方、
第2の方式は、プログラム双方を割込み制御で管理しよ
うとするものである。
As mentioned above, in this interface device 13, a single microprocessor is shared and two types of programs are run, so both programs must be adjusted in some way to avoid job conflicts. . For this purpose, two methods have been proposed in the past. The first method is to separately prepare two program control circuits that separately manage two types of programs. on the other hand,
The second method attempts to manage both programs by interrupt control.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の上記第1の方式は当然に回路規模の増大を招くと
いう不利がある。従って以下述べる本発明においてもこ
の第1の方式を前提としない。一方、従来の上記第2の
方式は、そのような不利を伴わないから、本発明はむし
ろこの第2の方式に近いプログラム制御を前提とする。
The first conventional method described above naturally has the disadvantage of increasing the circuit scale. Therefore, the present invention described below does not assume this first method either. On the other hand, since the conventional second method does not have such disadvantages, the present invention is premised on program control that is closer to the second method.

しかし、このWJ2の方式は別の問題が伴う。この問題
は、マイクロプロセッサの処理に無駄時間があシ、結局
、所望のプログラムを高速に実行できないという点にあ
る。第7図(4)および(B)は従来の割込み制御方式
の問題点を説明するための流れ図である。本図(4)に
おいて、P 1は第1プログラムに基づく処理、P2は
第2プログラムに基づく処理を示し、これらはメインル
ーチンに割込みをかけて実行される。
However, this WJ2 method is accompanied by another problem. The problem is that there is wasted time in the processing of the microprocessor, and as a result, the desired program cannot be executed at high speed. FIGS. 7(4) and 7(B) are flowcharts for explaining the problems of the conventional interrupt control method. In FIG. 4, P1 indicates processing based on the first program, and P2 indicates processing based on the second program, which are executed by interrupting the main routine.

同図(B)は同図(4)の流れの一部を時系列的に示す
図であシ、各区切)(t)は−命令サイクルでおる。メ
インルーチンMの流れの中で割込みがかかるとプログラ
ム処理上又はP2側に分岐(JUMP ) L分岐命令
を実行する。同図(B)で注目すべき点は、図中のX印
で示すゾヤンデ時間であシ、割込み毎に生ずるのでその
総時間はプログラム処理上かな)の無駄となる。この無
駄が問題点となる。
(B) is a diagram chronologically showing a part of the flow in (4) of the same figure, and each break (t) is a -instruction cycle. When an interrupt occurs during the flow of the main routine M, a branch (JUMP) L branch instruction is executed in program processing or to the P2 side. What should be noted in FIG. 3B is the extra time indicated by the X mark in the figure, which occurs for each interrupt, so the total time is a waste of time (perhaps in terms of program processing). This waste becomes a problem.

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

本発明は、上記問題点を解決したプログラム制御回路を
提供するもので、複数のプログラム毎に設けられたアド
レス選択器と、これらアドレス選択器のいずれかより択
一的にアドレスを選択するセレクタと、該セレクタから
のアドレスを受けて前記複数のプログラムを実行する命
令群の中の対応する1つを送出するメモリと、該メモリ
から送出された命令を一時保持する命令し・ゾスタ等を
有してなるものである。
The present invention provides a program control circuit that solves the above problems, and includes an address selector provided for each of a plurality of programs, and a selector that selectively selects an address from one of these address selectors. , a memory that receives an address from the selector and sends out a corresponding one of a group of instructions for executing the plurality of programs, and an instruction processor, etc. that temporarily holds the instruction sent out from the memory. That's what happens.

〔作 用〕[For production]

上記セレクタは1命令サイクル毎に順次プログラムを切
替えるものであシ、1のプログラムの各命令の読出しと
実行が、他のプログラムの各命令の読出しと実行と互い
違いに行われる。このように1ソヤング時間を生じさせ
ずに、複数のプログラムを時分割で走らせることができ
ることから、マイクロプロセッサの処理に無駄時間が生
じてしまうことがなくなる。
The selector switches programs sequentially every instruction cycle, and the reading and execution of each instruction of one program is performed alternately with the reading and execution of each instruction of another program. In this way, since a plurality of programs can be run in a time-sharing manner without incurring one long time, there is no need to waste time in the processing of the microprocessor.

〔実施例〕〔Example〕

以下、図面を参照して本発明の実施例を詳細に説明する
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明に基づくプログラム制御回路の一実施例
を示す回路図であり、第i図は第1図のプログラム制御
回路によって動作するマイクロプロセッサの処理を図解
的に示す流れ図である。第2図は第7図(B)に対応す
るものであシ、同図(B)のX印で示すゾヤンデ時間が
全く排除される。なお、図中のtは1命令サイクルであ
る。かくしてプログラム処理の高速化が図れる。
FIG. 1 is a circuit diagram showing an embodiment of a program control circuit according to the present invention, and FIG. i is a flowchart schematically showing the processing of a microprocessor operated by the program control circuit of FIG. FIG. 2 corresponds to FIG. 7(B), and the Zoyande time indicated by the X mark in FIG. 7(B) is completely excluded. Note that t in the figure is one instruction cycle. In this way, program processing can be accelerated.

第1図において、プログラム制御回路31は、2種類の
プログラムを同時に管理する。2種類の例を示したのは
説明を簡単にするためであシ、基本的な考え方を3種類
以上のプログラムの同時管理に応用することは当業者に
おいて容易である。
In FIG. 1, a program control circuit 31 manages two types of programs simultaneously. Two types of examples are shown for the purpose of simplifying the explanation, and those skilled in the art can easily apply the basic idea to the simultaneous management of three or more types of programs.

このプログラム制御回路31は、2種類のプログラムP
I、P2毎に設けられたアドレス選択器32−1および
32−2と、これらアドレス選択器32−1.32−2
のいずれかよシ択−的にアドレスを選択するセレクタ(
SEL) 33と、セレクタ33からのアドレスを受け
て前記プログラムPi、P2を実行する命令群の中の対
応する1つを送出するメモリ34と、メモリ34から読
出した命令を一時保持する命令し・ゾスタ35とからな
る。メモリ34は前記命令群を格納するROM(Rea
d 0nly M@mory)である。さらに詳細には
、プログラム処理系のアドレス選択器32−1は、イン
クリメンタ(If)41−1.プログラムカウンタCP
CI ) 42−1 、プログラムスタッカ(8T1)
43−1およびアドレス切替部(81)44−1からな
る。プログラム処理系のアドレス選択器も同様の構成要
素41−2.42−2.43−2および44−2からな
る。このうち、プログラムスタッカ43−1.43−2
および切替部44−1゜44−2は、切替制御器(SC
)45によって切替制御がなされる。
This program control circuit 31 has two types of programs P.
Address selectors 32-1 and 32-2 provided for each I and P2, and these address selectors 32-1, 32-2
A selector that selectively selects an address (
SEL) 33, a memory 34 that receives an address from the selector 33 and sends out a corresponding one of a group of instructions for executing the programs Pi and P2, and an instruction that temporarily holds the instructions read from the memory 34. It consists of Zosta 35. The memory 34 is a ROM (Rea) that stores the instruction group.
d 0nly M@mory). More specifically, the program processing system address selector 32-1 includes incrementers (If) 41-1. Program counter CP
CI) 42-1, program stacker (8T1)
43-1 and an address switching unit (81) 44-1. The address selector of the program processing system also consists of similar components 41-2.42-2.43-2 and 44-2. Of these, program stacker 43-1, 43-2
and the switching units 44-1 and 44-2 are switching controllers (SC
) 45 performs switching control.

第3図は第1図における切替制御器(8C)45の詳細
な一例を示す回路である。切替制御器45は、プログラ
ムカウンタ切替部(PC8I’)51−1゜プログラム
カウンタ切替部(PGE1)51−2.デコーダ52.
その他0Rr−) 、AND?−) 、(ンパ〜りIN
Vよシなる。切替制御器45に入力される信号は、プロ
グラム切替信号X、外部条件旧号Y、命令レジスタ35
(第1図)からの分岐命令表示信号2および分岐命令種
別コードJCでちゃ、出力される信号はプログラムスタ
ッカ43−1゜43−2(第1図)へのスタ、り信号5
TK1.5TK2およびアドレス切替部44−1.44
−2(第1図)への切替信号である。なお、CKは1命
令サイクル毎に生成されるサイクルクロック信号である
FIG. 3 is a circuit showing a detailed example of the switching controller (8C) 45 in FIG. 1. The switching controller 45 includes a program counter switching section (PC8I') 51-1, a program counter switching section (PGE1) 51-2. Decoder 52.
Others 0Rr-), AND? -) , (Npa~ri IN
It's V. The signals input to the switching controller 45 are a program switching signal X, an external condition old name Y, and an instruction register 35.
The branch instruction display signal 2 and branch instruction type code JC from (Fig. 1) are output signals to the program stacker 43-1 and 43-2 (Fig. 1).
TK1.5TK2 and address switching section 44-1.44
-2 (FIG. 1). Note that CK is a cycle clock signal generated every instruction cycle.

第1図および第3図を参照すると、プログラム切替信号
Xは、1命令サイクル毎に反転し、例えば論理″0”の
ときにはプログラムPl側の命令を読出す操作が行われ
、論理″′1#のときにはプログラムP2側の命令を読
出す操作が行われる。
Referring to FIGS. 1 and 3, the program switching signal At this time, an operation for reading instructions on the program P2 side is performed.

読出された命令は次の命令サイクルでマイクロゾロ七、
す(MPU)により実行されるという手順を採るので、
プログラム切替信号Xの論理が1”のときKはプログラ
ムPl側の命令を実行し、′0″のときKはプログラム
P2側の命令を実行するという各操作がなされる。
The read instruction will be read out in the next instruction cycle.
The process is executed by MPU (MPU).
When the logic of the program switching signal X is 1'', K executes the instruction on the program P1 side, and when the logic is 0'', K executes the instruction on the program P2 side.

プログラムPl側(又はP2側)の命令を読出す命令サ
イクルでは、アドレス切替部44−1(又は44−2)
はプログラムカウンタ42−1(又は42−2)からの
アドレスを選択して出力する。第3図を参照すると、仮
に今、プログラムPl側の命令を読出す命令サイクルに
あるとすると(プログラム切替信号Xが論理″′0”)
、インバータINVによって論理“・1#がORグー)
 ORIを通過し、プログラムカウンタ切替部51−1
を駆動し、一方、信号Xの論理″0#がORダートOR
2を通過してプログラムカウンタ切替部51−2を非駆
動とする。ここ忙プログラムカウンタ42−1のアドレ
スが選択され、セレクタ33に印加される。又、インク
リメンタ41−1にも印加される。
In an instruction cycle for reading an instruction on the program Pl side (or P2 side), the address switching unit 44-1 (or 44-2)
selects and outputs an address from the program counter 42-1 (or 42-2). Referring to FIG. 3, suppose that we are currently in an instruction cycle for reading an instruction on the program Pl side (program switching signal X is logic ``0'').
, logic "・1# is ORed by inverter INV)"
The program counter switching section 51-1 passes through the ORI.
On the other hand, the logic "0#" of the signal X is OR dart OR
2, and the program counter switching section 51-2 is made non-driven. The address of the busy program counter 42-1 is selected and applied to the selector 33. It is also applied to the incrementer 41-1.

この場合、当該信号X(=″0“)は、第1図中の信号
線L2を通してインクリメンタ41−2に印加され、こ
れを停止させるが、インバータr ?lJV ’で論理
″1′となって信号線LXに送出され、インクリメンタ
41−1の歩進動作を促す。つまり、今、アドレス切替
部44−1よシ出力されたアドレスに+1fる。プログ
ラムP2側の命令を読出す命令サイクルでは、切替信号
Xが論理″′1#となり、前述と同様の動作がアドレス
選択器3z−2側で行われる。
In this case, the signal X (="0") is applied to the incrementer 41-2 through the signal line L2 in FIG. 1 to stop it, but the inverter r? lJV' becomes logic "1" and is sent to the signal line LX, prompting the incrementer 41-1 to step. In other words, the address currently output from the address switching unit 44-1 is increased by +1f.Program In the instruction cycle for reading the instruction on the P2 side, the switching signal X becomes the logic "'1#", and the same operation as described above is performed on the address selector 3z-2 side.

次に、読出したプログラムPl側(又はP2側)の命令
を実行する命令サイクルでは、例えばPl側命令を実行
するとき、プログラム切替信号Xは論理″′0”を表示
している。このプログラムPl側の命令実行に際し、当
該命令が非分岐命令であるときは、分岐命令表示信号2
は論理″′1”であシ、切替制御器45は、ORダート
OR1およびデコーダ52を通して、プログラムカウン
タ切替部51−1を駆動し、プログラムカウンタ42−
1を選択する。プログラムP2側についても(X−”1
”)、非分岐命令であれば、プログラムカウンタ42−
2は、当該実行命令は分岐命令であり、その分岐命令種
別コードJCK対応するアドレスが、メモリ34よりネ
クストアドレスNAとして、アドレス切替部44−1(
又は44−2 )により選択される。この分岐命令実行
サイクルでは、前記コードJCをデコーダ52で解読し
、プログラムカウンタ42−1(および42−2)を非
駆動とすると共に、インクリメンタ4l−1(および4
l−2)も非駆動とする。又、このとき同時にデコーダ
52はAND )1m−)ANDI (又はAND2)
!リスク、り信号5TKI (又は5TK2 )を出力
し、プログラムスタッカ43−1 (又は43−2)を
駆動して、当該分岐命令の直前のプログラムカウンタ4
2−1 (、又は42−2)の内容を保持する。この保
持されたアドレスは、当該分岐命令の実行が終了したと
き(Z=”l“)、次の命令読出しサイクルにおいて、
アドレス切替部44−1(又は44−2)によシ再読出
しされる。なお、外部条件信号Yは、必要に応じて外部
からの特別の命令も実行可能とするためのものである。
Next, in an instruction cycle for executing an instruction on the Pl side (or P2 side) of the read program, for example, when executing an instruction on the Pl side, the program switching signal X displays a logic "'0". When executing an instruction on the program Pl side, if the instruction is a non-branch instruction, the branch instruction display signal 2
is the logic "'1", the switching controller 45 drives the program counter switching unit 51-1 through the OR dirt OR1 and the decoder 52, and the program counter 42-
Select 1. Regarding the program P2 side (X-”1
”), if it is a non-branch instruction, the program counter 42-
2, the execution instruction is a branch instruction, and the address corresponding to the branch instruction type code JCK is selected from the memory 34 as the next address NA by the address switching unit 44-1 (
or 44-2). In this branch instruction execution cycle, the code JC is decoded by the decoder 52, the program counter 42-1 (and 42-2) is non-driven, and the incrementer 4l-1 (and 4
l-2) is also not driven. Also, at this time, the decoder 52 simultaneously performs AND )1m-)ANDI (or AND2)
! When the risk occurs, the signal 5TKI (or 5TK2) is output, the program stacker 43-1 (or 43-2) is driven, and the program counter 4 immediately before the branch instruction is
The contents of 2-1 (or 42-2) are retained. This held address is stored in the next instruction read cycle when the execution of the branch instruction is completed (Z="l").
The address switching unit 44-1 (or 44-2) reads out the data again. Note that the external condition signal Y is for making it possible to execute a special command from the outside as necessary.

第4図は第3図におけるアドレスの流れを一具体例をも
って示すタイムチャートである。又、第5図は第4図に
おけるプログラムの進行を一具体例をもって示す流れ図
である。第4図において、’r、 I ’r、 + T
3・・・杜時刻を表わし、左欄のX。
FIG. 4 is a time chart showing a specific example of the flow of addresses in FIG. 3. Further, FIG. 5 is a flowchart showing a specific example of the progress of the program in FIG. 4. In Figure 4, 'r, I 'r, + T
3...Represents Mori time, X in the left column.

11、PCI、NA・・・等の意味は第1図において説
明したとおシであシ、例えば工1はインクリメンタの出
力、PCIはプログラムカウンタの出力である。
The meanings of 11, PCI, NA, etc. are the same as explained in FIG. 1. For example, 1 is the output of the incrementer, and PCI is the output of the program counter.

又、N、N+1 、A 、A+1.8 、B+1 、M
、N+1等は、メモリ(ROM) 34内のN番地、(
N+1)番地の意味であり、当該番地に格納される命令
けr、 e IN+1・・・(図では(M−1)、N、
M・・・等の番地の命令を示す)である。同図中、時刻
T1ではプログラムP2側の非分岐命令が実行されてい
る。
Also, N, N+1, A, A+1.8, B+1, M
, N+1, etc. are the N address in the memory (ROM) 34, (
(M-1), N,
(indicates an instruction at an address such as M...). In the figure, at time T1, a non-branch instruction on the program P2 side is being executed.

このとき、インクリメンタI2のアドレス加算は禁止さ
れている。一方、このとき、アドレス切替部S1は、プ
ログラムカウンタPCIの出方を強制的に選択する。同
図中時刻T2ではプログラムP1側の分岐命令(JUM
P)’A’が実行され、このときインクリメンタ11の
加算は禁止される。
At this time, address addition by incrementer I2 is prohibited. On the other hand, at this time, the address switching unit S1 forcibly selects the output of the program counter PCI. At time T2 in the figure, a branch instruction (JUM
P) 'A' is executed, and at this time addition by the incrementer 11 is prohibited.

−万、このとき切替部S2はプログラムカウンタPC2
の出力を強制的に選択する。時刻T3ではプログラムP
2側の分岐命令(JUMP )ゝB′が実行され、時刻
T4ではプログラムPl側の非分岐命令が実行され、時
刻T5およびT6では、それぞれP2およびPl側の各
非分岐命令が実行される。
- 10,000, at this time the switching unit S2 is the program counter PC2
force selection of output. At time T3, program P
The branch instruction (JUMP) B' on the 2 side is executed, the non-branch instructions on the program P1 side are executed at time T4, and the non-branch instructions on the P2 and P1 sides are executed at times T5 and T6, respectively.

発明の詳細 な説明したように本発明によれば、複数のプログラムが
同一装置内で併存して実行される場合、基本的に割込み
制御でこれらプログラムを同時に走らせるKも拘らず、
1のプログラムから他のプログラム又はこの逆の切替え
を殆どジャンプ時間なしに行えるから処理速度の向上が
図れ、しかも既存のハードウェアに大幅な変更を加える
ことなく実現することができる。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, as described in detail, when a plurality of programs are executed concurrently in the same device, although these programs are basically executed simultaneously under interrupt control,
Since switching from one program to another program or vice versa can be performed with almost no jump time, processing speed can be improved, and this can be realized without making any major changes to existing hardware.

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

第1図は本発明に基づくプログラム制御回路の一実施例
を示す回路図、第2図は第1図のプログラム制御回路に
よって動作するマイクロゾロセ。 すの処理を図解的に示す流れ図、第3図は第1図におけ
る切替制御器(SC)45の詳細な一例を示す回路図、
第4図線第3図におけるアドレスの流れを一具体例をも
って示すタイムチャート、第5図は第4図におけるプロ
グラムの進行を一具体例をもって示す流れ図、第6図は
本発明のプログラム制御回路が適用される一例を示すシ
ステム図、第7図(4)および(B)は従来の割込み制
御方式の問題点を説明するための流れ図である。 31・・・プログラム制御回路、32−1.32−2・
・・アPレス選択器、33・・・セレクタ、34・・・
メモリ、35・・・命令レジスタ、41−1.41−2
・・・インクリメンタ、42−1.42−2・・・プロ
グラムカウンタ、43−1.43−2・・・スタッカ、
44−1.44−2・・・アドレス切替部、45・・・
切替制御器、Pi 、P2・・・プログラム、NA・・
・ネクストアドレス、JUMP・・・分岐命令。 特許出願人 富士通株式会社 特許出願代理人 弁理士 青 木 朗 弁理士西舘和之 弁理士 内 1)幸 男 弁理士 山 口 昭 之 第1図 刃 第2図 第4図 第5図
FIG. 1 is a circuit diagram showing an embodiment of a program control circuit according to the present invention, and FIG. 2 is a micro-Zorose operated by the program control circuit of FIG. FIG. 3 is a circuit diagram showing a detailed example of the switching controller (SC) 45 in FIG. 1;
4 is a time chart showing the flow of addresses in FIG. 3 with a specific example; FIG. 5 is a flow chart showing the progress of the program in FIG. 4 with a specific example; FIG. 6 is a time chart showing the flow of addresses in FIG. FIGS. 7(4) and 7(B), which are system diagrams showing an example of application, are flowcharts for explaining problems with the conventional interrupt control method. 31...Program control circuit, 32-1.32-2.
...Apless selector, 33...Selector, 34...
Memory, 35...Instruction register, 41-1.41-2
...Incrementer, 42-1.42-2...Program counter, 43-1.43-2...Stacker,
44-1.44-2 Address switching section, 45...
Switching controller, Pi, P2...program, NA...
・Next address, JUMP...branch instruction. Patent Applicant Fujitsu Limited Patent Application Agent Akira Aoki Patent Attorney Kazuyuki Nishidate Patent Attorney 1) Yukio Patent Attorney Akiyuki Yamaguchi

Claims (1)

【特許請求の範囲】 1、 メモリに格納された複数のプログラムに係る命令
群よシ順次命令を読出して該プログラムに従った処理を
実行するための制御を行うプログラム制御回路において
、 前記メモリから読出した前記命令を一時保持する命令レ
ジスタと、 分岐命令の場合に該命令レジスタから読出されたネクス
トアドレス、非分岐命令の場合にプログラムスタックか
ら出力されたアドレス又は該分岐命令の場合にスタック
されたプログラムスタックからのアドレスのいずれかを
選択するアドレス切替部および前記非分岐命令の場合に
該アドレス切替部の出力を歩進するインクリメンタから
なり、且つ前記複数のプログラム毎に対応して設けられ
る複数のアドレス選択器と、 咳複数のアドレス選択器からの出力を、−命令サイクル
毎に順次切替えて前記メモリのアドレス入力に出力する
セレクタとから構成されることを特徴とするプログラム
制御回路。
[Claims] 1. In a program control circuit that performs control to sequentially read instructions from a group of instructions related to a plurality of programs stored in a memory and execute processing according to the program, the program control circuit comprises: an instruction register that temporarily holds the instruction, and a next address read from the instruction register in the case of a branch instruction, an address output from the program stack in the case of a non-branch instruction, or a stacked program in the case of the branch instruction. an address switching unit that selects one of the addresses from the stack; and an incrementer that increments the output of the address switching unit in the case of the non-branch instruction; 1. A program control circuit comprising: an address selector; and a selector that sequentially switches outputs from a plurality of address selectors every instruction cycle and outputs them to address inputs of the memory.
JP10850184A 1984-05-30 1984-05-30 Program control circuit Pending JPS60252954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10850184A JPS60252954A (en) 1984-05-30 1984-05-30 Program control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10850184A JPS60252954A (en) 1984-05-30 1984-05-30 Program control circuit

Publications (1)

Publication Number Publication Date
JPS60252954A true JPS60252954A (en) 1985-12-13

Family

ID=14486376

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10850184A Pending JPS60252954A (en) 1984-05-30 1984-05-30 Program control circuit

Country Status (1)

Country Link
JP (1) JPS60252954A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06250856A (en) * 1993-02-26 1994-09-09 Nippondenso Co Ltd Microcomputer
US6304957B1 (en) 1993-02-26 2001-10-16 Nippondenso Co., Ltd. Multitask processing unit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5014243A (en) * 1973-06-06 1975-02-14
JPS5099652A (en) * 1973-12-29 1975-08-07
JPS5440538A (en) * 1977-09-06 1979-03-30 Mitsubishi Electric Corp Multiple data processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5014243A (en) * 1973-06-06 1975-02-14
JPS5099652A (en) * 1973-12-29 1975-08-07
JPS5440538A (en) * 1977-09-06 1979-03-30 Mitsubishi Electric Corp Multiple data processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06250856A (en) * 1993-02-26 1994-09-09 Nippondenso Co Ltd Microcomputer
US6304957B1 (en) 1993-02-26 2001-10-16 Nippondenso Co., Ltd. Multitask processing unit

Similar Documents

Publication Publication Date Title
KR920006279B1 (en) Processor with multiple arithematic units for one or more programs
JPH0650493B2 (en) Data processing device
EP0025087A2 (en) Pipeline Control apparatus for generating Instructions in a Digital Computer
JPH06105460B2 (en) Multiprocessor processor switching device
EP2159686A1 (en) Information processor
JP2008217061A (en) Simd microprocessor
US4837688A (en) Multi-channel shared resource processor
US6766445B2 (en) Storage system for use in custom loop accelerators and the like
JPS60252954A (en) Program control circuit
JPH08241213A (en) Decentralized control system in microprocessor
JPS59106075A (en) Data processing system
US20070220236A1 (en) Reconfigurable computing device
US6763449B1 (en) Operation-processing apparatus
CN109948785B (en) High-efficiency neural network circuit system and method
JPH03188530A (en) Program prefetching device
JPS60263238A (en) Information processor
JPS63141131A (en) Pipeline control system
JPH07244588A (en) Data processor
JPS6240737B2 (en)
JPH11249998A (en) Lsi, control circuit of electronic equipment provided with the lsi and control method of the control circuit
JPS61131169A (en) Multi-processor system
SU1183980A1 (en) Device for exchanging data between computer and subscribers
JP2000067008A (en) Multi-processor system
JPS6375833A (en) Information processor
JPS62164138A (en) Microprocessor with concurrent loop