JP2004184362A - Semiconductor integrated circuit and electronic circuit - Google Patents

Semiconductor integrated circuit and electronic circuit Download PDF

Info

Publication number
JP2004184362A
JP2004184362A JP2002354666A JP2002354666A JP2004184362A JP 2004184362 A JP2004184362 A JP 2004184362A JP 2002354666 A JP2002354666 A JP 2002354666A JP 2002354666 A JP2002354666 A JP 2002354666A JP 2004184362 A JP2004184362 A JP 2004184362A
Authority
JP
Japan
Prior art keywords
data
register
output
observation
bit
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
JP2002354666A
Other languages
Japanese (ja)
Inventor
一 ▼高▲地
Hajime Takachi
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2002354666A priority Critical patent/JP2004184362A/en
Publication of JP2004184362A publication Critical patent/JP2004184362A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Semiconductor Integrated Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a semiconductor integrated circuit capable of easily grasping an access state. <P>SOLUTION: As initialization, observation address data and observation bit data are output from a CPU and individually stored into an observation addressing register 311 and an observation bit specifying register 312. When the observation address data matches data on an address bus, data on a data bus is stored by a register 35. Then, from an output bit selecting part 36 based on the observation bit data, the bit data of data output from the register 35 is output as a signal Dn. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は半導体集積回路及び電子回路に関するものである。
【0002】
【従来の技術】
ASIC(Application Specific Integrated Circuit:特定用途向けIC)を実機(例えば、複写機)に載せて動作確認する場合、ASICだけを動作させるのではなく、実機全体に通常動作を行わせてASICの動作確認を行っていた。そして、実機動作中に不具合が生じた場合、基板上の信号をオシロスコープやロジックアナライザ等によって検出し、不具合の原因となっているASICを特定していた。或いはデバッグ用プログラム等をCPU(Central Processing Unit:中央処理装置)に実行させることによって、実機に対して様々な動作を行わせることにより、不具合を検出していた(例えば、特許文献1参照;全請求項に対応。)。または、ASICに搭載されているバウンダリスキャンテスト回路を用いて所定のデータが内部回路に入力される様に設定し、ROMやRAM等のデータを読み出すなどして、内部回路の状態を把握する技術が知られている(例えば、特許文献2参照;請求項3に対応。)。
【0003】
【特許文献1】
特開平6−174802号公報(第6頁−16頁、第1図)
【特許文献2】
特開2000−131389号公報(第2頁−第4頁、第1図)
【0004】
【発明が解決しようとする課題】
しかしながら、オシロスコープやロジックアナライザ等による不具合箇所の確認作業は労力と時間が必要であった。更に特許文献1に記載されている様に、CPUによってデバッグ用プログラムを実行させたり、特許文献2に記載されている様にバウンダリスキャンテスト回路を用いて入力データを設定して内部回路を動作させた場合、ASICの動作タイミングが通常動作と比べて変化する可能性があった。そのため、ASICの動作検証中には発生しなかった不具合が通常動作では発生するといった現象が起こっていた。また、ASICの動作タイミングが変わると、ASICから周辺デバイスに出力される信号のタイミング等も変わり、不具合の原因究明が困難になっていた。
【0005】
本発明の目的は、アクセス状況を簡単に把握することができる半導体集積回路等を提供することである。
【0006】
【課題を解決するための手段】
以上の課題を解決するために、請求項1記載の発明の半導体集積回路は、観測アドレスデータ及び観測ビットデータが入力可能に構成されていると共に、アドレスバス及びデータバスと接続される半導体集積回路であって、
前記観測アドレスデータをラッチする観測アドレス指定レジスタと、
前記観測ビットデータをラッチする観測ビット指定レジスタと、
前記アドレスバス上のデータと前記観測アドレス指定レジスタに記憶されたデータとを比較し、同一であった場合に比較信号を出力する比較部と、
前記比較部より前記比較信号が出力された場合に、前記データバス上のデータを構成する複数のビットの内、前記観測ビット指定レジスタに記憶されたデータに対応するビットのデータをビットデータとして出力する出力ビット選択部と、
を備えることを特徴としている。
【0007】
この請求項1に記載の発明によれば、アドレスバス上のアドレスデータが所定のアドレスデータとなった時のデータバス上のビットデータを出力させることができる。従って、簡単にデータバス上のビットデータを把握することができる。更に、初期設定の段階で観測アドレスデータ及び観測ビットデータを設定すれば、上記設定の為に通常動作を中断させることなくデータバス上のビットデータを把握することができる。
【0008】
また請求項2に記載の発明は、請求項1に記載の半導体集積回路であって、
前記データバスと接続され、前記データバス上のデータを記憶する第1レジスタ部と、
前記第1レジスタ部の出力段に接続され、前記第1レジスタ部の出力するデータを記憶する第2レジスタ部と、
前記第1レジスタ部及び第2レジスタ部がそれぞれ記憶するデータが同一であるか否かを検出して検出信号を出力する変化検出部と、
を更に備えることを特徴としている。
【0009】
この請求項2に記載の発明によれば、例えばアドレスバス上のデータが所望のアドレスとなった時のデータバス上のデータを随時第1レジスタ部に記憶していくと、第1レジスタ部に記憶されたデータが随時第2レジスタ部に記憶されていくこととなる。そして、各レジスタ部の記憶するデータを比較することができる。即ち、例えば、所定のアドレスに対して読み書きされるデータが時間間隔を置いて変化しているか否かを簡単に把握することができる。
【0010】
更に請求項3に記載の発明は、請求項1に記載の半導体集積回路であって、
直列に接続された第1ラッチ回路及び第2ラッチ回路を有する複数のバウンダリスキャンレジスタセルを具備したバウンダリスキャンテスト回路と、
前記各バウンダリスキャンレジスタセルの第1ラッチ回路群で記憶されたデータから構成される第1データと、第2ラッチ回路群で記憶されたデータから構成される第2データとが同一であるか否かを検出して検出信号を出力する変化検出部と、
を更に備え、前記比較部より前記比較信号が出力された場合に、前記第1ラッチ回路群は記憶しているデータを出力すると共に前記データバス上のデータを記憶し、前記第1ラッチ回路群が出力したデータを前記第2ラッチ回路群が記憶することを特徴としている。
【0011】
この請求項3に記載の発明によれば、例えばアドレスバス上のデータが所望のアドレスとなった時のデータバス上のデータを随時第1ラッチ回路群に記憶していくと、第1ラッチ回路群に記憶されたデータが随時第2ラッチ回路群に記憶されていくこととなる。そして、ラッチ回路で構成された各レジスタ部の記憶するデータを比較することができる。即ち、例えば、所定のアドレスに対して読み書きされるデータが時間間隔を置いて変化しているか否かを簡単に把握することができる。更に、半導体集積回路に既存のバウンダリスキャンテスト回路を用いてデータの把握を行うことができるため、回路面積を削減できる。
【0012】
そして、請求項4に記載の発明は、請求項2又は3に記載の半導体集積回路であって、
前記観測ビット指定レジスタに記憶されたデータに基づいて、前記ビットデータ又は前記検出信号の何れか一方を選択して出力する選択部を更に備えることを特徴としている。
【0013】
この請求項4に記載の発明によれば、観測ビット指定レジスタに記憶するデータを変化させることにより、観測者は状況に応じてビットデータ或いは検出信号の何れかを選択して出力させることができる。
【0014】
次いで請求項5に記載の発明は、請求項1〜4の何れか一項に記載の半導体集積回路であって、
前記観測アドレス指定レジスタ及び前記観測ビット指定レジスタに記憶されたデータを外部出力する外部出力部を更に備えることを特徴としている。
【0015】
この請求項5に記載の発明によれば、外部出力部より観測アドレス指定レジスタ及び観測ビット指定レジスタに記憶されたデータを出力できるため、正確に観測アドレスデータ及び観測ビットデータが設定されたか否かを確認することができる。
【0016】
請求項6に記載の発明の電子回路は、請求項1〜5の何れか一項に記載の半導体集積回路と、
前記アドレスバス及びデータバスと接続されたプロセッサと、
を備えることを特徴としている。
【0017】
この請求項6記載の発明によれば、プロセッサの初期設定の段階で観測アドレスデータ及び観測ビットデータを請求項1〜5の何れか一項に記載の半導体集積回路に出力し、その後通常動作を実行することができる。従って、観測アドレスデータ及び観測ビットデータの設定のためのデバッグ用プログラム等を実行する必要がなく、プロセッサに通常動作をさせながら電子回路の動作検証を行うことができる。
【0018】
【発明の実施の形態】
以下、図1〜8を参照して、本発明を適用した半導体集積回路及び電子回路の実施の形態を詳細に説明する。
【0019】
〔第1の実施の形態〕
図1〜5を参照して、第1の実施の形態を説明する。図1は、CPU1がアドレスバスADRB及びデータバスDATBを介してASIC2を制御する為の電子回路の構成を示すブロック図である。CPU1からは、ROM等(不図示)に記憶されているプログラム等の命令に従って、ライトイネーブル信号WE、リードイネーブル信号OE及びチップセレクト信号CS等の信号がASIC2へ出力される。更に、CPU1によってアドレスバスADRBやデータバスDATBに必要なデータが出力され、電子回路を構成する各回路の動作の制御が行われる。ライトイネーブル信号WE及びリードイネーブル信号OEは、ASIC2をライトモード或いはリードモードにするための信号であり、チップセレクト信号CSは、ASIC2の動作を開始させる為の信号である。
【0020】
ASIC2には、CPU1からライトイネーブル信号WE、リードイネーブル信号OE及びチップセレクト信号CSが入力される。これによりASIC2の内部回路が動作し、ASIC2から各種信号(不図示)が周辺デバイス等に出力される。またASIC2は、アクセス解析部3及びCPU−I/F回路4を備える。アクセス解析部3には、アドレスバスADRB上のアドレスデータが予め設定されたアドレスデータと一致した時にデータバスDATB上のデータが入力される。そして、アクセス解析部3から当該データのビットデータが出力端子TESTに出力される。出力端子TESTは、データをASIC2の外部へ出力する外部出力部である。
【0021】
図2は、アクセス解析部3及びCPU−I/F回路4の内部構成を示したブロック図である。アクセス解析部3は、比較部32、ロジック33、34、出力ビット選択部36及びレジスタ部35によって構成される。CPU−I/F回路4はCPU1からアクセス可能なインターフェース回路であり、観測アドレス指定レジスタ311及び観測ビット指定レジスタ312を備えて構成される。
【0022】
観測アドレス指定レジスタ311は、アドレスバスADRBの有効アドレスバス幅分のフリップフロップ(以下、「F/F」と言う。)等によって構成される。そして、CPU1より出力された観測アドレスデータが記憶される。
【0023】
観測ビット指定レジスタ312は、データバスDATBの有効データバス幅分のF/Fによって構成される。そして、CPU1より出力された観測ビットデータが記憶される。
【0024】
具体的には、例えば、アドレスバスADRBの有効アドレスバス幅が8ビット、データバスDATBの有効データバス幅が8ビット(D0〜D7)の場合、一例として、観測アドレス指定レジスタ311には“FF”番地が記憶され、観測ビットデータには“0”〜“7”の何れかが記憶される。
【0025】
比較部32では、アドレスバスADRB上のデータと、観測アドレス指定レジスタ311に記憶された観測アドレスデータが比較される。そして、同値と判断した場合は信号S1が出力される。例えば、観測アドレス指定レジスタ311に“FF”番地が記憶されている場合、アドレスバスADRB上のデータが“FF”番地になると、比較部32から信号S1が出力される。
【0026】
ロジック33には、ライトイネーブル信号WEとチップセレクト信号CSが入力される。そして、双方の信号がアクティブである場合に信号S2が出力される。尚、ライトイネーブル信号WE、チップセレクト信号CSに対してASIC2内でタイミング調整を行い、タイミング調整後の各信号をロジック33に入力して信号S2を出力させるようにしてもよい。ロジック34には、信号S1及びS2が入力される。そして、双方の信号がアクティブである場合に信号S3が出力される。
【0027】
レジスタ部35は、データバスDATB幅分のF/F等によって構成される。各F/Fの入力端子には、データバスDATBの各データ線からデータが入力される。また各F/Fのクロック端子CKには信号S3が入力される。そして、信号S3がアクティブになると、各F/FにはデータバスDATB上のデータが入力され、当該データが記憶される。例えば、データバスDATB上のデータが“FF”である場合、レジスタ部35を構成する各F/Fには“1”が記憶される。
【0028】
尚、信号S3をレジスタ部35を構成する各F/Fのイネーブル信号とし、クロック端子CKにASIC2の動作に用いるクロック信号が入力されるようにしてもよい。この場合、信号S3がアクティブになると、各F/Fにはクロック信号の立ち上がり又は立ち下がりエッジでデータバスDATB上のデータが入力され、記憶される。
【0029】
出力ビット選択部36には、観測ビット指定レジスタ312に記憶されている観測ビットデータと、レジスタ部35から出力されるデータが入力される。そして、出力ビット選択部36からは、レジスタ部35から入力したデータの内、観測ビットデータに基づいて選択されたビットデータが信号Dnとして出力端子TESTに出力される。
【0030】
具体的に説明すると、例えば、観測ビット指定レジスタ312に“0”が記憶されている場合、出力ビット選択部36からはレジスタ部35から入力したデータの内、1ビット目(D0)のビットデータが信号Dnとして出力される。
【0031】
次に、回路動作について説明する。まず、CPU1から通常動作前の初期設定として観測アドレスデータ及び観測ビットデータが出力される。観測アドレスデータは観測アドレス指定レジスタ311に記憶され、観測ビットデータは観測ビット指定レジスタ312にそれぞれ記憶される。
【0032】
その後、CPU1は通常動作を行う。CPU1の通常動作中、比較部32によって観測アドレス指定レジスタ311に記憶された観測アドレスデータとアドレスバスADRB上のデータの比較が行われる。データが一致すると、比較部32より信号S1が出力される。そして、ライトイネーブル信号WE及びチップセレクト信号CSがアクティブのとき、ロジック33から信号S2が出力される。信号S1及びS2がアクティブになると、ロジック34から信号S3が出力される。するとレジスタ部35によってデータバスDATB上のデータがラッチされる。
【0033】
そして出力ビット選択部36により、観測ビット指定レジスタ312に記憶される観測ビットデータに基づいてレジスタ部35から出力されるデータからビットデータが選択され、信号Dnとして出力端子TESTに出力される。
【0034】
以上のように、CPU1が通常動作を開始する前に観測アドレスデータ及び観測ビットデータを設定することができる。従ってCPU1の通常動作を中断させることなく、アドレスバスADRB上のデータが設定したアドレスになったときのデータバスDATBのデータを把握することができる。
【0035】
即ち、通常動作と、デバッグ用プログラムの実行による動作の間にASIC等の動作タイミングのずれ等が発生することによる、不具合の見落とし、或いは余計な不具合の発生による検証時間の増大等による無駄な時間を削減することができる。
【0036】
尚、本発明の半導体集積回路及び電子回路は、上述の内容に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。
【0037】
例えば、観測アドレス指定レジスタ311、観測ビット指定レジスタ312及びレジスタ部35に記憶されているデータを把握するために、これらのデータを出力端子へ出力する為の出力部等を設置してもよい。これにより、観測アドレス指定レジスタ311及び観測ビット指定レジスタ312に記憶された観測アドレスデータ及び観測ビットデータを確認することができる。更に、レジスタ部35に記憶されているデータを把握することができる。
【0038】
次に、本発明の実施例を説明する。図3は、バウンダリスキャンテストに対応したASIC200の回路構成を示すブロック図である。バウンダリスキャンテスト回路は、主にバウンダリスキャンレジスタ101、バイパスレジスタ102、インストラクションレジスタ103、オプションレジスタ104及びTAP(Test Access Port)コントローラ105から構成されており、入出力端子としてTDI端子(テストデータ入力端子)106、TCK(テストクロック)端子107、TMS(テストモードセレクタ)端子108、TRST(テストリセット)端子109及びTDO(テストデータ)出力端子110を有している。
【0039】
バウンダリスキャンレジスタ101は、内部回路と各入出力端子114の間に配置されたバウンダリスキャンレジスタセル(以下、「BSR」と言う。)20a、20b、・・・(以下、包括的に「BSR20」と言う。)を一連に接続したものであり、このBSR20によって入出力端子114で発生する事象を観測或いは制御することが可能となる。つまり、BSR20が従来の信号検出用テストプローブと等価な働きをすることとなる。
【0040】
バイパスレジスタ102は、TDI端子106から入力される信号を最短経路でTDO端子110へバイパスさせるための経路を提供する。インストラクションレジスタ103は、命令ビットを読み込んでデコードし、その結果に応じてデバイスに各種機能を実行させる回路である。オプションレジスタ104は、デバイス及び製造メーカを識別する為の情報が設定されている回路である。TAPコントローラ105は、TCK端子107及びTMS端子108から入力される信号に従って、バウンダリスキャンレジスタ101を制御する順序回路である。
【0041】
そしてASIC200は、更にアクセス解析制御部40及びCPU−I/F回路4を備える。図4はバウンダリスキャンレジスタ101、アクセス解析制御部40及びCPU−I/F回路4の構成を示したブロック図である。
【0042】
アクセス解析制御部40は、比較部32、ロジック33、34、出力ビット選択部36及びクロック選択部45によって構成される。以下、同一の構成要素については同一の符号を付し、その説明を省略する。
【0043】
クロック選択部45には、ロジック34から出力される信号S3と、TAPコントローラ105から出力される信号S4及びS5が入力される。そして、ASIC200が通常動作中である場合、クロック選択部45から信号S3に同期して信号A及びBが出力される。また、バウンダリスキャンテスト動作中である場合は、信号S4及びS5に同期して信号A及びBが出力される。
【0044】
バウンダリスキャンレジスタ101を構成するBSR20は、クロック選択部45から入力される信号Aに基づいて、データバスDATB上のデータをラッチする。そしてラッチしたデータは出力ビット選択部36に出力される。即ち、BSR20は、図2において説明したアクセス制御部3の備えるレジスタ部35と同様の機能を持つ回路として用いられる。
【0045】
図5はBSR20aの回路構成を示した図である。BSR20aは、マルチプレクサ201、204とラッチ回路202、203によって構成され、クロック選択部45から出力される信号A及びBと、TAPコントローラ105から出力される信号C及びDに従って動作する。
【0046】
まず、ASIC200が通常動作中の場合、クロック選択部45から信号S3に同期して信号A及びBが出力される。信号Aはラッチ回路202のクロック端子CK2に、信号Bはラッチ回路203のクロック端子CK3にそれぞれ入力される。またマルチプレクサ201及び204のI1端子はデータバスDATBの1本のデータ線と接続されている。そしてTAPコントローラ105から出力される信号C及びDによって、マルチプレクサ201及び204はI1端子に入力される信号を出力するように設定される。
【0047】
ラッチ回路202に信号Aが入力されると、ラッチ回路202はマルチプレクサ201の出力するデータをラッチする。そして、ラッチされたデータは出力ビット選択部36へ出力される。即ち、出力ビット選択部36には、データバスDATB上のデータをラッチした全てのBSRから出力されたデータが入力される。そして出力ビット選択部36からは、入力されたデータの内、観測ビット指定レジスタ312に記憶される観測ビットデータに基づいて選択されたデータが信号Dnとして出力端子に出力される。
【0048】
一方、バウンダリスキャンテスト動作中の場合、クロック選択部45からはTAPコントローラ105から出力される信号S4及びS5に基づいて信号A及びBが出力される。そしてBSR20は本来のバウンダリスキャンレジスタとして動作を行う。即ち、信号Cに基づいて、マルチプレクサ201からは前段のBSRのラッチ回路からシフト出力されたデータ(I2端子に入力されるデータ)が出力される。そしてラッチ回路202は、信号Aに同期してマルチプレクサ201から出力されるデータをラッチする。ラッチされたデータはラッチ回路203へ出力されると共に、後段のBSRへシフト出力される。このようにBSR20のラッチ回路によるシフト操作によって、TDI端子106から入力される回路テスト用のシリアル信号が各BSR20へ送信されていく。そして、信号Bに基づいてラッチ回路203はラッチ回路202から出力されたデータをラッチする。ラッチされたデータは、マルチプレクサ204に出力される。マルチプレクサ204からは、信号Dに従ってI2端子に入力されるデータが内部回路に出力される。こうして内部回路は回路テスト用のデータを入力して動作を開始する。
【0049】
以上のように、バウンダリスキャンテスト回路を備えるASIC200の場合、バウンダリスキャンレジスタ101を用いてデータバスDATB上のデータを取り込み、所望のビットデータを出力端子から出力させることができる。これにより、新たにレジスタ部を設置する必要がなく、回路面積を削減できる。
【0050】
〔第2の実施の形態〕
図6〜8を参照して、第2の実施の形態を説明する。第1の実施の形態では、観測ビット指定レジスタ312に記憶される観測ビットデータに従って、データバスDATB上のビットデータを出力端子TESTに出力したが、本実施の形態では、レジスタ部35の出力するデータを他のレジスタ部にラッチさせ、2つのレジスタ部から出力されるデータが同値か否かを判定し、その判定結果を出力するASICについて説明する。
【0051】
尚、第2の実施の形態における電子回路の構成は、第1の実施の形態における図1の電子回路のASIC2を構成するアクセス解析部3を、図6に示したアクセス解析部5に置き換えた構成と同様である。従って、以下、同一の構成要素には同一の符号を付してその説明を省略する。
【0052】
レジスタ部37は、レジスタ部35と同様の構成であり、各F/Fの入力端子にはレジスタ部35の各F/Fから出力されるデータが入力される。具体的には、信号S3がアクティブになると、レジスタ部37の各F/Fにはレジスタ部35から出力されるデータが入力され、記憶される。従って、レジスタ部35とレジスタ部37は、シフトレジスタとなっている。
【0053】
変化検出部38には、レジスタ部35及びレジスタ部37から出力されるデータが入力される。そしてそれぞれのデータは比較され、同値であるか否かの判定結果が信号S6として出力される。
【0054】
具体的には、例えば、レジスタ部35とレジスタ部37のそれぞれのビットデータを2入力Exclusive−ORに入力して全ての2入力Exclusive−ORの出力信号をOR回路に入力し、OR回路の出力を信号S6とする。この場合、レジスタ部35及びレジスタ部37から出力されるデータが同値であれば信号S6は“0”となり、異値であれば信号S6は“1”となる。
【0055】
選択部39には、信号Dn及び信号S6が入力され、観測ビットデータに基づいて、何れか一方が選択される。そして選択された信号が出力端子TESTに出力される。具体的には、例えば、観測ビット指定レジスタ312に記憶されているデータが“0”〜“7”の場合、選択部39によって信号Dnが選択され出力される。一方、観測ビットデータが“0”〜“7”以外の場合、選択部39によって信号S6が選択され出力される。
【0056】
次に、回路動作について説明する。まずCPU1からは、通常動作前の初期設定として観測アドレスデータ及び観測ビットデータが出力される。そして観測アドレス指定レジスタ311には観測アドレスデータが、観測ビット指定レジスタ312には観測ビットデータがそれぞれ記憶される。
【0057】
その後、CPU1は通常動作を行う。CPU1の通常動作中、比較部32によって観測アドレス指定レジスタ311に記憶された観測アドレスデータとアドレスバスADRB上のデータが比較される。そして、データが一致すると信号S1が出力される。ロジック33からはライトイネーブル信号WE及びチップセレクト信号CSがアクティブのとき、信号S2が出力される。信号S1及びS2がアクティブになると、ロジック34からは信号S3が出力される。するとレジスタ部35はデータバスDATB上のデータをラッチする。そして、レジスタ部35からは記憶されていたデータが出力される。同時にレジスタ部37はレジスタ部35によって出力されたデータをラッチする。
【0058】
そして出力ビット選択部36から、レジスタ部35より出力されるデータの内、観測ビット指定レジスタ312に記憶される観測ビットデータに基づいて選択されたビットデータが信号Dnとして出力される。一方、変化検出部38によってレジスタ部35に記憶されているデータと、レジスタ部37に記憶されているデータとが比較され、比較結果として信号S6が出力される。そして、選択部39によって観測ビット指定レジスタ312に記憶された観測ビットデータに基づいて、信号S6或いは信号Dnの何れか一方が選択され、出力端子TESTに出力される。
【0059】
以上のように、CPU1の通常動作が始まる前の初期設定として観測アドレスデータ及び観測ビットデータを設定することができる。これにより、CPU1の通常動作を中断させることなく、アドレスバスADRBのデータが設定したアドレスになったときのデータバスDATBのデータを把握することができる。
【0060】
従って、通常動作と、デバッグ用プログラムの実行による動作の間にASIC等の動作タイミングのずれ等が発生することによる、不具合の見落とし、或いは余計な不具合の発生による検証時間の増大等による無駄な時間を削減することができる。
【0061】
次に、本発明の実施例としてASICが内蔵するバウンダリスキャンテスト回路を用いた場合を説明する。尚、ここで説明するASICの内部構成は、図3のASIC200を構成するアクセス解析制御部40を、図7に示したアクセス解析制御部50に置き換えた構成と同様である。
【0062】
アクセス解析制御部50は、比較部32、ロジック33、34、出力ビット選択部36、クロック選択部45、変化検出部38及び選択部39によって構成される。図7において、バウンダリスキャンレジスタ101を構成するBSR20は、クロック選択部45から入力される信号A及びBに基づいて、データバスDATB上のデータをラッチする。そしてラッチされたデータは出力ビット選択部36及び変化検出部38に出力される。即ち、BSR20は、上述したアクセス制御部5が備えるレジスタ部35及び37と同様の機能を持つ回路として用いられる。
【0063】
図8は、BSR20aの回路構成を示した図である。図8において、ASIC200が通常動作中である場合、クロック選択部45からは信号S3に同期して信号A及びBが出力される。信号Aはラッチ回路202のクロック端子CK2に、信号Bはラッチ回路203のクロック端子CK3にそれぞれ入力される。またTAPコントローラ105から出力される信号C及びDによって、マルチプレクサ201及び204はI1端子に入力される信号を出力するように設定される。マルチプレクサ201及び204のI1端子に入力される信号は、データバスDATB上のビットデータである。
【0064】
ラッチ回路202は信号Aに従ってマルチプレクサ201の出力するデータをラッチする。そして、ラッチ回路202によって記憶されていたデータはラッチ回路203、出力ビット選択部36及び変化検出部38に出力される。出力ビット選択部36及び変化検出部38には、データバスDATB上のデータをラッチした全てのBSR(BSR20a、20b、・・・)から出力されたデータが入力される。
【0065】
ラッチ回路203は信号Bに従ってラッチ回路202の出力するデータをラッチする。そして、ラッチ回路203によって記憶されていたデータが変化検出部38に出力される。出力ビット選択部36及び変化検出部38には、データバスDATB上のデータをラッチした全てのBSRから出力されたデータが入力される。
【0066】
そして変化検出部38によって、BSRを構成する初段のラッチ回路(各BSRのラッチ回路202;第1ラッチ回路群)から入力されたデータと、後段のラッチ回路(各BSRのラッチ回路203;第2ラッチ回路群)から入力されたデータとが比較される。そして、変化検出部38から比較結果として信号S6が選択部39へ出力される。一方、出力ビット選択部36からは、BSR20より出力されたデータの内、観測ビット指定レジスタ312に記憶される観測ビットデータに基づいて選択されたビットデータが信号Dnとして選択部39に出力される。そして、選択部39によって観測ビット指定レジスタ312に記憶された観測ビットデータに基づいて、信号S6或いは信号Dnの何れか一方が選択され、出力端子に出力される。
【0067】
以上のように、バウンダリスキャンテスト回路を備えるASIC200の場合、バウンダリスキャンレジスタ101を用いてデータバスDATB上のデータを取り込み、所望のビットデータを出力端子から出力させることができ、新たにレジスタ部を設置する必要がなく、回路面積を削減できる。
【0068】
【発明の効果】
請求項1に記載の発明によれば、アドレスバス上のアドレスデータが所定のアドレスデータとなった時のデータバス上のビットデータを出力させることができる。従って、簡単にデータバス上のビットデータを把握することができる。更に、初期設定として観測アドレスデータ及び観測ビットデータを設定すれば、通常動作を上記設定の為に中断させることなくデータバス上のビットデータを把握することができる。
【0069】
請求項2に記載の発明によれば、例えばアドレスバス上のデータが所望のアドレスとなった時のデータバス上のデータを随時第1レジスタ部に記憶していくと、第1レジスタ部に記憶されたデータが随時第2レジスタ部に記憶されていくこととなる。そして、各レジスタ部の記憶するデータを比較することができる。即ち、例えば、所定のアドレスに対して読み書きされるデータが時間間隔を置いて変化しているか否かを簡単に把握することができる。
【0070】
請求項3に記載の発明によれば、例えばアドレスバス上のデータが所望のアドレスとなった時のデータバス上のデータを随時第1ラッチ回路群に記憶していくと、第1ラッチ回路群に記憶されたデータが随時第2ラッチ回路群に記憶されていくこととなる。そして、各レジスタ部の記憶するデータを比較することができる。即ち、例えば、所定のアドレスに対して読み書きされるデータが時間間隔を置いて変化しているか否かを簡単に把握することができる。更に、半導体集積回路に既存のバウンダリスキャンテスト回路を用いてデータの把握を行うことができるため、回路面積を削減できる。
【0071】
請求項4に記載の発明によれば、観測ビット指定レジスタに記憶するデータを変化させることにより、観測者は状況に応じてビットデータ或いは検出信号の何れかを選択して出力させることができる。
【0072】
請求項5に記載の発明によれば、外部出力部より観測アドレス指定レジスタ及び観測ビット指定レジスタに記憶されたデータを出力できるため、正確に観測アドレスデータ及び観測ビットデータが設定されたか否かを確認することができる。
【0073】
請求項6記載の発明によれば、プロセッサの初期設定の段階で観測アドレスデータ及び観測ビットデータを請求項1〜5の何れか一項に記載の半導体集積回路に出力し、その後通常動作を実行することができる。従って、観測アドレスデータ及び観測ビットデータの設定のためのデバッグ用プログラム等を実行する必要がなく、プロセッサに通常動作をさせながら電子回路の動作検証を行うことができる。
【図面の簡単な説明】
【図1】CPUがアドレスバス及びデータバスを介してASICを制御する為の電子回路の構成を示すブロック図。
【図2】第1の実施の形態におけるアクセス解析部及びCPU−I/F回路の内部構成を示したブロック図。
【図3】バウンダリスキャンテストに対応したASICの回路構成を示すブロック図。
【図4】第1の実施の形態におけるバウンダリスキャンレジスタ、アクセス解析制御部及びCPU−I/F回路の構成を示したブロック図。
【図5】第1の実施の形態におけるアクセス解析制御部の回路構成を示した図。
【図6】第2の実施の形態におけるアクセス解析部及びCPU−I/F回路の内部構成を示したブロック図。
【図7】第2の実施の形態におけるバウンダリスキャンレジスタ、アクセス解析制御部及びCPU−I/F回路の構成を示したブロック図。
【図8】第2の実施の形態におけるアクセス解析制御部の回路構成を示した図。
【符号の説明】
1 CPU
2、200 ASIC
3 アクセス解析部
32 比較部
33、34 ロジック
36 出力ビット選択部
35、37 レジスタ部
38 変化検出部
39 選択部
4 CPU−I/F回路
311 観測アドレス指定レジスタ
312 観測ビット指定レジスタ
101 バウンダリスキャンレジスタ
20a、20b バウンダリスキャンレジスタセル
40、50 アクセス解析制御部
45 クロック選択部
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a semiconductor integrated circuit and an electronic circuit.
[0002]
[Prior art]
When an ASIC (Application Specific Integrated Circuit) is mounted on a real machine (for example, a copying machine) to check the operation, the normal operation is performed on the entire real machine instead of operating only the ASIC, and the operation of the ASIC is checked. Had gone. When a failure occurs during the operation of the actual device, a signal on the board is detected by an oscilloscope, a logic analyzer, or the like, and the ASIC causing the failure is identified. Alternatively, a defect is detected by causing a CPU (Central Processing Unit: Central Processing Unit) to execute a debugging program or the like to cause the actual machine to perform various operations (for example, see Patent Document 1; Corresponding to the claims). Alternatively, a technique for setting a predetermined data to be input to an internal circuit by using a boundary scan test circuit mounted on an ASIC and reading data from a ROM or a RAM to grasp the state of the internal circuit. Is known (for example, refer to Patent Document 2; corresponds to Claim 3).
[0003]
[Patent Document 1]
JP-A-6-174802 (pages 6-16, FIG. 1)
[Patent Document 2]
JP-A-2000-131389 (pages 2 to 4, FIG. 1)
[0004]
[Problems to be solved by the invention]
However, labor and time are required to confirm a defective portion using an oscilloscope or a logic analyzer. Further, as described in Patent Document 1, a debug program is executed by a CPU, or as described in Patent Document 2, input data is set using a boundary scan test circuit to operate an internal circuit. In such a case, there is a possibility that the operation timing of the ASIC changes as compared with the normal operation. For this reason, there has been a phenomenon that a defect that does not occur during the operation verification of the ASIC occurs in the normal operation. Further, when the operation timing of the ASIC changes, the timing of a signal output from the ASIC to a peripheral device also changes, which makes it difficult to determine the cause of the problem.
[0005]
SUMMARY OF THE INVENTION An object of the present invention is to provide a semiconductor integrated circuit or the like capable of easily grasping an access state.
[0006]
[Means for Solving the Problems]
According to a first aspect of the present invention, there is provided a semiconductor integrated circuit configured to input observation address data and observation bit data, and to be connected to an address bus and a data bus. And
An observation address designation register for latching the observation address data;
An observation bit designation register for latching the observation bit data,
A comparison unit that compares the data on the address bus with the data stored in the observation address designation register, and outputs a comparison signal when they are the same,
When the comparison signal is output from the comparison unit, data of a bit corresponding to data stored in the observation bit designation register is output as bit data among a plurality of bits constituting data on the data bus. An output bit selection unit,
It is characterized by having.
[0007]
According to the first aspect of the present invention, it is possible to output bit data on the data bus when the address data on the address bus becomes predetermined address data. Therefore, the bit data on the data bus can be easily grasped. Furthermore, if the observation address data and the observation bit data are set at the initial setting stage, the bit data on the data bus can be grasped without interrupting the normal operation for the above setting.
[0008]
According to a second aspect of the present invention, there is provided the semiconductor integrated circuit according to the first aspect,
A first register unit connected to the data bus and storing data on the data bus;
A second register unit connected to an output stage of the first register unit and storing data output by the first register unit;
A change detection unit that detects whether the data stored in the first register unit and the data stored in the second register unit are the same and outputs a detection signal,
Is further provided.
[0009]
According to the second aspect of the present invention, for example, when data on the data bus when data on the address bus becomes a desired address is stored in the first register as needed, The stored data is stored in the second register unit as needed. Then, data stored in each register unit can be compared. That is, for example, it is possible to easily grasp whether or not the data read / written with respect to a predetermined address changes at intervals of time.
[0010]
Further, the invention according to claim 3 is the semiconductor integrated circuit according to claim 1,
A boundary scan test circuit including a plurality of boundary scan register cells having a first latch circuit and a second latch circuit connected in series;
Whether the first data composed of the data stored in the first latch circuit group of each of the boundary scan register cells is the same as the second data composed of the data stored in the second latch circuit group A change detection unit that detects the change and outputs a detection signal;
The first latch circuit group outputs the stored data and stores the data on the data bus when the comparison signal is output from the comparison unit; Is stored in the second latch circuit group.
[0011]
According to the third aspect of the present invention, for example, when the data on the data bus when the data on the address bus becomes a desired address is stored in the first latch circuit group as needed, the first latch circuit The data stored in the group is stored in the second latch circuit group as needed. Then, it is possible to compare the data stored in each register unit constituted by the latch circuit. That is, for example, it is possible to easily grasp whether or not the data read / written with respect to a predetermined address changes at intervals of time. Further, since data can be grasped by using an existing boundary scan test circuit in the semiconductor integrated circuit, the circuit area can be reduced.
[0012]
The invention according to claim 4 is the semiconductor integrated circuit according to claim 2 or 3,
It is characterized by further comprising a selection unit that selects and outputs one of the bit data and the detection signal based on the data stored in the observation bit designation register.
[0013]
According to the fourth aspect of the present invention, by changing the data stored in the observation bit designation register, the observer can select and output either bit data or a detection signal according to the situation. .
[0014]
Next, an invention according to claim 5 is the semiconductor integrated circuit according to any one of claims 1 to 4,
An external output unit that externally outputs data stored in the observation address designation register and the observation bit designation register is further provided.
[0015]
According to the fifth aspect of the present invention, since the data stored in the observation address designation register and the observation bit designation register can be output from the external output unit, it is determined whether the observation address data and the observation bit data are correctly set. Can be confirmed.
[0016]
An electronic circuit according to a sixth aspect of the present invention includes a semiconductor integrated circuit according to any one of the first to fifth aspects,
A processor connected to the address bus and the data bus;
It is characterized by having.
[0017]
According to the sixth aspect of the present invention, the observation address data and the observation bit data are output to the semiconductor integrated circuit according to any one of the first to fifth aspects at the stage of initializing the processor, and the normal operation is performed thereafter Can be performed. Therefore, there is no need to execute a debugging program or the like for setting the observation address data and the observation bit data, and the operation verification of the electronic circuit can be performed while the processor operates normally.
[0018]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of a semiconductor integrated circuit and an electronic circuit to which the present invention is applied will be described in detail with reference to FIGS.
[0019]
[First Embodiment]
The first embodiment will be described with reference to FIGS. FIG. 1 is a block diagram showing a configuration of an electronic circuit for the CPU 1 to control the ASIC 2 via the address bus ADRB and the data bus DATB. The CPU 1 outputs signals such as a write enable signal WE, a read enable signal OE, and a chip select signal CS to the ASIC 2 in accordance with instructions such as a program stored in a ROM or the like (not shown). Further, the CPU 1 outputs necessary data to the address bus ADRB and the data bus DATB, and controls the operation of each circuit constituting the electronic circuit. The write enable signal WE and the read enable signal OE are signals for setting the ASIC 2 to the write mode or the read mode, and the chip select signal CS is a signal for starting the operation of the ASIC 2.
[0020]
The ASIC 2 receives a write enable signal WE, a read enable signal OE, and a chip select signal CS from the CPU 1. As a result, the internal circuit of the ASIC 2 operates, and various signals (not shown) are output from the ASIC 2 to peripheral devices and the like. The ASIC 2 includes an access analysis unit 3 and a CPU-I / F circuit 4. The data on the data bus DATB is input to the access analysis unit 3 when the address data on the address bus ADRB matches the address data set in advance. Then, the bit data of the data is output from the access analysis unit 3 to the output terminal TEST. The output terminal TEST is an external output unit that outputs data to the outside of the ASIC 2.
[0021]
FIG. 2 is a block diagram showing an internal configuration of the access analysis unit 3 and the CPU-I / F circuit 4. The access analysis unit 3 includes a comparison unit 32, logics 33 and 34, an output bit selection unit 36, and a register unit 35. The CPU-I / F circuit 4 is an interface circuit accessible from the CPU 1 and includes an observation address designation register 311 and an observation bit designation register 312.
[0022]
The observation address designation register 311 is configured by a flip-flop (hereinafter, referred to as “F / F”) corresponding to the effective address bus width of the address bus ADRB. Then, the observation address data output from the CPU 1 is stored.
[0023]
The observation bit designation register 312 is configured by an F / F for an effective data bus width of the data bus DATB. Then, the observation bit data output from the CPU 1 is stored.
[0024]
Specifically, for example, when the effective address bus width of the address bus ADRB is 8 bits and the effective data bus width of the data bus DATB is 8 bits (D0 to D7), as an example, “FF” is stored in the observation address designation register 311. "Address" is stored, and any one of "0" to "7" is stored in the observation bit data.
[0025]
The comparison unit 32 compares the data on the address bus ADRB with the observation address data stored in the observation address designation register 311. If it is determined that the values are the same, the signal S1 is output. For example, when the address “FF” is stored in the observation address designation register 311 and the data on the address bus ADRB becomes the address “FF”, the comparison unit 32 outputs the signal S1.
[0026]
The logic 33 receives the write enable signal WE and the chip select signal CS. Then, when both signals are active, the signal S2 is output. Note that the timing may be adjusted in the ASIC 2 for the write enable signal WE and the chip select signal CS, and the signals after the timing adjustment may be input to the logic 33 to output the signal S2. Logic 34 receives signals S1 and S2. Then, when both signals are active, the signal S3 is output.
[0027]
The register section 35 is configured by an F / F or the like for the width of the data bus DATB. Data is input to each input terminal of each F / F from each data line of the data bus DATB. The signal S3 is input to the clock terminal CK of each F / F. When the signal S3 becomes active, data on the data bus DATB is input to each F / F, and the data is stored. For example, when the data on the data bus DATB is “FF”, “1” is stored in each F / F configuring the register unit 35.
[0028]
Note that the signal S3 may be used as an enable signal for each F / F configuring the register unit 35, and a clock signal used for the operation of the ASIC 2 may be input to the clock terminal CK. In this case, when the signal S3 becomes active, data on the data bus DATB is input to and stored in each F / F at the rising or falling edge of the clock signal.
[0029]
The output bit selection unit 36 receives the observation bit data stored in the observation bit designation register 312 and the data output from the register unit 35. Then, the bit data selected based on the observed bit data from the data input from the register unit 35 is output from the output bit selection unit 36 to the output terminal TEST as a signal Dn.
[0030]
More specifically, for example, when “0” is stored in the observation bit designation register 312, the output bit selection unit 36 outputs the first bit (D0) bit data of the data input from the register unit 35. Is output as a signal Dn.
[0031]
Next, the circuit operation will be described. First, observation address data and observation bit data are output from the CPU 1 as initial settings before normal operation. The observation address data is stored in the observation address specification register 311, and the observation bit data is stored in the observation bit specification register 312.
[0032]
Thereafter, the CPU 1 performs a normal operation. During the normal operation of the CPU 1, the comparison unit 32 compares the observation address data stored in the observation address designation register 311 with the data on the address bus ADRB. When the data matches, the comparison unit 32 outputs a signal S1. When the write enable signal WE and the chip select signal CS are active, the logic 33 outputs a signal S2. When the signals S1 and S2 become active, the logic 34 outputs a signal S3. Then, the data on the data bus DATB is latched by the register unit 35.
[0033]
The output bit selection unit 36 selects bit data from the data output from the register unit 35 based on the observation bit data stored in the observation bit designation register 312, and outputs the selected bit data to the output terminal TEST as a signal Dn.
[0034]
As described above, the observation address data and the observation bit data can be set before the CPU 1 starts the normal operation. Therefore, the data on the data bus DATB when the data on the address bus ADRB reaches the set address can be grasped without interrupting the normal operation of the CPU 1.
[0035]
In other words, the operation timing of the ASIC or the like is shifted between the normal operation and the operation by the execution of the debugging program. Can be reduced.
[0036]
The semiconductor integrated circuit and the electronic circuit according to the present invention are not limited to the above-described contents, and various changes can be made without departing from the spirit of the present invention.
[0037]
For example, in order to grasp the data stored in the observation address designation register 311, the observation bit designation register 312, and the register unit 35, an output unit for outputting these data to an output terminal may be provided. Thereby, the observation address data and the observation bit data stored in the observation address designation register 311 and the observation bit designation register 312 can be confirmed. Further, data stored in the register unit 35 can be grasped.
[0038]
Next, examples of the present invention will be described. FIG. 3 is a block diagram showing a circuit configuration of the ASIC 200 corresponding to the boundary scan test. The boundary scan test circuit mainly includes a boundary scan register 101, a bypass register 102, an instruction register 103, an option register 104, and a TAP (Test Access Port) controller 105, and has a TDI terminal (test data input terminal) as an input / output terminal. ) 106, a TCK (test clock) terminal 107, a TMS (test mode selector) terminal 108, a TRST (test reset) terminal 109, and a TDO (test data) output terminal 110.
[0039]
The boundary scan register 101 includes boundary scan register cells (hereinafter, referred to as “BSR”) 20a, 20b,... Disposed between the internal circuit and each of the input / output terminals 114 (hereinafter, collectively referred to as “BSR20”). ) Are connected in series, and the event occurring at the input / output terminal 114 can be observed or controlled by the BSR 20. That is, the BSR 20 functions equivalently to the conventional signal detection test probe.
[0040]
The bypass register 102 provides a path for bypassing the signal input from the TDI terminal 106 to the TDO terminal 110 via the shortest path. The instruction register 103 is a circuit that reads and decodes instruction bits and causes the device to execute various functions according to the result. The option register 104 is a circuit in which information for identifying a device and a manufacturer is set. The TAP controller 105 is a sequential circuit that controls the boundary scan register 101 according to signals input from the TCK terminal 107 and the TMS terminal 108.
[0041]
The ASIC 200 further includes an access analysis control unit 40 and a CPU-I / F circuit 4. FIG. 4 is a block diagram showing the configuration of the boundary scan register 101, the access analysis control unit 40, and the CPU-I / F circuit 4.
[0042]
The access analysis control unit 40 includes a comparison unit 32, logics 33 and 34, an output bit selection unit 36, and a clock selection unit 45. Hereinafter, the same components are denoted by the same reference numerals, and description thereof will be omitted.
[0043]
The signal S3 output from the logic 34 and the signals S4 and S5 output from the TAP controller 105 are input to the clock selection unit 45. When the ASIC 200 is in normal operation, the clock selection unit 45 outputs the signals A and B in synchronization with the signal S3. When the boundary scan test operation is being performed, the signals A and B are output in synchronization with the signals S4 and S5.
[0044]
The BSR 20 configuring the boundary scan register 101 latches data on the data bus DATB based on the signal A input from the clock selection unit 45. The latched data is output to the output bit selection unit 36. That is, the BSR 20 is used as a circuit having the same function as the register unit 35 included in the access control unit 3 described in FIG.
[0045]
FIG. 5 is a diagram showing a circuit configuration of the BSR 20a. The BSR 20a includes multiplexers 201 and 204 and latch circuits 202 and 203, and operates according to signals A and B output from the clock selection unit 45 and signals C and D output from the TAP controller 105.
[0046]
First, when the ASIC 200 is operating normally, the signals A and B are output from the clock selector 45 in synchronization with the signal S3. The signal A is input to the clock terminal CK2 of the latch circuit 202, and the signal B is input to the clock terminal CK3 of the latch circuit 203. The I1 terminals of the multiplexers 201 and 204 are connected to one data line of the data bus DATB. Then, according to the signals C and D output from the TAP controller 105, the multiplexers 201 and 204 are set to output the signal input to the I1 terminal.
[0047]
When the signal A is input to the latch circuit 202, the latch circuit 202 latches the data output from the multiplexer 201. Then, the latched data is output to the output bit selection unit 36. That is, the data output from all the BSRs latching the data on the data bus DATB is input to the output bit selection unit 36. The output bit selection unit 36 outputs, from the input data, data selected based on the observation bit data stored in the observation bit designation register 312 to the output terminal as a signal Dn.
[0048]
On the other hand, during the boundary scan test operation, the clock selection unit 45 outputs the signals A and B based on the signals S4 and S5 output from the TAP controller 105. The BSR 20 operates as an original boundary scan register. That is, based on the signal C, the multiplexer 201 outputs data (data input to the I2 terminal) shifted and output from the latch circuit of the preceding BSR. Then, the latch circuit 202 latches data output from the multiplexer 201 in synchronization with the signal A. The latched data is output to the latch circuit 203 and is shifted and output to the subsequent BSR. As described above, by the shift operation by the latch circuit of the BSR 20, the serial signal for circuit test input from the TDI terminal 106 is transmitted to each BSR 20. Then, based on the signal B, the latch circuit 203 latches the data output from the latch circuit 202. The latched data is output to the multiplexer 204. From the multiplexer 204, data input to the I2 terminal according to the signal D is output to the internal circuit. Thus, the internal circuit starts operation by inputting circuit test data.
[0049]
As described above, in the case of the ASIC 200 including the boundary scan test circuit, the data on the data bus DATB can be fetched by using the boundary scan register 101 and desired bit data can be output from the output terminal. Thus, there is no need to newly install a register unit, and the circuit area can be reduced.
[0050]
[Second embodiment]
A second embodiment will be described with reference to FIGS. In the first embodiment, the bit data on the data bus DATB is output to the output terminal TEST according to the observation bit data stored in the observation bit designation register 312. In the present embodiment, however, the output of the register unit 35 is provided. An ASIC that latches data in another register unit, determines whether data output from the two register units have the same value, and outputs the determination result will be described.
[0051]
In the configuration of the electronic circuit according to the second embodiment, the access analyzer 3 of the ASIC 2 of the electronic circuit of FIG. 1 according to the first embodiment is replaced with the access analyzer 5 shown in FIG. The configuration is the same. Therefore, hereinafter, the same components will be denoted by the same reference numerals, and description thereof will be omitted.
[0052]
The register section 37 has the same configuration as the register section 35, and data output from each F / F of the register section 35 is input to an input terminal of each F / F. Specifically, when the signal S3 becomes active, data output from the register unit 35 is input to and stored in each F / F of the register unit 37. Therefore, the register section 35 and the register section 37 are shift registers.
[0053]
Data output from the register units 35 and 37 is input to the change detection unit 38. Then, the respective data are compared with each other, and the result of determining whether or not the data is the same is output as a signal S6.
[0054]
Specifically, for example, the bit data of each of the register unit 35 and the register unit 37 is input to the two-input Exclusive-OR, the output signals of all the two-input Exclusive-OR are input to the OR circuit, and the output of the OR circuit is output. Is signal S6. In this case, if the data output from the register unit 35 and the register unit 37 are of the same value, the signal S6 is “0”, and if the data is of a different value, the signal S6 is “1”.
[0055]
The selection unit 39 receives the signal Dn and the signal S6, and selects one of them based on the observation bit data. Then, the selected signal is output to the output terminal TEST. Specifically, for example, when the data stored in the observation bit designation register 312 is “0” to “7”, the selection unit 39 selects and outputs the signal Dn. On the other hand, when the observation bit data is other than “0” to “7”, the selection unit 39 selects and outputs the signal S6.
[0056]
Next, the circuit operation will be described. First, the CPU 1 outputs observation address data and observation bit data as initial settings before normal operation. Then, the observation address data is stored in the observation address specification register 311, and the observation bit data is stored in the observation bit specification register 312.
[0057]
Thereafter, the CPU 1 performs a normal operation. During the normal operation of the CPU 1, the comparison unit 32 compares the observation address data stored in the observation address designation register 311 with the data on the address bus ADRB. When the data matches, a signal S1 is output. Logic 33 outputs signal S2 when write enable signal WE and chip select signal CS are active. When the signals S1 and S2 become active, the logic 34 outputs the signal S3. Then, the register unit 35 latches the data on the data bus DATB. Then, the stored data is output from the register unit 35. At the same time, the register unit 37 latches the data output by the register unit 35.
[0058]
Then, from the output bit selection unit 36, of the data output from the register unit 35, bit data selected based on the observation bit data stored in the observation bit designation register 312 is output as a signal Dn. On the other hand, the change detection unit 38 compares the data stored in the register unit 35 with the data stored in the register unit 37, and outputs a signal S6 as a comparison result. Then, based on the observation bit data stored in the observation bit designation register 312 by the selection unit 39, either the signal S6 or the signal Dn is selected and output to the output terminal TEST.
[0059]
As described above, the observation address data and the observation bit data can be set as the initial settings before the normal operation of the CPU 1 starts. Thereby, the data on the data bus DATB when the data on the address bus ADRB reaches the set address can be grasped without interrupting the normal operation of the CPU 1.
[0060]
Therefore, the operation timing of the ASIC or the like is shifted between the normal operation and the operation by the execution of the debug program, so that a failure is overlooked, or a wasteful time is increased due to an increase in verification time due to the occurrence of an unnecessary failure. Can be reduced.
[0061]
Next, a case where a boundary scan test circuit built in an ASIC is used as an embodiment of the present invention will be described. Note that the internal configuration of the ASIC described here is the same as the configuration in which the access analysis control unit 40 configuring the ASIC 200 in FIG. 3 is replaced with the access analysis control unit 50 illustrated in FIG.
[0062]
The access analysis control unit 50 includes a comparison unit 32, logics 33 and 34, an output bit selection unit 36, a clock selection unit 45, a change detection unit 38, and a selection unit 39. 7, the BSR 20 configuring the boundary scan register 101 latches data on the data bus DATB based on signals A and B input from the clock selection unit 45. The latched data is output to the output bit selection unit 36 and the change detection unit 38. That is, the BSR 20 is used as a circuit having the same function as the register units 35 and 37 included in the access control unit 5 described above.
[0063]
FIG. 8 is a diagram showing a circuit configuration of the BSR 20a. In FIG. 8, when the ASIC 200 is operating normally, the clock selection unit 45 outputs signals A and B in synchronization with the signal S3. The signal A is input to the clock terminal CK2 of the latch circuit 202, and the signal B is input to the clock terminal CK3 of the latch circuit 203. The multiplexers 201 and 204 are set so as to output the signal input to the I1 terminal by the signals C and D output from the TAP controller 105. The signals input to the I1 terminals of the multiplexers 201 and 204 are bit data on the data bus DATB.
[0064]
Latch circuit 202 latches data output from multiplexer 201 according to signal A. Then, the data stored by the latch circuit 202 is output to the latch circuit 203, the output bit selection unit 36, and the change detection unit 38. Data output from all the BSRs (BSRs 20a, 20b,...) That latch data on the data bus DATB are input to the output bit selection unit 36 and the change detection unit 38.
[0065]
Latch circuit 203 latches data output from latch circuit 202 according to signal B. Then, the data stored by the latch circuit 203 is output to the change detection unit 38. Data output from all the BSRs latching data on the data bus DATB is input to the output bit selection unit 36 and the change detection unit 38.
[0066]
Then, the change detection unit 38 detects the data input from the first-stage latch circuit (the latch circuit 202 of each BSR; the first latch circuit group) constituting the BSR and the data of the second-stage latch circuit (the latch circuit 203 of each BSR; the second latch circuit). And the data input from the latch circuit group). Then, the signal S6 is output from the change detection unit 38 to the selection unit 39 as a comparison result. On the other hand, from the output bit selection unit 36, among the data output from the BSR 20, bit data selected based on the observation bit data stored in the observation bit designation register 312 is output to the selection unit 39 as a signal Dn. . Then, based on the observation bit data stored in the observation bit designation register 312 by the selection unit 39, either the signal S6 or the signal Dn is selected and output to the output terminal.
[0067]
As described above, in the case of the ASIC 200 including the boundary scan test circuit, the data on the data bus DATB can be fetched by using the boundary scan register 101, and the desired bit data can be output from the output terminal. There is no need to install, and the circuit area can be reduced.
[0068]
【The invention's effect】
According to the first aspect of the present invention, it is possible to output bit data on the data bus when the address data on the address bus becomes predetermined address data. Therefore, the bit data on the data bus can be easily grasped. Further, if the observation address data and the observation bit data are set as the initial settings, the bit data on the data bus can be grasped without interrupting the normal operation for the above setting.
[0069]
According to the invention described in claim 2, for example, when data on the data bus when data on the address bus becomes a desired address is stored in the first register as needed, the data is stored in the first register. The obtained data is stored in the second register unit as needed. Then, data stored in each register unit can be compared. That is, for example, it is possible to easily grasp whether or not the data read / written with respect to a predetermined address changes at intervals of time.
[0070]
According to the third aspect of the present invention, for example, when the data on the data bus when the data on the address bus becomes a desired address is stored in the first latch circuit group as needed, the first latch circuit group Is stored in the second latch circuit group at any time. Then, data stored in each register unit can be compared. That is, for example, it is possible to easily grasp whether or not the data read / written with respect to a predetermined address changes at intervals of time. Further, since data can be grasped by using an existing boundary scan test circuit in the semiconductor integrated circuit, the circuit area can be reduced.
[0071]
According to the fourth aspect of the invention, by changing the data stored in the observation bit designation register, the observer can select and output either bit data or a detection signal according to the situation.
[0072]
According to the fifth aspect of the present invention, since the data stored in the observation address designation register and the observation bit designation register can be output from the external output unit, whether or not the observation address data and the observation bit data are set correctly is determined. You can check.
[0073]
According to the sixth aspect of the present invention, the observation address data and the observation bit data are output to the semiconductor integrated circuit according to any one of the first to fifth aspects at the stage of initial setting of the processor, and thereafter the normal operation is executed. can do. Therefore, there is no need to execute a debugging program or the like for setting the observation address data and the observation bit data, and the operation verification of the electronic circuit can be performed while the processor operates normally.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an electronic circuit for a CPU to control an ASIC via an address bus and a data bus.
FIG. 2 is a block diagram showing an internal configuration of an access analyzer and a CPU-I / F circuit according to the first embodiment.
FIG. 3 is a block diagram showing a circuit configuration of an ASIC corresponding to a boundary scan test.
FIG. 4 is a block diagram showing a configuration of a boundary scan register, an access analysis control unit, and a CPU-I / F circuit according to the first embodiment.
FIG. 5 is a diagram illustrating a circuit configuration of an access analysis control unit according to the first embodiment.
FIG. 6 is a block diagram showing an internal configuration of an access analyzer and a CPU-I / F circuit according to the second embodiment.
FIG. 7 is a block diagram showing a configuration of a boundary scan register, an access analysis control unit, and a CPU-I / F circuit according to the second embodiment.
FIG. 8 is a diagram illustrating a circuit configuration of an access analysis control unit according to the second embodiment.
[Explanation of symbols]
1 CPU
2,200 ASIC
3 Access analysis section
32 Comparison section
33, 34 logic
36 Output bit selector
35, 37 Register section
38 Change detector
39 Selector
4 CPU-I / F circuit
311 Observation address specification register
312 Observation bit designation register
101 Boundary scan register
20a, 20b Boundary scan register cell
40, 50 access analysis control unit
45 Clock selector

