JP4401039B2 - Semiconductor integrated circuit - Google Patents
Semiconductor integrated circuit Download PDFInfo
- Publication number
- JP4401039B2 JP4401039B2 JP2001178876A JP2001178876A JP4401039B2 JP 4401039 B2 JP4401039 B2 JP 4401039B2 JP 2001178876 A JP2001178876 A JP 2001178876A JP 2001178876 A JP2001178876 A JP 2001178876A JP 4401039 B2 JP4401039 B2 JP 4401039B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- jtag
- terminal
- internal circuits
- 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.)
- Expired - Fee Related
Links
- 239000004065 semiconductor Substances 0.000 title claims description 33
- 238000010586 diagram Methods 0.000 description 12
- 230000000694 effects Effects 0.000 description 10
- 230000000644 propagated effect Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
- Multi Processors (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Microcomputers (AREA)
- Semiconductor Integrated Circuits (AREA)
- Tests Of Electronic Circuits (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は複数のプロセッサやロジックブロック等の内部回路を内蔵した半導体集積回路に関し、特に、ソフトウェアのデバッグを支援するデバッグ回路に関するものである。
【0002】
【従来の技術】
半導体集積回路に内蔵されたプロセッサのデバッグには、通常、JTAGのテストアクセスポート(TCK、TMS、TDI、TDO、TRST)、およびその他の端子を用いて、半導体集積回路外部より、プロセッサの内部、または外部のJTAG回路(IEEE1149.1準拠のTAPコントローラ等を含む回路)等のデバッグ支援回路を制御することにより行う方法が用いられている。
【0003】
従来例1.
図5は従来のプロセッサを内蔵した半導体集積回路を示すブロック図であり、図において、1−1,1−2はプロセッサ、2−1,2−2はJTAG回路である。ここで、プロセッサ1−1および1−2は、それぞれ複数のJTAGスキャンレジスタ(図示せず)を含んだJTAG回路2−1および2−2を有し、これらはJTAGテストアクセスポート(TCK、TMS、TDI、TDO、TRST)を介して外部と信号のやり取りを行うことができる。
【0004】
このようなプロセッサを内蔵した半導体集積回路においては、TDI端子およびTDO端子に対してJTAG回路2−1,2−2は直列に接続し、JTAGスキャンレジスタが一連につながった構成で当該プロセッサ1−1,1−2のデバッグを行うのが一般的である。
【0005】
次に動作について説明する。
プロセッサ1−1,1−2の直列接続により連鎖したJTAGスキャンレジスタ数に対応し、所定のクロックがTCK端子より入力され、JTAG回路2−1,2−2がアクティブ状態となりTDI端子よりテストパターンが入力され、2つのプロセッサ1−1,1−2のデバッグが一度に行われる。その後、同様に所定のクロックがTCK端子より入力され、デバッグ結果がTDO端子より外部に出力される。
このように、複数のプロセッサのJTAGスキャンレジスタを直列に接続するのが従来のJTAGオンチップデバッグの通常方法である。
【0006】
従来例2.
あるいはまた、JTAGテスト端子(TAP)とプロセッサ間にセレクタを挿入することにより、選択されたプロセッサのみをデバッグする方法もある。図6はそのような従来のプロセッサを内蔵した半導体集積回路のブロック図を示すものであり、図において、1−1,1−2はプロセッサ、2−1,2−2はJTAG回路、60はセレクタ回路である。従来例1に対する相違点は、外部セレクト端子(SEL)を設けこのセレクト端子により制御されるセレクタ回路60が挿入されたことにある。
【0007】
次に動作について説明する。
外部セレクト端子より入力されるSEL信号にしたがい、セレクタ回路60がプロセッサ1−1,1−2の一方に含まれるJTAG回路の制御を行うが、例えば、一方のプロセッサ1−1のJTAG回路2−1を制御中は、他方のプロセッサ1−2側ではテストロジックリセット状態を保持するなどしてJTAG回路2−2を動作させないように制御する。これにより、デバッグ対象とするプロセッサ1−1,1−2のいずれか一方を選択し、デバッグを行うことを可能にしている。
【0008】
【発明が解決しようとする課題】
従来の半導体集積回路は以上のように構成されているので、従来例1では、図5に示すように、プロセッサ1−1,1−2のJTAGスキャンレジスタがJTAG回路2−1,2−2を介して直列に接続されているため、プロセッサ1−1,1−2の各々のTAPコントローラの命令レジスタへの命令設定や、データレジスタへのデータ設定に要するシフトクロック数が増加してしまい、このため、半導体集積回路外部のデバッガ制御装置による、プロセッサの制御や、プロセッサの内蔵メモリ、外部メモリへのデータダウンロードにかかる時間が増大するといった課題があった。
【0009】
また、複数のプロセッサの種類が異なる場合、外部デバッガプログラムにより複数のプロセッサのTAPコントローラを同時に制御するのが困難であるといった課題があった。
【0010】
さらに、図6のように、従来例2では、外部端子を設けることで半導体集積回路の製造コストが増大するといった課題があった。
【0011】
この発明は上記のような課題を解決するためになされたもので、複数のプロセッサやロジックブロック等の内部回路を搭載したLSIのJTAGオンチップデバッグを、外部端子を増加させることなく容易にし、さらに内部回路の制御、メモリへのデータダウンロード時間の短縮を実現できる半導体集積回路を得ることを目的とする。
【0012】
【課題を解決するための手段】
この発明に係る半導体集積回路は、各々がJTAG回路を備えた第1および第2の内部回路と接続し、JTAG回路とともにデバッグ支援回路を構成するセレクタ回路と、このセレクタ回路と接続し外部端子を構成するJTAGテストアクセスポートとを備え、デバッグ支援回路を用いた第1および第2の内部回路のオンチップデバッグ時に、デバッグ対象となる内部回路を選択するためのセレクタ回路のセレクト端子として、JTAGテストアクセスポートのTRST端子を用いるものである。
【0013】
この発明に係る半導体集積回路は、各々がJTAG回路を備えた第1および第2の内部回路と、これに接続し外部端子を構成するJTAGテストアクセスポートと、これのTRST端子と第1および第2の内部回路のいずれか一方との間に設けられるインバータ回路とを備え、JTAG回路およびインバータにより構成されるデバッグ支援回路により、第1および第2の内部回路のいずれか一方のデバッグを実行するものである。
【0014】
この発明に係る半導体集積回路は、各々がJTAG回路を備えた複数の内部回路と、これに接続し外部端子を構成するJTAGテストアクセスポートと、これのTRST端子およびTCK端子と接続しカウンタを含む機能ブロックを構成する第1の制御回路とを備え、JTAG回路および第1の制御回路により構成されるデバッグ支援回路は、TRST端子およびTCK端子を介してTRST信号およびTCK信号をそれぞれ入力し、機能ブロックにより複数の内部回路のうちいずれか1つのデバッグを実行するものである。
【0015】
この発明に係る半導体集積回路は、各々がJTAG回路を備えた複数の内部回路と、これに接続し外部端子を構成するJTAGテストアクセスポートと、このJTAGテストアクセスポートのTMS端子およびTCK端子と接続しカウンタを含む機能ブロックを構成する第2の制御回路とを備え、JTAG回路および第2の制御回路により構成されるデバッグ支援回路は、TMS端子およびTCK端子を介してTMS信号およびTCK信号をそれぞれ入力し、機能ブロックにより複数の内部回路のうちいずれか1つのデバッグを実行するものである。
【0016】
【発明の実施の形態】
以下、この発明の実施の一形態を説明する。
実施の形態1.
図1は、この発明の実施の形態1による半導体集積回路のブロック図であり、図において、1−1,1−2はプロセッサ(内部回路)であり、2−1,2−2はJTAG回路、10はJTAGテストアクセスポートTRST端子を制御端子として用いるセレクタ回路である。ここで、JTAG回路2−1,2−2とセレクタ回路10がデバッグ支援回路を構成する。
【0017】
次に動作について説明する。
図1においては、セレクタ回路10により、外部より印加されるTRST信号がHIGHレベルのとき、プロセッサ1−1側のTRST信号sig1はHIGHレベルに、プロセッサ1−2側のTRST信号sig2はLOWレベルになる。この時、プロセッサ1−2はテストロジックリセット状態である。
【0018】
また、外部より印加されるTRST信号がLOWレベルのときは、セレクタ回路10により、プロセッサ1−1側のTRST信号sig1はLOWレベル、プロセッサ1−2側のTRST信号sig2はHIGHレベルになる。この時、プロセッサ1−1はテストロジックリセット状態である。
【0019】
プロセッサ1−1のデバッグであるが、まず外部印加のTRST信号をLOWレベルにし、プロセッサ1−1のJTAG回路2−1をリセットする(テストロジックリセット)。次に、外部TRST信号をHIGHレベルにして、プロセッサ1−1のJTAG回路2−1をテストロジックリセット状態を解除し、JTAGテストアクセスポート(TCK,TMS,TDI,TDO)を用いてプロセッサ1−1のデバッグを行う。なお、プロセッサ1−1のデバッグ中は、プロセッサ1−2のJTAG回路2−2はテストロジックリセット状態で動作しない。
【0020】
一方、プロセッサ1−2のデバッグは、まず外部TRST信号をLOWレベルにし、プロセッサ1−2のJTAG回路2−2をリセットする(テストロジックリセット)。次に、外部TRST信号をHIGHレベルにして、プロセッサ1−2のJTAG回路2−2をテストロジックリセット状態を解除し、JTAGテストアクセスポート(TCK,TMS,TDI,TDO)を用いてプロセッサ1−1のデバッグを行う。なお、プロセッサ1−2のデバッグ中は、プロセッサ1−1のJTAG回路2−1はテストロジックリセット状態で動作しない。
【0021】
このように、JTAGテストアクセスポートのうちTRST端子をセレクト端子として用いることにより、外部端子を追加せずにデバッグ対象のプロセッサをプロセッサ1−1,1−2から選択することで、TAPコントローラの制御やデータの設定に要するクロック数を増大させずに、プロセッサの高速なデバッグが容易に可能となる。
【0022】
以上のように、この実施の形態1によれば、2つのプロセッサすなわちプロセッサ1−1,1−2を内蔵した半導体集積回路のデバッグ支援回路を用いたオンチップデバッグにおいて、外部端子を追加することなく、選択したいずれか一方のプロセッサをデバッグすることが可能となり、これにより、クロック数の増大を防止して高速なオンチップデバッグが実現できるという効果が得られる。
【0023】
実施の形態2.
図2は、この発明の実施の形態2による半導体集積回路のブロック図であり、図において、1−1,1−2はプロセッサ、2−1,2−2はJTAG回路、20はインバータである。ここで、JTAG回路2−1,2−2とインバータ20がデバッグ支援回路を構成する。
【0024】
次に動作について説明する。
図2においては、インバータ20により、外部より印加されるTRST信号がHIGHレベルのとき、プロセッサ1−1側のTRST信号sig1はHIGHレベルに、プロセッサ1−2側のTRST信号sig2はLOWレベルになる。この時、プロセッサ1−2はテストロジックリセット状態である。
【0025】
また、外部より印加されるTRST信号がLOWレベルのときは、インバータ20により、プロセッサ1−1側のTRST信号sig1はLOWレベル、プロセッサ1−2側のTRST信号sig2はHIGHレベルになる。この時、プロセッサ1−1はテストロジックリセット状態である。
【0026】
プロセッサ1−1のデバッグは、先ず外部TRST信号をLOWレベルにし、プロセッサ1−1のJTAG回路2−1をリセットする(テストロジックリセット)。次に、外部TRST信号をHIGHレベルにして、プロセッサ1−1のJTAG回路2−1をテストロジックリセット状態を解除し、JTAGテストアクセスポート(TCK,TMS,TDI,TDO)を用いてプロセッサ1−1のデバッグを行う。なお、プロセッサ1−1のデバッグ中は、プロセッサ1−2のJTAG回路2−2はテストロジックリセット状態で動作しない。
【0027】
一方、プロセッサ1−2のデバッグは、まず外部TRST信号(インバータ20の出力信号)をLOWレベルにし、プロセッサ1−2のJTAG回路2−2をリセットする(テストロジックリセット)。次に、外部TRST信号(インバータ20の出力信号)をHIGHレベルにして、プロセッサ1−2のJTAG回路2−2をテストロジックリセット状態を解除して、JTAGテストアクセスポート(TCK,TMS,TDI,TDO)を用いてプロセッサ1−2のデバッグを行う。なお、プロセッサ1−2のデバッグ中は、プロセッサ1−1のJTAG回路2−1はテストロジックリセット状態で動作しない。
【0028】
以上のように、この実施の形態2によれば、JTAGテストアクセスポートのTRST端子とプロセッサ1−1,1−2の間にインバータ20を挿入することにより、上記実施の形態1と同様に、外部端子の追加を伴うことなく、クロック数の増大を防止して高速なオンチップデバッグが実現できるという効果が得られる。
【0029】
実施の形態3.
図3は、この発明の実施の形態3による半導体集積回路のブロック図であり、図において、1−1〜1−Nはそれぞれプロセッサ(Nは自然数)、2−1〜2−NはJTAG回路、30は第1の制御回路、300はカウンタ、301はリセット付きデコーダ、302および31−1〜31−N(Nは自然数)はそれぞれANDゲート、320はORゲートである。この実施の形態3の半導体集積回路は、プロセッサ1−1〜プロセッサ1−Nと、JTAGテストアクセスポートと、JTAGテストアクセスポートとプロセッサ1−1〜1−N間に挿入され、TRST信号とTCK信号を入力とする第1の制御回路30から構成される。さらに、第1の制御回路30は、カウンタ300、デコーダ301、ANDゲート302および31−1〜31−N、ORゲート320で構成される。
【0030】
次に動作について説明する。
図3において、カウンタ300は、外部TRST信号がLOWレベルの間、TCK(クロック)信号のサイクル数をカウントする。カウンタ300の出力を入力したデコーダ301は、TRST信号がHIGHレベルに遷移すると、カウンタ300の出力に相当するビット番号の信号にのみHIGHレベルを出力し、その他の信号には、LOWレベルを出力する。この時、HIGHレベルのTRST信号を入力したプロセッサ1−n(1≦n≦N、Nは自然数)のみJTAGテストロジックリセット状態が解除される。一方、その他のプロセッサは、テストロジックリセット状態を保持する。
【0031】
そして、プロセッサ1−nをデバッグする場合、まず外部TRST信号をLOWレベルにする。この時、デコーダ301の出力信号(sig1〜sigN)は全てLOWレベルであり、全てのプロセッサ1−1〜1−Nはテストロジックリセット状態である。また、TRST信号がLOWレベルである間、TCK信号をnサイクル印加する。カウンタ300は、印加されたTCK信号のサイクル数をカウントしデコーダ301へnを出力する。
【0032】
次に外部TRST信号を、HIGHレベルにする。デコーダ301はTRST信号がHIGHレベルになると、nビット目の信号signにのみHIGHレベルを、その他の信号にはLOWレベルを出力する。
【0033】
その結果、プロセッサ1−nにのみTRST端子のHIGHレベルが伝搬され、テストロジックリセット状態が解除される。これにより、プロセッサ1−nのみテストアクセスポートより制御可能となり、デバッグ可能となる。一方、その他のプロセッサに入力するTRST信号は、LOWレベルのままでテストロジックリセット状態を保持する。
【0034】
このように、上記実施の形態1で述べたセレクタ回路10の代わりに、カウンタ300とデコーダ301を備えた第1の制御回路30を挿入することにより、2つ以上のプロセッサ1−1〜1−Nの中からデバッグ対象となるプロセッサを任意に1つ選択することが容易に可能となる。
【0035】
以上のように、この実施の形態3によれば、複数のプロセッサすなわちプロセッサ1−1〜1−Nから1つのプロセッサ、例えばn番目のプロセッサ1−nを選択することができ、したがって、上記実施の形態1と同様に、外部端子の増大を伴わず、クロック数の増大を防止して高速なオンチップデバッグが実現できるという効果が得られる。
【0036】
実施の形態4.
図4は、この発明の実施の形態4による半導体集積回路のブロック図であり、図において、1−1〜1−Nはそれぞれプロセッサ(Nは自然数)、2−1〜2−NはJTAG回路、40は第2の制御回路、400は制御回路、401はカウンタ、402はデコーダ、41−1〜41−Nおよび430はそれぞれORゲート、42−1〜42−NはそれぞれANDゲート、440はANDゲート、441〜445はレジスタである。ここで、制御回路400はANDゲート440とTMS信号をシフトイン入力、TCK信号をクロック入力とするレジスタ441〜445で構成され、さらに、第2の制御回路40はこの制御回路400、カウンタ401、デコーダ402、ORゲート41−1〜41−N,430およびANDゲート42−1〜42−Nから構成される。
【0037】
次に動作について説明する。
図4において、制御回路400は、外部TMS信号より5サイクル以上HIGHレベルの信号が印加されると、外部TMS信号がHIGHレベルの間、カウンタ401へTCK信号(クロック)を伝搬する。カウンタ401は入力されたTCK信号のサイクル数をカウントし、その出力をデコーダ402へ入力する。デコーダ402はカウンタ401の出力に相当するビット番号の信号にのみHIGHレベルを出力し、その他の信号はLOWレベルを出力する。
【0038】
この時、デコーダ402の出力信号を入力するORゲート(41−1〜41−N)のうち、HIGHレベルの信号を入力したORゲートのみが活性化される。活性化されたORゲートにつながるプロセッサにのみ外部TMS信号が伝搬される。その他のプロセッサは、TMS信号がHIGHレベルに保持される。その結果、外部TMS信号が伝搬するプロセッサは、JTAGテストロジックリセット状態が解除される。その他のプロセッサは、テストロジックリセット状態のままである。
【0039】
n番目のプロセッサ1−n(1≦n≦N、nは自然数)をデバッグする場合、外部TMS信号をHIGHレベルにした状態でTCK信号(クロック)を5サイクル印加する。この時、全てのプロセッサ1−1〜1−Nはテストロジックリセット状態におかれる。
【0040】
次に、TMS信号をHIGHレベルに保持したまま、クロックのTCK信号をnサイクル印加する。カウンタ401は、印加されたTCK信号のサイクル数をカウントしデコーダ402への出力をnとする。
【0041】
デコーダ402は、nビット目の信号signのみHIGHレベルを、その他の信号にはLOWレベルを出力する。その結果、ORゲート41−nのみが活性化され、プロセッサ1−nにTMS信号が伝搬する。プロセッサ1−nは、TMS信号がHIGHレベルからLOWレベルに遷移したのと同時に(立ち下がりエッジ)、テストロジックリセット状態が解除され、テストアクセスポートより制御可能となり、すなわちデバッグ可能となる。一方、その他のプロセッサの入力するTMS信号は、HIGHレベルのままで、テストロジックリセット状態を保持する。
【0042】
このように、上記実施の形態3のTRST端子の代わりに、TMS端子を用いることで、2つ以上のプロセッサ1−1〜1−Nの中からデバッグ対象のプロセッサ1−nを1つ選択することが可能となる。
【0043】
以上のように、この実施の形態4によれば、複数のプロセッサ1−1〜1−Nから1つのプロセッサ1−nを選択することができ、上記実施の形態1と同様に、外部端子の増大を伴わず、クロック数の増大を防止して高速なオンチップデバッグが容易に実現できるという効果が得られる。
【0044】
なお、上記実施の形態1〜4においては、複数のプロセッサを例にとり、説明を行ったが、代わりにロジックブロックを用いた場合においても同様なことが当てはまり、また、複数のプロセッサはロジックブロックを混載しても同様な効果が実現できる。
【0045】
【発明の効果】
以上のように、この発明によれば、各々がJTAG回路を備えた第1および第2の内部回路と接続し、JTAG回路とともにデバッグ支援回路を構成するセレクタ回路と、これに接続し外部端子を構成するJTAGテストアクセスポートとを備え、デバッグ支援回路を用いた第1および第2の内部回路のデバッグ時に、デバッグ対象となる内部回路を選択するためのセレクタ回路のセレクト端子として、JTAGテストアクセスポートのTRST端子を用いて構成したので、外部端子を追加せずにデバッグ対象のプロセッサを選択することができ、これにより、TAPコントローラの制御やデータの設定に要するクロック数を増大させずに、内部回路の高速なデバッグが容易に実現できるという効果がある。
【0046】
この発明によれば、各々がJTAG回路を備えた第1および第2の内部回路と、これに接続し外部端子を構成するJTAGテストアクセスポートと、このTRST端子と第1および第2の内部回路のいずれか一方との間に設けられるインバータ回路とを備え、JTAG回路およびインバータにより構成されるデバッグ支援回路により、第1および第2の内部回路のいずれか一方のデバッグを実行するように構成したので、同様に、外部端子を追加せずにデバッグ対象のプロセッサを選択することができ、TAPコントローラの制御やデータの設定に要するクロック数を増大させず、内部回路の高速なデバッグが容易に実現できるという効果がある。
【0047】
この発明によれば、各々がJTAG回路を備えた複数の内部回路と、これに接続し外部端子を構成するJTAGテストアクセスポートと、このTRST端子およびTCK端子と接続しカウンタを含む機能ブロックを構成する第1の制御回路とを備え、JTAG回路および第1の制御回路により構成されるデバッグ支援回路は、TRST端子およびTCK端子を介してTRST信号およびTCK信号をそれぞれ入力し、機能ブロックにより複数の内部回路のうちいずれか1つのデバッグを実行するように構成したので、同様に、外部端子を追加せずにデバッグ対象のプロセッサを選択することができ、TAPコントローラの制御やデータの設定に要するクロック数を増大させず、内部回路の高速なデバッグが容易に実現できるという効果がある。
【0048】
この発明によれば、各々がJTAG回路を備えた複数の内部回路と、これに接続し外部端子を構成するJTAGテストアクセスポートと、このTMS端子およびTCK端子と接続しカウンタを含む機能ブロックを構成する第2の制御回路とを備え、JTAG回路および第2の制御回路により構成されるデバッグ支援回路は、TMS端子およびTCK端子を介してTMS信号およびTCK信号をそれぞれ入力し、機能ブロックにより複数の内部回路のうちいずれか1つのデバッグを実行するように構成したので、同様に、外部端子を追加せずにデバッグ対象のプロセッサを選択することができ、TAPコントローラの制御やデータの設定に要するクロック数を増大させず、内部回路の高速なデバッグが容易に実現できるという効果がある。
【図面の簡単な説明】
【図1】 この発明の実施の形態1による半導体集積回路のブロック図である。
【図2】 この発明の実施の形態2による半導体集積回路のブロック図である。
【図3】 この発明の実施の形態3による半導体集積回路のブロック図である。
【図4】 この発明の実施の形態4による半導体集積回路のブロック図である。
【図5】 従来例1による半導体集積回路のブロック図である。
【図6】 従来例2による半導体集積回路のブロック図である。
【符号の説明】
1−1〜1−N プロセッサ(内部回路)、2−1〜2−N JTAG回路、10,60 セレクタ回路、20 インバータ、30 第1の制御回路、40 第2の制御回路、31−1〜31−N,42−1〜42−N,302,440 ANDゲート、41−1〜41−N,320,430 ORゲート、300,401 カウンタ、301,402 デコーダ、320,400 制御回路、441〜445 レジスタ。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a semiconductor integrated circuit incorporating internal circuits such as a plurality of processors and logic blocks, and more particularly to a debug circuit that supports software debugging.
[0002]
[Prior art]
For debugging of the processor built in the semiconductor integrated circuit, the test access port (TCK, TMS, TDI, TDO, TRST) of JTAG and other terminals are usually used from the outside of the semiconductor integrated circuit to the inside of the processor, Alternatively, a method is used in which a debugging support circuit such as an external JTAG circuit (a circuit including a TAP controller compliant with IEEE1149.1) is controlled.
[0003]
Conventional Example 1
FIG. 5 is a block diagram showing a semiconductor integrated circuit incorporating a conventional processor. In FIG. 5, 1-1 and 1-2 are processors, and 2-1 and 2-2 are JTAG circuits. Here, the processors 1-1 and 1-2 have JTAG circuits 2-1 and 2-2 each including a plurality of JTAG scan registers (not shown), which are JTAG test access ports (TCK, TMS). , TDI, TDO, TRST) can exchange signals with the outside.
[0004]
In a semiconductor integrated circuit incorporating such a processor, the JTAG circuits 2-1 and 2-2 are connected in series to the TDI terminal and the TDO terminal, and the JTAG scan register is connected in series. It is common to debug 1, 1-2.
[0005]
Next, the operation will be described.
Corresponding to the number of JTAG scan registers chained by serial connection of the processors 1-1 and 1-2, a predetermined clock is input from the TCK terminal, the JTAG circuits 2-1 and 2-2 become active, and the test pattern is output from the TDI terminal. Is input, and the two processors 1-1 and 1-2 are debugged at a time. Thereafter, similarly, a predetermined clock is input from the TCK terminal, and the debug result is output to the outside from the TDO terminal.
Thus, the conventional method of JTAG on-chip debugging is to connect the JTAG scan registers of a plurality of processors in series.
[0006]
Conventional Example 2
Alternatively, there is a method of debugging only the selected processor by inserting a selector between the JTAG test terminal (TAP) and the processor. FIG. 6 is a block diagram of a semiconductor integrated circuit incorporating such a conventional processor. In FIG. 6, 1-1 and 1-2 are processors, 2-1 and 2-2 are JTAG circuits, and 60 is It is a selector circuit. The difference from Conventional Example 1 is that an external select terminal (SEL) is provided and a
[0007]
Next, the operation will be described.
According to the SEL signal input from the external select terminal, the
[0008]
[Problems to be solved by the invention]
Since the conventional semiconductor integrated circuit is configured as described above, in the conventional example 1, as shown in FIG. 5, the JTAG scan registers of the processors 1-1 and 1-2 are replaced with the JTAG circuits 2-1 and 2-2. Are connected in series via each other, the number of shift clocks required for setting instructions in the instruction registers of the TAP controllers of the processors 1-1 and 1-2 and setting data in the data registers increases. For this reason, there is a problem that the time required for controlling the processor and downloading data to the internal memory and external memory of the processor by the debugger control device outside the semiconductor integrated circuit is increased.
[0009]
Further, when the types of the plurality of processors are different, there is a problem that it is difficult to simultaneously control the TAP controllers of the plurality of processors by the external debugger program.
[0010]
Further, as shown in FIG. 6, the conventional example 2 has a problem that the manufacturing cost of the semiconductor integrated circuit is increased by providing the external terminal.
[0011]
The present invention has been made to solve the above-described problems, and facilitates JTAG on-chip debugging of an LSI equipped with internal circuits such as a plurality of processors and logic blocks without increasing external terminals. An object of the present invention is to obtain a semiconductor integrated circuit capable of controlling an internal circuit and shortening a time required for downloading data to a memory.
[0012]
[Means for Solving the Problems]
The semiconductor integrated circuit according to the present invention is connected to first and second internal circuits each having a JTAG circuit, and a selector circuit that constitutes a debugging support circuit together with the JTAG circuit, and is connected to the selector circuit and has an external terminal A JTAG test access port, and a JTAG test as a select terminal of a selector circuit for selecting an internal circuit to be debugged during on-chip debugging of the first and second internal circuits using the debug support circuit The TRST terminal of the access port is used.
[0013]
The semiconductor integrated circuit according to the present invention includes first and second internal circuits each having a JTAG circuit, a JTAG test access port connected to the first and second terminals, and a TRST terminal of the first and second internal circuits. And an inverter circuit provided between any one of the two internal circuits, and the debugging support circuit configured by the JTAG circuit and the inverter executes debugging of either the first or second internal circuit Is.
[0014]
The semiconductor integrated circuit according to the present invention includes a plurality of internal circuits each provided with a JTAG circuit, a JTAG test access port connected to the JTAG test circuit and constituting an external terminal, and a counter connected to the TRST terminal and the TCK terminal. A debug support circuit including a JTAG circuit and a first control circuit that inputs a TRST signal and a TCK signal via the TRST terminal and the TCK terminal, respectively. One of the plurality of internal circuits is debugged by the block.
[0015]
The semiconductor integrated circuit according to the present invention is connected to a plurality of internal circuits each having a JTAG circuit, a JTAG test access port connected to the JTAG test access port and constituting an external terminal, and a TMS terminal and a TCK terminal of the JTAG test access port. And a second support circuit that constitutes a functional block including a counter, and a debug support circuit configured by the JTAG circuit and the second control circuit receives the TMS signal and the TCK signal via the TMS terminal and the TCK terminal, respectively. Input is performed, and any one of a plurality of internal circuits is debugged by the function block.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described below.
FIG. 1 is a block diagram of a semiconductor integrated circuit according to
[0017]
Next, the operation will be described.
In FIG. 1, when the TRST signal applied from the outside by the
[0018]
When the TRST signal applied from the outside is at the LOW level, the TRST signal sig1 on the processor 1-1 side is set to the LOW level and the TRST signal sig2 on the processor 1-2 side is set to the HIGH level by the
[0019]
For debugging the processor 1-1, first, the externally applied TRST signal is set to the LOW level to reset the JTAG circuit 2-1 of the processor 1-1 (test logic reset). Next, the external TRST signal is set to the HIGH level, the test logic reset state of the JTAG circuit 2-1 of the processor 1-1 is released, and the
[0020]
On the other hand, for debugging the processor 1-2, first, the external TRST signal is set to the LOW level, and the JTAG circuit 2-2 of the processor 1-2 is reset (test logic reset). Next, the external TRST signal is set to the HIGH level, the test logic reset state of the JTAG circuit 2-2 of the processor 1-2 is released, and the
[0021]
In this way, by using the TRST terminal of the JTAG test access port as the select terminal, the processor to be debugged is selected from the processors 1-1 and 1-2 without adding an external terminal, thereby controlling the TAP controller. In addition, high-speed debugging of the processor can be easily performed without increasing the number of clocks required for data setting.
[0022]
As described above, according to the first embodiment, an external terminal is added in on-chip debugging using a debugging support circuit of a semiconductor integrated circuit incorporating two processors, that is, processors 1-1 and 1-2. In addition, it is possible to debug any one of the selected processors, thereby obtaining an effect of preventing an increase in the number of clocks and realizing high-speed on-chip debugging.
[0023]
FIG. 2 is a block diagram of a semiconductor integrated circuit according to the second embodiment of the present invention. In FIG. 2, 1-1 and 1-2 are processors, 2-1 and 2-2 are JTAG circuits, and 20 is an inverter. . Here, the JTAG circuits 2-1 and 2-2 and the
[0024]
Next, the operation will be described.
In FIG. 2, when the TRST signal applied from the outside by the
[0025]
When the TRST signal applied from the outside is at the LOW level, the TRST signal sig1 on the processor 1-1 side is set to the LOW level and the TRST signal sig2 on the processor 1-2 side is set to the HIGH level by the
[0026]
In debugging the processor 1-1, first, the external TRST signal is set to the LOW level to reset the JTAG circuit 2-1 of the processor 1-1 (test logic reset). Next, the external TRST signal is set to the HIGH level, the test logic reset state of the JTAG circuit 2-1 of the processor 1-1 is released, and the
[0027]
On the other hand, for debugging of the processor 1-2, first, the external TRST signal (output signal of the inverter 20) is set to the LOW level to reset the JTAG circuit 2-2 of the processor 1-2 (test logic reset). Next, the external TRST signal (output signal of the inverter 20) is set to HIGH level, the JTAG circuit 2-2 of the processor 1-2 is released from the test logic reset state, and the JTAG test access ports (TCK, TMS, TDI, The processor 1-2 is debugged using TDO). During debugging of the processor 1-2, the JTAG circuit 2-1 of the processor 1-1 does not operate in the test logic reset state.
[0028]
As described above, according to the second embodiment, by inserting the
[0029]
Embodiment 3 FIG.
FIG. 3 is a block diagram of a semiconductor integrated circuit according to Embodiment 3 of the present invention, in which 1-1 to 1-N are processors (N is a natural number), and 2-1 to 2-N are JTAG circuits. , 30 is a first control circuit, 300 is a counter, 301 is a decoder with reset, 302 and 31-1 to 31 -N (N is a natural number) are AND gates, and 320 is an OR gate. The semiconductor integrated circuit according to the third embodiment is inserted between the processors 1-1 to 1-N, the JTAG test access port, the JTAG test access port, and the processors 1-1 to 1-N. It comprises a
[0030]
Next, the operation will be described.
In FIG. 3, the
[0031]
When debugging the processor 1-n, the external TRST signal is first set to the LOW level. At this time, all the output signals (sig1 to sigN) of the
[0032]
Next, the external TRST signal is set to HIGH level. When the TRST signal becomes HIGH level, the
[0033]
As a result, the HIGH level of the TRST terminal is propagated only to the processor 1-n, and the test logic reset state is released. As a result, only the processor 1-n can be controlled from the test access port and can be debugged. On the other hand, the TRST signal input to the other processors maintains the test logic reset state while remaining at the LOW level.
[0034]
As described above, by inserting the
[0035]
As described above, according to the third embodiment, one processor, for example, the n-th processor 1-n can be selected from a plurality of processors, that is, the processors 1-1 to 1-N. Similar to the first embodiment, an effect is achieved that high-speed on-chip debugging can be realized without increasing the number of clocks without increasing the number of external terminals.
[0036]
Embodiment 4 FIG.
4 is a block diagram of a semiconductor integrated circuit according to a fourth embodiment of the present invention. In the figure, 1-1 to 1-N are processors (N is a natural number), and 2-1 to 2-N are JTAG circuits. , 40 is a second control circuit, 400 is a control circuit, 401 is a counter, 402 is a decoder, 41-1 to 41-N and 430 are OR gates, 42-1 to 42-N are AND gates, 440 is AND
[0037]
Next, the operation will be described.
In FIG. 4, when a high level signal is applied for five cycles or more from the external TMS signal, the
[0038]
At this time, of the OR gates (41-1 to 41-N) that receive the output signal of the
[0039]
When debugging the n-th processor 1-n (1 ≦ n ≦ N, where n is a natural number), the TCK signal (clock) is applied for five cycles with the external TMS signal at the HIGH level. At this time, all the processors 1-1 to 1-N are placed in the test logic reset state.
[0040]
Next, the clock TCK signal is applied for n cycles while the TMS signal is held at the HIGH level. The
[0041]
The
[0042]
In this way, by using the TMS terminal instead of the TRST terminal in the third embodiment, one processor 1-n to be debugged is selected from the two or more processors 1-1 to 1-N. It becomes possible.
[0043]
As described above, according to the fourth embodiment, one processor 1-n can be selected from the plurality of processors 1-1 to 1-N. There is an effect that high-speed on-chip debugging can be easily realized without increasing the number of clocks without increasing the number of clocks.
[0044]
In the first to fourth embodiments, the description has been given by taking a plurality of processors as an example. However, the same applies to the case where a logic block is used instead. The same effect can be realized even if they are mixed.
[0045]
【The invention's effect】
As described above, according to the present invention, the selector circuit which is connected to the first and second internal circuits each including the JTAG circuit and forms the debugging support circuit together with the JTAG circuit, and the external terminal connected to the selector circuit are connected. A JTAG test access port as a select terminal of a selector circuit for selecting an internal circuit to be debugged when debugging the first and second internal circuits using the debug support circuit. Since the TRST terminal is used, the processor to be debugged can be selected without adding an external terminal, thereby increasing the number of clocks required for controlling the TAP controller and setting data. There is an effect that high-speed debugging of the circuit can be easily realized.
[0046]
According to the present invention, first and second internal circuits each having a JTAG circuit, a JTAG test access port connected to the first and second terminals and constituting an external terminal, the TRST terminal, and the first and second internal circuits And an inverter circuit provided between the first and second internal circuits, and the debug support circuit configured by the JTAG circuit and the inverter is configured to execute debugging of one of the first and second internal circuits. Therefore, similarly, it is possible to select the processor to be debugged without adding an external terminal, and easily realize high-speed debugging of internal circuits without increasing the number of clocks required for TAP controller control and data setting. There is an effect that can be done.
[0047]
According to the present invention, a plurality of internal circuits each including a JTAG circuit, a JTAG test access port connected to the JTAG test access port and constituting an external terminal, and a functional block including a counter connected to the TRST terminal and the TCK terminal are configured. A debugging support circuit configured by the JTAG circuit and the first control circuit inputs a TRST signal and a TCK signal via the TRST terminal and the TCK terminal, respectively, and a plurality of functional blocks Since any one of the internal circuits is debugged, similarly, a processor to be debugged can be selected without adding an external terminal, and a clock required for TAP controller control and data setting There is an effect that high-speed debugging of internal circuits can be easily realized without increasing the number.
[0048]
According to the present invention, a plurality of internal circuits each provided with a JTAG circuit, a JTAG test access port connected to this to constitute an external terminal, and a functional block including a counter connected to the TMS terminal and the TCK terminal are constituted. A debugging support circuit configured by the JTAG circuit and the second control circuit receives the TMS signal and the TCK signal via the TMS terminal and the TCK terminal, respectively, Since any one of the internal circuits is debugged, similarly, a processor to be debugged can be selected without adding an external terminal, and a clock required for TAP controller control and data setting There is an effect that high-speed debugging of the internal circuit can be easily realized without increasing the number.
[Brief description of the drawings]
FIG. 1 is a block diagram of a semiconductor integrated circuit according to a first embodiment of the present invention.
FIG. 2 is a block diagram of a semiconductor integrated circuit according to a second embodiment of the present invention.
FIG. 3 is a block diagram of a semiconductor integrated circuit according to a third embodiment of the present invention.
FIG. 4 is a block diagram of a semiconductor integrated circuit according to a fourth embodiment of the present invention.
5 is a block diagram of a semiconductor integrated circuit according to Conventional Example 1. FIG.
6 is a block diagram of a semiconductor integrated circuit according to Conventional Example 2. FIG.
[Explanation of symbols]
1-1 to 1-N processor (internal circuit), 2-1 to 2-N JTAG circuit, 10, 60 selector circuit, 20 inverter, 30 first control circuit, 40 second control circuit, 31-1 to 31-N, 42-1 to 42-N, 302, 440 AND gate, 41-1 to 41-N, 320, 430 OR gate, 300, 401 counter, 301, 402 decoder, 320, 400 control circuit, 441 445 registers.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001178876A JP4401039B2 (en) | 2001-06-13 | 2001-06-13 | Semiconductor integrated circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001178876A JP4401039B2 (en) | 2001-06-13 | 2001-06-13 | Semiconductor integrated circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2002373086A JP2002373086A (en) | 2002-12-26 |
JP4401039B2 true JP4401039B2 (en) | 2010-01-20 |
Family
ID=19019506
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001178876A Expired - Fee Related JP4401039B2 (en) | 2001-06-13 | 2001-06-13 | Semiconductor integrated circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4401039B2 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7185251B2 (en) * | 2002-05-29 | 2007-02-27 | Freescale Semiconductor, Inc. | Method and apparatus for affecting a portion of an integrated circuit |
KR100880832B1 (en) * | 2004-02-10 | 2009-01-30 | 삼성전자주식회사 | Semiconductor integrated circuit and semiconductor integrated circuit test system supporting co-debugging function |
KR100565685B1 (en) | 2004-07-23 | 2006-03-30 | 엘지전자 주식회사 | JTAG compatible with Trace32 and Multi-ICE |
JP4388903B2 (en) * | 2005-02-09 | 2009-12-24 | 富士通マイクロエレクトロニクス株式会社 | JTAG test method |
US7506228B2 (en) | 2006-02-14 | 2009-03-17 | Atmel Corporation | Measuring the internal clock speed of an integrated circuit |
US8015462B2 (en) | 2007-05-11 | 2011-09-06 | Renesas Electronics Corporation | Test circuit |
JP5022110B2 (en) * | 2007-06-05 | 2012-09-12 | ルネサスエレクトロニクス株式会社 | Semiconductor integrated circuit |
CN101776728B (en) * | 2010-01-27 | 2012-07-04 | 华为技术有限公司 | Boundary scanning method and device of device inside single plate |
CN116454069B (en) * | 2023-06-14 | 2023-09-15 | 深圳中安辰鸿技术有限公司 | Semiconductor chip and HTOL, delay and overall test method thereof |
-
2001
- 2001-06-13 JP JP2001178876A patent/JP4401039B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2002373086A (en) | 2002-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9121904B2 (en) | Tap linking module test access port controller with enable input | |
US6625784B1 (en) | Semiconductor integrated circuit device, method of testing the same, database for design of the same and method of designing the same | |
EP1872146B1 (en) | Simultaneous core testing in multi-core integrated circuits | |
US6499124B1 (en) | Intest security circuit for boundary-scan architecture | |
US7013415B1 (en) | IC with internal interface switch for testability | |
JP3287539B2 (en) | Processing system with test mechanism | |
JP2007178421A (en) | Shift register not using timing conflict boundary scan register by two-phase clock control | |
US6334198B1 (en) | Method and arrangement for controlling multiply-activated test access port control modules | |
JP4401039B2 (en) | Semiconductor integrated circuit | |
US8754668B2 (en) | Integrated circuit and a method for testing a multi-tap integrated circuit | |
JP3987585B2 (en) | Core test control | |
JP4176944B2 (en) | Semiconductor integrated circuit and recording medium | |
JPH0763821A (en) | Test circuit | |
JP3094983B2 (en) | System logic test circuit and test method | |
KR100697264B1 (en) | Test circuit and test method of semiconductor device using delay chain circuit | |
US11984178B2 (en) | Methods and devices for flexible RAM loading | |
JP3265270B2 (en) | AC measurement circuit using boundary scan test function | |
KR20030027989A (en) | Chip testing apparatus | |
JP3339574B2 (en) | Test circuits for integrated circuits | |
JPH07176579A (en) | Jtag semiconductor integrated circuit | |
KR20070073428A (en) | Semiconductor integrated circuit for testing the state of the built-in finite state machine | |
JP2004184362A (en) | Semiconductor integrated circuit and electronic circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20060123 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20071101 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080415 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090626 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090804 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090928 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20091020 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20091027 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121106 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121106 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121106 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121106 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131106 Year of fee payment: 4 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |