JP2007316840A - Processor, integrated circuit device and electronic equipment - Google Patents

Processor, integrated circuit device and electronic equipment Download PDF

Info

Publication number
JP2007316840A
JP2007316840A JP2006144235A JP2006144235A JP2007316840A JP 2007316840 A JP2007316840 A JP 2007316840A JP 2006144235 A JP2006144235 A JP 2006144235A JP 2006144235 A JP2006144235 A JP 2006144235A JP 2007316840 A JP2007316840 A JP 2007316840A
Authority
JP
Japan
Prior art keywords
interrupt
vector
signal
state
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
JP2006144235A
Other languages
Japanese (ja)
Inventor
Hiroki Matsuoka
弘樹 松岡
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006144235A priority Critical patent/JP2007316840A/en
Publication of JP2007316840A publication Critical patent/JP2007316840A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Microcomputers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a processor, enabling a user to perform system design without being conscious of the timing enabling interrupt processing. <P>SOLUTION: The processor 10 adapted to receive and branch an interrupt generation signal 70 reporting occurrence of hardware interrupt and an interrupt vector signal 80 to an address to a corresponding interrupt processing program comprises an interrupt state control circuit 20 for asserting a vector control signal when a state capable of generating an interrupt vector is determined based on the state of the processor; an interrupt vector signal latch circuit 30 for latching the interrupt vector signal 80 when the interrupt generation signal 70 is asserted; and a vector address generation circuit 40 for generating, when the vector control signal 26 is asserted, a vector address for branching to the corresponding interrupt processing program based on a latch output of the interrupt vector signal latch circuit 30. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、プロセッサ、集積回路装置及び電子機器に関する。   The present invention relates to a processor, an integrated circuit device, and an electronic apparatus.

クロック同期であり、割り込み発生信号と割り込みベクタで信号で割り込みコントローラとインターフェースをとるCPUでは、ハードウエア割り込みが発生すると割り込み受付可能なサイクルで割り込み処理ステートとなり割り込みステートの処理を開始し、割り込みベクタ信号によりアドレスを生成し、アドレスの指し示すメモリから分岐先アドレスを取得し、分岐する。
特開2001−22593号公報 特開平5−120182号公報
A CPU that is clock-synchronized and interfaces with the interrupt controller with an interrupt generation signal and an interrupt vector, when a hardware interrupt occurs, enters the interrupt processing state in the cycle in which the interrupt can be accepted, and starts interrupt state processing. To generate an address, obtain the branch destination address from the memory indicated by the address, and branch.
Japanese Patent Laid-Open No. 2001-22593 Japanese Patent Laid-Open No. 5-120182

図9(A)(B)は従来技術の問題点について説明するための図である。   FIGS. 9A and 9B are diagrams for explaining the problems of the prior art.

図9(A)は、クロック同期であり、割り込み発生信号350と割り込みベクタで信号360で図示しない割り込みコントローラとインターフェースをとるCPU300の機能ブロック図である。かかるCPU300は、ハードウエア割り込みが発生すると割り込み受付可能なサイクルで割り込み処理ステートとなり割り込みステートの処理を開始し、割り込みベクタ信号によりアドレスを生成し、アドレスの指し示すメモリから分岐先アドレスを取得し分岐する。   FIG. 9A is a functional block diagram of the CPU 300 that is clock-synchronized and interfaces with an interrupt controller (not shown) by an interrupt generation signal 350 and an interrupt vector by a signal 360. When a hardware interrupt occurs, the CPU 300 enters an interrupt processing state in a cycle in which an interrupt can be accepted, starts interrupt state processing, generates an address by an interrupt vector signal, acquires a branch destination address from the memory indicated by the address, and branches. .

ハードウエア割り込みが発生するとCPU300プロセッサは割り込み発生信号350と割り込みベクタ信号360を受け取るが、CPUは割り込み受付可能なサイクルになるまで割り込み処理を行うことができない。したがってCPUが割り込み受付可能なサイクルになるタイミングと割り込みベクタを受け取るタイミングが異なることになる。   When a hardware interrupt occurs, the CPU 300 processor receives an interrupt generation signal 350 and an interrupt vector signal 360, but the CPU cannot perform interrupt processing until a cycle in which an interrupt can be accepted. Accordingly, the timing at which the CPU becomes a cycle in which interrupts can be received differs from the timing at which interrupt vectors are received.

図9(B)は、割り込み発生時のタイミングチャートである。   FIG. 9B is a timing chart when an interrupt occurs.

370はステートマシン310で生成されるステートの遷移を示している。割り込み発生信号340がHレベルになると(アサートされる)、所定クロック後のクロックの立ち上がりで、ステートが割り込み受けつけステート372に遷移する。その後CPUが割り込み処理が可能になったときにベクタ生成ステート374に遷移する。   Reference numeral 370 denotes a state transition generated by the state machine 310. When the interrupt generation signal 340 becomes H level (asserted), the state transits to the interrupt acceptance state 372 at the rising edge of the clock after a predetermined clock. Thereafter, when the CPU becomes capable of interrupt processing, the CPU transits to the vector generation state 374.

同図に示すようにベクタ生成ステート374と、割り込みベクタを受け付けるクロックサイクル362とが異なるので、ベクタアドレス生成部320が不定なベクタ274をラッチしないように制御する必要がある。   As shown in the figure, since the vector generation state 374 and the clock cycle 362 for receiving the interrupt vector are different, it is necessary to control the vector address generation unit 320 so as not to latch the indefinite vector 274.

ところがベクタ生成ステート374に遷移するタイミングはパイプラインによる前後の命令の関係やバスのウエイト状態等により変化するため一定でなく、割り込みコントローラによるハード制御は困難であるという問題点があった。   However, the timing of transition to the vector generation state 374 is not constant because it changes depending on the relationship between the instructions before and after the pipeline, the wait state of the bus, and the like, and there is a problem that hardware control by the interrupt controller is difficult.

本発明は以上のような問題点に鑑みてなされたものであり、割り込み処理が可能になるタイミングを意識することなくシステム設計が可能なプロセッサの提供を目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a processor capable of system design without being aware of the timing at which interrupt processing is possible.

(1)本発明は、
ハードウエア割り込みの発生を通知する割り込み発生信号、割り込みベクタ信号を受け取り、該当する割り込み処理プログラムへのアドレスに分岐するプロセッサであって、
プロセッサの状態に基づいて、割り込みベクタを生成可能なステートであると判断した場合にベクタ制御信号をアサートする割り込みステート制御回路と、
割り込み発生信号がアサートである場合に、割り込みベクタ信号をラッチする割り込みベクタ信号ラッチ回路と、
ベクタ制御信号がアサートである場合に、割り込みベクタ信号ラッチ回路のラッチ出力に基づき該当する割り込み処理プログラムへ分岐するためのベクタアドレスを生成するベクタアドレス生成回路を含むことを特徴とする。
(1) The present invention
A processor that receives an interrupt generation signal and an interrupt vector signal for notifying the occurrence of a hardware interrupt, and branches to an address to the corresponding interrupt processing program,
An interrupt state control circuit that asserts a vector control signal when it is determined that the interrupt vector can be generated based on the state of the processor;
An interrupt vector signal latch circuit that latches an interrupt vector signal when the interrupt generation signal is asserted;
And a vector address generation circuit for generating a vector address for branching to a corresponding interrupt processing program based on the latch output of the interrupt vector signal latch circuit when the vector control signal is asserted.

本発明のプロセッサは、クロック同期であり、割り込みコントローラと、割り込み発生信号、割り込みベクタ信号等でインターフェースをとる。   The processor of the present invention is clock-synchronized and interfaces with an interrupt controller, an interrupt generation signal, an interrupt vector signal, and the like.

プロセッサの状態とは、例えば割り込み発生信号の受付タイミングやバスのウエイト状態等である。   The processor state includes, for example, an interrupt generation signal reception timing and a bus wait state.

ハードウエア割り込みが発生するとプロセッサはアサートされた割り込み発生信号と割り込みベクタ信号を受け取るが、プロセッサは割り込み受付可能なサイクル(割り込みベクタを生成可能なステート)になるまで割り込み処理を行うことができない。したがってプロセッサが割り込み受付可能なサイクルになるタイミングと割り込みベクタを受け取るタイミングが異なることになる。   When a hardware interrupt occurs, the processor receives an asserted interrupt generation signal and an interrupt vector signal, but the processor cannot perform interrupt processing until a cycle in which an interrupt can be accepted (a state in which an interrupt vector can be generated) is reached. Therefore, the timing at which the processor becomes a cycle in which interrupts can be received differs from the timing at which interrupt vectors are received.

本発明によれば割り込みベクタ信号ラッチ回路は、割り込み発生信号がアサートである場合に、割り込みベクタ信号をラッチする。割り込みベクタの受信期間は割り込み発生信号のアサート期間は同期しているので、割り込みベクタ信号ラッチ回路は有効な値をラッチすることができる。   According to the present invention, the interrupt vector signal latch circuit latches the interrupt vector signal when the interrupt generation signal is asserted. Since the interrupt vector reception period is synchronized with the interrupt generation signal assert period, the interrupt vector signal latch circuit can latch a valid value.

従ってプロセッサが割り込み受付可能なサイクルになるタイミングと有効な割り込みベクタを受け取るタイミングが異なっても、ベクタアドレス生成回路は有効な割り込みベクタ信号(不定な値ではない)を受け取ることができる。   Therefore, the vector address generation circuit can receive a valid interrupt vector signal (not an indefinite value) even if the timing at which the processor enters a cycle in which an interrupt can be accepted differs from the timing at which a valid interrupt vector is received.

本発明によればプロセッサが割り込み処理が可能になるタイミングを意識することなくシステム設計が可能なので、割り込みに関連したシステム全体の設計やソフトウエアによる割り込みの制御が容易になる。   According to the present invention, the system can be designed without being aware of the timing at which the processor can perform interrupt processing. Therefore, the design of the entire system related to interrupts and the control of interrupts by software are facilitated.

(2)本発明のプロセッサは、
前記割り込みステート制御回路は、
プロセッサの状態に基づいて、割り込みを受け付ける第1のステート、割り込みベクタを生成する第2のステートの少なくとも2つの割り込みステートを遷移させ、第2のステートでベクタ制御信号をアサートする制御を行うことを特徴とする。
(2) The processor of the present invention
The interrupt state control circuit includes:
Based on the state of the processor, at least two interrupt states of a first state for accepting an interrupt and a second state for generating an interrupt vector are transitioned, and control for asserting a vector control signal in the second state is performed. Features.

ステートの遷移は、割り込み発生信号の受付やカウンタのカウント値によるが、例えばカウンタのカウント値の更新タイミングはパイプラインによる前後の命令の関係やバスのウエイト状態等に基づいて変化する。   The transition of the state depends on reception of an interrupt generation signal and the count value of the counter. For example, the update timing of the count value of the counter changes based on the relationship between the instructions before and after the pipeline, the wait state of the bus, and the like.

(3)本発明のプロセッサは、
前記ベクタ信号ラッチ回路は、
割り込み発生信号がアサートでない場合には、ラッチされている値が変更されないように制御を行う構成であることを特徴とする。
(3) The processor of the present invention
The vector signal latch circuit is
When the interrupt generation signal is not asserted, the control is performed so that the latched value is not changed.

(4)本発明のプロセッサは、
前記ベクタ信号ラッチ回路は、
割り込みベクタの各ビット毎の信号をD入力とし、出力信号がベクタアドレス生成回路へ入力され、割り込み発生信号がアサート時にイネーブルとなるDフィリップフロップで構成されていることを特徴とする。
(4) The processor of the present invention
The vector signal latch circuit is
A signal for each bit of the interrupt vector is a D input, an output signal is input to the vector address generation circuit, and the interrupt generation signal is configured by a D Philip flop that is enabled when asserted.

(5)本発明は、
上記のいずれかに記載のプロセッサを含むことを特徴とする集積回路装置である。
(5) The present invention
An integrated circuit device comprising the processor according to any one of the above.

(6)本発明は、
上記のいずれかに記載のプロセッサと、
入力情報を受け付ける手段と、
入力情報に基づき前記情報処理装置により処理された結果を出力するため手段と、
を含むことを特徴とする電子機器である。
(6) The present invention
A processor according to any of the above,
Means for receiving input information;
Means for outputting a result processed by the information processing device based on input information;
It is an electronic device characterized by including.

以下、本発明の好適な実施形態について図面を用いて詳細に説明する。   DESCRIPTION OF EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings.

1.CPU
以下、本発明の好適な実施の形態について図面を用いて詳細に説明する。なお、以下に説明する実施の形態は、特許請求の範囲に記載された本発明の内容を不当に限定するものではない。また以下で説明される構成の全てが本発明の必須構成要件であるとは限らない。
1. CPU
DESCRIPTION OF EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. The embodiments described below do not unduly limit the contents of the present invention described in the claims. Also, not all of the configurations described below are essential constituent requirements of the present invention.

図1は、本実施の形態のCPU(プロセッサの一例)の構成について説明するための機能ブロック図である。   FIG. 1 is a functional block diagram for explaining a configuration of a CPU (an example of a processor) according to the present embodiment.

本実施の形態のCPU(プロセッサの一例)10は、ハードウエア割り込みの発生を通知する割り込み発生信号70、割り込みベクタ信号80を受け取り、該当する割り込み処理プログラムへのアドレスに分岐するプロセッサである。   A CPU (an example of a processor) 10 according to the present embodiment is a processor that receives an interrupt generation signal 70 and an interrupt vector signal 80 for notifying the occurrence of a hardware interrupt, and branches to an address to the corresponding interrupt processing program.

CPU10は、割り込みステート制御回路20を含む。割り込みステート制御回路20は、プロセッサの状態に基づいて、割り込みベクタを生成可能なステートであると判断した場合にベクタ制御信号26をアサートする。なおプロセッサ10の状態に基づいて、割り込みを受け付ける第1のステート、割り込みベクタを生成する第2のステートの少なくとも2つの割り込みステートを遷移させ、第2のステートでベクタ制御信号26をアサートするようにしてもよい。   The CPU 10 includes an interrupt state control circuit 20. The interrupt state control circuit 20 asserts the vector control signal 26 when it is determined that the interrupt vector can be generated based on the state of the processor. Based on the state of the processor 10, at least two interrupt states, the first state for accepting an interrupt and the second state for generating an interrupt vector, are transitioned, and the vector control signal 26 is asserted in the second state. May be.

ここで、割り込みステート制御回路20は、プロセッサの状態に応じてステートを遷移させるステートマシンとして機能する。ステートの遷移は、割り込み発生信号の受付やカウンタのカウント値によるが、例えばカウンタのカウント値の更新タイミングはパイプラインによる前後の命令の関係やバスのウエイト状態等に基づいて変化する。   Here, the interrupt state control circuit 20 functions as a state machine that changes the state according to the state of the processor. The transition of the state depends on reception of an interrupt generation signal and the count value of the counter. For example, the update timing of the count value of the counter changes based on the relationship between the instructions before and after the pipeline, the wait state of the bus, and the like.

CPU10は割り込みベクタ信号ラッチ回路30を含む。割り込みベクタ信号ラッチ回路30は、割り込み発生信号70がアサートである場合に、割り込みベクタ信号[7:0]をラッチする。ラッチ出力はベクタアドレス生成回路40の入力となる。   The CPU 10 includes an interrupt vector signal latch circuit 30. The interrupt vector signal latch circuit 30 latches the interrupt vector signal [7: 0] when the interrupt generation signal 70 is asserted. The latch output is input to the vector address generation circuit 40.

CPU10は、ベクタアドレス生成回路40を含む。ベクタアドレス生成回路40は、ベクタ制御信号26がアサートである場合に、割り込みベクタ信号ラッチ回路30のラッチ出力82に基づき該当する割り込み処理プログラムへ分岐するためのベクタアドレスを生成する。   The CPU 10 includes a vector address generation circuit 40. When the vector control signal 26 is asserted, the vector address generation circuit 40 generates a vector address for branching to the corresponding interrupt processing program based on the latch output 82 of the interrupt vector signal latch circuit 30.

図2は、本実施の形態のCPUの割り込み発生時のタイミングチャートである。   FIG. 2 is a timing chart when the interrupt of the CPU according to the present embodiment occurs.

90はCPU10に入力されるクロックである。   A clock 90 is input to the CPU 10.

70はCPU10が受け取る割り込み発生信号である。   Reference numeral 70 denotes an interrupt generation signal received by the CPU 10.

80はCPU10が受け取る割り込みベクタ信号である。本実施の形態では割り込みベクタは8ビットなので、CPUは割り込みベクタの各ビットに対応した信号をパラレルに受信する。   Reference numeral 80 denotes an interrupt vector signal received by the CPU 10. In this embodiment, since the interrupt vector is 8 bits, the CPU receives signals corresponding to the respective bits of the interrupt vector in parallel.

82は割り込みベクタラッチ回路のラッチ出力であり、ベクタアドレス生成回路の入力となる。   A latch output 82 of the interrupt vector latch circuit is input to the vector address generation circuit.

50はステートマシンにおけるステートであり、52は割り込みを受け付ける第1のステート(割り込み受け付けステート)、54は割り込みベクタを生成する第2のステート(ベクタ生成ステート)である。   50 is a state in the state machine, 52 is a first state for accepting an interrupt (interrupt acceptance state), and 54 is a second state (vector generation state) for generating an interrupt vector.

26はベクタ制御信号であり、ステートマシンのステートが第2のステート(ベクタ生成ステート)の時にアサートされる。   A vector control signal 26 is asserted when the state of the state machine is the second state (vector generation state).

CPUは、割り込み発生信号70がHレベルになると(アサートされる)同時に、割り込みベクタ信号を受信する(82参照)。その後、割り込み発生信号70がLレベルになると、割り込みベクタ信号も不定の値となる(84参照)。   When the interrupt generation signal 70 becomes H level (asserted), the CPU simultaneously receives the interrupt vector signal (see 82). Thereafter, when the interrupt generation signal 70 becomes L level, the interrupt vector signal also becomes an indefinite value (see 84).

また割り込み発生信号340がHレベルになると(アサートされる)、その時々のCPUの状態(例えばバスのウエイト状態や命令の実行状態)に応じて、ステート50が割り込み受けつけステート52に遷移する。その後CPUが割り込み処理が可能になったときにベクタ生成ステート54に遷移する。   When the interrupt generation signal 340 becomes H level (asserted), the state 50 transits to the interrupt acceptance state 52 depending on the state of the CPU at that time (for example, the bus wait state or the instruction execution state). Thereafter, the CPU transits to the vector generation state 54 when interrupt processing becomes possible.

本実施の形態によれば割り込みベクタ信号ラッチ回路は、割り込み発生信号70がアサートされたら所定のタイミングで割り込みベクタ信号をラッチする(51参照)。割り込み発生信号70がアサートされたている間は、プロセッサは有効な割り込みベクタ信号(不定な値ではない)80を受け取っているのでラッチされた値は不定な値ではない。   According to the present embodiment, the interrupt vector signal latch circuit latches the interrupt vector signal at a predetermined timing when the interrupt generation signal 70 is asserted (see 51). While the interrupt generation signal 70 is asserted, the processor receives a valid interrupt vector signal 80 (not an indefinite value) 80, so the latched value is not an indeterminate value.

ベクタ信号ラッチ回路は、割り込み発生信号がアサートでない場合には、ラッチされている値が変更されないため、次に割り込み受け付け信号がアサートされるまで、割り込みベクタラッチ回路はラッチした値を保持し続ける(83参照)。したがってベクタ生成ステート54と、割り込みベクタを受け付けるクロックサイクル82とが異なっても、ベクタアドレス生成回路は正しい割り込みベクタ信号(不定な値ではない)を受け取ることができる。   When the interrupt generation signal is not asserted, the vector signal latch circuit does not change the latched value. Therefore, the interrupt vector latch circuit continues to hold the latched value until the next interrupt acceptance signal is asserted (83). reference). Therefore, even if the vector generation state 54 is different from the clock cycle 82 for receiving an interrupt vector, the vector address generation circuit can receive a correct interrupt vector signal (not an indefinite value).

本実施の形態によればプロセッサが割り込み処理が可能になるタイミングを意識することなくシステム設計が可能なので、割り込みに関連したシステム全体の設計やソフトウエアによる割り込みの制御が容易になる。   According to the present embodiment, the system can be designed without being aware of the timing at which the processor can perform interrupt processing. Therefore, the design of the entire system related to interrupts and the control of interrupts by software are facilitated.

図3は割り込みベクタラッチ回路の構成の一例である。   FIG. 3 shows an example of the configuration of the interrupt vector latch circuit.

割り込みベクタ信号ラッチ回路30は、割り込みベクタの各ビット毎の信号80−0〜80−7をD入力とする複数のDフィリップフロップ30−0〜30−7で構成することができる。各Dフィリップフロップ30−0〜30−7の出力信号80−0〜80−7はラッチ出力としてベクタアドレス生成回路へ入力される。   The interrupt vector signal latch circuit 30 can be composed of a plurality of D Philip flops 30-0 to 30-7 that receive signals 80-0 to 80-7 for each bit of the interrupt vector as D inputs. Output signals 80-0 to 80-7 of the D Philip flops 30-0 to 30-7 are input to the vector address generation circuit as latch outputs.

また割り込み発生信号70が各Dフィリップフロップ30−0〜30−7のイネーブル入力となり、各Dフィリップフロップ30−0〜30−7は、割り込み発生信号70がアサート時にイネーブルとなる。   The interrupt generation signal 70 becomes an enable input for each D Philip flop 30-0 to 30-7, and each D Philip flop 30-0 to 30-7 is enabled when the interrupt generation signal 70 is asserted.

従って各Dフィリップフロップ30−0〜30−7は、割り込み発生信号70がアサート時にD入力となる割り込みベクタの各ビット毎の信号80−0〜80−7をラッチする。そして以降、割り込み発生信号70が次のアサートになるまで、保持し続ける。   Accordingly, the D Philip flops 30-0 to 30-7 latch the signals 80-0 to 80-7 for each bit of the interrupt vector which becomes the D input when the interrupt generation signal 70 is asserted. Subsequently, the interrupt generation signal 70 is held until the next assertion.

図4は、ステートマシン(割り込みステート制御回路)の具体的な構成例について説明するための図である。   FIG. 4 is a diagram for explaining a specific configuration example of a state machine (interrupt state control circuit).

