JPH03180946A - Address converter - Google Patents

Address converter

Info

Publication number
JPH03180946A
JPH03180946A JP31986689A JP31986689A JPH03180946A JP H03180946 A JPH03180946 A JP H03180946A JP 31986689 A JP31986689 A JP 31986689A JP 31986689 A JP31986689 A JP 31986689A JP H03180946 A JPH03180946 A JP H03180946A
Authority
JP
Japan
Prior art keywords
address
adder
constant
logical address
timing
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
JP31986689A
Other languages
Japanese (ja)
Inventor
Kunihiko Kawasaki
邦彦 川崎
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.)
Advantest Corp
Original Assignee
Advantest Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advantest Corp filed Critical Advantest Corp
Priority to JP31986689A priority Critical patent/JPH03180946A/en
Publication of JPH03180946A publication Critical patent/JPH03180946A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain rapid processing by restricting a time delay from the updating of a logical address up to the generation of a physical address only by the delay time of a constant adder. CONSTITUTION:Since a latch circuit 9 is connected, a program counter 1 enters a logical address outputted from a logical address adder 3 at the timing preceding the timing of system clocks A, B, C.... Even if the logical address is outputted, the output data are latched by the latch circuit 9, so that a constant iTA is updated at the applying timing of the system clocks A, B, C.... Since the constant iTA can be added to the updated address signal and the physical addresses EAA, EAB... can be generated only after the delay of the added delay time t'0 of a constant adder 10 from the timing of the system clocks A, B, C..., the delay time of the adder 10 can be offset and rapid processing can be attained.

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明はメモリに記憶されたマイクロプログラムを読
出して各種の制御を実行する装置に用いるアドレス変換
装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an address translation device used in a device that reads microprograms stored in a memory and executes various controls.

「従来の技術」 第5図にメモリ内に記憶したプログラムの格納状況を示
す。図の例では物理アドレス1000番地から1100
番地にプログラムNo、 lを格納し、物理アドレス2
000番地から2100番地の間にプログラムNo、 
2を格納した状況を示している。
"Prior Art" FIG. 5 shows the storage status of programs stored in memory. In the example in the figure, from physical address 1000 to 1100
Store program No. l at the address, and change to physical address 2.
Program No. between address 000 and address 2100,
2 is stored.

つまり物理アドレスとはメモリをアクセスするための絶
対アドレスを指す。
In other words, a physical address refers to an absolute address for accessing memory.

これに対しプログラム内のアドレス情報は論理アドレス
(相対アドレスとも言う)で記述される。
On the other hand, address information within a program is written using logical addresses (also called relative addresses).

図の例ではプログラムを構成する各ワードWRWR2・
・・を論理アドレス0〜lOOに格納した例を示してい
る。
In the example in the figure, each word WRWR2 and
. . is stored in logical addresses 0 to lOO.

一般にマイクロコンピュータのプログラムを開発する時
点では開発ツールの融通性を考慮して絶対アドレスでは
なく、論理アドレスでプログラムされることが多い。論
理アドレスは最終的にアドレス変換装置によって物理ア
ドレスに変換され、メモリへのアクセスを可能としてい
る。
Generally, when developing a microcomputer program, it is often programmed using logical addresses rather than absolute addresses in consideration of the flexibility of development tools. The logical address is finally translated into a physical address by an address translation device, allowing access to the memory.

第3図に論理アドレスを物理アドレスに変換するアドレ
ス変換装置の従来例を示す。
FIG. 3 shows a conventional example of an address translation device that translates a logical address into a physical address.

図中1はプログラムカウンタを示す。このプログラムカ
ウンタ1には現在実行中の命令が書込まれている論理ア
ドレスがストアされる。
In the figure, 1 indicates a program counter. This program counter 1 stores the logical address at which the currently executed instruction is written.

つまりプログラムカウンタ1に対し、定数発生器2が設
けられる。定数発生器2とプログラムカウンタ1には第
4図に示すように同一のシステムクロックA、B、C・
・・が与えられ、このシステムクロックA、B、C・・
・に同期してプログラムカウンタ1は加算器3の加算結
果を取込み次の命令を読出すための論理アドレスLA、
、LAC・・・を出力すると共に定数発生器2から定数
iTA、iT。
That is, a constant generator 2 is provided for the program counter 1. The constant generator 2 and the program counter 1 are supplied with the same system clocks A, B, C, and C as shown in FIG.
... is given, and this system clock A, B, C...
・In synchronization with , the program counter 1 receives the addition result of the adder 3 and reads the next instruction from the logical address LA,
, LAC . . . and constants iTA, iT from the constant generator 2.

・・・が出力され、定数iTA、iTw・・・とプログ
ラムカウンタ1から出力される論理アドレスを加算器3
で加算し、その加算結果をプログラムカウンタ1に帰環
させる。プログラムカウンタ1は次のシステムクロック
Aで加算器3の加算出力を次期論理アドレスLA、、L
Acとして取込みその取込んだ次期論理アドレスL A
 E 、  L A c・・・を再び加算器3に出力し
、定数発生器2から出力される定数iTa、iTB・・
・と加算し、論理アドレスを更新する。
... is output, and the constants iTA, iTw... and the logical address output from the program counter 1 are added to the adder 3.
and returns the addition result to program counter 1. Program counter 1 transfers the addition output of adder 3 to the next logical address LA, , L at the next system clock A.
Ac and the next logical address L A
E, L A c... are output to the adder 3 again, and constants iTa, iTB... are output from the constant generator 2.
・Add and update the logical address.

このようにしてシステムクロックA、B、C・・・の供
給毎に次期論理アドレスLA、、LA、・・・の更新を
行なう。従ってプログラムカウンタ1と、定数発生器2
に、加算器3とによって構成される部分を論理アドレス
発生器4と称することにする。
In this way, the next logical addresses LA, LA, . . . are updated every time the system clocks A, B, C, . . . are supplied. Therefore, program counter 1 and constant generator 2
The section constituted by the adder 3 and the adder 3 will be referred to as a logical address generator 4.

加算器3から出力される次期論理アドレスLA。Next logical address LA output from adder 3.

LA、・・・は第2加算器5に人力される。この加算器
5にはベースアドレス発生器6からベースアドレスBA
が与えられており、論理アドレス1.ABLAc・・・
にベースアドレスBAを加えて物理アドレスAAに変換
し、メモリ7に与える。
LA, . . . are manually input to the second adder 5. This adder 5 receives the base address BA from the base address generator 6.
is given, and the logical address 1. ABLAc...
The base address BA is added to the address AA to convert it into a physical address AA, which is then given to the memory 7.

「発明が解決しようとする課題」 第3図に示した構成によれば、第4図に示すようにシス
テムクロックA、B、C・・・の供Mによって定数発生
器2はiTa、iTB・・・を出力し、プログラムカウ
ンタ1は論理アドレスLAAを出力する。
``Problems to be Solved by the Invention'' According to the configuration shown in FIG. 3, as shown in FIG. . . , and the program counter 1 outputs the logical address LAA.

定数iTAと論理アドレスLAAは第1加算器3で加算
されて次の命令を読出すための次期論理アドレスLAI
Iに変換されて第2加算器5に入力され、第2加算器5
でベースアドレスBAが加算されて物理アドレスAAに
変換される。
The constant iTA and the logical address LAA are added by the first adder 3 to obtain the next logical address LAI for reading the next instruction.
I and is input to the second adder 5.
The base address BA is added and converted to the physical address AA.

第1加算器3及び第2加算器5では遅延時間t0とtl
が与えられる。従ってメモリ7に与えられる物理アドレ
スAA、BB、 ・・・はシステムクロックA、  B
、 ・・・よりそれぞれt。+1.の時間遅延したタイ
ミングでメモリ7に与えられる。
The first adder 3 and the second adder 5 have delay times t0 and tl.
is given. Therefore, the physical addresses AA, BB, ... given to the memory 7 correspond to the system clocks A, B.
, ...each t. +1. The signal is applied to the memory 7 at a timing delayed by .

メモリ7では物理アドレス信号AA、BB・・・が与え
られた時点からアクセスタイムが経過した時点でアクセ
スされたアドレスの内容が読出される。
In the memory 7, the contents of the accessed address are read out when an access time has elapsed from the time when the physical address signals AA, BB, . . . were applied.

読出された内容から次に実行すべき命令が決定され、次
の命令の続出アドレスが算出される。
The next instruction to be executed is determined from the read contents, and the subsequent address of the next instruction is calculated.

このようにシステムクロックA、B、C・・・の供給時
点から物理アドレスを算出する動作を開始するため、第
1加算器3及び第2加算器5において遅延時間τ−t。
In this way, in order to start the operation of calculating the physical address from the time when the system clocks A, B, C, . . . are supplied, the first adder 3 and the second adder 5 have a delay time τ-t.

十t1が与えられると、動作速度に限界が生じ、高速化
の障害となっている。
When ten t1 is given, there is a limit to the operating speed, which is an obstacle to increasing the speed.

この発明の目的は加算器の遅延時間を相殺し、高速化が
可能なアドレス変換装置を提供しようとするものである
SUMMARY OF THE INVENTION An object of the present invention is to provide an address translation device that can offset the delay time of an adder and increase the speed.

「課題を解決するための手段」 この発明ではプログラムカウンタに与えるクロックをシ
ステムクロックの位相より先行させ、システムクロック
のタイミングより前のタイミングで論理アドレス加算器
が出力する次の論理アドレスを取込み、この取込んだ論
理アドレスを直ちにベースアドレス加算出器に与え、ベ
ースアドレス加算器において、システムクロックの発生
タイミングより前のタイミングでベースアドレスとプロ
グラムカウンタに格納した論理アドレスを加算させる。
"Means for Solving the Problem" In this invention, the clock given to the program counter is advanced in phase to the system clock, and the next logical address output from the logical address adder is taken in at a timing before the timing of the system clock. The fetched logical address is immediately given to the base address adder, and the base address adder adds the base address and the logical address stored in the program counter at a timing before the system clock generation timing.

この加算結果はシステムクロックの供給タイミングでラ
ッチ回路にこのベースアドレスを加算したアドレスをラ
ッチすることができる。ラッチ回路のう・2ヂ出力は定
数加算器に人力される。
This addition result can be used to latch an address obtained by adding this base address to a latch circuit at the timing of supplying the system clock. The second output of the latch circuit is input to a constant adder.

定数加算演算器では、定数発生器2から出力される定数
とラッチ回路から与えられるベースアドレスが加えられ
たアドレス信号が与えられ、この定数とアドレス信号と
を加算して物理アドレスを算出する。
The constant addition calculator receives an address signal obtained by adding the constant output from the constant generator 2 and the base address provided from the latch circuit, and calculates a physical address by adding this constant and the address signal.

従ってこの発明によればプログラムカウンタに格納され
た論理アドレスとベースアドレスの加算をシステムクロ
ックのタイミングより前のタイミングで処理し、システ
ムクロックの供給タイごングでは定数を既に加算処理さ
れたアドレスに加算すればよい。
Therefore, according to the present invention, the addition of the logical address stored in the program counter and the base address is processed at a timing before the system clock timing, and when the system clock is supplied, a constant is added to the address that has already been added. do it.

従ってシステムクロックのタイミングから1個の加算器
の遅延時間分の時間で物理アドレスを発生させることが
でき、高速化を実現することができる。
Therefore, a physical address can be generated in a time corresponding to the delay time of one adder from the timing of the system clock, and high speed can be realized.

「実施例」 第1図にこの発明の一実施例を示す。第1図において、
第3図と対応する部分には同一符号を付して示す。
"Embodiment" FIG. 1 shows an embodiment of the present invention. In Figure 1,
Portions corresponding to those in FIG. 3 are designated by the same reference numerals.

この発明の特徴とする構成は論理アドレス発生器4を構
成するプログラムカウンタ1と定数発生器2から論理ア
ドレスLA、と定数iT、1を論理アドレス加算器3に
与え、次のタイ果ングで使用する論理アドレスを発生さ
せると共に、プログラムカウンタ1と定数発生器2から
出力される論理アドレスLAAと定数iTAを直接取出
し、論理アドレスLA、、LAI・・・を特別に設けた
ベースアドレス加算器8に与え、論理アドレスLAAに
ベースアドレスBAを加算する構成にした点と、このベ
ースアドレス加算器8の加算結果を一時保持するラッチ
回路9を設けた点と、 このラッチ回路9のラッチ出力を定数発生器2から出力
される定数iTAに加算する定数加算器10とによって
アドレス変換装置を構成した点である。
The feature of this invention is that the program counter 1 and constant generator 2 that constitute the logical address generator 4 give the logical address LA and constant iT, 1 to the logical address adder 3, and use them in the next tie-up. At the same time, the logical address LAA and constant iTA outputted from the program counter 1 and the constant generator 2 are directly taken out, and the logical addresses LA, LAI, . . . are added to a specially provided base address adder 8. A latch circuit 9 is provided to temporarily hold the addition result of the base address adder 8, and the latch output of the latch circuit 9 is used to generate a constant. The point is that the address translation device is constituted by a constant adder 10 that adds to the constant iTA output from the device 2.

この発明の構成においてはプログラムカウンタ1に与え
るクロックは第2図に示すようにシステムクロックA、
B、C・・・より進み位相のクロックCPを与えること
ができる。
In the configuration of this invention, the clocks given to the program counter 1 are system clock A, as shown in FIG.
It is possible to provide a clock CP whose phase is more advanced than that of B, C, . . . .

つまりラッチ回路9を設けたことによってプログラムカ
ウンタlにシステムクロックA、B、C・・・のタイミ
ングより前のタイミングで、プログラムカウンタlが論
理アドレス加算器3が出力する論理アドレスを取込み、
その論理アドレスを出力したとしても、ラッチ回路9に
よってその出力データをラッチするから、システムクロ
ックの供給タイミングでは既に論理アドレスにベースア
ドレスを加えたアドレス信号を得ることができる。
In other words, by providing the latch circuit 9, the program counter l receives the logical address output from the logical address adder 3 at a timing before the timing of the system clocks A, B, C, etc.
Even if the logical address is output, the output data is latched by the latch circuit 9, so that an address signal obtained by adding the base address to the logical address can already be obtained at the timing of supplying the system clock.

よってシステムクロックA、B、C・・・が与えられる
タイミングで定数iT6が更新されることによって、こ
の更新されたアドレス信号に定数iTAを加えることが
でき、よってシステムクロックA。
Therefore, by updating the constant iT6 at the timing when the system clocks A, B, C, . . . are applied, the constant iTA can be added to this updated address signal.

BC・・・のタイミングから定数加算器10の加算遅延
時間t′。だけの遅延で物理アドレスEA、。
The addition delay time t' of the constant adder 10 from the timing of BC... physical address EA, with only a delay.

EA、・・・を発生させることができる。EA, . . . can be generated.

第2図を用いてこの発明の動作を更に詳しく説明する。The operation of the present invention will be explained in more detail with reference to FIG.

第2図A、B、C・・・はシステムクロックを示す。FIG. 2A, B, C, . . . show system clocks.

このシステムクロックA、B、C・・・は定数発生器2
に与えられ、定数iTAを更新する。
These system clocks A, B, C... are constant generator 2
is given to update the constant iTA.

クロックCPはシステムクロックA、B、C・・・のタ
イミングよりt2だけ進んだ位相を具備し、プログラム
カウンタ1に与えられ、プログラムカウンタlに格納さ
れ論理アドレスLAA、LAe・・・を更新させる。
The clock CP has a phase that is t2 ahead of the timing of the system clocks A, B, C, .

プログラムカウンタ1に格納される論理アドレスL A
a 、  L A++・・・がクロックCPのタイミン
グで更新されるタイミングからベースアドレス加算器8
の遅延時間t1後に論理アドレスLA^。
Logical address LA stored in program counter 1
From the timing when a, LA++... are updated at the timing of the clock CP, the base address adder 8
Logical address LA^ after delay time t1.

LA、・・・にベースアドレスBAを加算したアドレス
CAA、CA、・・・がベースアドレス加算器8から出
力される。
The base address adder 8 outputs addresses CAA, CA, . . . which are obtained by adding the base address BA to LA, .

よって例えばシステムクロックA、B、C・・・と同期
したタイくングでラッチ信号LCKをラッチ回路9に与
えることによって、このラッチ信号LCKのタイ多ング
でアドレスCA^、CAm・・・をラッチすることがで
きる。第2図中DAa。
Therefore, for example, by providing the latch signal LCK to the latch circuit 9 with timing synchronized with the system clocks A, B, C, etc., addresses CA^, CAm, etc. can be latched by the timing of the latch signal LCK. can do. DAa in FIG.

DA、・・・はそのラッチ出力を示す。DA, . . . indicate the latch outputs.

ラッチ回路9にラッチされたアドレスDA、。Address DA latched by latch circuit 9.

DAB・・・は定数加算器10に与えられる。定数加算
器10にはシステムクロックA、B・・・のタイミング
で定数iTa、iTn・・・が更新されて人力されるか
ら、その加算結果EA、、EA、・・・は各システムク
ロックA、B、・・・のタイミングから定数加算器10
の遅延時間t′。だけの遅延時間でメモリ7に与えられ
る。
DAB... is given to the constant adder 10. The constants iTa, iTn, etc. are updated manually in the constant adder 10 at the timing of the system clocks A, B, etc., so the addition results EA, EA, ... are the same as each system clock A, Constant adder 10 from the timing of B,...
delay time t'. is applied to the memory 7 with a delay time of .

「発明の効果」 以上説明したように、この発明によれば論理アドレスを
物理アドレスに変換するアドレス変換装置において、論
理アドレスの更新から物理アドレスの発生までの時間遅
れを定数加算器10の遅延時間だけにすることができる
"Effects of the Invention" As explained above, according to the present invention, in an address conversion device that converts a logical address into a physical address, the time delay from the update of the logical address to the generation of the physical address is the delay time of the constant adder 10. can only be done.

