JPH0895783A - Variable word length type microcomputer - Google Patents
Variable word length type microcomputerInfo
- Publication number
- JPH0895783A JPH0895783A JP25014994A JP25014994A JPH0895783A JP H0895783 A JPH0895783 A JP H0895783A JP 25014994 A JP25014994 A JP 25014994A JP 25014994 A JP25014994 A JP 25014994A JP H0895783 A JPH0895783 A JP H0895783A
- Authority
- JP
- Japan
- Prior art keywords
- instruction
- word length
- address
- bit
- microcomputer
- 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
- 230000003247 decreasing effect Effects 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 5
- 101100412394 Drosophila melanogaster Reg-2 gene Proteins 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000037213 diet Effects 0.000 description 1
- 235000005911 diet Nutrition 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 210000001835 viscera Anatomy 0.000 description 1
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、情報処理装置に関し、
特に、32ビット等の多ビットのマイクロコンピュータに
関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing device,
In particular, it relates to a multi-bit microcomputer such as 32-bit.
【0002】[0002]
【従来の技術】近年、マイクロコンピュータの多ビット
化が進み、32ビット以上のマイクロプロセッサやシング
ルチップ・マイクロコンピュータが一般的に使われるよ
うになってきている。2. Description of the Related Art In recent years, the number of bits of microcomputers has increased, and 32-bit or more microprocessors and single-chip microcomputers have come into general use.
【0003】例えば、32ビットのマイクロコンピュータ
は、一般的に、内部のレジスタやデータ・バスのビット
幅が32ビットである場合が多いが、命令語長すなわち、
1命令当たりのビット長も32ビットである場合が多い。For example, a 32-bit microcomputer generally has an internal register or a data bus with a bit width of 32 bits in many cases.
The bit length per instruction is often 32 bits.
【0004】図3に、従来のマイクロコンピュータの典
型的構成のブロック図を示す。FIG. 3 shows a block diagram of a typical configuration of a conventional microcomputer.
【0005】図3を参照して、命令バス101より供給さ
れた命令は命令デコーダ303で解読され、実行部105に対
して制御信号線群106を出力する。Referring to FIG. 3, the instruction supplied from instruction bus 101 is decoded by instruction decoder 303, and control signal line group 106 is output to execution unit 105.
【0006】そして、図4に示すように、32ビットのフ
ォーマットをもつ命令は、例えば命令コード、第2のレ
ジスタを指定するレジスタ指定フィールド(reg2)、第
1のレジスタを指定するレジスタ指定フィールド(reg
1)、イミーディエット値が格納されるフィールド(im
m)から構成され、reg1で指定される第1のレジスタの
内容とイミーディエット値(imm)のサイン拡張データ
との間で演算が行われ、演算結果をreg2で指定されるタ
ーゲットレジスタ(書込みレジスタ)である第2のレジ
スタに格納する。As shown in FIG. 4, an instruction having a 32-bit format includes, for example, an instruction code, a register designation field (reg2) that designates a second register, and a register designation field (reg2) that designates a first register. reg
1), the field that stores the immediate diet value (im
m), the operation is performed between the contents of the first register specified by reg1 and the sign extension data of the immediate value (imm), and the operation result is the target register specified by reg2 (write register). ) Is stored in the second register.
【0007】このとき、命令デコーダ303は、実行部105
に対して演算指定、読出しレジスタ指定、書込みレジス
タ指定、およびイミーディエットデータ(imm)等の制
御信号線群106を出力する。At this time, the instruction decoder 303 has the execution unit 105.
The control signal line group 106 for outputting the calculation designation, the read register designation, the write register designation, the immediate data (imm), etc. is output.
【0008】[0008]
【発明が解決しようとする課題】ところで、1命令当た
りのビット数が増えると、プログラム全体のオブジェク
トサイズも大きくなる。If the number of bits per instruction increases, the object size of the entire program also increases.
【0009】仮に、1つのプログラムで使用される命令
の数が同じであると想定した場合、32ビットのマイクロ
コンピュータでは、プログラムのオブジェクトサイズ
は、単純計算では、16ビットのマイクロコンピュータの
2倍になる。Assuming that the number of instructions used in one program is the same, in a 32-bit microcomputer, the object size of the program is twice as large as that of a 16-bit microcomputer in simple calculation. Become.
【0010】このため、キャッシュを搭載するマイクロ
コンピュータでは、キャッシュメモリのサイズが同じ場
合、32ビットのマイクロコンピュータでは16ビットのマ
イクロコンピュータと比べてヒット率が低下してしま
う。Therefore, in a microcomputer equipped with a cache, if the size of the cache memory is the same, the hit rate of the 32-bit microcomputer is lower than that of the 16-bit microcomputer.
【0011】また、命令を格納した命令ROMを内蔵する3
2ビット・シングルチップ・マイクロコンピュータで
は、16ビットの場合と比較して内蔵するROM容量を2倍
にしなくてはならない。Further, it has a built-in instruction ROM storing instructions.
In a 2-bit single-chip microcomputer, the built-in ROM capacity must be doubled compared with the case of 16-bit.
【0012】ところで、近時、32ビットのマイクロコン
ピュータ等において、命令語長を16ビット固定にした
り、16ビットと32ビットの混合の命令セットを可能とす
るマイクロコンピュータも開発され、オブジェクトサイ
ズの縮小化が図られている。By the way, recently, in a 32-bit microcomputer or the like, a microcomputer capable of fixing the instruction word length to 16 bits or a mixed instruction set of 16 bits and 32 bits has also been developed to reduce the object size. Is being promoted.
【0013】マイクロコンピュータにおいて、命令語長
を可変にする従来の方法の1つとして、図4に示すよう
に、命令コード中に命令語長を指定するビット(16b)
を設ける方法がある。例えば、文献1(「16ビットVシ
リーズ(命令編)」、NEC社刊、1992年12月、第15頁)
には、命令コード中に命令語長を指定するビット(Wビ
ット)を設けたマイクロコンピュータが開示されてお
り、同様な構成として、文献2(「CYRIX Cx486SLC MIC
ROPROCESSOR Data Sheet」、CYRIX社刊、1992年2月、6-
2、6-4、6-23頁等)にも命令コード中に命令語長を指定
するWフィールドを設けたマイクロコンピュータが開示
されている。As one of conventional methods for varying the instruction word length in a microcomputer, as shown in FIG. 4, a bit (16b) for designating the instruction word length in an instruction code.
There is a method of providing. For example, Reference 1 ("16-bit V Series (Instruction Edition)", NEC Corporation, December 1992, page 15)
Discloses a microcomputer in which a bit (W bit) for designating an instruction word length is provided in an instruction code. As a similar configuration, reference 2 (“CYRIX Cx486SLC MIC
ROPROCESSOR Data Sheet ", published by CYRIX, February 1992, 6-
(See pages 2, 6-4, 6-23, etc.) also discloses a microcomputer in which a W field for designating an instruction word length is provided in an instruction code.
【0014】しかしながら、この方法では命令の種類に
制約を加えることになる。However, this method imposes restrictions on the types of instructions.
【0015】すなわち、例えば図4において、命令コー
ドが6ビットの場合の命令の種類は26=64種類である
が、命令コードのうち1ビット(16b)を命令語長の指
定ビットに使用すると、実際に使用可能な命令コードは
5ビットとなり、命令の種類は25=32種類と半減して
しまう。That is, for example, in FIG. 4, there are 2 6 = 64 types of instructions when the instruction code is 6 bits, but if 1 bit (16b) of the instruction code is used as the designated bit of the instruction word length The number of instruction codes that can be actually used is 5 bits, and the number of instruction types is reduced to 2 5 = 32 types, which is a half.
【0016】上述したように、最近の32ビットのマイク
ロコンピュータの中には、命令語長を16ビット固定にし
たり、あるいは、16ビットと32ビットの混合にした命令
セットをもつものがある。As described above, some recent 32-bit microcomputers have a fixed instruction word length of 16 bits or an instruction set in which 16 and 32 bits are mixed.
【0017】しかしながら、このようなマイクロコンピ
ュータは、オブジェクトサイズを最優先にするアプリケ
ーションには有効であるが、性能を最優先にするマイク
ロコンピュータでは命令語長は32ビットが望ましい場合
が多い。However, although such a microcomputer is effective for an application in which the object size is given the highest priority, a command word length of 32 bits is often desirable in the microcomputer in which the performance is given the highest priority.
【0018】また、オペコード中に命令語長指定ビット
をもつと、使用できる命令の種類が大幅に減少するとい
う問題点を有している。Further, if the instruction code length designation bit is included in the operation code, there is a problem that the kinds of instructions that can be used are greatly reduced.
【0019】従って、本発明は前記問題点を解消し、命
令コードに依らずに、すなわち、命令の種類を減少させ
ることなく命令語長を可変とするマイクロコンピュータ
を提供することを目的とする。Therefore, an object of the present invention is to solve the above problems and to provide a microcomputer in which the instruction word length is variable without depending on the instruction code, that is, without reducing the type of instruction.
【0020】[0020]
【課題を解決するための手段】前記目的は、本発明によ
れば、命令語長を指定する命令語長指定手段と、前記命
令語長指定手段からの語長指定信号を入力として、該語
長指定信号の値に応じて命令語長を可変して命令をデコ
ードする命令デコード手段と、を有することを特徴とす
る可変語長型マイクロコンピュータによって達成され
る。According to the present invention, the above-mentioned object is to use an instruction word length designating means for designating an instruction word length and a word length designating signal from the instruction word length designating means as input. And a variable word length microcomputer for varying the instruction word length according to the value of the length designation signal and decoding the instruction.
【0021】また、本発明の可変語長型マイクロコンピ
ュータにおいては、前記命令語長指定手段が、記憶手段
から構成されることを特徴とする。Further, in the variable word length type microcomputer of the present invention, the command word length designating means comprises a storage means.
【0022】本発明の可変語長型マイクロコンピュータ
においては、好ましくは、前記記憶手段が、所定の命令
の実行により値が設定されることを特徴とする。In the variable word length type microcomputer of the present invention, preferably, the storage means is set to a value by executing a predetermined instruction.
【0023】さらに、本発明の可変語長型マイクロコン
ピュータにおいては、前記命令語長指定手段が、アドレ
ス比較手段を含むことを特徴とする。Further, in the variable word length microcomputer of the present invention, the instruction word length designating means includes an address comparing means.
【0024】本発明の可変語長型マイクロコンピュータ
においては、好ましくは、命令と該命令に対応するアド
レスの所定の上位ビットとが対形式で格納される命令バ
ッファと、命令語長を可変させる範囲を画定するアドレ
スの所定の上位ビットを格納するアドレス情報記憶部を
備え、前記アドレス比較手段が、前記命令バッファのア
ドレスと前記アドレス情報記憶部のアドレスを比較し
て、アドレスが所定の範囲にある場合に、命令コードの
語長を可変させるように制御することを特徴とするもの
である。In the variable word length microcomputer of the present invention, preferably, an instruction buffer in which an instruction and a predetermined high-order bit of an address corresponding to the instruction are stored in a pair form, and a range in which the instruction word length can be changed. An address information storage unit for storing a predetermined high-order bit of an address defining the address, the address comparison unit compares the address of the instruction buffer with the address of the address information storage unit, and the address is within a predetermined range. In this case, the control is performed so that the word length of the instruction code is changed.
【0025】[0025]
【作用】本発明に係る可変語長型マイクロコンピュータ
は命令語長の指定を、命令コードによらず、マイクロコ
ンピュータ内部で行う点が前記従来例と相違している。The variable word length microcomputer according to the present invention is different from the conventional example in that the instruction word length is specified inside the microcomputer regardless of the instruction code.
【0026】本発明によれば、命令語長の指定のために
命令コードのビットフィールドを用いることを不要と
し、このため、命令の種類を削減することなく、命令コ
ードの語長をダイナミックに可変とすることができ、性
能とオブジェクトサイズの最適化を図ることを可能とす
るものである。According to the present invention, it is not necessary to use the bit field of the instruction code for designating the instruction word length. Therefore, the word length of the instruction code can be dynamically changed without reducing the types of instructions. It is possible to optimize the performance and the object size.
【0027】また、本発明によれば、命令語長を指定す
る記憶手段が、所定の命令の実行によりその値が設定さ
れるように構成したことにより、予め所定の命令を実行
することにより、命令語長を動的に制御することが可能
とされ制御が容易化する。Further, according to the present invention, the storage means for designating the instruction word length is configured such that its value is set by the execution of the predetermined instruction, so that by executing the predetermined instruction in advance, It is possible to control the instruction word length dynamically, which facilitates the control.
【0028】さらに、本発明によれば、特に、内臓ROM
等、プログラム容量に対する制約が多い場合、アドレス
領域に応じて命令語長を可変させることにより、オブジ
ェクトサイズの削減が可能とされる。すなわち、内臓RO
M領域の命令を16ビット長とし、それ以外のアドレス領
域の命令は32ビット長とすることにより、内臓ROMのプ
ログラムサイズを削減すると同時に、内蔵ROM以外の例
えば外部メモリ等のアドレス領域に格納される応用ブロ
グラム等の命令語長は32ビットとされ、処理スピード等
性能の向上が図れる。Furthermore, according to the present invention, in particular, a built-in ROM
When there are many restrictions on the program capacity, the object size can be reduced by changing the instruction word length according to the address area. That is, the internal organs RO
By making the instructions in the M area 16 bits long and the instructions in the other address areas 32 bits long, the program size of the built-in ROM can be reduced and at the same time stored in an address area other than the internal ROM, such as an external memory. The instruction word length of the application program etc. is 32 bits, and the performance such as processing speed can be improved.
【0029】[0029]
【実施例】図面を参照して、本発明の実施例を以下に説
明する。Embodiments of the present invention will be described below with reference to the drawings.
【0030】[0030]
【実施例1】図1を参照して、本発明の第1の実施例を
説明する。First Embodiment A first embodiment of the present invention will be described with reference to FIG.
【0031】図1において、101は32ビットの命令バ
ス、102は命令を一時保持する命令バッファ、103は命令
の解読を行う命令デコーダ、104は命令バッファ102から
命令デコーダ103へ命令を転送する命令バス、105は命令
を実行する実行部、106は命令デコーダ103から実行部10
5へ制御信号を出力する制御信号線群、107は命令語長を
指定する語長指定レジスタである。In FIG. 1, 101 is a 32-bit instruction bus, 102 is an instruction buffer that temporarily holds instructions, 103 is an instruction decoder that decodes instructions, and 104 is an instruction that transfers instructions from the instruction buffer 102 to the instruction decoder 103. A bus, 105 is an execution unit that executes instructions, and 106 is an instruction decoder 103 to an execution unit 10
A control signal line group for outputting a control signal to 5 and a word length designation register 107 for designating an instruction word length.
【0032】語長指定レジスタ107から命令デコーダ103
へは語長指定信号108が出力されている。From the word length designation register 107 to the instruction decoder 103
A word length designation signal 108 is output to.
【0033】語長指定レジスタ107へは、予め所定の命
令の実行によりデータを設定する。例えば、語長指定レ
ジスタ107に設定されるデータが“0”の場合には32ビ
ット命令モード、“1”の場合には16ビット命令モード
とされる。Data is set in the word length designation register 107 in advance by executing a predetermined instruction. For example, when the data set in the word length designation register 107 is "0", the 32-bit instruction mode is set, and when the data is "1", the 16-bit instruction mode is set.
【0034】語長指定レジスタ107に“0”が書込ま
れ、32ビット命令モードが選択されると、語長指定信号
108により命令デコーダ103へ伝達され、命令デコーダ10
3は、命令バッファ102から32ビット分の命令コードを受
け取り、命令の解読を行う。命令デコーダ103は、解読
された32ビット命令に基づき制御信号線群106により、
実行部105に対して、演算指定、転送指定、レジスタの
選択指定等を行う。When "0" is written in the word length designation register 107 and the 32-bit instruction mode is selected, the word length designation signal
It is transmitted to the instruction decoder 103 by 108, and the instruction decoder 10
3 receives the instruction code of 32 bits from the instruction buffer 102 and decodes the instruction. The instruction decoder 103 uses the control signal line group 106 based on the decoded 32-bit instruction,
The execution unit 105 is designated to perform calculation, transfer, and register selection.
【0035】一方、語長指定レジスタ107に“1”が書
込まれ、16ビット命令モードが選択されると、語長指定
信号108により命令デコーダ103へ伝達され、命令デコー
ダ103は、命令バッファ102から16ビット分の命令コード
を受け取り、命令の解読を行う。命令デコーダ103は、
解読された16ビット命令に基づき制御信号線群106によ
り、実行部105に対して、演算指定、転送指定、レジス
タの選択指定等を行う。On the other hand, when "1" is written in the word length designation register 107 and the 16-bit instruction mode is selected, it is transmitted to the instruction decoder 103 by the word length designation signal 108, and the instruction decoder 103 is instructed by the instruction buffer 102. Receives 16-bit instruction code from and decodes the instruction. The instruction decoder 103 is
Based on the decoded 16-bit instruction, the control signal line group 106 gives an operation designation, a transfer designation, a register selection designation, etc. to the execution unit 105.
【0036】[0036]
【実施例2】次に、図2を参照して、本発明の第2の実
施例を説明する。図2において、図1と同一の機能を有
する要素には、同一の参照番号が付されている。Second Embodiment Next, a second embodiment of the present invention will be described with reference to FIG. 2, elements having the same functions as those in FIG. 1 are designated by the same reference numerals.
【0037】図2を参照して、本実施例と前記第1実施
例との相違点は、命令語長の指定をアドレス比較で行う
点である。以下では、前記第1の実施例との相違点のみ
を説明する。Referring to FIG. 2, the difference between this embodiment and the first embodiment is that the instruction word length is specified by address comparison. Only the differences from the first embodiment will be described below.
【0038】図2において、207はアドレス比較器であ
り、209は比較するアドレスの上位nビット(nは所定
の整数)を保持するレジスタである。In FIG. 2, 207 is an address comparator, and 209 is a register that holds the upper n bits (n is a predetermined integer) of the address to be compared.
【0039】また、命令バッファ202は、命令コードと
ともにその命令コードに対応するアドレスの上位nビッ
トを対(pair)形式で保持している。The instruction buffer 202 holds the instruction code and the upper n bits of the address corresponding to the instruction code in a pair format.
【0040】アドレス比較器207は、レジスタ209の内容
と命令バッファ202のアドレスの上位ビット(nビッ
ト)とを比較し、一致した場合には語長指定信号208を
“1”として命令デコーダ103へ16ビット命令モードで
あることを伝達する。一方、アドレス比較器207は、レ
ジスタ209の内容と命令バッファ202のアドレスの上位ビ
ット(nビット)が不一致の場合には、語長指定信号20
8を“0”として命令デコーダ103へ32ビット命令モード
であることを伝達する。The address comparator 207 compares the contents of the register 209 with the upper bits (n bits) of the address of the instruction buffer 202, and if they match, sets the word length designation signal 208 to "1" to the instruction decoder 103. Signals that it is in 16-bit instruction mode. On the other hand, when the contents of the register 209 and the upper bits (n bits) of the address of the instruction buffer 202 do not match, the address comparator 207 determines that the word length designation signal 20
8 is set to "0" and it is transmitted to the instruction decoder 103 that it is in the 32-bit instruction mode.
【0041】すなわち、本実施例では、命令のアドレス
がある一定の範囲内にある場合に16ビット命令モードと
されている。これは、ROMを内蔵したシングルチップ・
マイクロコンピュータなどにおいて、限られた内臓ROM
領域により、多くの命令コードを埋め込みたい場合に有
効となる。That is, in this embodiment, the 16-bit instruction mode is set when the address of the instruction is within a certain range. This is a single chip with built-in ROM
Limited built-in ROM for microcomputers
This is effective when you want to embed many instruction codes depending on the area.
【0042】なお、アドレス比較器207において、16ビ
ット命令モードとされるアドレスの上限と下限を指定す
るレジスタ209を、例えば2つ備え、命令バッファ202の
アドレスの上位nビットが該上限と下限の範囲内にある
ときに、語長指定信号208を“1”として命令デコーダ1
03へ16ビット命令モードであることを伝達するようにし
てもよいことは勿論である。The address comparator 207 is provided with, for example, two registers 209 for designating the upper limit and the lower limit of the address in the 16-bit instruction mode, and the upper n bits of the address of the instruction buffer 202 are the upper limit and the lower limit. When it is within the range, the instruction decoder 1 sets the word length designation signal 208 to "1".
Needless to say, the 16-bit instruction mode may be transmitted to 03.
【0043】前記した通り、1命令あたりのビット数が
増えると、プログラム全体のオブジェクトサイズも大き
くなるため、1つのプログラムが使用する命令の数が同
じだとすると、32ビットのマイクロコンピュータでは16
ビットのマイクロコンピュータと比較してプログラムの
オブジェクトサイズは単純計算で2倍になる。このた
め、キャッシュを搭載するマイクロコンピュータではキ
ャッシュサイズが同じ場合、ヒット率が低下してしま
う。また、命令ROMを内蔵するシングルチップ・マイク
ロコンピュータでは内蔵するROM容量を2倍にしなくて
はならない。As described above, if the number of bits per instruction increases, the object size of the entire program also increases. Therefore, assuming that the number of instructions used by one program is the same, 16 bits are required for a 32-bit microcomputer.
The object size of the program is doubled by simple calculation compared with the bit microcomputer. Therefore, in a microcomputer equipped with a cache, if the cache size is the same, the hit rate will decrease. In addition, in a single-chip microcomputer that has a built-in instruction ROM, the built-in ROM capacity must be doubled.
【0044】そして、32ビット命令モードと16ビット命
令モードを指定するビットをオペコード内のビットフィ
ールド内に備えた場合、命令の種類を半分に減少してし
まう。If a bit field specifying the 32-bit instruction mode and the 16-bit instruction mode is provided in the bit field in the operation code, the types of instructions are reduced to half.
【0045】これに対して、上記実施例に係るマイクロ
コンピュータによれば、命令の種類を削減することな
く、命令コードの語長をダイナミックに可変とすること
ができるため、性能とオブジェクトサイズの最適化を図
ることができる。特に、内臓ROMなど、プログラム容量
に対する制約の多い場合に、アドレス領域による語長変
更を行うことによりオブジェクトサイズの削減が可能と
なり、より効果が期待できる。On the other hand, according to the microcomputer of the above embodiment, it is possible to dynamically change the word length of the instruction code without reducing the types of instructions, so that the performance and the object size are optimized. Can be realized. In particular, when there are many restrictions on the program capacity such as a built-in ROM, the object size can be reduced by changing the word length by the address area, and the effect can be expected more.
【0046】以上本発明を上記実施例に即して説明した
が、本発明は上記態様にのみ限定されるものでなく、本
発明の原理に準ずる各種態様を含む。例えば、上記実施
例では、32ビットマイクロコンピュータに即して説明し
たが、本発明は、64ビットのマイクロコンピュータ(デ
ータ、アドレスバスが64ビット幅である他、命令が64ビ
ットのものを含む)のマイクロコンピュータについても
同様にして適用される。この場合、64ビット命令モード
と32ビット命令モードの語長が選択されるが、更に16ビ
ット語長の選択を行なうようにしてもよい。Although the present invention has been described with reference to the above embodiments, the present invention is not limited to the above embodiments and includes various embodiments according to the principle of the present invention. For example, although the above embodiments have been described in the context of a 32-bit microcomputer, the present invention includes a 64-bit microcomputer (including a 64-bit wide data and address bus and 64-bit instructions). The same applies to the microcomputer of. In this case, the word lengths of the 64-bit instruction mode and the 32-bit instruction mode are selected, but the 16-bit word length may be further selected.
【0047】[0047]
【発明の効果】以上説明したように、本発明のマイクロ
コンピュータによれば、命令の種類を削減することな
く、命令の語長をダイナミックに可変とすることがで
き、性能とオブジェクトサイズの最適化を図ることがで
きる。As described above, according to the microcomputer of the present invention, it is possible to dynamically change the word length of an instruction without reducing the types of instructions, and to optimize performance and object size. Can be achieved.
【0048】また、本発明によれば、命令語長は記憶手
段に保持された値により設定され、予め所定の命令を実
行して適宜その値を設定することにより命令語長が可変
されるため、命令語長の指定を動的に行なうことができ
ると共に命令語長の制御を容易化している。Further, according to the present invention, the instruction word length is set by the value held in the storage means, and the instruction word length is changed by executing a predetermined instruction in advance and setting the value appropriately. The instruction word length can be dynamically specified and the instruction word length can be easily controlled.
【0049】さらに、本発明によれば、特に、内臓ROM
等プログラム容量に対する制約が多い場合に、アドレス
領域に基づき語長変更を行う構成を具備したことによ
り、内臓ROMに格納されるオブジェクトサイズの削減が
可能とされ、本発明の効果がより一層期待できるもので
ある。すなわち、本発明によれば、所定のアドレス領域
に割り当てられた内蔵ROMに格納された命令は、アドレ
ス比較により自動的に16ビット命令モードで実行され、
それ以外のアドレス領域に対応するメモリに格納された
命令は32ビット命令モードで実行されるため、内蔵ROM
のオブジェクトサイズの削減を達成しつつ、32ビット命
令モードによる高速処理との最適化を達成することがで
きる。Furthermore, according to the present invention, in particular, a built-in ROM
When there are many restrictions on the program capacity, etc., the word size can be changed based on the address area, so that the object size stored in the internal ROM can be reduced, and the effect of the present invention can be further expected. It is a thing. That is, according to the present invention, the instruction stored in the internal ROM allocated to the predetermined address area is automatically executed in the 16-bit instruction mode by the address comparison,
Instructions stored in the memory corresponding to other address areas are executed in 32-bit instruction mode, so the internal ROM
It is possible to achieve optimization with high-speed processing in the 32-bit instruction mode while achieving reduction in the object size of.
【図1】本発明の第1の実施例の構成を示すブロック図
である。FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.
【図2】本発明の第2の実施例の構成を示すブロック図
である。FIG. 2 is a block diagram showing a configuration of a second exemplary embodiment of the present invention.
【図3】従来のマイクロコンピュータの典型的構成を示
すブロック図である。FIG. 3 is a block diagram showing a typical configuration of a conventional microcomputer.
【図4】従来の32ビット命令のフォーマットの一例を示
す図である。FIG. 4 is a diagram showing an example of a format of a conventional 32-bit instruction.
101 32ビット命令バス 102 命令バッファ 103、303 命令デコーダ 104 命令バス 105 実行部 106 制御信号線群 107 語長指定レジスタ 207 比較器 108、208 語長指定信号 209 レジスタ 101 32-bit instruction bus 102 Instruction buffer 103, 303 Instruction decoder 104 Instruction bus 105 Execution unit 106 Control signal line group 107 Word length designation register 207 Comparator 108, 208 Word length designation signal 209 register
Claims (5)
前記命令語長指定手段からの語長指定信号を入力とし
て、該語長指定信号の値に応じて命令語長を可変して命
令をデコードする命令デコード手段と、を有することを
特徴とする可変語長型マイクロコンピュータ。1. A command word length designating means for designating a command word length,
An instruction decoding means for inputting a word length designating signal from the instruction word length designating means and varying an instruction word length according to a value of the word length designating signal to decode an instruction. Word length type microcomputer.
成されることを特徴とする請求項1記載の可変語長型マ
イクロコンピュータ。2. The variable word length type microcomputer according to claim 1, wherein said instruction word length designating means comprises a storage means.
段を含むことを特徴とする請求項1記載の可変語長型マ
イクロコンピュータ。3. The variable word length type microcomputer according to claim 1, wherein said instruction word length designating means includes address comparing means.
その値が設定されることを特徴とする請求項2記載の可
変語長型マイクロコンピュータ。4. The variable word length type microcomputer according to claim 2, wherein said storage means has a value set by execution of a predetermined instruction.
上位ビットとが対形式で格納される命令バッファと、命
令語長を可変させる範囲を画定するアドレスの所定の上
位ビットを格納するアドレス情報記憶部を備え、前記ア
ドレス比較手段が、前記命令バッファのアドレスと前記
アドレス情報記憶部のアドレスを比較して、アドレスが
所定の範囲にある場合に、命令コードの語長を可変させ
るように制御することを特徴とする請求項1記載の可変
語長型マイクロコンピュータ。5. An instruction buffer in which an instruction and a predetermined high-order bit of an address corresponding to the instruction are stored in a pair form, and an address which stores a predetermined high-order bit of an address defining a range in which a command word length is variable. An information storage unit is provided, and the address comparison unit compares the address of the instruction buffer with the address of the address information storage unit and varies the word length of the instruction code when the address is within a predetermined range. 2. The variable word length type microcomputer according to claim 1, which is controlled.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25014994A JPH0895783A (en) | 1994-09-20 | 1994-09-20 | Variable word length type microcomputer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25014994A JPH0895783A (en) | 1994-09-20 | 1994-09-20 | Variable word length type microcomputer |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0895783A true JPH0895783A (en) | 1996-04-12 |
Family
ID=17203552
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP25014994A Pending JPH0895783A (en) | 1994-09-20 | 1994-09-20 | Variable word length type microcomputer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0895783A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007145319A1 (en) | 2006-06-15 | 2007-12-21 | Nec Corporation | Processor and command control method |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS57168346A (en) * | 1981-04-08 | 1982-10-16 | Toshiba Corp | Computer |
| JPS6273333A (en) * | 1985-09-26 | 1987-04-04 | Nec Corp | Emulation control system |
-
1994
- 1994-09-20 JP JP25014994A patent/JPH0895783A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS57168346A (en) * | 1981-04-08 | 1982-10-16 | Toshiba Corp | Computer |
| JPS6273333A (en) * | 1985-09-26 | 1987-04-04 | Nec Corp | Emulation control system |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007145319A1 (en) | 2006-06-15 | 2007-12-21 | Nec Corporation | Processor and command control method |
| US8131978B2 (en) | 2006-06-15 | 2012-03-06 | Nec Corporation | Restoring plural instructions for same cycle execution from partial instructions and combined supplementing portions generated for compact storage |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7627743B2 (en) | Method and circuit implementation for multiple-word transfer into/from memory subsystems | |
| US6157997A (en) | Processor and information processing apparatus with a reconfigurable circuit | |
| US5499380A (en) | Data processor and read control circuit, write control circuit therefor | |
| US4825355A (en) | Instruction format for program control type data processing systems | |
| US6986029B2 (en) | Micro-controller for reading out compressed instruction code and program memory for compressing instruction code and storing therein | |
| JP3203401B2 (en) | Data processing device | |
| WO1997022922A1 (en) | Instruction encoding techniques for microcontroller architecture | |
| US5835972A (en) | Method and apparatus for optimization of data writes | |
| EP1143333B1 (en) | Microprocessor for supporting reduction of program codes in size | |
| US4661925A (en) | Computer control memory apparatus providing variable microinstruction length | |
| US5867696A (en) | Saving a program counter value as the return address in an arbitrary general purpose register | |
| US5897665A (en) | Register addressing for register-register architectures used for microprocessors and microcontrollers | |
| JPH0895783A (en) | Variable word length type microcomputer | |
| JP3190032B2 (en) | Data storage device | |
| JPH11259417A (en) | Bus access method and bus access control device | |
| US5566312A (en) | Processimg unit with programmable mis-aligned byte addressing | |
| JP2553200B2 (en) | Information processing device | |
| US6321319B2 (en) | Computer system for allowing a two word jump instruction to be executed in the same number of cycles as a single word jump instruction | |
| US5463747A (en) | Microprogram data processor processing operand address calculation and instruction execution with common hardware | |
| JPH0315770B2 (en) | ||
| JPH05334074A (en) | Microprocessor | |
| JP2942449B2 (en) | Data processing device | |
| JP2659886B2 (en) | Processor system | |
| JP2954988B2 (en) | Information processing device | |
| JPH0535467A (en) | Microprocessor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19970408 |