JPH0443434A - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JPH0443434A
JPH0443434A JP15111690A JP15111690A JPH0443434A JP H0443434 A JPH0443434 A JP H0443434A JP 15111690 A JP15111690 A JP 15111690A JP 15111690 A JP15111690 A JP 15111690A JP H0443434 A JPH0443434 A JP H0443434A
Authority
JP
Japan
Prior art keywords
register
executed
programs
cpu
program
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
JP15111690A
Other languages
Japanese (ja)
Inventor
Kazuo Chiba
一夫 千葉
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP15111690A priority Critical patent/JPH0443434A/en
Publication of JPH0443434A publication Critical patent/JPH0443434A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute plural programs without increasing a CPU core and without causing the collision of a data bus by providing plural register parts including accumulators, storing respective programs in said register parts and permitting a selection means to selectively connect the register parts to the CPU core. CONSTITUTION:The register parts L1 and L2 including the accumulators 1a, 2a, 1b and 2b are provided and the programs are held in the register parts. The selection means 7 selectively connects the register parts to the CPU core. In such a case, respective register parts L1 and L2 connected to a CPU internal bus 8 are sequentially switched, connected and are connected to the CPU internal bus 8 in the selection means 7 when a register switch instruction 9 is executed in the CPU core. The executed program is temporarily interrupted by using the detached register part and the content of the register part remains as it is while it is held. Thus, the register switch instruction 9 is executed again and the program can continuously be executed even if the register part is selected. Thus, plural programs can be executed.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、CPUコアを複数個実装することなく、複
数のプログラムを並行して実行することができるように
した、マイクロプロセッサに関するものである。
[Detailed Description of the Invention] (Industrial Application Field) This invention relates to a microprocessor that can execute multiple programs in parallel without installing multiple CPU cores. .

〔従来の技術〕[Conventional technology]

従来のマイクロプロセッサにおいて、複数のプログラム
を同時に実行するために、CPUコアを、実行するプロ
グラム数だけ増加するようにしたものがある。
In some conventional microprocessors, in order to simultaneously execute a plurality of programs, the number of CPU cores is increased by the number of programs to be executed.

第3図、第4図は、2つのプログラムを同時に実行する
ことのできるマイクロプロセッサを内蔵した、シングル
チップマイクロコンピュータの内部構造の一例である。
FIGS. 3 and 4 show an example of the internal structure of a single-chip microcomputer that includes a built-in microprocessor that can simultaneously execute two programs.

各図において、10はシングルチップマイクロコンピュ
ータ、12はプログラムが記jホされているROM、1
3はRAM、14は周辺I10.15は内蔵タイマ、1
1a及σ11bは、命令を実行するマイクロプロセッサ
である。また、16はアキュームレータ、17はフラグ
フリップフロップ、18は汎用レジスタ、19は命令レ
ジスタ、20は命令レコーダ、21は篩術論理ユニット
である。
In each figure, 10 is a single-chip microcomputer, 12 is a ROM in which a program is recorded, and 1
3 is RAM, 14 is peripheral I10.15 is built-in timer, 1
1a and σ11b are microprocessors that execute instructions. Further, 16 is an accumulator, 17 is a flag flip-flop, 18 is a general-purpose register, 19 is an instruction register, 20 is an instruction recorder, and 21 is a sieving logic unit.

この構成では、マイクロプロセッサは2つのCPUコア
lla、11bからなり、それぞれのCPUコア11a
、llbはROMにある各々のプログラムを実行する。
In this configuration, the microprocessor consists of two CPU cores lla and 11b, each with a CPU core 11a.
, llb execute respective programs in the ROM.

マイクロプロセッサ以外の周辺回路は共通となっている
Peripheral circuits other than the microprocessor are common.

(発明が解決しようとする課題) 従来のマイクロプロセッサは以上のように、複数のプロ
グラムを実行するためには、CPUコアを複数個用意す
る必要があり、増加したCPUコアの分だけチップ面積
が大きくなるという欠点があった。また、複数のCPU
コアを実装することにより、ROM−RAMのリードラ
イト時に起こるデータの衝突を、回避するための対策も
必要となっていた。
(Problems to be Solved by the Invention) As described above, conventional microprocessors require multiple CPU cores in order to execute multiple programs, and the chip area increases by the increased number of CPU cores. It had the disadvantage of being large. Also, multiple CPUs
By implementing the core, it is also necessary to take measures to avoid data collisions that occur when reading and writing ROM-RAM.