Claims (6)

観測アドレスデータ及び観測ビットデータが入力可能に構成されていると共に、アドレスバス及びデータバスと接続される半導体集積回路であって、
前記観測アドレスデータをラッチする観測アドレス指定レジスタと、
前記観測ビットデータをラッチする観測ビット指定レジスタと、
前記アドレスバス上のデータと前記観測アドレス指定レジスタに記憶されたデータとを比較し、同一であった場合に比較信号を出力する比較部と、
前記比較部より前記比較信号が出力された場合に、前記データバス上のデータを構成する複数のビットの内、前記観測ビット指定レジスタに記憶されたデータに対応するビットのデータをビットデータとして出力する出力ビット選択部と、
を備えることを特徴とする半導体集積回路。
A semiconductor integrated circuit configured to be able to input observation address data and observation bit data, and connected to an address bus and a data bus,
An observation address designation register for latching the observation address data;
An observation bit designation register for latching the observation bit data,
A comparison unit that compares the data on the address bus with the data stored in the observation address designation register, and outputs a comparison signal when they are the same,
When the comparison signal is output from the comparison unit, data of a bit corresponding to data stored in the observation bit designation register is output as bit data among a plurality of bits constituting data on the data bus. An output bit selection unit,
A semiconductor integrated circuit comprising:
請求項1に記載の半導体集積回路であって、
前記データバスと接続され、前記データバス上のデータを記憶する第1レジスタ部と、
前記第1レジスタ部の出力段に接続され、前記第1レジスタ部の出力するデータを記憶する第2レジスタ部と、
前記第1レジスタ部及び第2レジスタ部がそれぞれ記憶するデータが同一であるか否かを検出して検出信号を出力する変化検出部と、
を更に備えることを特徴とする半導体集積回路。
The semiconductor integrated circuit according to claim 1,
A first register unit connected to the data bus and storing data on the data bus;
A second register unit connected to an output stage of the first register unit and storing data output by the first register unit;
A change detection unit that detects whether the data stored in the first register unit and the data stored in the second register unit are the same and outputs a detection signal,
A semiconductor integrated circuit, further comprising:
請求項1に記載の半導体集積回路であって、
直列に接続された第1ラッチ回路及び第2ラッチ回路を有する複数のバウンダリスキャンレジスタセルを具備したバウンダリスキャンテスト回路と、
前記各バウンダリスキャンレジスタセルの第1ラッチ回路群で記憶されたデータから構成される第1データと、第2ラッチ回路群で記憶されたデータから構成される第2データとが同一であるか否かを検出して検出信号を出力する変化検出部と、
を更に備え、前記比較部より前記比較信号が出力された場合に、前記第1ラッチ回路群は記憶しているデータを出力すると共に前記データバス上のデータを記憶し、前記第1ラッチ回路群が出力したデータを前記第2ラッチ回路群が記憶することを特徴とする半導体集積回路。
The semiconductor integrated circuit according to claim 1,
A boundary scan test circuit including a plurality of boundary scan register cells having a first latch circuit and a second latch circuit connected in series;
Whether the first data composed of the data stored in the first latch circuit group of each of the boundary scan register cells is the same as the second data composed of the data stored in the second latch circuit group A change detection unit that detects the change and outputs a detection signal;
The first latch circuit group outputs the stored data and stores the data on the data bus when the comparison signal is output from the comparison unit; Wherein the data output by the second latch circuit group is stored in the second latch circuit group.
請求項2又は3に記載の半導体集積回路であって、
前記観測ビット指定レジスタに記憶されたデータに基づいて、前記ビットデータ又は前記検出信号の何れか一方を選択して出力する選択部を更に備えることを特徴とする半導体集積回路。
The semiconductor integrated circuit according to claim 2, wherein:
A semiconductor integrated circuit, further comprising: a selection unit that selects and outputs one of the bit data and the detection signal based on data stored in the observation bit designation register.
請求項1〜4の何れか一項に記載の半導体集積回路であって、
前記観測アドレス指定レジスタ及び前記観測ビット指定レジスタに記憶されたデータを外部出力する外部出力部を更に備えることを特徴とする半導体集積回路。
The semiconductor integrated circuit according to claim 1, wherein:
A semiconductor integrated circuit further comprising an external output unit that externally outputs data stored in the observation address designation register and the observation bit designation register.
請求項1〜5の何れか一項に記載の半導体集積回路と、
前記アドレスバス及びデータバスと接続されたプロセッサと、
を備えることを特徴とする電子回路。
A semiconductor integrated circuit according to any one of claims 1 to 5,
A processor connected to the address bus and the data bus;
An electronic circuit, comprising:
JP2002354666A 2002-12-06 2002-12-06 Semiconductor integrated circuit and electronic circuit Pending JP2004184362A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002354666A JP2004184362A (en) 2002-12-06 2002-12-06 Semiconductor integrated circuit and electronic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002354666A JP2004184362A (en) 2002-12-06 2002-12-06 Semiconductor integrated circuit and electronic circuit

