JPH0338612B2 - - Google Patents
Info
- Publication number
- JPH0338612B2 JPH0338612B2 JP13842583A JP13842583A JPH0338612B2 JP H0338612 B2 JPH0338612 B2 JP H0338612B2 JP 13842583 A JP13842583 A JP 13842583A JP 13842583 A JP13842583 A JP 13842583A JP H0338612 B2 JPH0338612 B2 JP H0338612B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- register
- selection circuit
- memory address
- operand
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Landscapes
- Executing Machine-Instructions (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本発明はマイクロコンピユータのレジスタ間接
指定メモリアドレス制御装置に関するものであ
る。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a register indirect specification memory address control device for a microcomputer.
従来例の構成とその問題点
近年、マイクロコンピユータの工業界における
普及は目ざましいものがある。このようなマイク
ロコンピユータは種々の命令により動作、制御が
行なわれている。Conventional configurations and their problems In recent years, the spread of microcomputers in the industrial world has been remarkable. Such microcomputers are operated and controlled by various instructions.
一般に、演算命令は実行動作の内容を定めるオ
ペレーシヨン部と処理されるデータを指示するオ
ペランド部とによつて構成される。ここで、オペ
ランドがメモリに存在する場合、メモリアドレス
を指定制御する必要がある。 In general, an arithmetic instruction consists of an operation part that determines the content of the execution operation and an operand part that specifies data to be processed. Here, if the operand exists in memory, it is necessary to specify and control the memory address.
以下第1図を参照して従来のメモリアドレスモ
ードについて説明する。 The conventional memory address mode will be explained below with reference to FIG.
(a)はアドレスレジスタの構成を示す。アドレス
レジスタR0,R1はそれぞれ16ビツトであるとす
る。すなわち、最大メモリ容量は65K語である。 (a) shows the configuration of the address register. It is assumed that address registers R 0 and R 1 each have 16 bits. That is, the maximum memory capacity is 65K words.
(b)は命令語の構成を示すものである。たとえ
ば、オペレーシヨン部が加算命令であれば、オペ
ランド部によつて指定されるデータとマイクロコ
ンピユータのアキユムレータとを加算し、加算結
果をアキユムレータに格納する。 (b) shows the structure of the command word. For example, if the operation section is an addition instruction, the data specified by the operand section is added to the acumulator of the microcomputer, and the addition result is stored in the accumulator.
(c)はオペランド部の内容を示すものであり、O
ならばオペランドアドレスはR0で、1ならばR1
で指定されることを示す。 (c) shows the contents of the operand part, and O
Then the operand address is R 0 , and if it is 1 then R 1
Indicates that it is specified by .
しかしながら、データRAMをもプロセツサ部
と同一のLSI上に構成する1チツプマイクロコン
ピユータが、上記のアドレスモードを有したとす
ると次なる問題が生ずる。 However, if a one-chip microcomputer in which the data RAM and the processor section are configured on the same LSI has the above address mode, the following problem will occur.
1チツプマイクロコンピユータは、集積度の制
約により、大容量のRAMは内蔵できない。一般
的には、内蔵RAMだけで応用されることが多い
が、システム拡張のため、外部メモリ拡張機能を
も有することも要請される。換言すれば、比較的
小容量の内蔵RAMを効率よくアクセスするこ
と、かつ大容量アドレス空間をアクセスすること
も必要となる。一方、アドレスレジスタは多けれ
ば、効率的なプログラムが可能であるが、LSIの
集積度の制約により、多くのアドレスレジスタを
内蔵することは一般に困難である。すなわち、内
蔵するアドレスレジスタを効率よく利用すること
が重要となる。たとえば、内蔵RAM容量を256
語とすると、アドレスレジスタの上位8ビツトは
使用されないことになり、アドレスレジスタの使
用効率が悪いことになる。 One-chip microcomputers cannot incorporate large amounts of RAM due to density constraints. Generally, it is often used with only built-in RAM, but for system expansion, it is also required to have an external memory expansion function. In other words, it is necessary to efficiently access a relatively small-capacity built-in RAM and also to access a large-capacity address space. On the other hand, if there are a large number of address registers, efficient programming is possible, but it is generally difficult to incorporate many address registers due to restrictions on the degree of integration of LSIs. That is, it is important to efficiently utilize the built-in address registers. For example, set the internal RAM capacity to 256
If the address register is a word, the upper 8 bits of the address register will not be used, resulting in poor use efficiency of the address register.
発明の目的
本発明は上記従来の問題点を解消するもので、
各アドレスレジスタを効率よく利用するため、オ
ペランドアドレスモードを増加させたメモリアド
レス制御装置を提供することを目的とする。Purpose of the invention The present invention solves the above-mentioned conventional problems.
An object of the present invention is to provide a memory address control device with an increased number of operand address modes in order to efficiently utilize each address register.
発明の構成
本発明はアドレスレジスタを上位、下位部の2
群に分離し、それぞれのレジスタ群からそれぞれ
単一のレジスタを選択する回路、それぞれの選択
回路により得られるレジスタを連結し、メモリア
ドレスとする手段、上位メモリアドレスを特定ア
ドレスとし、下位メモリアドレスをレジスタ群の
中より選択する手段を有することにより、小容量
RAMを効率よくアドレス可能とすることのでき
るものである。Structure of the Invention The present invention has two address registers, an upper part and a lower part.
A circuit that separates the registers into groups and selects a single register from each register group, a means for connecting the registers obtained by each selection circuit to form a memory address, and a means for setting the upper memory address as a specific address and the lower memory address as the lower memory address. By having a means to select from a group of registers, small capacity can be achieved.
This allows RAM to be efficiently addressed.
実施例の説明
第2図は本発明の一実施例におけるメモリアド
レスモードを説明するための図である。同図aは
アドレスレジスタが第1のレジスタ群r1,r3と、
第2のレジスタ群r1,r2より構成されていること
を示す。各レジスタの語長は8ビツトであるとす
る。同図bは命令語の構成を示すものである。第
1図のbと同様に、オペレーシヨン部が加算命令
であれば、オペランド部によつて指定されるデー
タとアキユムレータとを加算し、加算結果をアキ
ユムレータに格納する。cはオペランド部の内容
を示すものである。オペランド部のMSBがoの
場合、オペランドアドレスの上位8ビツトは自動
的に零がセツトされ、下位8ビツトはr0,r1,r2,
r3のいずれかによつて指定される。一方、MSB
が1の場合、(r1r0),(r3r0),(r1r2)(r3r2)に
よ
つてオペランドアドレスが指定される。DESCRIPTION OF EMBODIMENTS FIG. 2 is a diagram for explaining a memory address mode in an embodiment of the present invention. In figure a, the address registers are in the first register group r 1 , r 3 ,
It shows that it is composed of a second register group r 1 and r 2 . It is assumed that the word length of each register is 8 bits. Figure b shows the structure of the command word. Similar to FIG. 1b, if the operation section is an addition instruction, the data specified by the operand section and the accumulator are added, and the addition result is stored in the accumulator. c indicates the contents of the operand section. If the MSB of the operand part is o, the upper 8 bits of the operand address are automatically set to zero, and the lower 8 bits are r 0 , r 1 , r 2 ,
r Specified by one of 3 . On the other hand, MSB
When is 1, the operand address is specified by (r 1 r 0 ), (r 3 r 0 ), (r 1 r 2 )(r 3 r 2 ).
第3図は、第2図に示したアドレスモードを実
行するメモリアドレス制御回路の一実施例を示す
ものである。 FIG. 3 shows an embodiment of a memory address control circuit that executes the address mode shown in FIG. 2.
1はr1,r3よりなる第1のアドレス群、2は第
1の選択回路、3はr0,r2よりなる第2のレジス
タ群、4は第2の選択回路、5はANDゲート、
6は第1、第2のレジスタ群1,3の出力を入力
とする選択回路、7は上位メモリアドレス信号、
8は下位メモリアドレス信号、9は第1の選択回
路2の制御信号、10は第2の選択回路4の制御
信号、11はANDゲート5のゲート信号、12
は選択回路6の制御信号である。 1 is the first address group consisting of r 1 and r 3 , 2 is the first selection circuit, 3 is the second register group consisting of r 0 and r 2 , 4 is the second selection circuit, and 5 is the AND gate. ,
6 is a selection circuit which receives the outputs of the first and second register groups 1 and 3; 7 is an upper memory address signal;
8 is a lower memory address signal, 9 is a control signal for the first selection circuit 2, 10 is a control signal for the second selection circuit 4, 11 is a gate signal for the AND gate 5, 12
is a control signal for the selection circuit 6.
以上のように構成された本実施例のメモリアド
レス制御装置について、以下その動作を説明す
る。 The operation of the memory address control device of this embodiment configured as described above will be described below.
第3図における制御信号9,10,11,12
はマイクロコンピユータの命令デコーダより出力
される。各制御信号の制御モードを次に示す。 Control signals 9, 10, 11, 12 in FIG.
is output from the instruction decoder of the microcomputer. The control mode of each control signal is shown below.
9:0の時第1の選択回路2がr1を出力
1の時第1の選択回路2がr3を出力
10:0の時第2の選択回路4がr0を出力
1の時第2の選択回路4がr2を出力
11:0の時ANDゲート5は0を出力
1の時ANDゲート5は第1の選択回路2の
出力を出力
12:0の時選択回路6は第2の選択回路4出力
を出力
1の時選択回路6は第1の選択回路2の出力
を出力
以上のように定義された制御信号9,10,1
1,12の状態とオペランドアドレスとの対応を
第4図に示す。When 9:0, the first selection circuit 2 outputs r 1 When 1, the first selection circuit 2 outputs r 3 10: When 0, the second selection circuit 4 outputs r 0 When 1, the first selection circuit 2 outputs r 3 . When the second selection circuit 4 outputs r 2 11:0, the AND gate 5 outputs 0. When 1, the AND gate 5 outputs the output of the first selection circuit 2. When 12:0, the selection circuit 6 outputs the second When the output of the selection circuit 4 is 1, the selection circuit 6 outputs the output of the first selection circuit 2. Control signals 9, 10, 1 defined as above
FIG. 4 shows the correspondence between states 1 and 12 and operand addresses.
第4図において、たとえばオペランドアドレス
モード0では、各制御信号9,10,11,12
を(X,0,0,0)とすることによりオペラン
ドアドレス(Or0)が第3図における上位アドレ
ス信号7、下位アドレス信号8より出力されるこ
とを示す。 In FIG. 4, for example, in operand address mode 0, each control signal 9, 10, 11, 12
By setting (X, 0, 0, 0), it is shown that the operand address (Or 0 ) is output from the upper address signal 7 and the lower address signal 8 in FIG.
但し、Xは冗長を示す。モード1以下も同様で
あるので説明は省略する。 However, X indicates redundancy. The same applies to modes 1 and below, so the explanation will be omitted.
以上により、第3図のメモリアドレス制御回路
が、第2図cに示したアドレスモードを実現する
ことがわかる。 From the above, it can be seen that the memory address control circuit of FIG. 3 realizes the address mode shown in FIG. 2c.
なお、本実施例において、特定アドレスを0と
したが、任意の値をとるようにすることは、容易
に可能である。 In this embodiment, the specific address is set to 0, but it can easily be set to any value.
発明の効果
本発明のメモリアドレス制御装置は、第1のレ
ジスタ群と第2のレジスタ群からなるアドレスレ
ジスタと、各レジスタ群の選択回路、第1及び第
2の選択回路出力を連結あるいは、上位アドレス
を特定アドレスとし、下位アドレスとして、第1
あるいは第2の選択回路出力とする手段を設ける
ことにより、1チツプマイクロコンピユータに内
蔵される比較的小容量RAMを効率よくアドレス
可能となりプログラムサイズが減少れうると同時
に、外部RAM拡張時の大容量アドレスアクセス
をも可能とすることができ、その実用的効果は大
きいものがある。Effects of the Invention The memory address control device of the present invention connects or connects an address register consisting of a first register group and a second register group, a selection circuit of each register group, and outputs of the first and second selection circuits. The address is a specific address, and the lower address is the first address.
Alternatively, by providing a means for outputting the second selection circuit, the relatively small capacity RAM built into a one-chip microcomputer can be efficiently addressed, reducing the program size, and at the same time, increasing the capacity when external RAM is expanded. Address access can also be made possible, which has great practical effects.
第1図は従来のメモリアドレスモードを説明す
るための図で、aはアドレスレジスタの構造図、
bは命令語の構造図、cはオペランド部の内容対
応図、第2図は本発明の一実施例におけるメモリ
アドレスモードを説明するための図で、aはアド
レスレジスタの構造図、bは命令語の構造図、c
はオペランド部の内容対応図、第3図は本発明の
一実施例におけるメモリアドレス制御回路のブロ
ツク図、第4図は第3図のメモリアドレス制御回
路における制御信号とオペランドアドレスとの対
応図である。
1……第1のレジスタ群、2……第1の選択回
路、3……第2のレジスタ群、4……第2の選択
回路、5……ANDゲート、6……選択回路。
FIG. 1 is a diagram for explaining the conventional memory address mode, where a is a structural diagram of an address register,
b is a diagram of the structure of an instruction word, c is a diagram of contents corresponding to the operand part, FIG. Word structure diagram, c
3 is a block diagram of a memory address control circuit in an embodiment of the present invention, and FIG. 4 is a diagram of the correspondence between control signals and operand addresses in the memory address control circuit of FIG. 3. be. 1...First register group, 2...First selection circuit, 3...Second register group, 4...Second selection circuit, 5...AND gate, 6...Selection circuit.
Claims (1)
第1及び第2のレジスタ群からそれぞれ単一のレ
ジスタを選択する第1及び第2の選択手段と、第
1及び第2の選択回路により得られるレジスタを
連結しメモリアドレスとする手段と、上位メモリ
アドレスを特定アドレスとし下位メモリアドレス
を第1あるいは第2の選択回路より得られるレジ
スタによつて定める手段を有し、前記4つの手段
が、それぞれ命令のオペランド部によつて選択制
御されることを特徴とするメモリアドレス制御装
置。1 a first register group, a second register group,
first and second selection means for selecting a single register from the first and second register groups, means for concatenating the registers obtained by the first and second selection circuits to form a memory address; It has means for determining the memory address as a specific address and the lower memory address by a register obtained from the first or second selection circuit, and each of the four means is selectively controlled by the operand part of the instruction. A memory address control device characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP13842583A JPS6027944A (en) | 1983-07-27 | 1983-07-27 | Memory address controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP13842583A JPS6027944A (en) | 1983-07-27 | 1983-07-27 | Memory address controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS6027944A JPS6027944A (en) | 1985-02-13 |
JPH0338612B2 true JPH0338612B2 (en) | 1991-06-11 |
Family
ID=15221663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP13842583A Granted JPS6027944A (en) | 1983-07-27 | 1983-07-27 | Memory address controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6027944A (en) |
-
1983
- 1983-07-27 JP JP13842583A patent/JPS6027944A/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS6027944A (en) | 1985-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS61139866A (en) | Microprocessor | |
JPH0338612B2 (en) | ||
US6289429B2 (en) | Accessing multiple memories using address conversion among multiple addresses | |
JPS6055911B2 (en) | main storage | |
JPS6330658B2 (en) | ||
JPH053015B2 (en) | ||
JP2522063B2 (en) | Single-chip micro computer | |
KR920003845B1 (en) | Rom region expansion system for users of pc | |
JP3353877B2 (en) | Memory device | |
JPS6148174B2 (en) | ||
JP3091674B2 (en) | Microcomputer | |
JPS6126699B2 (en) | ||
JPS5999551A (en) | Address generating circuit | |
JPS644220B2 (en) | ||
JPH058451B2 (en) | ||
JPH03211641A (en) | Address designation method for memory device | |
JPH0226252B2 (en) | ||
JPS59114657A (en) | Memory interface circuit of microcomputer | |
JPH04177697A (en) | Semiconductor memory | |
JPS61190642A (en) | Main memory control system | |
JPH04359334A (en) | Microcomputer | |
JPS6230653B2 (en) | ||
JPH0310977B2 (en) | ||
JPH02207327A (en) | Numerical arithmetic processor | |
JPS5965361A (en) | Microcomputer circuit device |