この発明は上記のような問題点を解決するためになされ
たもので、複数のプログラムを並行に実行しながら、デ
ータバスの衝突も起こすことなく、少なくとも1つのC
PUコアで構成することのできるマイクロプロセッサを
提供することを目的とする。
This invention was made in order to solve the above-mentioned problems, and it is possible to execute at least one C++ program without causing data bus collision while executing multiple programs in parallel.
An object of the present invention is to provide a microprocessor that can be configured with a PU core.

〔課題を解決するための手段〕[Means to solve the problem]

アキュームレータを含むレジスタ部L1.L2゜L3を
複数個設けて、それぞれにプログラムを保持させ、この
レジスタ部L’l、L2.L3を選択手段7で選択的に
CPUコアに接続する。
Register section L1 including an accumulator. A plurality of L2 and L3 are provided, each of which holds a program, and these register portions L'l, L2. L3 is selectively connected to the CPU core by selection means 7.

〔作用〕[Effect]

それぞれのレジスタ部Ll、L2.L3が選択手段で選
択的にCPUコアに接続されて、プログラムが選択的に
起動される。
Each register section Ll, L2 . L3 is selectively connected to the CPU core by a selection means, and a program is selectively activated.

〔実施例〕〔Example〕

第1図は、この発明の一実施例を示すCPUコアとレジ
スタ部との接続構成を示すブロック図である。図におい
て、アキュームレータ1a及びアキュームレータ1bは
切換手段S1を介してCPU内部バス8に接続され、同
様にアキュームレータ2a及びアキュームレータ2bは
切換手段S2を、レジスタ3a及びレジスタ3bは切換
手段S3を、レジスタ4a及びレジスタ4bは切換手段
S4を、レジスタ5a及びレジスタ5bは切換手段S5
を、プログラムカウンタ6a及びプログラムカウンタ6
bは切換手段S6を介してそれぞれCPU内部バス8に
接続される。なお、上記切換手段S]〜S6はレジスタ
選択手段7によって選択される。この場合、アキューム
レータ1a。
FIG. 1 is a block diagram showing a connection configuration between a CPU core and a register section according to an embodiment of the present invention. In the figure, the accumulator 1a and the accumulator 1b are connected to the CPU internal bus 8 via the switching means S1, and similarly, the accumulator 2a and the accumulator 2b are connected to the switching means S2, the registers 3a and 3b are connected to the switching means S3, and the registers 4a and 2b are connected to the switching means S3. The register 4b serves as the switching means S4, and the registers 5a and 5b serve as the switching means S5.
, the program counter 6a and the program counter 6
b are respectively connected to the CPU internal bus 8 via switching means S6. Note that the switching means S] to S6 are selected by the register selection means 7. In this case, accumulator 1a.

アキュームレータ2a、レジスタ3a、レジスタ4a、
レジスタ5a、プログラムカウンタ6aで第ルジスタ部
L1が構成され、またアキュームレータ1b、アキュー
ムレータ2b、レジスタ3b、レジスタ4b、レジスタ
5b、プログラムカウンタ6bで第2レジスタ部L2が
構成される。
Accumulator 2a, register 3a, register 4a,
A register 5a and a program counter 6a constitute a register section L1, and an accumulator 1b, an accumulator 2b, a register 3b, a register 4b, a register 5b, and a program counter 6b constitute a second register section L2.