よって論理アドレスの発生から物理アドレスの発生まで
の時間を短かくすることができ、メモリの続出速度を速
めることができ、高速処理が可能になる利点が得られる
Therefore, the time from the generation of a logical address to the generation of a physical address can be shortened, and the speed at which memory can be sequentially output can be increased, providing the advantage of enabling high-speed processing.

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

第1図はこの発明の一実施例を示すブロック図、第2図
はこの発明の詳細な説明するための波形図、1 第3図は従来の技術を説明するためのブロック図、第4
図は従来の技術の動作を説明するための波形図、第5図
はメモリに書込まれたプログラムの格納状況を説明する
ための図である。 1;プログラムカウンタ、2:定数発生器、3:論理ア
ドレス加算器、4:論理アドレス発生器、6:ベースア
ドレス発生器、7:メモリ、8:ベースアドレス加算器
、9:ラッチ回路、10:定数加算器。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a waveform diagram for explaining the invention in detail, 1 FIG. 3 is a block diagram for explaining the conventional technology, and FIG.
The figure is a waveform diagram for explaining the operation of the conventional technique, and FIG. 5 is a diagram for explaining the storage situation of the program written in the memory. 1: Program counter, 2: Constant generator, 3: Logical address adder, 4: Logical address generator, 6: Base address generator, 7: Memory, 8: Base address adder, 9: Latch circuit, 10: Constant adder.

Claims (1)

【特許請求の範囲】[Claims] (1)A、プログラムカウンタに格納された論理アドレ
スと、定数発生器から出力される定数とを論理アドレス
加算器によって加算して次のタイミングで発生すべき論
理アドレスを発生する論理アドレス発生器と、 B、上記プログラムカウンタに格納された論理アドレス
にベースアドレスを加算するベースアドレス加算器と、 C、このベースアドレス加算器の加算結果をラッチする
ラッチ回路と、 D、このラッチ回路のラッチ出力と上記定数発生器から
出力される定数とを加算してメモリをアクセスするため
の物理アドレスを出力する定数加算器と、 によって構成したアドレス変換装置。
(1) A. A logical address generator that generates a logical address to be generated at the next timing by adding the logical address stored in the program counter and the constant output from the constant generator using a logical address adder. , B. A base address adder that adds a base address to the logical address stored in the program counter; C. A latch circuit that latches the addition result of this base address adder; D. A latch output of this latch circuit. An address translation device comprising: a constant adder that adds a constant output from the constant generator and outputs a physical address for accessing a memory;
JP31986689A 1989-12-08 1989-12-08 Address converter Pending JPH03180946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31986689A JPH03180946A (en) 1989-12-08 1989-12-08 Address converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31986689A JPH03180946A (en) 1989-12-08 1989-12-08 Address converter

Publications (1)

Publication Number Publication Date
JPH03180946A true JPH03180946A (en) 1991-08-06

Family

ID=18115111

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31986689A Pending JPH03180946A (en) 1989-12-08 1989-12-08 Address converter

Country Status (1)

Country Link
JP (1) JPH03180946A (en)

Similar Documents

Publication Publication Date Title
US4438488A (en) Data processing system with a slave computer using data registers as the sole operand store
JP2548428B2 (en) Timing generator
US4253142A (en) Method and apparatus for speeding up the determination of a microinstruction address in a data processing system
JPH03180946A (en) Address converter
JPH10134183A (en) Image processing device
JP3194193B2 (en) Signal processing device
JP3045731B2 (en) Sequence control method
JPH01189728A (en) Circuit for updating instruction pre-fetch address
JP3251237B2 (en) Reprogramming method in SDRAM
JPH03204695A (en) Musical sound synthesizing device
JPH079280Y2 (en) Stack circuit
JPH06188635A (en) Arbitrary waveform generator
JPS61253559A (en) Microprocessor
JP2601055B2 (en) Microprogram sequencer
JPH01269140A (en) Memory extending circuit
JPH0575985B2 (en)
JPS6356746A (en) Paging by-pass system in virtual computer
JPS6011398B2 (en) Memory test pattern writing device
JPH0410045A (en) Microprocessor
JPS62168235A (en) Data processor
JPH0573424A (en) High speed address converting system
JPH0158528B2 (en)
JPS60132254A (en) Data processor
JPH05281973A (en) Memory access device
JPH05189305A (en) Memory control method