JPS5999551A - Address generating circuit - Google Patents

Address generating circuit

Info

Publication number
JPS5999551A
JPS5999551A JP57209776A JP20977682A JPS5999551A JP S5999551 A JPS5999551 A JP S5999551A JP 57209776 A JP57209776 A JP 57209776A JP 20977682 A JP20977682 A JP 20977682A JP S5999551 A JPS5999551 A JP S5999551A
Authority
JP
Japan
Prior art keywords
segment base
register
segment
address
signal
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
JP57209776A
Other languages
Japanese (ja)
Inventor
Sumio Ozawa
小澤 純雄
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP57209776A priority Critical patent/JPS5999551A/en
Publication of JPS5999551A publication Critical patent/JPS5999551A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/34Addressing or accessing the instruction operand or the result ; Formation of operand address; Addressing modes
    • G06F9/342Extension of operand address space

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To select externally a register by providing a logical circuit which inputs a selection signal from an instruction decoder and a modifying signal for segmentation supplied from outside of an LSI chip to a segment base register selecting circuit. CONSTITUTION:A combinational logical circuit 6 is provided between the instruction decoder 1 and a multiplexer 3. Segment base registers 2-1-2-n are connected to the multiplexer 3. A necessary segment inside deviation address signal 12 is sent according to the kind of an instruction once the instruction decoder 1 outputs the segment base register selection signal 11, and the signal 12 is stored in an address register 4. The segmentation modifying signal 17 from outside of the circuit allows the combinational logical circuit 6 to convert the selection signal from the instruction decoder 1. Consequently, the generation process of a physical address from an adding circuit is controlled externally.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロプロセ・ノサのセグメンテーション機
構のアドレス生成回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an address generation circuit for a segmentation mechanism of a microprocessor.

従来例の構成とその問題点 近年マイクロプロセッサの応用範囲が広がりそれに伴な
いマイクロプロセッサの高機能化がはかられてきている
。従来ミニコンピユータ又はメインフレームコンピュー
タの機能の一つであったセグメンテーション方式による
主記憶アクセス機能も1チツプのLSI(大規模集積回
路)の中に取り込まれている。
Conventional configurations and their problems In recent years, the scope of application of microprocessors has expanded, and as a result, efforts have been made to improve the functionality of microprocessors. The main memory access function using a segmentation method, which was one of the functions of conventional minicomputers or mainframe computers, has also been incorporated into a single chip LSI (Large Scale Integrated Circuit).

第1図はマイクロプロセッサのセグメンテーション機構
でのアドレス生成回路の従来例を示すものである。同図
において、1は命令デコーダ、2−1〜2−nはセグメ
ントのベースアドレスを格納しであるセグメントベース
レジスタ、3は命令デコーダ1から送出されるセグメン
トベース選択信号11に従って1つのセグメントベース
レジスタを選択するマルチプレクサ、4はセグメント内
偏差を格納するアドレスレジスタ、5はマ/l、 fプ
レクサ3の出力とアドレスレジスタ4の出力とを入力と
し物理アドレスを出力する加算回路である。
FIG. 1 shows a conventional example of an address generation circuit in a segmentation mechanism of a microprocessor. In the figure, 1 is an instruction decoder, 2-1 to 2-n are segment base registers that store segment base addresses, and 3 is one segment base register according to a segment base selection signal 11 sent from the instruction decoder 1. 4 is an address register for storing the intra-segment deviation, and 5 is an adder circuit which receives the output of M/l and f plexer 3 and the output of address register 4 and outputs a physical address.

上記のような構成において、以下その動作について説明
する。まず命令を主記憶からフェッチして来たプロセッ
サはその命令の解釈を命令デコーダ1で行ないその結果
、主記憶又は入出力領域に対するアクセスが必要であっ
た時、命令の種類に応じて選択すべきセグメントベース
レジスタ2−1゜2−2.・・・2−nを指定するため
、セグメントベースレジスタ選択信号11を出力する。
The operation of the above configuration will be described below. First, a processor that has fetched an instruction from main memory interprets the instruction using instruction decoder 1, and as a result, when access to main memory or input/output area is required, it should be selected according to the type of instruction. Segment base register 2-1゜2-2. ...2-n, the segment base register selection signal 11 is output.