この状態で第ルジスタ部L1が選択されて、この第2レ
ジスタ部に保持されたプログラムが実行されると、デー
タの入出力は選択されている第ルジスタ部L1を構成す
るアキュームレータ1a、アキュームレータ2a、レジ
スタ3a、レジスタ4a、レジスタ5a、プログラムカ
ウンタ6aに対してのみ行われ、第2レジスタ部[2を
構成する各レジスタは非選択となる。
When the second register section L1 is selected in this state and the program held in the second register section is executed, data input/output is performed by the accumulators 1a, 2a, and 2a constituting the selected register section L1. This is performed only for the register 3a, register 4a, register 5a, and program counter 6a, and each register constituting the second register section [2 is unselected.

このように、CPtJコアにおいて、レジスタ切り換え
命令9が実行されたとすると、選択手段7によりCPU
内部バス8に接続されている各レジスタ部L1.L2が
順次切り替わり、かつ選択され、CPU内部バス8に接
続されることになる。
As described above, when the register switching instruction 9 is executed in the CPtJ core, the selection means 7 selects the CPU
Each register section L1. connected to the internal bus 8. L2 is sequentially switched and selected, and is connected to the CPU internal bus 8.

切り頭1されたレジスタ部を使用して実行されていたプ
ログラムは一時的に中断された形となるが、そのレジス
タ部の内容が保持されたまま残るので、再度レジスタ選
択命令9が実行されて、そのレジスタ部が選択されても
、継続してプログラムの実行が可能となる。
The program that was being executed using the truncated register section will be temporarily interrupted, but the contents of that register section will remain retained, so register selection instruction 9 will be executed again. , even if that register section is selected, the program can continue to be executed.

第2図は、この発明の伯の実施例を示すCPUコアのレ
ジスタ部分のブロック図であり、これはアキュームレー
タ、レジスタ、プログラムカウンタをブロック単位で一
括して、第1〜第3レジスタ部L1.L2,13を構成
し、それぞれの第1〜第3レジスタ部11.12.13
を切換手段SOを介してCPU内部バス8に接続されて
いる。
FIG. 2 is a block diagram of a register portion of a CPU core showing an embodiment of the present invention, in which an accumulator, a register, and a program counter are collectively arranged in blocks, and the first to third register portions L1. The first to third register sections 11.12.13 constitute L2 and 13, respectively.
is connected to the CPU internal bus 8 via switching means SO.

以下動作を説明すると、レジスタ切り換え命令9の実行
により、レジスタ部L1が選択手段7によって選択され
CI〕U内部バス8に接続されたとすると、レジスタ部
L2.L3は非選択のため、実行されているプログラム
のデータ人出ノ〕はレジスタ部11のみ行われる。この
状態で、レジスタ切り換え命令9によってレジスタ部[
2が選択されたとすると、レジスタ部L2がレジスタ選
択手段7にまって選択されCPLI内部バス8に接続さ
れる。レジスタ部L1上で実行されていたプログラムは
一時停止し、レジスタ部L2のプログラムが実行を開始
する。
The operation will be described below. Assuming that register section L1 is selected by selection means 7 and connected to CI]U internal bus 8 by executing register switching instruction 9, register section L2. Since L3 is not selected, data output of the program being executed is performed only in the register section 11. In this state, the register switching instruction 9 causes the register section [
2 is selected, the register section L2 is selected by the register selection means 7 and connected to the CPLI internal bus 8. The program being executed on the register section L1 is temporarily stopped, and the program on the register section L2 starts execution.

以上のように、増ヤしたレジスタ部の数だけプログラム
を並行して実行することが可能になる。
As described above, it becomes possible to execute programs in parallel by the number of increased register units.

上記第1図の例において各レジスタ部は2個の構成で示
したが、2個以上であってもよく、多重化したレジスタ
分だけプログラムを実行することが可能なため、同等ま
たはそれ以上の効果がある。
In the example shown in Fig. 1 above, each register section is shown to have a configuration of two, but it may have two or more, and it is possible to execute a program for the multiplexed registers. effective.

第2図の例においても同様で、レジスタ部は3個以上で
もよく、増ヤしたレジスタ部の数だけプログラムを並行
して実行することが可能になる。
The same applies to the example shown in FIG. 2, and the number of register sections may be three or more, and it becomes possible to execute programs in parallel by the number of increased register sections.

また、第3図においてマイクロプロセッサ11a、11
bと、Ilo  14.タイマ15゜ROM12.RA
M13などにより構成されたシングルチップマイクロコ
ンピュータを一実施例として示したが、CPUコア単体
であってもよく、CPUコア部分が上記のような構成で
あれば、同様の効果を奏覆る。
Further, in FIG. 3, the microprocessors 11a, 11
b and Ilo 14. Timer 15° ROM12. R.A.
Although a single-chip microcomputer configured with M13 or the like is shown as an example, it may be a single CPU core, and if the CPU core has the above-described configuration, the same effect will be achieved.

(発明の効果) 以上説明したように本発明によれば、複数のレジスタ部
のそれぞれにプログラムを記憶して、各レジスタ部をC
PUコアに選択的に接続するようにしたのでCPUコア
を増加することなく、しかもデータバスの衝突も起こす
ことなく複数のプログラムを実行できる。
(Effects of the Invention) As explained above, according to the present invention, a program is stored in each of a plurality of register sections, and each register section is
Since it is selectively connected to the PU core, multiple programs can be executed without increasing the number of CPU cores and without causing data bus collision.

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

第1図は、この発明の実施例によるマイクロプロセッサ
の内部のアキュームレータを含むレジスタ部のブロック
図、第2図はこの発明の伯の実施例を示すブロック図、
第3図、第4図は、従来のマイクロプロセッサの一例を
示す図である。 L1〜L3・・・・・・レジスタ部、So、S1〜S6
・・・・・・切換手段、7・・・・・・レジスタ選択手
段、8・・・・・・CPU内部バス、9・・・・・・レ
ジスタ切り換え命令、11 a、 11 b−・−・C
PIJコア。 なお、図中、同一符号は同一、又は相当部分を示す。
FIG. 1 is a block diagram of a register section including an accumulator inside a microprocessor according to an embodiment of the present invention, and FIG. 2 is a block diagram showing a further embodiment of the present invention.
FIGS. 3 and 4 are diagrams showing an example of a conventional microprocessor. L1-L3...Register section, So, S1-S6
...Switching means, 7...Register selection means, 8...CPU internal bus, 9...Register switching instruction, 11a, 11b--・C
PIJ core. In addition, in the figures, the same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] CPUコアを有し、複数のプログラムを実行するマイク
ロプロセッサにおいて、少なくともアキュームレータを
含むレジスタ部を複数個設けて、それぞれに各プログラ
ムを記憶するようにし、上記レジスタ部を選択手段で選
択的に上記CPUコアに接続するようにしたことを特徴
とするマイクロプロセッサ。
In a microprocessor that has a CPU core and executes a plurality of programs, a plurality of register sections including at least an accumulator are provided, each program is stored in each, and the register sections are selectively transferred to the CPU by a selection means. A microprocessor characterized by being connected to a core.
JP15111690A 1990-06-08 1990-06-08 Microprocessor Pending JPH0443434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15111690A JPH0443434A (en) 1990-06-08 1990-06-08 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15111690A JPH0443434A (en) 1990-06-08 1990-06-08 Microprocessor

Publications (1)

Publication Number Publication Date
JPH0443434A true JPH0443434A (en) 1992-02-13

Family

ID=15511712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15111690A Pending JPH0443434A (en) 1990-06-08 1990-06-08 Microprocessor

Country Status (1)

Country Link
JP (1) JPH0443434A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998013759A1 (en) * 1996-09-27 1998-04-02 Hitachi, Ltd. Data processor and data processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998013759A1 (en) * 1996-09-27 1998-04-02 Hitachi, Ltd. Data processor and data processing system

Similar Documents

Publication Publication Date Title
JP2770603B2 (en) Parallel computer
EP0511674B1 (en) Single chip microcomputer
JPH0550022B2 (en)
JPH0254383A (en) Array processor
JPH0443434A (en) Microprocessor
JPS61262922A (en) High-speed stack circuit for resister data
JPS5833975B2 (en) data processing system
JPH04280334A (en) One chip microcomputer
JPH05165641A (en) Single chip microcomputer
JPS62125444A (en) Control system for memory shared area
JPS6243734A (en) Microprocessor
JPS6043757A (en) Microcomputer of one chip
JP2003196251A (en) Multi-cpu system
JPH0683640A (en) Interruption response processing system
JPS63137351A (en) Dmac device with logical operation function
JP3149436B2 (en) Microprocessor
JPS6352241A (en) Microprocessor
JPS6240737B2 (en)
JPS598060A (en) Microprocessor
JPS62166463A (en) Data transfer system
JPS6126699B2 (en)
JPS60247739A (en) Microprogram controller
JPH03250337A (en) Emulator
JPS62150459A (en) Single chip microcomputer
JPS62221062A (en) Single chip microcomputer