JPS58219645A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS58219645A
JPS58219645A JP57101561A JP10156182A JPS58219645A JP S58219645 A JPS58219645 A JP S58219645A JP 57101561 A JP57101561 A JP 57101561A JP 10156182 A JP10156182 A JP 10156182A JP S58219645 A JPS58219645 A JP S58219645A
Authority
JP
Japan
Prior art keywords
register
memory
address
multiplexer
processor
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
JP57101561A
Other languages
Japanese (ja)
Inventor
Tomoyasu Hachiro
鉢呂 友康
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP57101561A priority Critical patent/JPS58219645A/en
Publication of JPS58219645A publication Critical patent/JPS58219645A/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/345Addressing or accessing the instruction operand or the result ; Formation of operand address; Addressing modes of multiple operands or results

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To prevent a processor from occupying a register and to increase its execution speed, by providing a counter circuit which counts up and down with regard to one block in a memory and a multiplexer which selects address information externally. CONSTITUTION:The processor 1 inputs and outputs data in successive areas in the memory 5 through a data bus 2 and an address bus 3. A multiplexer 25 inputs a signal from the address bus 3 as one input and the output of the up/ down counter register 21 as the other input. When the multiplexer 25 selects the input from the bus 3, normal memory access is attained. When, however, the processor 1 performs reading/writing operation from and to a specific address, a logical circuit 22 generates a signal S. The signal S sets the register 21, an OR circuit 26, and an FF24 for specifying up or down counting, and then the multiplexer 25 selects the register 21. Consequently, memory contents of an address specified by the register 21 are read in the processor 1. The contents of the register 21 are increased or decreased as specified by the FF24 after the processing.

Description

【発明の詳細な説明】 本発明は、レジスタ数9機能が限定されたマイクロプロ
セッサで構成されたマイクロコンピュータ、特にそのメ
モリアクセス部の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a microcomputer constituted by a microprocessor having nine registers and limited functions, and particularly to an improvement of its memory access section.

第1図に一般的なマイクロコンピュータの構成を示す。FIG. 1 shows the configuration of a typical microcomputer.

図において、1はマイクロプロセッサ、2はデータバス
、3はアドレスバス、4はコントロールバス、5はメモ
リ、6はこのメモリ5をコントロールするためのロジッ
ク回路であυ、このロジック回路6はアドレスデコーダ
等を具備している。
In the figure, 1 is a microprocessor, 2 is a data bus, 3 is an address bus, 4 is a control bus, 5 is a memory, 6 is a logic circuit for controlling this memory 5, and this logic circuit 6 is an address decoder. Equipped with etc.

上記構成のマイクロコンピュータにおいては、一般的に
マイクロプロセッサ1にオートインクリメント、オート
デクリメントのレジスタを備えていない。このため、マ
イクロプロセッサ1がメモリ5の連続した領域をアクセ
スして処理して行く場合には、第2図に示すようなプロ
グラムとなる。
In the microcomputer configured as described above, the microprocessor 1 is generally not equipped with an auto-increment and auto-decrement register. Therefore, when the microprocessor 1 accesses and processes consecutive areas of the memory 5, the program is as shown in FIG.

(1)  ブロック10では間接指定可能なマイクロプ
ロセッサ1内部のレジスタ(ポインタレジスタ:PRと
略称する)にアクセスするメモリ5のアドレスをセット
する。
(1) In block 10, an address of the memory 5 to be accessed is set in a register (pointer register: abbreviated as PR) inside the microprocessor 1 that can be indirectly specified.

(11)  ブロック11では間接指定されたメモリか
らプロセッサ1内部の所定のレジスタにデータを読み込
む。これは、ブロック内では(PR)→DRと表記して
いる。
(11) In block 11, data is read from the indirectly designated memory into a predetermined register inside processor 1. This is written as (PR)→DR within the block.

010  ブロック12では読み込んだデータについて
の処理が行われる。
010 Block 12 processes the read data.

fIV)  ブロック13でPRを増加して次のデータ
のアクセスの準備をする。
fIV) In block 13, PR is increased to prepare for the next data access.

M ブロック14では終了か否かを判断し、否であれば
ブロック11以降の処理を繰返す。
M Block 14 determines whether or not the process has ended, and if not, the processing from block 11 onward is repeated.

ただし、上記プログラムは内部のレジスタの内容を実効
アドレスとするようなプロセッサを仮定している。
However, the above program assumes a processor whose effective address is the contents of an internal register.