同時に命令デコーダ1は命令の種類に応じて必要なセグ
メント内偏差アドレス信号12を出力しアドレスレジス
タ4に格納する。加算回路5によって上記マルチプレク
サ3で選択されたセグメントベースレジスタ2−1・・
・2−nの内の一つのセグメントベースレジスタの内容
と上記アドレスレジスタ4の内容とが加算され主記憶又
は入出力領域の実アドレス即ち物理アドレス13が生成
される。
At the same time, the instruction decoder 1 outputs a necessary intra-segment deviation address signal 12 according to the type of instruction, and stores it in the address register 4. The segment base registers 2-1 selected by the multiplexer 3 by the adder circuit 5...
- The contents of one of the segment base registers 2-n and the contents of the address register 4 are added to generate a real address of the main memory or input/output area, that is, a physical address 13.

命令の7工ツチ時においても、以上の動作はマルf 7
” レクサ3で選択されるレジスタが命令コードの入っ
ているセグメントに対応するセグメントベースレジスタ
となる点および、アドレスレジスタ4の内容が命令カウ
ンタの内容と同一となる点を除いて全く同様となる。
Even when the command is set to 7, the above operation is executed as Mar f 7.
” It is exactly the same except that the register selected by the lexer 3 is the segment base register corresponding to the segment containing the instruction code, and the contents of the address register 4 are the same as the contents of the instruction counter.