Publications (1)

Publication Number Publication Date
JP2004184362A true JP2004184362A (en) 2004-07-02

Family

ID=32755586

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002354666A Pending JP2004184362A (en) 2002-12-06 2002-12-06 Semiconductor integrated circuit and electronic circuit

Country Status (1)

Country Link
JP (1) JP2004184362A (en)

Similar Documents

Publication Publication Date Title
US9401223B2 (en) At-speed test of memory arrays using scan
JP2009059434A (en) Semiconductor integrated circuit
JP3287539B2 (en) Processing system with test mechanism
US5644609A (en) Apparatus and method for reading and writing remote registers on an integrated circuit chip using a minimum of interconnects
JP2007205933A (en) Semiconductor integrated circuit
US20070022343A1 (en) Semiconductor integrated circuit, method for testing semiconductor integrated circuit, and computer readable medium for the same
US7284174B2 (en) Enhanced JTAG interface
US7168004B2 (en) Technique for testability of semiconductor integrated circuit
JP6832787B2 (en) Semiconductor devices and semiconductor device test methods
JP4265934B2 (en) Scan campus circuit, logic circuit including the same, and integrated circuit test method
JP2008520980A (en) Integrated circuit and method for testing a multi-TAP integrated circuit
JP2004212384A (en) Semiconductor integrated circuit device
US7716549B2 (en) Semiconductor apparatus and testing method
JP2005257366A (en) Semiconductor circuit device and scan test method concerning semiconductor circuit
JP2004184362A (en) Semiconductor integrated circuit and electronic circuit
JP5158087B2 (en) Semiconductor integrated circuit device and test method for semiconductor integrated circuit device
JP2004021833A (en) Semiconductor integrated circuit incorporated with self-test function and system comprising it
US20050289421A1 (en) Semiconductor chip
JP4230717B2 (en) Semiconductor test circuit and semiconductor test method
US11984178B2 (en) Methods and devices for flexible RAM loading
US11639962B1 (en) Scalable scan architecture for multi-circuit block arrays
KR100769041B1 (en) Integrated Circuit Device for Test
JP4296055B2 (en) Semiconductor integrated circuit, semiconductor circuit device, and memory macrocell
JP5625241B2 (en) Semiconductor device and test method thereof
JP4526985B2 (en) Test system