JPH03214252A - Microprocessor - Google Patents
MicroprocessorInfo
- Publication number
- JPH03214252A JPH03214252A JP2009669A JP966990A JPH03214252A JP H03214252 A JPH03214252 A JP H03214252A JP 2009669 A JP2009669 A JP 2009669A JP 966990 A JP966990 A JP 966990A JP H03214252 A JPH03214252 A JP H03214252A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- state
- register
- bus
- cycle
- 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
- 230000004913 activation Effects 0.000 claims abstract description 3
- 230000004044 response Effects 0.000 claims description 2
- 230000008859 change Effects 0.000 abstract description 3
- 238000003780 insertion Methods 0.000 abstract description 2
- 230000037431 insertion Effects 0.000 abstract description 2
- 230000002045 lasting effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 7
- 230000007704 transition Effects 0.000 description 6
- 238000011084 recovery Methods 0.000 description 4
- 239000000470 constituent Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Landscapes
- Microcomputers (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はマイクロプロセッサに関し、特に、記憶装置(
以下メモリと称す)や入出力装置(以下l710と称す
)とのデータ転送が行われるマイクロプロセッサに関す
る。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprocessor, and particularly to a storage device (
The present invention relates to a microprocessor that performs data transfer with an input/output device (hereinafter referred to as 1710) and an input/output device (hereinafter referred to as 1710).
従来、この種のマイクロプロセッサは、メモリやIlo
とアクセスする時のバスサイクルが起動されると、書き
込みや読み出し等の制御信号が一定のタイミングでアク
ティブとなり、メモリやIloとのデータ転送が行われ
ていた。Conventionally, this type of microprocessor has memory and Ilo
When the bus cycle for accessing is started, control signals such as write and read become active at a certain timing, and data is transferred to and from the memory and Ilo.
上述した従来のマイクロプロセッサは、バスサイクルに
おいて制御信号のアクティブタイミングは、バスサイク
ルの起動時から一定時間後に固定されている。In the conventional microprocessor described above, the active timing of the control signal in the bus cycle is fixed after a certain period of time from the start of the bus cycle.
しかし、T10の種類によっては書き込みデータ転送が
行なわれた直後に、次の動作を行なうことができないも
の、つまり、書き込み回復時間を長くとる必要のものが
ある。このような場合、Iloに対する書き込み動作が
連続しないようなソフト的な配慮が必要となる。例えば
、プログラマは、I、10の書き込み回復時間を長くと
る必要性のため、Iloへの書き込みを行なう時には書
き込みサイクルが連続しないように、NOP (ノーオ
ペレーション命令)を挿入しなければならないというよ
うな自体が発生してしまう。However, depending on the type of T10, there are some types in which the next operation cannot be performed immediately after write data transfer, that is, a long write recovery time is required. In such a case, consideration must be given to software so that write operations to Ilo are not continuous. For example, the programmer must insert a NOP (no-operation instruction) when writing to Ilo to avoid consecutive write cycles due to the need for a long write recovery time for I,10. itself will occur.
また、マイクロプロセッサの動作周波数をハード的に変
えた場合には、ダミーの命令(書き込みサイクルが連続
しないための処M)を増やしたり、減らしたりする必要
が生じるという欠点がある。Furthermore, when the operating frequency of a microprocessor is changed by hardware, there is a drawback that it becomes necessary to increase or decrease the number of dummy instructions (processing M for discontinuous write cycles).
本発明の目的は、書き込み回復時間が長い■10を用い
た時でも、プログラムの変更やハードウェアの付加等の
必要がないマイクロプロセッサを提供することにある。An object of the present invention is to provide a microprocessor that does not require program changes or hardware additions even when using 10, which has a long write recovery time.
本発明のマイクロプロセッサは、外部装置に対する制御
信号を発生させる制御回路と、所望の値が設定されるレ
ジスタと、前記レジスタの値に応答して前記制御回路に
対して前記制御信号の活性化タイミングを制御するステ
ート生成回路とを有すること特徴とする。The microprocessor of the present invention includes a control circuit that generates a control signal for an external device, a register in which a desired value is set, and an activation timing of the control signal for the control circuit in response to the value of the register. and a state generation circuit that controls the state.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の第1の実施例を説明するためのブロッ
ク図である。同図に示すように、マイクロプロセッサ1
内部にレジスタ2とステート生成回路3及びバス制御口
li′84がある。レジスタ2にはI10サイクル起動
における■/′0制御信号が印加されるまでの余白期間
を設定するための値が格納されている。ステート生成回
路3は方形波信号のクロックCLK5とバスサイクルを
起動させるためのアクセス要求信号6と外部端子である
R、、EADY信号7及びレジスタ2の内容を入力し、
ステートS1信号8.ステートS2信号9スデートSI
信号10をバス制御回路4へ出力する。バス制御口1?
84はステート信号群の信号状態によりアドレスバス1
1とメモリ、110制御信号12の変化タイミングを決
定する。FIG. 1 is a block diagram for explaining a first embodiment of the present invention. As shown in the figure, microprocessor 1
There are a register 2, a state generation circuit 3, and a bus control port li'84 inside. Register 2 stores a value for setting the margin period until the ■/'0 control signal is applied at the start of the I10 cycle. The state generation circuit 3 inputs a square wave signal clock CLK5, an access request signal 6 for starting a bus cycle, an external terminal R, an EADY signal 7, and the contents of the register 2.
State S1 signal8. State S2 signal 9 S date SI
A signal 10 is output to the bus control circuit 4. Bus control port 1?
84 is the address bus 1 depending on the signal state of the state signal group.
1 and memory, 110 determines the change timing of the control signal 12.
第2UAは本発明の構成要件の1つであるステ−1〜生
成回路3の動作の一例を示す状態遷移図である。マイク
ロプロセッサ1の内部状態としてはSL、S2.SIの
いずれかであり、各状態は1クロツク(CLK)単位で
遷移する。ここでS1状態とはI10サイクルとなって
アドレスバスにデータを供給しているが、I1010制
御信丈だ供給していない状態、S2状態とはアドレスバ
スにデータを供給すると共にI1010制御信供給して
いる状態、SI状態とは、アドレスデータも、110制
御信号も供給されていないアイドリング状態をいう。The second UA is a state transition diagram showing an example of the operation of the stay 1 to generation circuit 3, which are one of the constituent elements of the present invention. The internal states of the microprocessor 1 are SL, S2 . SI, and each state changes in units of one clock (CLK). Here, the S1 state is a state in which data is supplied to the address bus in I10 cycles, but the I1010 control reliability is not supplied, and the S2 state is a state in which data is supplied to the address bus and I1010 control signals are supplied. The SI state refers to an idling state in which neither address data nor 110 control signals are supplied.
第3図に本発明の一実施例のバスサイクル動作タイミン
グ例を示す、I10アクセスサイクルにおいて、レジス
タ2の内容が1′に設定され、S1→S1→S2→S2
の遷移の例を示している。FIG. 3 shows an example of bus cycle operation timing according to an embodiment of the present invention. In the I10 access cycle, the contents of register 2 are set to 1', and S1→S1→S2→S2
An example of the transition is shown.
本発明の一実施例の動作を図面を参照して説明する。メ
モリサイクルの次にI10サイクルがあるとのアクセス
要求信号6がアクティブとなると、メモリサイクルが終
了直後に81状態となりステートS1信号8がrl、と
なる。このS1状態では、アドレスバス11にアドレス
情報を出力し、バスサイクルが起動開始となる。この時
、レジスタ2に格納されるデータ値によってI10サイ
クルが起動されてからI、10制御信号が供給されるま
でのM間が設定される。具体的には、レジスタ2に格納
されるデータ値が「n」であればS1状態を’n+1」
回続けS2状態へ遷移する。The operation of one embodiment of the present invention will be explained with reference to the drawings. When the access request signal 6 indicating that there is an I10 cycle after the memory cycle becomes active, the state becomes 81 immediately after the memory cycle ends, and the state S1 signal 8 becomes rl. In this S1 state, address information is output to the address bus 11, and a bus cycle starts. At this time, the data value stored in register 2 sets the period M from when the I10 cycle is activated until the I,10 control signal is supplied. Specifically, if the data value stored in register 2 is "n", the S1 state is set to 'n+1'.
Transition continues to S2 state.
S2状態では、アドレスバス11にアドレス情報を出力
し続けると共にメモリ、I1010制御信2をアクティ
ブとする。またS2状態ではクロック5の立ち上りにて
READY信号7をサンプリングし、「1」であればS
1状態かSI状態へ遷移し、r Q 4であればS2状
態を続けることになる。さらに、S1状態かSI状態へ
遷移する場合にはメモリ、■1010制御信2をインア
クティブとする。In the S2 state, address information is continued to be output to the address bus 11, and the memory I1010 control signal 2 is made active. Also, in the S2 state, the READY signal 7 is sampled at the rising edge of the clock 5, and if it is "1", the S
It will transition to the 1 state or the SI state, and if r Q 4, it will continue in the S2 state. Further, when transitioning to the S1 state or the SI state, the memory 1010 control signal 2 is made inactive.
本実施例のようにレジスタ2に所望の値を設定すること
により、I10サイクルが起動してからI1010制御
信が供給されるまでの期間が自動的に設けることになる
ため、プログラマがI10サイクル時のNOP命令の挿
入などの考慮しなくともよいことになる。By setting a desired value in register 2 as in this embodiment, a period from the start of the I10 cycle to the supply of the I1010 control signal is automatically provided, so that the programmer can This means that there is no need to consider the insertion of NOP instructions.
第4図は本発明の第2の実施例を説明するためのブロッ
ク図である。同図に示すように、マイクロプロセッサ1
01内部にAレジスタ102とBしジスタ107とステ
ート生成回路103とバス制御口i¥8104が設けら
れている。ステート生成回路103は方法波信号のクロ
ックCLK105とバスサイクル起動させるためのアク
セス要求信号106とAレジスタ102の内容とBレジ
スタ107の内容を入力し、ステー1− S L信号1
08、ステートS2信号109.ステートSI信号11
0をバス制御回路104へ出力する。バス制御回路10
4は前記ステート信号群の信号状態によりアトしスハス
111とメモリ、I、’O制御信号112の変化タイミ
ングを決定する。FIG. 4 is a block diagram for explaining a second embodiment of the present invention. As shown in the figure, microprocessor 1
01 includes an A register 102, a B register 107, a state generation circuit 103, and a bus control port i\8104. The state generation circuit 103 inputs the clock CLK 105 of the method wave signal, the access request signal 106 for starting the bus cycle, the contents of the A register 102, and the contents of the B register 107, and generates the STATE 1-SL signal 1.
08, state S2 signal 109. State SI signal 11
0 to the bus control circuit 104. Bus control circuit 10
4 determines the change timing of the SHUAS 111 and the memory, I, 'O control signals 112 based on the signal states of the state signal group.
本実施例6では、S2状態からの遷移をBレジスタ]0
7に格納されるデータ値によって決まるようにしたもの
であり、第1の実施例に対して端子数を減らすという利
点がある。In the sixth embodiment, the transition from the S2 state is recorded in the B register]0
7, which has the advantage of reducing the number of terminals compared to the first embodiment.
以上説明したように本発明は、レジスタに格納した値に
よってメモリやIloへの書き込み、読み出し用の制御
信号のアクティブとなるタイミングを可変にできる。As described above, according to the present invention, the timing at which the control signal for writing to and reading from the memory or Ilo becomes active can be varied depending on the value stored in the register.
これによって、リカバリタイムを長く必要とする■/○
をシステムに取り込む際、ソフl〜ウェア設計者が、ハ
ードウェアの制限を考慮してダミーの命令をプログラミ
ングする必要がなく、最適なバスサイクルタイミングに
設計でき、バスの使用効率を高めることができる効果が
ある。This will require longer recovery time■/○
When incorporating software into a system, software designers do not need to program dummy instructions in consideration of hardware limitations, and can design for optimal bus cycle timing, increasing bus usage efficiency. effective.
第1図は本発明の第]−の実施例を説明するためのブロ
ック図、第2図は本発明の構成要件の1つであるステー
ト生成回路の動作を示す状態遷移図、第3図は本発明の
第1の実施例のバスサイクル動作例を示すタイミング図
、第4図は本発明の第2の実施例を説明するためのブロ
ック図である。
1.101・・マイクロプロセッサ、2.102107
・レジスタ、3.103・・・ステート生成回路、4,
104・・バス制御回路、5.105・・・クロック信
号、6,106・・・アクセス要求信号、7・・外部R
EADY信号、8,108・・・S1信号、9.109
・・・S2信号、10,110・・・SI信号、111
]、1・・・アドレスバス、12.112・・・メモリ
、I10制御信号。FIG. 1 is a block diagram for explaining the embodiment of the present invention, FIG. 2 is a state transition diagram showing the operation of the state generation circuit, which is one of the constituent elements of the present invention, and FIG. FIG. 4 is a timing diagram showing an example of the bus cycle operation of the first embodiment of the present invention. FIG. 4 is a block diagram for explaining the second embodiment of the present invention. 1.101...Microprocessor, 2.102107
・Register, 3.103... State generation circuit, 4,
104...Bus control circuit, 5.105...Clock signal, 6,106...Access request signal, 7...External R
EADY signal, 8,108...S1 signal, 9.109
...S2 signal, 10,110...SI signal, 111
], 1...Address bus, 12.112...Memory, I10 control signal.
Claims (1)
所望の値が設定されるレジスタと、前記レジスタの値に
応答して前記制御回路に対して前記制御信号の活性化タ
イミングを制御するステート生成回路とを有すること特
徴とするマイクロプロセッサ。a control circuit that generates a control signal to an external device;
A microprocessor comprising: a register in which a desired value is set; and a state generation circuit that controls activation timing of the control signal for the control circuit in response to the value of the register.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009669A JPH03214252A (en) | 1990-01-19 | 1990-01-19 | Microprocessor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009669A JPH03214252A (en) | 1990-01-19 | 1990-01-19 | Microprocessor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03214252A true JPH03214252A (en) | 1991-09-19 |
Family
ID=11726620
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009669A Pending JPH03214252A (en) | 1990-01-19 | 1990-01-19 | Microprocessor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03214252A (en) |
-
1990
- 1990-01-19 JP JP2009669A patent/JPH03214252A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0821011B2 (en) | Bus expansion control method | |
| JPS6243764A (en) | Bus state control circuit | |
| JP3552213B2 (en) | SD memory card host controller and clock control method | |
| JP3728468B2 (en) | Memory control device | |
| JPH03214252A (en) | Microprocessor | |
| JP2624388B2 (en) | DMA device | |
| JP2626112B2 (en) | Microprocessor | |
| JP3563223B2 (en) | Register circuit | |
| US20060018185A1 (en) | Memory control apparatus and electronic apparatus | |
| JPH0542525Y2 (en) | ||
| JP2697772B2 (en) | Information processing device | |
| JPH0461096A (en) | memory controller | |
| JP2634893B2 (en) | Single chip microcomputer | |
| JPS6146552A (en) | Information processor | |
| JP2001022692A (en) | Microcomputer and control system | |
| JPS62221061A (en) | Microcomputer | |
| JP2617132B2 (en) | Direct memory access method | |
| JPH03273322A (en) | calculator | |
| JPH05324119A (en) | Information processing equipment | |
| JPH0520475A (en) | Microprocessor incorporating peripheral lsi | |
| JPH0498558A (en) | Microcomputer | |
| JPH04195316A (en) | power saving circuit | |
| JPH03242717A (en) | Microprocessor | |
| JPH1196112A (en) | I / O port | |
| JPH07220493A (en) | Semiconductor device |