This application claims priority of Japanese Patent Application number 2001-356330, filed Nov. 21, 2001.
1. Field of the Invention
The present invention relates to a method and apparatus for applying a design-for-testability (DFT) technique to a logic circuit, and a program for implementing the same.
2. Description of the Related Art
Prior known DFT techniques for logic circuits include one described in a paper by Wada H., Masuzawa, K. Saluja, and Fujiwara, entitled “A non-scan DFT method for data paths to provide complete fault efficiency,” IEICE Transaction D-I, VOL. J82-D-I, No. 7, July 1999. According to this paper, a register transfer level (RTL) circuit description and a DFT library are input to generate an RTL circuit with DFT by incorporating circuits for realizing DFT therein.
The circuits for realizing DFT, each having a register hold function or a pass-through function using a mask element or a bypass circuit, are added, as needed, to each circuit element in order to enable an arbitrary value to be applied from an external input to an input of the circuit element under test and an output value from the circuit element to be propagated to an external output.
In generating the circuit with DFT, it is desired that the area of the circuit to be added to each arithmetic operation unit for easy testability be made as small as possible. An object of the present invention is to reduce the area of the circuit to be added for easy testability.
To solve this problem, according to the present invention, operations contained in a behavioral description are extracted and, for each extracted operation, a decision is made as to whether DFT is to be applied to the operation before expansion or to each of a plurality of circuit elements into which the operation has been expanded, and an RTL description with DFT is generated from the behavioral description in accordance with the thus made decision.
The decision is made, for example, by evaluating the increase in circuit area that would result from applying DFT.
In the prior art, the addition of the circuits for realizing DFT has been implemented, as shown in
Y=|A−B| (see FIG. 2)
is expanded as shown below.
if A>B
then Y=A−B
else
Y=B−A
This corresponds to the circuit shown in
On the other hand, if attention is paid to the operation of
In the present invention, for each operation contained in the behavioral description, a decision is made as to whether the DFT is applied to the operation before expansion or to each of the circuit elements into which the operation has been expanded and, based on the decision thus made, an RTL description with DFT is generated from the behavioral description. This decision is made, for example, by evaluating the increase in circuit area that would result from adding the DFT method.
In
The DFT library and parameter generating unit 34 takes the for-use operation list 32 as an input and, for each operation, makes a decision as to whether the operation is expandable or not; if it is expandable, the area of the circuit to be added, for example, is evaluated for the case where the DFT is applied to the operation before expansion and for the case where the DFT is applied after the expansion and, based on the result of the evaluation, a decision is made as to whether the DFT is to be applied to the operation before expansion or after the expansion. For any operation for which it is determined that the DFT is to be applied before expansion, a parameter 36 indicating that the operation is not to be expanded and information to be added to the DFT library 17 is generated and output. The information to be added to the DFT library includes the operation itself, how the DFT is implemented for the operation, and how the expansion is performed for the operation.
In the example of the circuit for calculating the Manhattan distance, a parameter indicating that Y=diff(A, B) is not to be expanded is generated, and the operation diff(A, B), how its pass-through function is added, and circuit information for expansion are generated as the information to be added to the DFT library 17, as shown in
Turning back to
{+(addition), *(multiplication)}
In behavioral synthesis, a multiplier is usually expanded into a circuit shown in
As a result, the behavioral synthesis unit 12′ generates the RTL description 14′ without expanding the multiplier (Mult. 1), as shown in
In the above example, the behavioral synthesis, the operation analyzing unit, and the DFT library and parameter generating unit have been described as being constructed as separate parts, but the configuration of the invention can also be implemented by incorporating the functions of the operation analyzing unit and the DFT library and parameter generating unit into the behavioral synthesis.
Furthermore, the configuration can also be implemented by changing the behavioral description itself as shown in
(Manhattan distance calculation)
Y=diff(a1, b1)+diff(a2, b2)diff(A, B)=|A−B|
is converted in a block 40 into
(Manhattan distance calculation)
Y=diff(a1, b1)+diff(a2, b2)diff(A, B)=|A−B|
(Algorithm for diff(A, B)) if A>B
then diff(A, B)=A−B
else
diff(A, B)=B−A
and a parameter indicating that diff(A, B) is not to be expanded is generated. The behavioral synthesis unit 12′ generates the RTL description without expanding diff(A, B), as directed by the parameter, and the DFT unit 16′ expands the operation after applying DFT to diff(A, B) by referring to the DFT library 17′.
The DFT method described so far is implemented using a program for causing a computer to execute prescribed processing. The program may be stored on a hard disk connected to the computer, or may be stored on a storage medium such as a CD-ROM and may be read as needed into an internal storage device within the computer by inserting the CD-ROM in a CD-ROM drive; alternatively, the program may be stored in a storage device connected to a network and may be read as needed into an internal storage device within the computer via the network. The method and apparatus of the invention are thus achieved.
As described above, according to the present invention, there is offered the advantageous effect of being able to reduce the area of the circuit to be added for easy testability.
Number | Date | Country | Kind |
---|---|---|---|
2001-356330 | Nov 2001 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5513123 | Dey et al. | Apr 1996 | A |
6106568 | Beausang et al. | Aug 2000 | A |
6311317 | Khoche et al. | Oct 2001 | B1 |
6931572 | Schubert et al. | Aug 2005 | B1 |
Number | Date | Country | |
---|---|---|---|
20030097347 A1 | May 2003 | US |