このようにプロセッサIKオートインクリメント、オー
トデクリメントのレジスタを゛備えていない場合は、第
2図に示すようなプログラムを実行することになり、ア
ドレス情報のためにレジスタを占有し、またアドレス情
報の操作も必要とする。
If the processor IK does not have auto-increment and auto-decrement registers, a program like the one shown in Figure 2 will be executed, occupying registers for address information, and manipulating address information. also required.

そこで、本発明では、メモリの1ブロツクについてアッ
プダウン可能なカウンタ回路と、メモリのアドレス情報
を選択するマルチプレクサを外部に設けることによシ、
アドレス情報によるプロセッサのレジスタの占有防止と
実行速度の高速化を図ろうとするものである。
Therefore, in the present invention, by providing an external counter circuit that can raise and lower one block of memory and a multiplexer that selects memory address information,
This is intended to prevent address information from occupying processor registers and to increase execution speed.

以下、本発明を図示の実施例に基づいて詳細に説明する
Hereinafter, the present invention will be explained in detail based on illustrated embodiments.

第3図は本発明の一実施例を示すもので、1はマイクロ
プロセッサ、2はデータバス、3はアドレスバス、4け
コントロールバス、5はメモリ、21Viプリセツト可
能、読み出し可能なアップダウンカウンタレジスタであ
る。このレジスタ21のプリセット値はデータバス2を
通してマイクロプロセッサ1によってセットされるCま
た、ロード信号はアドレスデコーダ等を具備するロジッ
ク回路22の出力としてライン23を介して前記レジス
タ21に付与される。24はアップダウンカウンタのア
ップ、ダウンを指定する念めの7リツプ70ツブで、そ
のセット、リセットは、ロジック回路22の出力に応じ
、データバス2を通してマイクロプロセッサ1によって
設定される。25はマルチプレクサで、その一方の入力
としてアドレスバス3の信号、他方の入力として前記カ
ウンタレジスタ21の出力が与えられておシ、選択は前
記ロジック回路22の出力が一つである読出し/書込み
信号Slがあるときにはカウンタレジスタ21側、信号
S1が々いときにはアドレスバス3側となる。26はオ
ア回路であって、その出力はメモリ5の読出し/書込み
を指定するために使用される。このオア回路26の入力
の一つとして信号Slが加わる。
FIG. 3 shows an embodiment of the present invention, in which 1 is a microprocessor, 2 is a data bus, 3 is an address bus, 4-digit control bus, 5 is a memory, and a 21Vi presettable and readable up/down counter register. It is. The preset value of this register 21 is set by the microprocessor 1 through the data bus 2, and the load signal is applied to the register 21 through a line 23 as an output of a logic circuit 22 comprising an address decoder and the like. Reference numeral 24 is a 7-lip 70 tab for designating up/down of the up/down counter, and its setting and reset are set by the microprocessor 1 through the data bus 2 in accordance with the output of the logic circuit 22. 25 is a multiplexer, one input of which is the signal of the address bus 3, the other input of which is the output of the counter register 21, and the output of the logic circuit 22 selects one read/write signal. When the signal S1 is present, it is on the counter register 21 side, and when the signal S1 is strong, it is on the address bus 3 side. 26 is an OR circuit, the output of which is used to designate reading/writing of the memory 5. A signal Sl is added as one of the inputs of this OR circuit 26.

々お、信号Slはプロセッサ1が特定のアドレス(ロジ
ック回路22のアドレスデコーダで定義される)を読出
し/書込みしたときにロジック回路17に発生する読出
し/書込み信号であって、この信号S1はカウンタレジ
スタ22のアップ、ダウンの動作にも関与している。ま
た、カウンタレジスタ22、マルチプレクサ25等はメ
モリ5の1ブロツクについて設けている。
Furthermore, the signal S1 is a read/write signal generated in the logic circuit 17 when the processor 1 reads/writes a specific address (defined by the address decoder of the logic circuit 22), and this signal S1 is It is also involved in the up and down operations of the register 22. Further, a counter register 22, a multiplexer 25, etc. are provided for one block of the memory 5.

次に、動作、特にメモリ5の連続し九領域をアクセスす
る場合の動作を第4図に示すプログラムを参照して説明
する。
Next, the operation, particularly the operation when nine consecutive areas of the memory 5 are accessed, will be explained with reference to the program shown in FIG.

(1)  ブロック30ではカウンタレジスタ21にア
クセスするメモリ5の先頭番地をセット(EXPRセッ
ト)シ、またアップダウンのためのフリップフロップ2
4ヲセツトする。
(1) In the block 30, the start address of the memory 5 to be accessed to the counter register 21 is set (EXPR set), and the flip-flop 2 for up/down is set.
Set 4.