ステートマシン(割り込みステート制御回路)20は、命令コード選択回路110、カウンタ120、デコーダ130の3種類の回路で構成することができる。   The state machine (interrupt state control circuit) 20 can be composed of three types of circuits: an instruction code selection circuit 110, a counter 120, and a decoder 130.

命令コード選択回路110は命令バスからの命令コードや割り込み発生信号70を受け取り、デコードする命令を選択して、選択された命令コード112をデコーダ130に送信する。   The instruction code selection circuit 110 receives an instruction code and an interrupt generation signal 70 from the instruction bus, selects an instruction to be decoded, and transmits the selected instruction code 112 to the decoder 130.

カウンタ回路120は、デコーダから出力された命令終了信号134やバスウエイト等の各種ウエイト信号140を受け取り、カウント値を更新する回路である。通常カウンタは1クロックで1カウント増加するが、本実施の形態では各種ウエイトがかかると1カウントが数クロックに伸びる。   The counter circuit 120 is a circuit that receives the instruction end signal 134 and various wait signals 140 such as a bus wait output from the decoder and updates the count value. Normally, the counter increases by 1 count per clock, but in this embodiment, 1 count increases to several clocks when various waits are applied.

デコーダは命令コード選択回路110で選択された命令コード112やカウンタ回路120が出力するカウント値122を受け取り、命令コード112のデコードを行い、各種制御信号132やベクタ制御信号26命令終了信号134を生成する。   The decoder receives the instruction code 112 selected by the instruction code selection circuit 110 and the count value 122 output from the counter circuit 120, decodes the instruction code 112, and generates various control signals 132 and vector control signals 26 instruction end signals 134. To do.

命令コード選択回路110、カウンタ120、デコーダ130の3種類の回路で構成されたシーケンサは、1サイクル通常命令実行時には、命令バス150からのデータを命令コード選択回路110で選択し、デコーダ130に送る。デコーダ130は各種制御信号132を生成し、命令終了信号134をカウンタ回路120に送りカウンタをリセットする。そして命令コード選択回路110は次に実行する命令を選択する。   A sequencer composed of three types of circuits, that is, an instruction code selection circuit 110, a counter 120, and a decoder 130, selects data from the instruction bus 150 by the instruction code selection circuit 110 and sends it to the decoder 130 when executing a one-cycle normal instruction. . The decoder 130 generates various control signals 132 and sends an instruction end signal 134 to the counter circuit 120 to reset the counter. Then, the instruction code selection circuit 110 selects an instruction to be executed next.

また2サイクル以上の命令実行時には、命令バス150からのデータを命令コード選択回路110で選択し、デコーダ130に送る。デコーダ130は各種制御信号132を生成、カウンタ回路120はカウンタをカウントアップする。2サイクル以降の動作をおこない、命令終了信号132をカウンタ回路120に送りカウンタをリセットする。そして命令コード選択回路110は次に実行する命令を選択する。   When executing an instruction of two cycles or more, the data from the instruction bus 150 is selected by the instruction code selection circuit 110 and sent to the decoder 130. The decoder 130 generates various control signals 132, and the counter circuit 120 counts up the counter. The operation after two cycles is performed, and an instruction end signal 132 is sent to the counter circuit 120 to reset the counter. Then, the instruction code selection circuit 110 selects an instruction to be executed next.

図5は、本実施の形態のステートマシンの割り込み発生時のタイミングチャートである。   FIG. 5 is a timing chart when an interrupt occurs in the state machine of this embodiment.

90はCPU10に入力されるクロックである。   A clock 90 is input to the CPU 10.

70はCPU10が受け取る割り込み発生信号である。   Reference numeral 70 denotes an interrupt generation signal received by the CPU 10.

80はCPU10が受け取る割り込みベクタ信号である。本実施の形態では割り込みベクタは8ビットなので、CPUは割り込みベクタの各ビットに対応した信号をパラレルに受信する。   Reference numeral 80 denotes an interrupt vector signal received by the CPU 10. In this embodiment, since the interrupt vector is 8 bits, the CPU receives signals corresponding to the respective bits of the interrupt vector in parallel.

82は割り込みベクタラッチ回路のラッチ出力であり、ベクタアドレス生成回路の入力となる。   A latch output 82 of the interrupt vector latch circuit is input to the vector address generation circuit.

112は命令コード選択回路が選択してデコーダに出力する命令コードである。   An instruction code 112 is selected by the instruction code selection circuit and output to the decoder.

122はカウント回路がデコーダに出力するカウント値である。   Reference numeral 122 denotes a count value output from the count circuit to the decoder.

26はベクタ制御信号であり、ステートマシンのステートが第2のステート(ベクタ生成ステート)の時にアサートされる。   A vector control signal 26 is asserted when the state of the state machine is the second state (vector generation state).

140は命令バスのウエイト信号等の各種ウエイト信号であり、Hレベルがウエイト状態であることを表している。   Reference numeral 140 denotes various wait signals such as an instruction bus wait signal, which indicates that the H level is in a wait state.

通常カウンタ回路は1クロックで1カウント増加するが、本実施の形態では各種waitがかかると1カウントが数クロックに伸びる。すなわちカウント値は各種ウエイト信号140の立ち上がりに同期して変化するように構成されている。従ってウエイト状態が長くなると、カウンタの更新周期が長くなる。   Normally, the counter circuit increases by 1 count per clock, but in this embodiment, when various waits are applied, the count increases to several clocks. That is, the count value is configured to change in synchronization with the rising of various wait signals 140. Therefore, the longer the wait state, the longer the counter update cycle.