これらのセグメンテーション機構は、LSIの高集積化
の動きに伴い1チツプのマイクロプロセッサの中に全体
が取り込まれてきているが、マイクロプロセッサからは
主記憶又は入出力領域のアクセスに直接使用される加算
回路5で加算された物理アドレスしか出力されない。こ
の様な構造のセグメンテーション機構を持ったマイクロ
プロセ・ノサにおいては、物理アドレス生成は全て命令
コードによって一意的(で決まってしまい、LSIチッ
プの外部よりアドレス生成機構を制御することは出来な
い。従って従来のセグメンテーション威構を1チツプの
LSllに持ったマイクロプロセッサは画一的な使用し
か出来ず、マルチプロセッサ構成、主記憶管理およびプ
ログラム領域の拡張などを実現するのが困難であった。
These segmentation mechanisms have been incorporated entirely into a single-chip microprocessor as LSIs become more highly integrated; Only the physical address added by circuit 5 is output. In a microprocessor that has a segmentation mechanism with this structure, all physical address generation is uniquely determined by the instruction code, and the address generation mechanism cannot be controlled from outside the LSI chip. Microprocessors with conventional segmentation capabilities in a single chip LS1 can only be used in a uniform manner, making it difficult to realize multiprocessor configurations, main memory management, and expansion of program areas.

発明の目的 本発明は」二記欠点に鑑み、セグメンテーション機構を
内蔵するマイクロプロセッサの柔軟な応用を可能とする
ことを目的とする。
OBJECTS OF THE INVENTION In view of the above two drawbacks, it is an object of the present invention to enable flexible application of a microprocessor incorporating a segmentation mechanism.

発明の構成 本発明はセグメントベースレジスタ選択回路に、命令デ
コーダからの選択信号とLSIチップ外部から印加され
るセグメンテーションの修飾信号とを入力とする組合せ
論理回路を設け、LSIチップ外部から入力する上記セ
グメンテーション修飾信号によって選択するセグメント
ベースレジスタを変更できるよう構成することにより、
上記目的を達するものである。
Structure of the Invention The present invention provides a segment base register selection circuit with a combinational logic circuit that receives as input a selection signal from an instruction decoder and a segmentation modification signal applied from outside the LSI chip. By configuring the segment base register to be selected by modifying signals,
This aims to achieve the above objectives.

実施例の説明 以下、図面を参照しながら本発明の一実施例について説
明する。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

第2図は本発明の第1の実施例におけるアドレス生成回
路の構成を示すものである0第2図において、1は命令
デコーダ、 2−1 、2−2.2−3゜・・・、2−
ntrlセグメントベースレジスタ、3はマルチプレク
サ、4はアドレスレジスタ、5は加算回路で、以上は第
1図の構成と同じものである。
FIG. 2 shows the configuration of the address generation circuit in the first embodiment of the present invention. In FIG. 2, 1 is an instruction decoder, 2-1, 2-2, 2-3..., 2-
ntrl segment base register, 3 is a multiplexer, 4 is an address register, and 5 is an adder circuit, which is the same as the configuration shown in FIG.

第1図の構成と異なる点は命令デコーダ1から送出され
るセグメントベースレジスタ選択信号11と、プロセッ
サの外部から供給されるセグメント制御信号とを入力し
て、マルチプレクサ3に¥JIJ呻信号14を与える組
合せ論理回路6を新たに設けた点である。
The difference from the configuration shown in FIG. 1 is that a segment base register selection signal 11 sent from an instruction decoder 1 and a segment control signal supplied from outside the processor are input, and a \JIJ groan signal 14 is given to a multiplexer 3. The point is that a combinational logic circuit 6 is newly provided.

以上の様に構成された本実施例のアドレス生成回路につ
いて、以下その動作を説明する。
The operation of the address generation circuit of this embodiment configured as described above will be explained below.

まず第2図には示されていないプログラム実行機構で主
記憶より命令をフェッチしたプロセッサは、その命令の
解釈を命令デコーダ1で行ない、その時主記憶又は入出
力領域に対する読み出し又は咽込み動作が必要であった
場合、命令の種類に応じて選択すべきセグメントベース
レジスタ選択信号11が命令デコーダ1より出力される
。同時に命令デコーダ1は命令の種類知悉じて必要なセ
グメント内偏差アドレス信号12を出力し、アドレスレ
ジスタ4に格納する。以上の動作は従来例で説明した通
りである。一方、同回路外より供給されるセグメンテー
ション修飾信号17とセグメントベースレジスタ選択信
号11とを入力とする組合せ論理回路6は、複数のセグ
メントベースレジスタ2−1〜2−Hの一つを選択する
マルチプレックサ3への制御信号14を出力する。マル
チプレックサ3により選択された複数のセグメントベー
スレジスタ2−1〜2−nの内の一つのレジスタの値、
すなわちセグメントベースアドレスは信号線16を介し
て加算回路6に印加される。加算回路5ば、アドレスレ
ジスタ4からのセグメント内偏差アドレスを示す信号1
6と上記信号15のセグメントベースアドレスとを加算
して、物理アドレス13を出力する。
First, the processor fetches an instruction from the main memory using a program execution mechanism (not shown in FIG. 2), and the instruction is interpreted by the instruction decoder 1. At that time, a read or write operation to the main memory or input/output area is required. If so, the instruction decoder 1 outputs a segment base register selection signal 11 to be selected depending on the type of instruction. At the same time, the instruction decoder 1 outputs a necessary intra-segment deviation address signal 12 depending on the type of instruction, and stores it in the address register 4. The above operation is as explained in the conventional example. On the other hand, a combinational logic circuit 6 which receives as input a segmentation modification signal 17 and a segment base register selection signal 11 supplied from outside the circuit has a multifunction logic circuit 6 which selects one of the plurality of segment base registers 2-1 to 2-H. A control signal 14 to the plexer 3 is output. the value of one register among the plurality of segment base registers 2-1 to 2-n selected by the multiplexer 3;
That is, the segment base address is applied to the adder circuit 6 via the signal line 16. The adder circuit 5 receives a signal 1 indicating the intra-segment deviation address from the address register 4.
6 and the segment base address of the signal 15 mentioned above are added to output the physical address 13.

以上の様に本実施例によれば、複数のセグメントベース
レジスタ2−1〜2−nから一つを選択するために命令
デコーダから供給されたセグメントベース・/ジスタ選
択信号11を回路の外部より供給されたセグメンテーシ
ョン修飾信号17により本来のものと異なった選択信号
に変換させる様に設けた組合せ論理回路6により、物理
アドレスの生成過程をセグメンテーンヨン機構外部より
制御することができるようにすることができる。
As described above, according to this embodiment, the segment base/register selection signal 11 supplied from the instruction decoder is input from outside the circuit in order to select one of the plurality of segment base registers 2-1 to 2-n. To enable the physical address generation process to be controlled from outside the segmentation mechanism by a combinational logic circuit 6 provided to convert the supplied segmentation modification signal 17 into a selection signal different from the original one. I can do it.

第3図は第2図の回路を用いて、マルチプロセッサシス
テムを構成した図である。
FIG. 3 is a diagram configuring a multiprocessor system using the circuit shown in FIG. 2.

第3図において、1は命令デコーダ、2−1〜2−nは
セグメントベースレジスタ、3はマルチプレクサ、4は
アドレスレジスタ、5は加算回路。
In FIG. 3, 1 is an instruction decoder, 2-1 to 2-n are segment base registers, 3 is a multiplexer, 4 is an address register, and 5 is an adder circuit.

6は組合せ論理回路であり、以上は第2図の構成と同様
のものである。7−1.アー2は本発明の第1の実施例
に示すアドレス生成回路を含む1チツプのLSI化され
たマイクロプロセッサナ、8はオペレーティング・シス
テムプログラムなどを実行するマイクロプロセンナ、9
は主記憶部、10は上記マイクロプロセッサ8に内厭さ
れプログラムで制御されるフリップフロップ、20はア
ドレス情報線を含む共通母線である。
Reference numeral 6 denotes a combinational logic circuit, which has the same configuration as that shown in FIG. 7-1. 2 is a one-chip LSI microprocessor including the address generation circuit shown in the first embodiment of the present invention; 8 is a microprocessor that executes an operating system program; and 9
1 is a main memory, 10 is a flip-flop which is internally controlled by the microprocessor 8 and controlled by a program, and 20 is a common bus line including an address information line.

上記の様に構成されたマルチプロセラナシステムの動作
を以下説明する◇ マイクロプロセッサ8は、同図には示されていないプロ
グラム実行機構によりフリップフロップ10を論理−〜
1〃に設定すると、他のマイクログロセソサ了−1内の
組合せ論理回路6に論理ss 1 ttが、マイクロプ
ロセッサ7−2にはインバータ21により反転され、論
理六〇〃が組合せ論理回路6(l′l:入力される。
The operation of the multi-procerana system configured as described above will be explained below. ◇ The microprocessor 8 runs the flip-flop 10 by a program execution mechanism not shown in the figure.
When set to 1, the logic ss1tt is applied to the combinational logic circuit 6 in the other microprocessor 7-2, and the logic 60 is inverted by the inverter 21 to the microprocessor 7-2. (l'l: Input.

今説明のために、組合せ論理回路6の例として第4図に
示す真理値表を仮定する。第4図において、命令デコー
ダから発生されるセグメントベースレジスタ選択信号が
セグメントベースレジスタ2−1を示している場合は、
セグメンテーション修飾信号が共に論理N○〃、論理X
X1〃の時でも出力はセグメントベースレジスタ2−1
を示しているがもしセグメントベースレジスタ2−2が
セグメントベースレジスタ選択信号として入力されてい
るとセグメンテーション修飾信号によって出力は異なる
。すなわち、セグメンテーション修飾信号17が論理\
\O〃の時にはセグメントベースレジスタ2−1を指定
する信号が出力され、論理\\1〃の場合にはセグメン
トベースレジスタ2−3を指定する信号が出力される。
For the sake of explanation, assume the truth table shown in FIG. 4 as an example of the combinational logic circuit 6. In FIG. 4, if the segment base register selection signal generated from the instruction decoder indicates segment base register 2-1,
Segmentation modification signals are both logic N○〃 and logic X
Even when X1, the output is segment base register 2-1
However, if segment base register 2-2 is input as a segment base register selection signal, the output will differ depending on the segmentation modification signal. That is, the segmentation modification signal 17 is logical
When the logic is \O, a signal specifying the segment base register 2-1 is output, and when the logic is \\1, a signal specifying the segment base register 2-3 is output.

セグメントベースレジスタ2−3を指定する信号が入力
される時は、セグメンテーション修飾信号によりそれぞ
れセグメントベースレジスタ2−3.セグメントペース
レジスタ2−2を指定する信号が出力される。この様な
構成の狙合せ論理回路6をもつマイクロプロセッサ7−
1..7−2にセグメンテーション修飾信号として前述
した様にそれぞれ論理\\1〃、論理\\0 //が入
力すると、これら二つのマイクロプロセ・7ザで共に命
令デコーダ1より同じセグメントベースレジスタ選択信
号11が出力された場合でもマルチプレクサ3では異な
ったセグメントベースレジスタタ2−1〜2−nが選択
される。今宿合デコーダ1からはセグメントベースレジ
スタ2−2を選択する信号が出されたと仮定すると、マ
イクロプロセッサ7−1の加算回路5からはセグメント
ベースレジスタ2−3の内容にセグメント内偏差アドレ
スが加算され出力される。マイクロプロセ・ノザ7−2
からはセグメントベースレジスタ2−2の内容にセグメ
ント内偏差アドレスが加算された物理アドレスが出力さ
れるので主記憶装置上では二つのマイクロプロセッサは
同じセグメントベースレジスタをプログラムにより指定
しながら別の主記憶領域をアクセスすることができる。
When a signal specifying the segment base registers 2-3 is input, the segment base registers 2-3 . A signal specifying segment pace register 2-2 is output. A microprocessor 7- having an aiming logic circuit 6 having such a configuration
1. .. When logic \\1 and logic \\0 // are input to 7-2 as segmentation modification signals as described above, respectively, these two microprocessors 7 receive the same segment base register selection signal 11 from the instruction decoder 1. Even if the segment base registers 2-1 to 2-n are output, the multiplexer 3 selects different segment base registers 2-1 to 2-n. Assuming that a signal to select the segment base register 2-2 is now output from the convergence decoder 1, the adder circuit 5 of the microprocessor 7-1 adds the intra-segment deviation address to the contents of the segment base register 2-3. Output. Microprocessor Noza 7-2
Since the physical address obtained by adding the intra-segment deviation address to the contents of segment base register 2-2 is output from 2-2, two microprocessors can specify the same segment base register by program on the main memory while using different main memories. area can be accessed.

以上説明したように本来命令のデコードにより一意的に
決定されるセグメントアクセス情報が、外部回路、特に
オペレーティングシステムを実行するマイクロプロセッ
サにより変更されるようになり、柔軟なマルチプロセッ
サシステムを構成することができる。
As explained above, segment access information, which is originally uniquely determined by instruction decoding, can now be changed by external circuits, especially the microprocessor that executes the operating system, making it possible to configure flexible multiprocessor systems. can.

なお、第3図での説明において、マイクロプロセッサ7
−1,7−2に入力するセグメンテーション修飾信号を
1ビツト情報とし、互いに反転情報としたが、これを複
数ビ・ノド情報とし、これらをオペレーティングシステ
ムを実行するマイクロプロセッサが、個々のマイクロプ
ロセッサに内蔵される組合せ論理回路6にそれぞれ独立
して印加することにより、それぞれのプロセンナの使用
する主記憶の領域の割り当てを行なうことができるよう
になり簡易なメモリ管理機能を実現することができる。
In addition, in the explanation using FIG. 3, the microprocessor 7
The segmentation modification signals input to -1 and 7-2 are 1-bit information, which are mutually inverted information, but this is multi-bit/node information, and the microprocessor that executes the operating system transmits these to each microprocessor. By applying the signals independently to the built-in combinational logic circuits 6, it becomes possible to allocate the area of the main memory used by each processor, and a simple memory management function can be realized.

以下、本発明の第2の実施例について図面を参照しなが
ら説明する。
A second embodiment of the present invention will be described below with reference to the drawings.

第6図1d本発明の第2の実施例を示すアドレス生成回
路の構成を示す図である。同図において、1は命令デコ
ーダ、2’−1〜2′−3はセグメントベースレジスタ
、3はマルチプレクサ、4はアドレスレジスタ、6は加
算回路で、以上は第2図の構成と同じものである。6′
は論理素子6′−1〜6′−4により構成された組合せ
論理回路である。なお第6図に本発明の第2の実施例に
おける上記組合せ論理回路6′の真理値表を示す。
FIG. 6 1d is a diagram showing the configuration of an address generation circuit showing a second embodiment of the present invention. In the figure, 1 is an instruction decoder, 2'-1 to 2'-3 are segment base registers, 3 is a multiplexer, 4 is an address register, and 6 is an adder circuit, which is the same configuration as in Figure 2. . 6′
is a combinational logic circuit constituted by logic elements 6'-1 to 6'-4. Incidentally, FIG. 6 shows a truth table of the combinational logic circuit 6' in the second embodiment of the present invention.

以上の様に構成されたアドレス生成回路について、以下
その動作を説明する。命令デコーダ1から2ビツトのセ
グメントベースレジスタ選択信号11−0.11−1が
出力され、組合せ論理回路6′に入力される。組合せ論
理回路6′の機能は第6図の真理値。Rンζ示される様
に、セグメントベースレジスタ2′1.セグメントベー
スレジスタ2′−2がセグメントベースレジスタ選択・
信号11−0゜11−1で指定された場合は、セグメン
テーション修飾信号17の影響を受けず、セグメントベ
ースレジスタ!−3が選択された時のみ、セグメントベ
ースレジスタ2′−3にアクセスせず、セグメンテーシ
ョン修飾信号17によって別のセグメントベースレジス
タにアクセスする様に論理が、l111まれでいる。す
なわち、セグメンテーション修飾信号17が論理SS 
□ //の場合セグメントベースレジスタ2′−1にア
クセスし、論理SS1//の場合セグメントベースレジ
スタ2′−2にアクセスする。この論理は第5図に示す
様にインバータ6−1.6−4と論理積素子6−2.6
−3によって実現される。
The operation of the address generation circuit configured as described above will be explained below. A 2-bit segment base register selection signal 11-0.11-1 is output from the instruction decoder 1 and input to the combinational logic circuit 6'. The function of the combinational logic circuit 6' is the truth value shown in FIG. As shown, segment base registers 2'1. Segment base register 2'-2 selects segment base register.
When specified by signals 11-0 and 11-1, it is not affected by the segmentation modification signal 17 and the segment base register! Only when -3 is selected does the logic 1111 not access segment base register 2'-3, but access another segment base register via segmentation modifier signal 17. That is, the segmentation modification signal 17 is the logic SS
□ If //, access segment base register 2'-1; if logic SS1//, access segment base register 2'-2. This logic consists of an inverter 6-1.6-4 and an AND element 6-2.6 as shown in FIG.
-3.

以上のように構成されたアドレスレジスタを内蔵するマ
イクロプロセッサで、第5図で示されていないマイクロ
プロセッサの内部レジスタR1で示されるアドレスの主
記憶の内容を主記憶より読み出し、別の内部レジスタR
j に転送するような命令を実行する場合、アクセスす
べき主記憶の物理アドレスを計算するために命令デコー
ダ1よりセグメントベースレジスタ2′−3を選択する
様にセグメントベースレジスタ選択信号11−0.11
−1を出力する。するとセグメンテーション修飾信号1
7によりセグメントベースレジスタ2′−1をセグメン
トベースアドレスとして使用する場合とセグメントベー
スレジスタ2′−2を使用する場合とが切り換えられる
。従ってもし、セグメントベースレジスタ2′−1にプ
ログラムが格納されるセグメントを割り付け、セグメン
トベースレジスタ2′−2にデータ領域となるセグメン
トを割り付けるとすると、上記の命令の実行対象となる
主記憶上のアドレスがプログラム格納セグメント上に取
られるか、その他のデータ領域となるセグメント上に取
られるかが、セグメンテーション修飾信号17によって
切り換えることができる。この様にするとプログラムと
データ部分が合計して一つのセグメントに納まる様な場
合は、上記セグメンテーション修飾信号17を論理\\
o〃としてグログラムとデータをコンパクトに捷とめる
様にし、更にプログラム容′量が犬きぐなってデータ部
分とを合計すると一セグメントに納まらない場合には上
記セグメント修飾信号17を論理\\1〃としてプログ
ラム部分とデータ部分とを別のセグメントに分割してよ
り大きなプログラムを作成できるようにすることができ
る。
In a microprocessor having a built-in address register configured as described above, the contents of the main memory at the address indicated by the internal register R1 of the microprocessor not shown in FIG.
When executing an instruction such as transferring data to memory 2', segment base register selection signals 11-0 . 11
-1 is output. Then segmentation modification signal 1
7 switches between using segment base register 2'-1 as a segment base address and using segment base register 2'-2. Therefore, if we allocate a segment in which a program is stored in segment base register 2'-1 and a segment to be a data area in segment base register 2'-2, then It can be switched by the segmentation modification signal 17 whether the address is taken on the program storage segment or on a segment that is another data area. In this way, if the program and data parts are combined into one segment, the segmentation modification signal 17 can be set to
If the program capacity is so large that the sum of the data part cannot fit into one segment, the segment modification signal 17 is set to logic \\1. The program part and the data part can be divided into separate segments to allow larger programs to be created.

以上の様に、特定のセグメントベースレジスタタを選択
した時外部よりのセグメンテーション修飾信号により上
記特定のセグメントベースレジスタ以外のセグメントベ
ースレジスタを選択する様に組合ぜ論理回路を構成する
ことにより、プログラム領域の拡張などを容易に実現す
ることができる。
As described above, by configuring the combinational logic circuit so that when a specific segment base register is selected, a segment base register other than the above-mentioned specific segment base register is selected by an external segmentation modification signal, the program area can be easily expanded.

発明の効果 本発明は以上のように、複数のセグメントベースレジス
タと、上記セグメントベースレジスタの1つを選択する
マルチプレクサと、セグメント内偏差アドレスを記憶す
るアドレスレジスタと、加算回路とより構成されるセグ
メンテーション機構に、命令カウンタからのセグメント
ベースレジスタ選択信号を外部より供給されるセグメン
テーション修飾信号によって別のセグメントペースレジ
スタ選択信号に変換する組合せ論理回路とを設けること
によって、物理アドレスの生成過程をセグメンテーショ
ン機構外部より制御することができ、その結果としてL
SI化に適したセグメンテーション機構を実現すること
ができ、その効果は大なるものがある。
Effects of the Invention As described above, the present invention provides a segmentation system comprising a plurality of segment base registers, a multiplexer for selecting one of the segment base registers, an address register for storing an intra-segment deviation address, and an adder circuit. By providing the mechanism with a combinational logic circuit that converts the segment base register selection signal from the instruction counter into another segment pace register selection signal by means of an externally supplied segmentation modification signal, the physical address generation process is external to the segmentation mechanism. can be more controlled and as a result L
A segmentation mechanism suitable for SI can be realized, and its effects are significant.

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

第1図は従来のセグメンテーション機構によるアドレス
生成回路のブロック結線図、第2図は本発明の第1の実
施例におけるアドレス生成回路のブロック結線図、第3
図は第2図のアドレス生成回路を用いてマルチプロセラ
ナシステムを構成したブロック結線図、第4図は第3図
の岨合せ論理回路の真理値を示す図、第5図は本発明の
第2の実施例におけるアドレス生成回路のブロック結線
図、第6図は第6図の岨合せ論理回路の真理値を示す図
である。 1・・・・・・命令デコーダ、2−1 、2−2.2−
3;=2−n。 2’ −1、2’−2,2’−3・・・・・・セグメン
トベースレジスタ、3・・・・・・マルチプレクサ、4
・・・・・・アドレスレジスタ、5・・・・・加算回路
、6・・・・・・組合ぜ論理回路。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名33 第3図 −340− 第4図
FIG. 1 is a block wiring diagram of an address generation circuit using a conventional segmentation mechanism, FIG. 2 is a block wiring diagram of an address generation circuit according to a first embodiment of the present invention, and FIG.
The figure is a block wiring diagram configuring a multi-procerana system using the address generation circuit of Figure 2, Figure 4 is a diagram showing the truth value of the matching logic circuit of Figure 3, and Figure 5 is a diagram showing the truth value of the matching logic circuit of Figure 3. FIG. 6 is a block diagram of the address generation circuit in the second embodiment, and is a diagram showing truth values of the matching logic circuit of FIG. 1...Instruction decoder, 2-1, 2-2.2-
3;=2−n. 2'-1, 2'-2, 2'-3... Segment base register, 3... Multiplexer, 4
... Address register, 5 ... Addition circuit, 6 ... Combinational logic circuit. Name of agent: Patent attorney Toshio Nakao and 1 other person33 Figure 3-340- Figure 4

Claims (2)

【特許請求の範囲】[Claims] (1)  プロセッサの命令デコーダと、複数のセグメ
ントベースレジスタと、上記命令デコーダから出力され
上記セグメントベースレジスタの選択を行なう選択信号
とプロセッサ外部から供給されるセグメント制御信号と
を入力組合せを行なう組合せ論理回路と、上記組み合せ
論理回路の出力により上記セグメントベースレジスタの
1つを選択するマルチプレクサ回路と、セグメント内偏
差を記憶するアドレスレジスタと、上記マルチプレクサ
の出力と上記アドレスレジスタの出力とを入力としメモ
リアドレス信号を出力する加算回路とを具備するアドレ
ス生成回路。
(1) Combinational logic that inputs and combines an instruction decoder of a processor, a plurality of segment base registers, a selection signal output from the instruction decoder for selecting the segment base register, and a segment control signal supplied from outside the processor. a multiplexer circuit that selects one of the segment base registers according to the output of the combinational logic circuit; an address register that stores the intra-segment deviation; and a memory address that receives the output of the multiplexer and the output of the address register as inputs. An address generation circuit comprising an adder circuit that outputs a signal.
(2)組合せ論理回路は命令デコーダにより複数のセグ
メントベースレジスタの内、特定のセグメントベースレ
ジスタが選択された時、セグメンテーション修飾信号に
より上記特定のセグメントベースレジスタ以外のセグメ
ントベースレジスタを選択することを特徴とする特許請
求の範囲第1項記載のアドレス生成回路。
(2) The combinational logic circuit is characterized in that when a specific segment base register is selected from a plurality of segment base registers by the instruction decoder, a segment base register other than the above-mentioned specific segment base register is selected by a segmentation modification signal. An address generation circuit according to claim 1.
JP57209776A 1982-11-30 1982-11-30 Address generating circuit Pending JPS5999551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57209776A JPS5999551A (en) 1982-11-30 1982-11-30 Address generating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57209776A JPS5999551A (en) 1982-11-30 1982-11-30 Address generating circuit

Publications (1)

Publication Number Publication Date
JPS5999551A true JPS5999551A (en) 1984-06-08

Family

ID=16578416

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57209776A Pending JPS5999551A (en) 1982-11-30 1982-11-30 Address generating circuit

Country Status (1)

Country Link
JP (1) JPS5999551A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62298848A (en) * 1986-06-19 1987-12-25 Matsushita Electric Ind Co Ltd Address generating device
JPH0385587U (en) * 1989-12-22 1991-08-29

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62298848A (en) * 1986-06-19 1987-12-25 Matsushita Electric Ind Co Ltd Address generating device
JPH0385587U (en) * 1989-12-22 1991-08-29

Similar Documents

Publication Publication Date Title
KR970011207B1 (en) Method and apparatus for a register providing atomic access to set and clear individual bits of shared registers without software interlock
KR100227277B1 (en) Computer methods for writing a sclar value to a vector
US4285039A (en) Memory array selection mechanism
GB2077010A (en) Microprogramme control method and apparatus therefor
KR100287600B1 (en) Other processing systems and methods for providing scalable registers
US5742842A (en) Data processing apparatus for executing a vector operation under control of a master processor
JPH07302254A (en) Microcomputer system
JPS5999551A (en) Address generating circuit
US4975837A (en) Programmable unit having plural levels of subinstruction sets where a portion of the lower level is embedded in the code stream of the upper level of the subinstruction sets
KR0184633B1 (en) Cpu core suitable for a single-chip microcomputer
JPS6362778B2 (en)
JPS59206970A (en) Microprocessor
JPS6330658B2 (en)
JPS6246891B2 (en)
US5768554A (en) Central processing unit
JPS6065342A (en) Microcomputer
JPH033047A (en) Memory with arithmetic function
JPH0814791B2 (en) Processing system
JP2731618B2 (en) emulator
JP3006487B2 (en) Emulation device
JPH10254725A (en) Processor, and its bug adoiding method
JP3474347B2 (en) Instruction decoding unit of microcomputer
JPS592938B2 (en) Memory workspace
JPH0683986A (en) Single chip microcomputer
JPH04177439A (en) Single chip microcomputer