(11)  ブロック31ではロジック回路22のアド
レスデコーダによって定義されたアドレスをアクセス1
1 することによって、カウンタレジスタ21の指定するア
ドレスのメモリ内容をプロセッサl内部のデータレジス
タ(DR)に読み込む(または逆に書き込む)eこの処
理が終了すると、カウンタレジスタ21は特定アドレス
の読出し/書込み信号のエツジで7リツプフロツプ24
の指定によってその内容をアップまたはダウンする。
(11) In the block 31, the address defined by the address decoder of the logic circuit 22 is accessed 1.
1 reads the memory contents of the address specified by the counter register 21 into the data register (DR) inside the processor l (or writes them conversely) e When this process is completed, the counter register 21 reads/writes the specified address. 7 lip flops 24 at the edge of the signal
Up or down its contents by specifying.

(Il[)  ブロック32では読み込んだデータにつ
いての処理が行われる。
(Il[) In block 32, processing is performed on the read data.

(ψ ブロック33は終了か否かを判断し、否であれば
ブロック31以降の処理を繰返す。
(ψ Block 33 determines whether or not it is finished, and if not, repeats the processing from block 31 onwards.

このように外部にオートインクリメント、デクリメント
可能なカウンタレジスタ21を設けたことによって、メ
モリアクセスでプロセッサエのレジスタを占有すること
がなくなシ、しかもアドレス1′1 情報の操作が簡素化されて高速度で実行できる。
By providing the counter register 21 that can be auto-incremented and decremented externally in this way, memory accesses do not occupy the registers of the processor, and the operation of the information at address 1'1 is simplified and high performance is achieved. Can be executed at high speed.

また、メモリ5の特定のブロック間のデータ転送の場合
には、その各ブロックについてこのような外部アドレス
レジスタを設置することにより、データ転送が容易にな
る。
Further, in the case of data transfer between specific blocks of the memory 5, the data transfer is facilitated by providing such an external address register for each block.

第5図は本発明の他の実施例を示すもので、第3図のカ
ウンタレジスタ21の代わシにフルアダーと2つのレジ
スタを設け1て機能の充実を図ったものである。
FIG. 5 shows another embodiment of the present invention, in which a full adder and two registers are provided in place of the counter register 21 of FIG. 3 to enhance functionality.

図において、1はマイクロプロセッサ、2はデータバス
、3はアドレスバス、4はコントロールバス、5はメモ
リ、22はアドレスデコーダ等を具備するロジック回路
、25はマルチプレクサ、26はオア回路、41はその
出力を前艷マルチプレクサ25の一方の入力とするフル
アダー、Cはアクセスするメモリ5の先頭アドレスをセ
ットしておくアドレスレジスタであシ、このレジスタC
はアクセス中はアドレスのテンポラリレジスタとなる。
In the figure, 1 is a microprocessor, 2 is a data bus, 3 is an address bus, 4 is a control bus, 5 is a memory, 22 is a logic circuit equipped with an address decoder, etc., 25 is a multiplexer, 26 is an OR circuit, and 41 is its A full adder whose output is one input of the front multiplexer 25. C is an address register in which the start address of the memory 5 to be accessed is set. This register C
serves as a temporary address register while being accessed.

43はアクセスするメモリアドレスの歩進間隔を指定す
るレジスタであシ、両レジスタ42.43の内容は前記
フルアダー41の入力となる。また、レジスタCにはフ
ルアダー41の出力をフィードバックさせている。44
は前記ロジック回路22の出力信号S、、S。
Reference numeral 43 is a register that specifies the step interval of the memory address to be accessed, and the contents of both registers 42 and 43 are input to the full adder 41. Further, the output of the full adder 41 is fed back to the register C. 44
are the output signals S, , S of the logic circuit 22.

を制御信号として前記レジスタ42に付与するオア回路
である。
This is an OR circuit that applies the signal to the register 42 as a control signal.

なお、前記レジスタ43は入力端がデータバス2に接続
されておシ、また制御信号としてロジック回路22から
信号S1、ロード信号(ライン23)が付与されている
。また、Foはフルアダー41のオーバーフローを示す
フラグである。
The input end of the register 43 is connected to the data bus 2, and a signal S1 and a load signal (line 23) are applied from the logic circuit 22 as control signals. Further, Fo is a flag indicating an overflow of the full adder 41.

このような回路構成とした場合には、まずアクセスする
メモリ5のアドレス(ロジック回路22のデコーダによ
って定義される)をレジスタCにセットする。次に、ア
クセスするメモリのアクセ誠間隔をレジスタ43にセッ
トする。このセットは、順次読出し/書込みする場合に
は1となる。
In the case of such a circuit configuration, first the address of the memory 5 to be accessed (defined by the decoder of the logic circuit 22) is set in the register C. Next, the access interval of the memory to be accessed is set in the register 43. This set is 1 for sequential read/write.

この状態で、プロセッサ1が最初にロジック回路22で
定義される特定アドレスを読出し/書込みすると、ロジ
ック回路22からマルチプレクサ25に対してフルアダ
ー41の出力を選択する信号S1が与えられ、また同時
にオア回路26を通してメモリ5に読出し/書込み指令
が与えられる。このとき、プロセッサ1はデータバス2
を通して(レジスタ42 ) + (レジスタ43)の
アドレスのメモリ内容を取シ込む。この後、所定の処理
が行われ、この読出し/書込みサイクルが終って信号S
lが消失すると、そのエツジでレジスタ招はフルアダー
41の出力、つまり(レジスタ42)’+(レジスタ4
3)をラッチする。この動作はサイクル毎に繰返され、
これによってレジスタ42の内容は一度メモリ5を読出
し/書込みする度にレジスタ430分だけ増加して行く
ことになる。
In this state, when the processor 1 first reads/writes a specific address defined by the logic circuit 22, the logic circuit 22 gives the multiplexer 25 a signal S1 for selecting the output of the full adder 41, and at the same time, the OR circuit A read/write command is applied to the memory 5 through 26. At this time, processor 1 uses data bus 2.
The memory contents at the address (register 42) + (register 43) are input through the register. After this, predetermined processing is performed, and when this read/write cycle is completed, the signal S
When l disappears, the register signal at that edge becomes the output of the full adder 41, that is, (register 42)' + (register 4
3) Latch. This operation is repeated every cycle,
As a result, the contents of the register 42 will increase by the amount of the register 430 each time the memory 5 is read/written.

このように歩進間隔の設定が自在で、かつアップダウン
可能なメモリブロックを持つと、フレキシブルなメモリ
アクセスが可能になる。これは、FFT (高速フーリ
エ変換:2 飛びのメモリアクセスを行う)などのアプ
リケーションには有効である。
Having a memory block in which the step interval can be freely set and which can be raised or lowered in this way enables flexible memory access. This is effective for applications such as FFT (fast Fourier transform: memory access is performed in 2-step intervals).

彦お、前記各実施例ともマルチプレクサ25でアドレス
バス3側の入力を選択すれば通常のメモリアクセスとな
る。
Hiko, in each of the above embodiments, if the input on the address bus 3 side is selected by the multiplexer 25, normal memory access is performed.

以上のように本発明によれば、レジスタ数9機能が限定
されたマイクロブ、ロセツサで構成されたマイクロコン
ピュータのメモリの1ブロツクまたは複数のブロックに
ついて、メモリアドレスを与えるマルチプレクサ、特定
アドレスを読出し/書込みしたときその動作後に自動的
に増加または減少するアップダウン機能を有し、その出
力をマルチプレクサの一方の入力とするカウンタ回路か
らなる、いわゆる外部アドレスレジスタを設けたので、
プロセッサ内部のレジスタをアドレス情報で占有するこ
とを防止でき、しかも実行速度の高速化によって連続し
たデータの処理を効率よく行うことが可能である。
As described above, according to the present invention, a multiplexer that provides a memory address and a specific address can be read/written for one block or multiple blocks of the memory of a microcomputer that is composed of a microb with a limited number of registers and a processor. We provided a so-called external address register consisting of a counter circuit that has an up-down function that automatically increases or decreases after the operation, and whose output is used as one input of the multiplexer.
It is possible to prevent registers inside the processor from being occupied by address information, and moreover, it is possible to efficiently process continuous data by increasing the execution speed.

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

第1図は一般的なマイクロコンピュータの構成を示すブ
ロック図、第2図は同コンピュータのプログラムの一例
を示すフローチャート、第3図は本発明に係るマイクロ
コンピュータの一実施例を示すブロック図、第4図は同
実施例の動作説明のためのフローチャート、第5図は本
発明の他の実施例を示すブロック図である。 l−φ・マイクロプロセッサ、2・・・チー タ/(ス
、3・・・アドレスバス、4・・響コントロールノ(ス
、51+1111メモリ、21−・・カウンタレジスタ
、22・・φロジック回路、24・・・フリップフロッ
プ、25・・・マルチプレクサ、26及び4411・囃
オア回路、41・−・フルアダー、42及び43@・・
レジスタ。 第1図 第2図
FIG. 1 is a block diagram showing the configuration of a general microcomputer, FIG. 2 is a flowchart showing an example of a program for the same computer, and FIG. 3 is a block diagram showing an embodiment of the microcomputer according to the present invention. FIG. 4 is a flowchart for explaining the operation of the same embodiment, and FIG. 5 is a block diagram showing another embodiment of the present invention. l-φ・Microprocessor, 2... Cheetah/(S, 3... Address bus, 4... Hibiki control node (S), 51+1111 memory, 21-... Counter register, 22...φ logic circuit, 24...Flip-flop, 25...Multiplexer, 26 and 4411-Sound OR circuit, 41...Full adder, 42 and 43@...
register. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] (リ オートインクリメント、オートデクリメントの機
能を持たないレジスタを内部レジスタとするマイクロプ
ロセッサ、メモリ等で構成されたマイクロコンビ五−夕
において、前記メモリの1ブロツクまたは複数のブロッ
クについて、メモリアドレスを与えるマルチプレクサと
、特定アドレスを読出し/書込みしたときその動作後に
自動的に増加または減少するアップダウン機能を有し、
その出力を前記マルチプレクサの一方の入力とするカウ
ンタ回路とを設けたことを特徴とするマイクロコンピュ
ータ。
(In a microcomputer consisting of a microprocessor, memory, etc. whose internal registers are registers that do not have auto-increment and auto-decrement functions, a multiplexer that provides a memory address for one or more blocks of the memory is used. It has an up-down function that automatically increases or decreases after reading/writing a specific address.
A microcomputer comprising a counter circuit whose output is used as one input of the multiplexer.
JP57101561A 1982-06-14 1982-06-14 Microcomputer Pending JPS58219645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57101561A JPS58219645A (en) 1982-06-14 1982-06-14 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57101561A JPS58219645A (en) 1982-06-14 1982-06-14 Microcomputer

Publications (1)

Publication Number Publication Date
JPS58219645A true JPS58219645A (en) 1983-12-21

Family

ID=14303822

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57101561A Pending JPS58219645A (en) 1982-06-14 1982-06-14 Microcomputer

Country Status (1)

Country Link
JP (1) JPS58219645A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6285337A (en) * 1985-10-09 1987-04-18 Nec Corp Microprogram controller
JPS62211767A (en) * 1986-03-12 1987-09-17 Fujitsu Ltd Indirect access control system
JPH0256028A (en) * 1988-05-25 1990-02-26 Nec Corp Microcomputer system
US9204428B2 (en) 2005-10-26 2015-12-01 Qualcomm Incorporated Interference management using resource utilization masks sent at constant PSD

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6285337A (en) * 1985-10-09 1987-04-18 Nec Corp Microprogram controller
JPS62211767A (en) * 1986-03-12 1987-09-17 Fujitsu Ltd Indirect access control system
JPH0256028A (en) * 1988-05-25 1990-02-26 Nec Corp Microcomputer system
US9204428B2 (en) 2005-10-26 2015-12-01 Qualcomm Incorporated Interference management using resource utilization masks sent at constant PSD

Similar Documents

Publication Publication Date Title
KR900004006B1 (en) Micro processor system
EP0054243A2 (en) Memory controlling apparatus
JPS58219645A (en) Microcomputer
JPH03271829A (en) Information processor
US6269429B1 (en) Microcomputer which writer data to memory based on an interrupt control mode
GB1359326A (en) Digital computer with several accumulator registers
JPS61269751A (en) Apparatus and method for using auxiliary data memory in data processing memory having independent program memory unit and data memory unit
JPH09311812A (en) Microcomputer
JPH0227596A (en) Semiconductor memory
JP4008196B2 (en) Register control device and multi-CPU system
JPH04280334A (en) One chip microcomputer
JP2852149B2 (en) Semaphore bit circuit
JPH0683765A (en) Microcomputer
JPS6229813B2 (en)
JP2806700B2 (en) Multi-processing system
JPS5886623A (en) Memory control system
JPS629926B2 (en)
JPS61161560A (en) Memory device
JPS6126699B2 (en)
JPH02144653A (en) Data processor
JPH05120030A (en) Interruption controller
JPS60193046A (en) Detecting system for instruction exception
JPH05265786A (en) Parity check circuit
JPH0210626B2 (en)
JPS58178467A (en) Data transfer device