割り込み発生信号70を受け取った場合には、デコーダは以下の動作を行う。割り込みカウント0(210参照)で、割り込み受付信号をアサートする。割り込みカウント1で(212参照)、ベクタ制御信号26をアサートする(220参照)。割り込みカウント1の間に割り込みベクタ生成回路はラッチ出力に基づきベクタアドレスを生成する。そして割り込みカウント2で割り込み処理ルーチンに分岐、命令終了信号134をアサートする。   When the interrupt generation signal 70 is received, the decoder performs the following operation. When the interrupt count is 0 (see 210), the interrupt acceptance signal is asserted. When the interrupt count is 1 (see 212), the vector control signal 26 is asserted (see 220). During the interrupt count 1, the interrupt vector generation circuit generates a vector address based on the latch output. Then, branching to an interrupt processing routine with an interrupt count of 2, and an instruction end signal 134 is asserted.

2.マイクロコンピュータ
図6は、本実施の形態のマイクロコンピュータのハードウエアブロック図の一例である。
2. Microcomputer FIG. 6 is an example of a hardware block diagram of the microcomputer of this embodiment.

本マイクロコンピュータ700は、CPU510、キャッシュメモリ520、LCDコントローラ530、リセット回路540、プログラマブルタイマ550、リアルタイムクロック(RTC)560、DRAMコントローラ兼バスI/F570、割り込みコントローラ580、シリアルインターフェース590、バスコントローラ600、A/D変換器610、D/A変換器620、入力ポート630、出力ポート640、I/Oポート650、クロック発生装置560、プリスケーラ570及びそれらを接続する汎用バス680、専用バス730等、各種ピン690等を含む。   The microcomputer 700 includes a CPU 510, a cache memory 520, an LCD controller 530, a reset circuit 540, a programmable timer 550, a real time clock (RTC) 560, a DRAM controller / bus I / F 570, an interrupt controller 580, a serial interface 590, and a bus controller 600. A / D converter 610, D / A converter 620, input port 630, output port 640, I / O port 650, clock generator 560, prescaler 570 and general-purpose bus 680 connecting them, dedicated bus 730, etc. Various pins 690 and the like are included.

CPU510は、例えば図1〜図5で説明した構成を有する。   The CPU 510 has the configuration described with reference to FIGS.

3.電子機器
図7に、本実施の形態の電子機器のブロック図の一例を示す。本電子機器800は、マイクロコンピュータ(またはASIC)810、入力部820、メモリ830、電源生成部840、LCD850、音出力部860を含む。
3. Electronic Device FIG. 7 shows an example of a block diagram of the electronic device of this embodiment. The electronic apparatus 800 includes a microcomputer (or ASIC) 810, an input unit 820, a memory 830, a power generation unit 840, an LCD 850, and a sound output unit 860.

ここで、入力部820は、種々のデータを入力するためのものである。マイクロコンピュータ810は、この入力部820により入力されたデータに基づいて種々の処理を行うことになる。メモリ830は、マイクロコンピュータ810などの作業領域となるものである。電源生成部840は、電子機器800で使用される各種電源を生成するためのものである。LCD850は、電子機器が表示する各種の画像(文字、アイコン、グラフィック等)を出力するためのものである。   Here, the input unit 820 is for inputting various data. The microcomputer 810 performs various processes based on the data input by the input unit 820. The memory 830 serves as a work area for the microcomputer 810 and the like. The power generation unit 840 is for generating various power sources used in the electronic device 800. The LCD 850 is for outputting various images (characters, icons, graphics, etc.) displayed by the electronic device.

音出力部860は、電子機器800が出力する各種の音(音声、ゲーム音等)を出力するためのものであり、その機能は、スピーカなどのハードウェアにより実現できる。   The sound output unit 860 is for outputting various sounds (sound, game sound, etc.) output from the electronic device 800, and the function can be realized by hardware such as a speaker.

図8(A)に、電子機器の1つである携帯電話950の外観図の例を示す。この携帯電話950は、入力部として機能するダイヤルボタン952や、電話番号や名前やアイコンなどを表示するLCD954や、音出力部として機能し音声を出力するスピーカ956を備える。   FIG. 8A illustrates an example of an external view of a mobile phone 950 which is one of electronic devices. The cellular phone 950 includes a dial button 952 that functions as an input unit, an LCD 954 that displays a telephone number, a name, an icon, and the like, and a speaker 956 that functions as a sound output unit and outputs sound.

図8(B)に、電子機器の1つである携帯型ゲーム装置960の外観図の例を示す。この携帯型ゲーム装置960は、入力部として機能する操作ボタン962、十字キー964や、ゲーム画像を表示するLCD966や、音出力部として機能しゲーム音を出力するスピーカ968を備える。   FIG. 8B illustrates an example of an external view of a portable game device 960 that is one of electronic devices. The portable game device 960 includes an operation button 962 that functions as an input unit, a cross key 964, an LCD 966 that displays a game image, and a speaker 968 that functions as a sound output unit and outputs game sound.

図8(C)に、電子機器の1つであるパーソナルコンピュータ970の外観図の例を示す。このパーソナルコンピュータ970は、入力部として機能するキーボード972や、文字、数字、グラフィックなどを表示するLCD974、音出力部976を備える。   FIG. 8C illustrates an example of an external view of a personal computer 970 that is one of electronic devices. The personal computer 970 includes a keyboard 972 that functions as an input unit, an LCD 974 that displays characters, numbers, graphics, and the like, and a sound output unit 976.

なお、本実施形態を利用できる電子機器としては、図8(A)、(B)、(C)に示すもの以外にも、携帯型情報端末、ページャー、電子卓上計算機、タッチパネルを備えた装置、プロジェクタ、ワードプロセッサ、ビューファインダ型又はモニタ直視型のビデオテープレコーダ、カーナビゲーション装置等のLCDを使用する種々の電子機器を考えることができる。   As electronic devices that can use this embodiment, in addition to those shown in FIGS. 8A, 8B, and 8C, a portable information terminal, a pager, an electronic desk calculator, a device including a touch panel, Various electronic devices using an LCD such as a projector, a word processor, a viewfinder type or a monitor direct view type video tape recorder, and a car navigation device can be considered.

なお、本発明は本実施形態に限定されず、本発明の要旨の範囲内で種々の変形実施が可能である。   In addition, this invention is not limited to this embodiment, A various deformation | transformation implementation is possible within the range of the summary of this invention.

本実施の形態のCPU(プロセッサの一例)の構成について説明するための機能ブロック図。FIG. 3 is a functional block diagram for explaining a configuration of a CPU (an example of a processor) according to the present embodiment. 本実施の形態のCPUの割り込み発生時のタイミングチャートである。6 is a timing chart when an interrupt of the CPU according to the present embodiment occurs. 割り込みベクタラッチ回路の構成の一例である。It is an example of a structure of an interrupt vector latch circuit. ステートマシン(割り込みステート制御回路)の具体的な構成例について説明するための図である。It is a figure for demonstrating the specific structural example of a state machine (interrupt state control circuit). 本実施の形態のステートマシンの割り込み発生時のタイミングチャートである。It is a timing chart at the time of interruption occurrence of the state machine of the present embodiment. 本実施の形態のマイクロコンピュータのハードウエアブロック図。The hardware block diagram of the microcomputer of this Embodiment. マイクロコンピュータを含む電子機器のブロック図の一例を示す。An example of a block diagram of an electronic device including a microcomputer is shown. 図8(A)(B)(C)は、種々の電子機器の外観図の例である。8A, 8B, and 8C are examples of external views of various electronic devices. 図9(A)(B)は従来技術の問題点について説明するための図である。FIGS. 9A and 9B are diagrams for explaining the problems of the prior art.

符号の説明Explanation of symbols

10 CPU、20 割り込みステート制御回路(ステートマシン)、26 ベクタ制御信号、30 割り込みベクタラッチ回路、40 ベクタアドレス生成回路、50 ステート、70 割り込み発生信号、80 割り込みベクタ信号、82 ラッチ出力、90 クロック、110 命令コード選択回路、112 命令コード、120 カウンタ回路、122 カウント値、130 デコーダ、140 各種ウエイト信号、510 CPU、530 LCDコントローラ、540 リセット回路、550 プログラマブルタイマ、560 リアルタイムクロック(RTC)、570 DRAMコントローラ兼バスI/F、580 割り込みコントローラ、590 シリアルインターフェース、600 バスコントローラ、610 A/D変換器、620 D/A変換器、630 入力ポート、640 出力ポート、650 I/Oポート、660 クロック発生装置(PLL)、670 プリスケーラ、680 汎用バス、690 各種ピン、700 マイクロコンピュータ、710 ROM、720 RAM、730 MMU、740 クロック供給制御回路、800 電子機器、850 LCD 10 CPU, 20 interrupt state control circuit (state machine), 26 vector control signal, 30 interrupt vector latch circuit, 40 vector address generation circuit, 50 state, 70 interrupt generation signal, 80 interrupt vector signal, 82 latch output, 90 clock, 110 Instruction code selection circuit, 112 instruction code, 120 counter circuit, 122 count value, 130 decoder, 140 various wait signals, 510 CPU, 530 LCD controller, 540 reset circuit, 550 programmable timer, 560 real time clock (RTC), 570 DRAM controller Also bus I / F, 580 interrupt controller, 590 serial interface, 600 bus controller, 610 A / D converter, 620 D / Converter, 630 input port, 640 output port, 650 I / O port, 660 clock generator (PLL), 670 prescaler, 680 general purpose bus, 690 various pins, 700 microcomputer, 710 ROM, 720 RAM, 730 MMU, 740 Clock supply control circuit, 800 electronic equipment, 850 LCD

Claims (6)

ハードウエア割り込みの発生を通知する割り込み発生信号、割り込みベクタ信号を受け取り、該当する割り込み処理プログラムへのアドレスに分岐するプロセッサであって、
プロセッサの状態に基づいて、割り込みベクタを生成可能なステートであると判断した場合にベクタ制御信号をアサートする割り込みステート制御回路と、
割り込み発生信号がアサートである場合に、割り込みベクタ信号をラッチする割り込みベクタ信号ラッチ回路と、
ベクタ制御信号がアサートである場合に、割り込みベクタ信号ラッチ回路のラッチ出力に基づき該当する割り込み処理プログラムへ分岐するためのベクタアドレスを生成するベクタアドレス生成回路を含むことを特徴とするプロセッサ。
A processor that receives an interrupt generation signal and an interrupt vector signal for notifying the occurrence of a hardware interrupt, and branches to an address to the corresponding interrupt processing program,
An interrupt state control circuit that asserts a vector control signal when it is determined that the interrupt vector can be generated based on the state of the processor;
An interrupt vector signal latch circuit that latches an interrupt vector signal when the interrupt generation signal is asserted;
A processor comprising a vector address generation circuit for generating a vector address for branching to a corresponding interrupt processing program based on a latch output of an interrupt vector signal latch circuit when the vector control signal is asserted.
請求項1において、
前記割り込みステート制御回路は、
プロセッサの状態に基づいて、割り込みを受け付ける第1のステート、割り込みベクタを生成する第2のステートの少なくとも2つの割り込みステートを遷移させ、第2のステートでベクタ制御信号をアサートする制御を行うことを特徴とするプロセッサ。
In claim 1,
The interrupt state control circuit includes:
Based on the state of the processor, at least two interrupt states of a first state for accepting an interrupt and a second state for generating an interrupt vector are transitioned, and control for asserting a vector control signal in the second state is performed. Feature processor.
請求項1乃至2のいずれかにおいて、
前記ベクタ信号ラッチ回路は、
割り込み発生信号がアサートでない場合には、ラッチされている値が変更されないように制御を行う構成であることを特徴とするプロセッサ。
In any one of Claims 1 thru | or 2.
The vector signal latch circuit is
A processor which is configured to perform control so that a latched value is not changed when an interrupt generation signal is not asserted.
請求項1乃至3のいずれかにおいて、
前記ベクタ信号ラッチ回路は、
割り込みベクタの各ビット毎の信号をD入力とし、出力信号がベクタアドレス生成回路へ入力され、割り込み発生信号がアサート時にイネーブルとなるDフィリップフロップで構成されていることを特徴とするプロセッサ。
In any one of Claims 1 thru | or 3,
The vector signal latch circuit is
A processor comprising: a D lip flop in which a signal for each bit of an interrupt vector is set as a D input, an output signal is input to a vector address generation circuit, and an interrupt generation signal is enabled when asserted.
請求項1乃至4のいずれかに記載のプロセッサを含むことを特徴とする集積回路装置。   An integrated circuit device comprising the processor according to claim 1. 請求項1乃至4のいずれかに記載のプロセッサと、
入力情報を受け付ける手段と、
入力情報に基づき前記情報処理装置により処理された結果を出力するため手段と、
を含むことを特徴とする電子機器。
A processor according to any one of claims 1 to 4;
Means for receiving input information;
Means for outputting a result processed by the information processing device based on input information;
An electronic device comprising:
JP2006144235A 2006-05-24 2006-05-24 Processor, integrated circuit device and electronic equipment Pending JP2007316840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006144235A JP2007316840A (en) 2006-05-24 2006-05-24 Processor, integrated circuit device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006144235A JP2007316840A (en) 2006-05-24 2006-05-24 Processor, integrated circuit device and electronic equipment

Publications (1)

Publication Number Publication Date
JP2007316840A true JP2007316840A (en) 2007-12-06

Family

ID=38850656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006144235A Pending JP2007316840A (en) 2006-05-24 2006-05-24 Processor, integrated circuit device and electronic equipment

Country Status (1)

Country Link
JP (1) JP2007316840A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5672744A (en) * 1979-11-19 1981-06-17 Nec Corp Interruption control circuit
JPS6266335A (en) * 1985-09-18 1987-03-25 Yaskawa Electric Mfg Co Ltd Interruption system
JPH0553829A (en) * 1991-08-29 1993-03-05 Nec Ic Microcomput Syst Ltd Microcomputer
JP2000148511A (en) * 1998-11-16 2000-05-30 Nec Corp Interruption processor for microcomputer and its interruption processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5672744A (en) * 1979-11-19 1981-06-17 Nec Corp Interruption control circuit
JPS6266335A (en) * 1985-09-18 1987-03-25 Yaskawa Electric Mfg Co Ltd Interruption system
JPH0553829A (en) * 1991-08-29 1993-03-05 Nec Ic Microcomput Syst Ltd Microcomputer
JP2000148511A (en) * 1998-11-16 2000-05-30 Nec Corp Interruption processor for microcomputer and its interruption processing method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JPN6010059597; 寺田浩詔: Z-80マイクロコンピュータ , 19790630, 29頁, 丸善株式会社 *
JPN6010060709; '「8259,8259-5 プログラマブル インタラプト コントローラ」' マイクロコンピュータ ユーザーズ・マニュアル MCS-48 , 19830420, インテルジャパン株式会社 *
JPN6011059200; Robin Jigour: '「8259A プログラマブル・インタラプト・コントローラ」' iAPX86ファミリ・ユーザーズマニュアル 第3版, 19820520, 402頁〜425頁, インテルジャパン株式会社 *

Similar Documents

Publication Publication Date Title
JP2006277332A (en) Integrated circuit device, microcomputer, and electronic device
JP2007310714A (en) Integrated circuit device, debugging tool, debugging system, microcomputer, and electronic apparatus
JP2006252006A (en) Debug system, semiconductor integrated circuit device, microcomputer and electronic equipment
JP2006064395A (en) Critical path test method, integrated circuit device, critical path test system, and method for manufacturing integrated circuit device
JP2007316840A (en) Processor, integrated circuit device and electronic equipment
JP4235831B2 (en) Target system, debug system, integrated circuit device, microcomputer and electronic device
JP2007193572A (en) Cpu, integrated circuit device, microcomputer, and electronic equipment
US7394487B2 (en) Image data reducing device, micro computer, and electronic apparatus
JP3844072B2 (en) Semiconductor integrated circuit device, microcomputer and electronic device
CN112187233A (en) Reset device, method, clock system and electronic equipment
US7363465B2 (en) Semiconductor device, microcomputer, and electronic equipment
TW201530415A (en) Virtual keyboard system and operating method thereof and computer program product
JP2008262399A (en) Microprocessor, microcomputer and electronic apparatus
JP2005165548A (en) Interruption controller, microcomputer and electronic equipment
JP2007199991A (en) Integrated circuit device, microcomputer, and electronic device
US7340587B2 (en) Information processing apparatus, microcomputer, and electronic computer
JP2009017147A (en) Signal input/output device
JP2006178725A (en) Integrated circuit device, communication controller, microcomputer and electronic equipment
JP2006079332A (en) Integrated circuit device, microcomputer and electronic equipment
JP2006209303A (en) Integrated circuit device, communication control device, microcomputer and electronic apparatus
JP2006277333A (en) Integrated circuit device, microcomputer, and electronic device
JP2004129130A (en) Communication control circuit, communication controller, microcomputer, and electronic apparatus
JP2015122012A (en) Information processing device
JP2006285761A (en) Integrated circuit, microcomputer and electronic equipment
JP2006148232A (en) Integrated circuit device, communication controller, microcomputer, and electronic apparatus

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080701

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090422

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101208

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110204

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120418

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20121114