Method and apparatus for diagnosing a programmable logic device
The diagnostic method for PLDs comprehensively diagnoses failures by configuring a diagnostic circuit to generate alternating signals, addressing limitations in conventional methods and enhancing usability and cost-effectiveness.
Patent Information
- Application Number
- JP2021023212
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-17
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-02-17
AI Technical Summary
Conventional programmable logic device (PLD) diagnostic methods fail to comprehensively diagnose failures and malfunctions, particularly in the programmable areas, due to limitations in diagnosing input/output terminals of lookup tables and flip-flops, and require dedicated diagnostic circuits that reduce the usable area for user logic.
A diagnostic method for PLDs that configures a diagnostic circuit in the programmable area, using a diagnostic signal generation circuit to generate alternating signals, connecting logic blocks in series, and observing output signals to detect failures or defects without reducing the usable area for user logic.
The method allows for comprehensive diagnosis of PLD failures and malfunctions, including stuck-at faults, without the need for dedicated diagnostic circuits, thereby increasing the usable area for user logic and reducing costs.
Smart Images

Figure 0007554686000007 
Figure 0007554686000006 
Figure 0007554686000003
Abstract
Description
[Technical field]
[0001] The present invention relates to the technology of programmable logic devices. [Background technology]
[0002] A programmable logic device (sometimes referred to as PLD) in the broad sense is a circuit device in which user logic can be set (configured, in other words, programmed). A PLD has, for example, an array including a plurality of logic blocks (sometimes referred to as LB) as a logic circuit (in other words, a programmable area) in which user logic can be set. A logic block is configured to have, for example, a look-up table (sometimes referred to as LUT) and a flip-flop (sometimes referred to as FF). A memory (in other words, a storage device) such as a flash memory stores data for setting user logic in the PLD. The data is loaded from the memory into a logic circuit in the PLD, and the user logic is set in the logic circuit of the PLD.
[0003] For the PLD, the manufacturer performs a diagnosis (sometimes called a scan test) to detect any failures or malfunctions and guarantee the quality of the product.
[0004] An example of prior art related to the diagnosis of the above-mentioned PLD is JP-A-9-139667 (Patent Document 1). Patent Document 1 describes that a self-inspection circuit for a programmable logic circuit is capable of performing self-inspection immediately before writing logic information and inspection after mounting on a device, thereby facilitating fault isolation in a programmable logic integrated circuit. Patent Document 1 also describes that normal logic information and check logic information can be selected and programmed into a programmable logic integrated circuit. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Japanese Patent Application Publication No. 9-139667 Summary of the Invention [Problem to be solved by the invention]
[0006] Manufacturers of IC devices such as LSIs and FPGAs perform scan tests (diagnosis) on PLDs to detect defects and ensure the quality of their products. Even if there are no problems during the manufacturing of the PLD, physical stress on the PLD or deterioration over time may cause the PLD to fail or malfunction. At the manufacturing site of products equipped with PLDs, scan tests are also performed on the PLD-equipped products before shipping to inspect their quality. Even after the product is shipped to the user's environment, if a malfunction occurs in the PLD, it is necessary to determine whether the malfunction is due to a physical failure of the PLD or simply a design defect. In such cases, scan tests may be performed on the PLD.
[0007] In the diagnosis of the PLD, it is desirable to be able to diagnose the programmable area (logic circuit) of the PLD more comprehensively. In a certain conventional PLD, the majority of the area in the device is occupied by logic blocks. The logic blocks are mainly composed of lookup tables and flip-flops. The conventional PLD diagnosis method does not realize comprehensive diagnosis down to the level of the input / output terminals of the lookup tables and flip-flops in the logic blocks.
[0008] In particular, the positions of the input / output terminals used by a lookup table change each time depending on the user logic that constitutes the table. Therefore, in the conventional PLD diagnosis method, it is possible that all of the input / output terminals used when configuring the user logic, which is the normal operation circuit that should be diagnosed, cannot be inspected and diagnosed. In other words, for example, if one of the input terminals of a lookup table used in the normal operation circuit has a stuck-at fault (a fault in which the value is fixed to 0 or 1), the stuck-at fault of that input terminal cannot be detected depending on the configuration of the diagnosis circuit.
[0009] For example, in the PLD diagnosis technology of Patent Document 1, only the flip-flop portion in the logic block can be diagnosed due to the configuration of the diagnosis circuit (e.g., a configuration of a shift register, etc.). Conventional PLD diagnosis technology cannot perform comprehensive fault diagnosis for the portion of the logic circuit in which the user logic is configured (in other words, the programmable area). In the conventional technology example, in each logic block which is a logic circuit, only the specific input signal line used in the user logic among the multiple input signal lines of the lookup table is diagnosed, and the other input signal lines are not diagnosed.
[0010] Furthermore, in conventional PLD diagnostic techniques including Patent Document 1, it is necessary to implement a dedicated circuit for diagnosis (sometimes referred to as a diagnostic circuit) in the PLD. For example, in order to diagnose the user logic, which is a normal operation circuit, in the PLD, it is necessary to implement a circuit section for generating a diagnostic signal (in other words, a pattern) and a circuit section for determining and outputting the diagnostic result. In this case, it is also necessary to design an efficient diagnostic signal and a circuit for the diagnostic circuit. In addition, in this case, the area that can be used for the original user logic in the programmable region is reduced by the amount of the implementation of the diagnostic circuit.
[0011] An object of the present invention is to provide a technique for diagnosing PLDs that can more comprehensively diagnose failures and malfunctions in PLDs. [Means for solving the problem]
[0012] A representative embodiment of the present invention has the following configuration. The embodiment is a programmable logic device diagnostic method for diagnosing a fault or malfunction of a programmable logic device, the programmable logic device having a plurality of logic blocks in a programmable area, each logic block in the plurality of logic blocks having a lookup table having a plurality of input signal lines and one output signal line, and a flip-flop connected to a stage subsequent to the lookup table, the programmable logic device diagnostic method has a diagnostic step of configuring the diagnostic circuit in the programmable area by loading diagnostic data for configuring a diagnostic circuit into a configuration memory of the programmable logic device at the time of diagnosis and executing diagnosis, the diagnostic circuit having a diagnostic signal generating circuit that generates a signal repeating 0 and 1 as a diagnostic signal, and a plurality of logic blocks connected in series, one output signal line of each logic block being connected to a plurality of input signals of a logic block in a next stage, and a logic block chain connected to a signal line of a first logic block of the logic block chain, the diagnostic signal output from the diagnostic signal generation circuit being input to an input signal line of a first logic block of the logic block chain, and an output signal line of a last logic block of the logic block chain being connected to an output terminal of the programmable logic device, and the diagnosis step includes a first step of configuring an equivalent circuit of NAND or NOR in the lookup table of each logic block of the logic block chain, a second step of inputting the diagnostic signal to the first logic block of the logic block chain, a third step of observing an output signal from an output terminal of the programmable logic device, and a fourth step of determining that there is no fault or malfunction in the logic block chain if the observed signal value is a signal value that repeats 0 and 1, and determining that there is a fault or malfunction in the logic block chain if the observed signal value is not a signal value that repeats 0 and 1. Effect of the Invention
[0013] According to a representative embodiment of the present invention, the PLD diagnosis technique can diagnose PLD failures and malfunctions more comprehensively. Problems, configurations, effects, etc. other than those described above will be described in [Mode for Carrying Out the Invention]. [Brief description of the drawings]
[0014] [Figure 1] 1 shows an example of the configuration of a PLD diagnostic system (including a PLD-mounted board) compatible with a PLD diagnostic method according to a first embodiment of the present invention. [Diagram 2] In the first embodiment, the configuration of a PLD is shown. [Diagram 3] In the first embodiment, the configuration of a logical block (LB) is shown. [Figure 4] 2 shows a flow of a PLD diagnosis method according to the first embodiment. [Diagram 5] In the first embodiment, a configuration example of a diagnostic signal generating section in the first method will be shown. [Figure 6] In a modification of the first embodiment, a configuration example of a diagnostic signal generating section in the second method is shown. [Figure 7] In the first embodiment, a more detailed configuration example of a PLD is shown. [Figure 8] In the first embodiment, a more detailed configuration example of a logical block (LB) will be shown. [Figure 9] In the first embodiment, an example of the settings of the configuration memory for realizing a NAND or NOR configuration will be shown. [Figure 10] In the first embodiment, a configuration example of a logic block (LB) for realizing a NAND or NOR configuration will be shown. [Figure 11] In a modification of the first embodiment, a configuration example of a logic block (LB) in a case where other wirings are also diagnosed will be shown. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. In the drawings, the same parts are generally given the same reference numerals, and repeated explanations will be omitted. In the drawings, the representation of each component may not represent the actual position, size, shape, range, etc., in order to facilitate understanding of the invention, and the present invention is not necessarily limited to the position, size, shape, range, etc. disclosed in the drawings.
[0016] <Embodiment 1> A PLD diagnostic method and the like according to a first embodiment of the present invention will be described with reference to Figures 1 to 10. The PLD diagnostic method of the first embodiment shown in Figure 1 and the like is a method in which, in a diagnostic system including a PLD-mounted board 10, a diagnostic configuration (setting of a diagnostic circuit) is performed at the time of diagnosis for a PLD 1 that is an object to be diagnosed, and a diagnostic result is obtained from an output signal. The PLD diagnostic device of the first embodiment corresponds to a system including the PLD-mounted board 10 of Figure 1, and performs operations and processing according to the PLD diagnostic method of the first embodiment.
[0017] [PLD diagnostic system] FIG. 1 shows the configuration of a PLD diagnostic system corresponding to the PLD diagnostic method of the first embodiment. In other words, this PLD diagnostic system is a PLD diagnostic device. This PLD diagnostic system has a PLD-mounted board 10, which is a board on which a PLD1 is mounted, and a waveform observation device 16 connected to the PLD-mounted board 10, which are operated and used by a user U. The user U is a diagnostician in a company that manufactures and diagnoses the PLD1, in other words, an operator. This PLD diagnostic system has a function of diagnosing the PLD1, which is a diagnostic target, by the PLD-mounted board 10, which is a board that is a diagnostic execution object (subject). The PLD-mounted board 10 executes processing according to the PLD diagnostic method of the first embodiment based on the operation by the user U. The user U operates and uses this PLD diagnostic system to perform diagnostic work on the PLD1. This PLD diagnostic system accepts operation inputs (e.g., instructions, settings, etc.) from the user U via an input / output interface (such as an input / output device or user interface), and outputs a diagnostic state, diagnostic results, etc. to the user U.
[0018] PLD1 is an object to be diagnosed, and is a PLD of a certain type (i.e., a type having an LUT and FF). In detail, there are various types of PLDs manufactured by various vendors, and the types differ in terms of implementation details, performance, etc. Examples of the types of PLDs from each vendor include differences in the arrangement and size of logic circuits, the number of input signal lines of the LUT, etc. The PLD diagnosis method of the first embodiment can be similarly applied to these various PLDs. PLD1 includes a configuration memory 1M and a logic block, etc., which will be described later.
[0019] The PLD-mounted board 10 is an integrated circuit board on which the PLD1 to be diagnosed is mounted, in other words, an integrated circuit board to which the PLD1 is connected, and is composed of an LSI, etc. The PLD-mounted board 10 includes the PLD1, a configuration ROM 11, a circuit data selection switch 12, a clock supplier 13, a display 14 such as an LED, an observation terminal (in other words, an output terminal) 15, and signal lines connecting them, etc.
[0020] The configuration ROM 11 stores data for configuring the PLD 1. The data includes normal operation circuit data 11A and diagnostic data 11B. The normal operation circuit data 11A is data for configuring a normal operation circuit (in other words, user logic). The diagnostic data 11B is data for configuring a diagnostic circuit. The diagnostic data 11B includes NAND version diagnostic circuit data 11C and NOR version diagnostic circuit data 11D. The NAND version diagnostic circuit data 11C is data used when performing a NAND version diagnosis (steps S1 to S5 in FIG. 4) to be described later, and the NOR version diagnostic circuit data 11D is data used when performing a NOR version diagnosis (steps S7 to S11 in FIG. 4) to be described later, and these constitute one set. A company performing the diagnosis stores the diagnostic data 11B in the configuration ROM 11 of the PLD-mounted board 10 in advance.
[0021] A circuit data selection switch 12 is connected to the configuration ROM 11. The circuit data selection switch 12 switches which of the data in the configuration ROM 11 is used for the configuration of the PLD 1 according to an operation input by a user U. Specifically, the circuit data selection switch 12 is switched so that normal operation circuit data 11A is selected during normal (non-diagnostic) operation, and diagnostic data 11B is selected during diagnosis. Data selected by the circuit data selection switch 12 from the configuration ROM 11 is loaded (in other words, expanded, written, stored) into the configuration memory 1M in the PLD 1 as circuit data (in other words, configuration data) c1 via a signal line.
[0022] When normal operation circuit data 11A is selected by the circuit data selection switch 12, the normal operation circuit data 11A is loaded into the configuration memory 1M. This configures a normal operation circuit in the programmable area of the PLD 1. When diagnostic data 11B (e.g., NAND version diagnostic circuit data 11C) is selected by the circuit data selection switch 12, the diagnostic data 11B (e.g., NAND version diagnostic circuit data 11C) is loaded into the configuration memory 1M. This configures a diagnostic circuit in the programmable area of the PLD 1.
[0023] In addition, the user U may operate the circuit data selection switch 12 directly, or the user U may indirectly operate and set the circuit data selection switch 12 through operation from a device / computer system such as a PC that is communicatively connected to the PLD-mounted board 10.
[0024] Furthermore, a clock c2 may be supplied to the PLD1 from a clock supplier 13 provided on the PLD-mounted substrate 10. In one method of the PLD diagnosis method of the first embodiment (see FIG. 5 described later), the clock c2 is used to generate a diagnosis signal for diagnosing the PLD1. The PLD-mounted substrate 10 includes, for example, a crystal oscillator as the clock supplier 13 that is a supply source of the clock signal. This clock signal c1 is supplied to each component of the PLD-mounted substrate 10 and each component of the PLD1.
[0025] During diagnosis, the PLD1 has a scan-out signal c3 as an output signal. This scan-out signal c3 is output to the display 14 and the observation terminal 15 through a signal line. Either the display 14 or the observation terminal 15 may be used to observe the scan-out signal c3, which is an output signal. The display 14 is, for example, an LED lamp, and displays according to the signal value of the scan-out signal c3. For example, the display 14 is turned off when the signal value of the scan-out signal c3 is 0, and turned on when the signal value is 1. The display state of this LED lamp represents the output signal value. By visually observing the display state of this display 14, the user U1 can recognize the state of the signal value of the scan-out signal c3, and can distinguish between a 01 repeat signal and a 0 degenerate signal, which will be described later, and the like.
[0026] A waveform observation device 16 is connected to the observation terminal 15 via a probe (signal line or communication line) outside the PLD-mounted board 10. The waveform observation device 16 is composed of an oscilloscope or the like, and displays the scan-out signal c3 from the observation terminal 15 as a waveform on a screen. By visually viewing the waveform displayed on the screen of the waveform observation device 16, a user U1 can recognize the state of the signal value of the scan-out signal c3.
[0027] The observation of the output signal may be performed not only by the waveform observing device 16 but also by using a screen such as a liquid crystal display of a computer system such as a PC connected to the PLD-mounted board 10 for communication. A graphical user interface (GUI) for diagnosis may be provided on the screen such as the liquid crystal display of the waveform observing device 16 or the PC. For example, the GUI on the screen may display not only the signal value and waveform of the scan-out signal c3 but also information such as the ID of the object to be diagnosed, date and time, diagnosis type (e.g., before shipment / after shipment), person diagnosing (user U), diagnosis status message (e.g., "diagnosis started" / "diagnosis in progress" / "diagnosis completed"), diagnosis time, and diagnosis result (presence or absence of failure / failure and details).
[0028] In display 14 and waveform observation device 16, the display state changes according to the output signal value being 0 or 1. For example, when PLD 1 is normal, if the output signal value is a repetitive signal of 0 and 1, the LED lamp in display 14 blinks at a constant cycle. If PLD 1 has a failure or malfunction, the output signal value becomes, for example, a 0 degenerate signal, and the LED lamp in display 14 is fixed to an unlit state. Therefore, from the difference in these display states, user U can determine whether or not PLD 1 has a failure or malfunction.
[0029] In addition, in order to cope with the case where the output signal repeats 0 and 1 at high speed, the display output on the display 14 or the like may be adjusted to have a low frequency output signal so that the user U1 can easily visually confirm it. As described above, in this PLD diagnosis method, the user U1 can visually determine the observation and monitoring of the output signal during diagnosis. In particular, when the display 14 such as an LED is used, there is no need to provide an external device on the PLD-mounted board 10, and diagnosis can be achieved at low cost.
[0030] 1, a configuration ROM 11 is provided on the PLD-mounted board 10 as a memory for storing configuration data such as a flash memory in addition to the PLD 1. As a modification, a memory for storing such configuration data may be provided within the PLD 1.
[0031] [Timing of diagnosis] In the PLD diagnosis method of the first embodiment, the timing for diagnosing the PLD 1 may be, for example, as follows. This diagnosis (in other words, a scan test or the like) can basically be performed at any timing. The state of the PLD-mounted device 10 can be roughly divided into the following phases.
[0032] (1) System operation phase: The system operation phase is a phase in which the PLD1 is operated with a normal operation circuit (user logic) configured. A user U sets the circuit data selection switch 12 in advance so that the normal operation circuit data 11A is selected as the configuration data c1 in FIG. 1. When the power supply of the PLD-mounted board 10 is turned on, the normal operation circuit data 11A is loaded from the configuration ROM 11 to the configuration memory 1M of the PLD1 as the configuration data c1 according to the setting of the circuit data selection switch 12. This configures the normal operation circuit in the programmable area of the PLD1. In addition, a clock c2 is supplied to the PLD1 from the clock supplier 13. The normal operation circuit of the PLD1 starts operating based on the clock c2. After the start of operation, if a malfunction occurs in the PLD1 during operation, the system transitions to the following diagnosis phase.
[0033] (2) Diagnostic Phase: The diagnostic phase is a phase in which diagnosis is performed with a diagnostic circuit configured in the PLD1. After turning off the power to the PLD-mounted board 10, the user U sets the circuit data selection switch 12 so that the diagnostic circuit data 11B (for example, first the NAND version diagnostic circuit data 11C, then the NOR version diagnostic circuit data 11D) is selected as the configuration data c1 in FIG. 1. If observation and diagnosis are to be performed using a waveform observation device 16, the user U connects the waveform observation device 16 to the observation terminal 15 of the PLD-mounted board 10, and sets the device in a state in which the scan-out signal c3 output from the PLD1 can be monitored and observed. If the user U performs observation and diagnosis by visually checking the blinking of the display 14, the waveform observation device 16 is not necessary.
[0034] After that, the user U turns on the power supply of the PLD-mounted board 10. As a result, the diagnostic circuit data 11B (for example, the NAND version diagnostic circuit data 11C) is expanded as the configuration data c1 from the configuration ROM 11 to the configuration memory 1M of the PLD1, and a diagnostic circuit (for example, a NAND version diagnostic circuit) is configured in the programmable area. As a result, the diagnosis of the PLD1 on the PLD-mounted board 10 is automatically started. The user U observes the diagnostic waveform corresponding to the scan-out signal c3 on the screen of the waveform observation device 16, for example. Then, the user U judges whether there is a defect in the PLD1 (particularly in the programmable area) or a logic defect in the normal operation circuit, etc., from the state of the diagnostic waveform, and isolates the defect. Following the diagnosis of the NAND version, the diagnosis of the NOR version is similarly performed. When the diagnosis of the NAND version and the diagnosis of the NOR version are completed as a set, the diagnosis of the PLD1 is completed.
[0035] [PLD] FIG. 2 shows an outline of the internal configuration of the PLD 1. The PLD 1 has a logic block chain (sometimes referred to as LBC) 110, a diagnostic signal generator 101, and an output terminal 102. The logic block chain (LBC) 110 is configured by a series connection of a plurality of logic blocks (LBs) 100. The LBC 110 is a chain that connects all the LBs 100 to be diagnosed. In the example of FIG. 2, the LBC 110 is configured by a series connection of L LBCs such as LBC#1 to LBC#L.
[0036] The diagnostic signal generating unit 101 is a part configured for diagnosis using components in the existing PLD1, and is a part of the diagnostic circuit. Data for configuring the diagnostic signal generating unit 101 is included as a part of the diagnostic data 11B. In an example of this PLD diagnostic method, the diagnostic signal generating unit 101 is configured as a diagnostic signal generating circuit using some LBs in the existing PLD1, as will be described later. In this PLD diagnostic method, the diagnostic signal generating unit 101 configured in the PLD1 generates a diagnostic signal d1, which is a signal for diagnosis, and inputs it to the LBC 110 at the time of diagnosis. The diagnostic signal d1 is a signal (logical value) that repeats 0 and 1 while alternately inverting ("010101..."), and may be described as a 01 repeat signal, an inverted signal, or the like for the sake of explanation. At the time of diagnosis, the diagnostic signal generating unit 101 outputs the generated diagnostic signal d1 to the LBC 110 to be diagnosed. The diagnostic signal d1 is input to the first LB 100 of the LBC 110.
[0037] As shown in the figure, each LB 100 of the LBC 110 has multiple input signal lines 111 and one output signal line 112. One output signal line 112 of a certain LB 100 is directly connected to multiple input signal lines 111 of the LB 100 in the next stage. Note that the input signal lines correspond to input terminals and input signals, and the output signal lines correspond to output terminals and output signals.
[0038] The last LB100 of the LBC100 is connected to the output terminal 102 of the PLD100. The output signal d2 from the LBC100 is output as the scan-out signal c3 in Fig. 1 through the output terminal 102. The output signal d2 and the scan-out signal c3 are, in other words, diagnostic output signals, observation signals, etc. This output signal d2 becomes a 01 repeating signal, similar to the content of the diagnostic signal d1 at the time of input, when the LBC110 is normal, that is, when there are no failures or malfunctions.
[0039] On the other hand, if there is a failure or malfunction in the LBC 110, this output signal d2 is no longer a 01 repeating signal. That is, in that case, this output signal d2 is a signal that is fixed to a signal value (logical value) of either 0 or 1 from a certain point in time, in other words, a stuck-at-0 signal or a stuck-at-1 signal. Therefore, the user U, who is the diagnostician, can determine the presence or absence of a failure or malfunction in the target LBC 110 (corresponding PLD 1) by monitoring and observing the scan-out signal c3, which is the output signal d2, with a waveform observation device 16 or the like and determining which state the signal content is in.
[0040] If the diagnosis result indicates that there is a failure or defect in the LBC110 (corresponding PLD1), the manufacturer will take measures to address the failure or defect, such as replacing the PLD1, or identifying the faulty LB100 and setting the programmable area so that the faulty LB100 is not used.
[0041] As shown in FIG. 2, in the LBC110 configured for diagnosis, one output of the LB100 in a certain stage is branched and connected to all of the multiple inputs of the LB100 in the next stage (multiple inputs of the LUT described later). With such a connection of the LBC110 and the LUT configured with a NAND or NOR as an equivalent circuit described later, the LUT of each LB100 functions as a NOT gate (inverted logic). Each LB100 in all LB100 of the LBC110 outputs a signal (e.g., 1) that is an inversion of a signal (e.g., 0) received from the LB100 in the previous stage every clock cycle. The LBC110 repeatedly inverts the value of the signal (diagnosis signal d1) flowing through the multiple LB100 between 0 and 1 for each LUT.
[0042] In an LUT with NAND set, if even one of the input signals to the multiple input terminals of the LUT degenerates to 0, the signal value will not change to 0 even if a signal value of 1 is received from the previous stage LB 100. Also, in an LUT with NOR set, if even one of the input signals to the multiple input terminals of the LUT degenerates to 1, the signal value will not change to 1 even if a signal value of 0 is received from the previous stage LB 100.
[0043] If there is a stuck-at fault in any of the multiple inputs of the LUT, the LUT of each LB100 will no longer function as a NOT gate. Therefore, the output signal d2 based on the diagnostic signal d1 will be stuck-at output data (a stuck-at-0 signal or a stuck-at-1 signal). Therefore, by observing the output signal d2, it is possible to determine whether or not there is a failure or malfunction in the LBC110 of the PLD1.
[0044] [LB] 3 shows a schematic configuration of each LB 100 of the LBC 110. The LB 100 includes a look-up table (LUT) 2 whose input side is connected to a plurality of input signal lines 111, a flip-flop (FF) 5 whose input side is connected to one output signal line of the LUT 2, and signal lines connecting them. In other words, the LUT 2 has a plurality of input signal lines 111 and one output signal line. One output signal line of the FF 5 corresponds to one output signal line 112 of the LB 100.
[0045] At the time of diagnosis, the LUT 2 is configured as an equivalent circuit with either a NAND 21 or a NOR 22. These are configured with the above-mentioned NAND version diagnostic circuit data 11C or NOR version diagnostic circuit data 11D.
[0046] [PLD diagnosis method flow] Fig. 4 shows a flow of the PLD diagnostic method of the first embodiment. This flow includes automatic processing and operations by the PLD diagnostic system of Fig. 1, and operations and operations by a user U who is a diagnostician. This flow is performed at the above-mentioned diagnostic execution timing and diagnostic phase. This flow has steps S1 to S15.
[0047] First, in step S1, a user U selects and sets circuit data selection switch 12 to use NAND version diagnostic circuit 11C. For example, user U performs this setting by operating circuit data selection switch 12. As an example of the operation and implementation of circuit data selection switch 12, a button or lever may be used to manually switch between normal mode and diagnostic mode.
[0048] In step S2, the power supply of the PLD-mounted board 10 including the PLD 1 is turned on. For example, a user U turns on the power button of the PLD-mounted board 10. This starts up the PLD-mounted board 10. In this PLD diagnosis method, the PLD-mounted board 10 performs a free-running operation after being powered on, and automatically executes a diagnosis.
[0049] In step S3, the PLD-mounted board 10 loads the NAND version diagnostic circuit data 11C in the configuration ROM 11 as circuit data c1 into the configuration memory 1M of the PLD1 based on the setting in step S1. This configures a NAND version diagnostic circuit in the programmable area of the PLD1. That is, at this time, the diagnostic signal generating unit 101 in FIG. 2 is configured, and the NAND 21 is configured in the LUT2 in FIG. 3 in each LB 100 in the LBC 110. Based on this configuration, the NAND version diagnostic process is automatically started and executed.
[0050] During the diagnosis time, the diagnostic signal d1 generated by the diagnostic signal generating circuit 101 in Figure 2 is input to the LBC 110, and after passing through each LB 100, an output signal d2 representing the diagnosis status of the NAND version is output from the last stage, and becomes the scan-out signal c3.
[0051] In step S4, the scan-out signal c3 from the observation terminal 15 is monitored and observed for a predetermined time or more from the start of the diagnosis. For example, the diagnostic waveform of the scan-out signal c3 is observed on the screen of the waveform observation device 16. In step S5, it is determined whether the repetition of 0 and 1 is normal for the signal value of the scan-out signal c3, which is an output signal. If it is normal (Y), that is, if the signal value is a repetition of 0 and 1, the process proceeds to step S6. If it is not normal (N), that is, if the signal value is not a repetition of 0 and 1, the process proceeds to step S14. The above-mentioned case of not being normal (N) is, for example, when the signal value becomes a signal value of successive 0s (a signal stuck at 0) or a signal value of successive 1s (a signal stuck at 1). As described above, the case of not being normal (N) roughly suggests the presence of a failure or malfunction, but a detailed determination result is output in steps S12 to S14 described later.
[0052] In step S6, the power supply to the PLD-mounted board 10 is temporarily turned off. Next, in step S7, the circuit data selection switch 12 is selected and set to use the NOR type diagnostic circuit 11D. For example, the user U1 operates the circuit data selection switch 12 to make this setting. In step S8, the power supply to the PLD-mounted board 10 is turned on again.
[0053] In step S9, based on the setting in step S7, the NOR diagnostic circuit data 11D in the configuration ROM 11 is loaded as circuit data c1 into the configuration memory 1M of the PLD1. This configures a NOR diagnostic circuit in the programmable area in the PLD1. That is, the diagnostic signal generator 101 in FIG. 2 is configured, and in each LB 100 in the LBC 110, the NOR 22 in the LUT 2 in FIG. 3 is configured. Based on this configuration, the NOR diagnostic process is automatically started and executed.
[0054] During the diagnosis time, the diagnosis signal d1 generated by the diagnosis signal generation circuit 101 in FIG. 2 is input to the LBC 110, and an output signal d2 indicating the diagnosis state in the NOR version is output from the last stage and becomes the scan-out signal c3.
[0055] In step S10, the scan-out signal c3 from the observation terminal 15 is monitored and observed for a predetermined time or longer from the start of the diagnosis. In step S11, it is determined whether the signal value of the scan-out signal, which is an output signal, is normal in that it repeats 0 and 1. If it is normal (Y), that is, if the signal value is a repetition of 0 and 1, proceed to step S12. If it is not normal (N), that is, if the signal value is not a repetition of 0 and 1, proceed to step S13.
[0056] Step S12 is a diagnostic judgment, and one of the detailed diagnostic results is that there is no device malfunction caused by a stuck-at fault in the LB100. In other words, this means that no "stuck-at-1 fault" or "stuck-at-0 fault" has occurred in any of the LB100s in the LBC110 of this PLD1. A "stuck-at-1 fault" is a fault in which a signal value is fixed (stuck) at 1. A "stuck-at-0 fault" is a fault in which a signal value is fixed (stuck) at 0.
[0057] Step S13 is a diagnosis judgment, and one of the details of the diagnosis result is that a "stuck-at-1 fault" has occurred in any of the LBs 100. Also, step S14 is a diagnosis judgment, and one of the details of the diagnosis result is that a "stuck-at-0 fault" has occurred in any of the LBs 100.
[0058] Steps S12, S13, and S14 are followed by step S15. Step S15 marks the end of the diagnosis, which means that isolation of the malfunction of the PLD 1 has been completed. As described above, in the PLD diagnosis method of the first embodiment, it is possible to isolate the normality / malfunction of the target PLD 1 into the diagnosis results (corresponding failure / malfunction state) as in steps S12, S13, and S14.
[0059] The minimum time required to diagnose the PLD 1 (the predetermined time in steps S4 and S10) can be estimated by [clock cycle]×[number of LBs] in the PLD-mounted board 10 including the diagnostic circuit. Note that the above process flow is an example in which a step of diagnosing the NAND version is provided first, and then a step of diagnosing the NOR version, but the process flow is not limited to this and may be in the reverse order.
[0060] [Diagnostic signal generator (1)] 5 shows a diagnostic signal generating circuit 101A as a configuration example of the diagnostic signal generating unit 101 in the first embodiment. This configuration example is also referred to as a first method. This configuration example of the first method uses an external clock supply. The diagnostic signal generating circuit 101A receives and uses the clock signal c2 from the clock supplier 13 in FIG. 1 described above, and does not generate a clock signal within the diagnostic signal generating circuit 101A.
[0061] This diagnostic signal generating circuit 101A is connected to the front stage of the LB 100 at the head of the LBC 110. This diagnostic signal generating circuit 101A is mainly configured using one LB 501. The LB 501 of this diagnostic signal generating circuit 101A includes an LUT 502 and a FF 505. The LUT 502 has a plurality of input signal lines 504, and one output signal line 503 is connected as an input signal line of the FF 505. The output signal line 506 of the FF 505 outputs the diagnostic signal d1. The LB 501 of this diagnostic signal generating circuit 101A is different from each LB 100 of the LBC 110 in that the output signal line 506 of the FF 505 is connected as shown in the figure through a signal line 507 so as to return to the plurality of input signal lines 504 of the LUT 502 and form a loop. The FF 505 receives the output signal from the output signal line 503 of the LUT 502 and a clock signal CLK corresponding to the clock signal c3 input from the outside at an input terminal 508, and holds the signal value.
[0062] [Diagnostic signal generator (2)] 6 shows a diagnostic signal generating circuit 101B as a configuration example of diagnostic signal generating unit 101 in a modification of the first embodiment. This configuration example is also referred to as a second method. This configuration example of the second method does not require an external clock supply, and a clock signal is generated within this diagnostic signal generating circuit 101A. When this second method is applied, clock supplier 13 is not required on PLD-mounted board 10.
[0063] This diagnostic signal generation circuit 101B is connected to the front stage of the first LB 100 of the LBC 110. This diagnostic signal generation circuit 101B is configured as a ring oscillator circuit using an odd number (m) of LUTs. This diagnostic signal generation circuit 101B is mainly configured using a plurality (m) of LBs 601 {601-1 to 601-m}. Each LB 601 of this diagnostic signal generation circuit 101B includes an LUT 602. The LUT 602 has a plurality of input signal lines 604 and one output signal line 606, and the one output signal line 606 is connected as an input signal line 604 of the LUT 602 of the LB 601 of the next stage.
[0064] The output signal line 606 of the LUT 602 of the last stage LB 601-m outputs the diagnostic signal d1 and the clock signal CLK. The output signal line 606 of the LUT 602 of the last stage LB 601-m is connected as shown through signal line 607 to loop back to the multiple input signal lines 604 of the first stage LB 601-1.
[0065] This diagnostic signal generating circuit 101B is capable of adjusting the frequency of the diagnostic signal d1 according to the number of linked LBs 100 (corresponding LUTs 602).
[0066] [PLD configuration example] 7 shows a more detailed configuration example of a general PLD, and the PLD1 of the type to be diagnosed in the first embodiment also has such a configuration as a basis. As shown in the figure, this PLD has a plurality of LBs 701 (corresponding LBs 100) arranged as a two-dimensional array. Around the LBs 701, wiring 706 (vertical and horizontal rows shown by three lines in this example) is connected through wiring 705 (shown by one line in this example) and a wiring connection box (CB) 704. The wiring 706 (vertical and horizontal rows) through the wiring connection box (CB) 704 are connected to each other via a wiring switch box (SB) 703. In addition, an input / output block (IOB) 702 is also provided and connected to the wiring connection box (CB) 704 on the outer periphery of the wiring of the PLD substrate 700.
[0067] In this PLD, LBs 701 can be connected together like a chain based on wiring control in a wiring connection box (CB) 704 and a wiring switch box (SB) 703 to configure an LBC. In this example, an LBC 710 is configured as shown by the arrow. The LBC 110 in Figure 2 is configured based on the above mechanism.
[0068] [LB configuration example] FIG. 8 shows a more detailed configuration example of a general LB, and the LB100 with such a configuration is used in the first embodiment. FIG. 8 corresponds to a more detailed configuration example of FIG. 3. The LB100 in FIG. 8 has an LUT2, a FF5, a selector 4, and signal lines (in other words, wiring) connecting them. The LUT2 has a number of input terminals 801 (e.g., a, b, . . ., c) corresponding to a number of input signal lines 111 (e.g., a1, a2, . . ., am) of the LB100. A signal line (e.g., signal y) from the output terminal 802 of the LUT2 serves as the output signal line 112 of the LB100, and is branched to serve as one input of the selector 4. The selector 4 uses one input signal (e.g., signal d) of the LB100 as the other input. The selector 4 is an output data selector, and outputs a signal selected from one input (signal y) and the other input (signal d). The output signal 803 of the selector 4 (i.e., the signal y or the signal d) is one of the input signals of the FF5. The clock signal CLK of the input of the LB100 is also input to the FF5. The output signal of the FF5 (e.g., the signal q) is another output signal of the output signal line 112 of the LB100.
[0069] [NAND or NOR setting for LB] 9 and 10 show a more specific example of the configuration when configuring an equivalent circuit of a NAND (negative logical product) 21 or a NOR (negative logical product) 22 in the LB 100 during diagnosis of the PLD 1. First, FIG. 9(a) shows the memory setting values when realizing the configuration of NAND 21. This memory corresponds to the configuration memory 1M in FIG. 1, and corresponds to the configuration memory 3 (3A) in FIG. 10. In this example, the setting value of this configuration memory 3 (3A) is "11111110" (only the last bit is 0) for an 8-bit configuration.
[0070] 9(b) shows the setting values of the configuration memory 3 (3A) when implementing the configuration of NOR 22. In this example, the setting value of this configuration memory 3 (3A) is "10000000" (only the first bit is 1). These setting values of the configuration memory 3 (3A) are set based on the above-mentioned NAND version diagnostic circuit data 11C, etc.
[0071] Fig. 10 shows a configuration example of the LB100 when the NAND 21 is configured based on the memory setting value of Fig. 9(a). This LB100 includes an LUT2, a FF5, a selector 4 (4A, 4B), a configuration memory 3 (3A, 3B), and signal lines (wiring) connecting them. The configuration memory 3 has a memory 3A and a memory 3B. The selector 4 has a selector 4A and a selector 4B. The memory 3A is connected to the selector 4A of the LUT2. The memory 3B is connected to the selector 4B before the FF5.
[0072] The configuration memory 3A corresponds to the LUT configuration table. For example, when the PLD1 is started, a setting value such as that shown in FIG. 9(a) is loaded and stored in this configuration memory 3A from the external configuration ROM 11 (NAND version diagnostic circuit data 11C). This automatically configures the NAND 21 in the LUT2. This setting value is information that specifies the configuration of the LUT2, that is, the correspondence between the input value and the output value, in other words, information that determines the truth value to be output using bits based on multiple inputs as an index.
[0073] In this example, the LUT2 is a three-input LUT (an LUT having three input signal lines and input terminals), and is a circuit that outputs one output value according to a combination of three input values. The LUT2 includes a memory 3A and a selector 4A. A plurality of output signal lines 901 of the memory 3A are connected as a plurality of input signal lines of the selector 4A. A plurality of input signal lines 801 (three lines indicated by a, b, and c in this example) of the LUT2 are connected to a control input terminal of the selector 4A. One output signal line 802 of the selector 4A and the LUT2 becomes one of the output signal lines of the LB100 as indicated by a signal y, and is connected by branching as one of the two input signal lines of the selector 4B. An input signal line 903 indicated by a signal d is connected as the other input signal line of the selector 4B.
[0074] A set value is supplied from the memory 3B to the control input terminal of the selector 4B. For example, 0 is set in the memory 3B in FIG. 9. The selector 4B selects and outputs an output value from two input signals (y, d) according to the set value of the memory 3B connected to the control input terminal. The output data selected by the selector 4B is connected to one input signal line of FF5 by one output signal line 803. FF5 temporarily holds the output data. In addition, a clock signal CLK (supplied from the above-mentioned diagnosis signal generating unit 101) is input to FF5 by one input signal line 904. FF5 outputs a signal q from one output signal line 906, which becomes the other output signal of the output signal line 112.
[0075] This LUT2 is a block that selects the data of the setting value of the configuration memory 3A according to the input value from the input signal line 801 (a, b, c in this example). In the figure, for ease of explanation, an example of the setting of the LUT2 in the selector 4A is illustrated as a matrix. In this selector 4A, an output data value is selected and determined from the setting value of the configuration memory 3A corresponding to the row (input on the signal line 901) according to the combination of values of the column (input on the input signal line 801 side), and is output from the output signal line 802. This matrix indicates which value of the setting value of the memory 3A is selected and output according to all combinations (8 combinations in this example) of the values of the LUT2 input (a, b, c). For example, in a NAND21 configuration, when the value of the set of LUT2 input (a, b, c) at a certain time is (0, 0, 0), the setting value "1" of the memory 3A corresponding to the first row shown in the figure is selected and output. When the value of the LUT2 input (a, b, c) pair at a given time is (1, 1, 1), the setting value “0” of memory 3A corresponding to the 8th row shown in the figure is selected and output.
[0076] The outline of the diagnostic mechanism in this PLD diagnostic method is as follows: During diagnosis, the same value (0 or 1) is input to each input (a, b, c) of the input signal line 801 of the LUT2. Therefore, for example, if a value that constitutes the NAND21 is set in the memory 3A as shown in (a) of Figure 9 above, the output signal value of the LUT2 under normal conditions will always be a signal that alternates between 0 and 1 on a time series (01 repetition signal).
[0077] For example, in the case of the configuration of NAND21 as shown in FIG. 10, consider the case where at least one (one or more) of the multiple inputs (input signal lines 801) of LUT2 is fixed to 0 (described as "stuck at 0"). In this case, as shown in the figure, the combination of LUT2 settings corresponds to one of the seven combinations from the top, and in any case, 0 (a value corresponding to the set of (1,1,1)) will not be selected as the output value from memory 3A. In other words, only 1 selected from memory 3A will be output as the output of LUT2. Therefore, the output signal of LB100 becomes such a signal value / output data that is fixed to 1 and continues to be 1 ("1111...", "stuck at 1 signal"). If such an output signal value is observed during diagnosis, a failure / fault of this LUT2, particularly a "stuck at 0 failure", can be detected. As described above, the configuration of LUT2 in FIG. 10 has a function of outputting 0 only when all inputs are 1, and is therefore a configuration of NAND as an equivalent circuit.
[0078] The diagnosis in the configuration of NOR22 is basically the same as the above. Although not shown, consider the case where the setting value of memory 3A in the configuration of FIG. 10 is replaced with the setting value "0000...1" in FIG. 9(b). In the case of this NOR21 configuration, if any input value of LUT2 is fixed to 1 (described as "stuck at 1"), the combination of LUT2 settings corresponds to any of the seven combinations from the bottom, and in any case, 1 will not be selected as the output value from memory 3A. In other words, only 0 will be output as the output of LUT2. Therefore, the output signal of LB100 becomes such a signal value / output data that is fixed to 0 and continues to be 0 ("0000...", "stuck at 0 signal"). By observing such an output signal value, it is possible to detect a failure / failure of this LUT2, especially a "stuck at 1 failure".
[0079] The PLD diagnosis method of the first embodiment performs a set of diagnosis for a "stuck-at-1 fault" in the NAND 21 configuration and a diagnosis for a "stuck-at-0 fault" in the NOR 22 configuration (FIG. 4). This allows reliable fault diagnosis of the LB 100 including the target LUT 2.
[0080] 10, during diagnosis, the selector 4B selects the output of LUT2 (output signal line 802, signal y) according to the setting value "0" of the memory 3B. In this case, the input of signal d is not selected by the selector 4B and is not used for diagnosis.
[0081] [Effects, etc.] As described above, according to the PLD diagnostic method of the first embodiment, the failures and malfunctions of the PLD1 can be diagnosed more comprehensively. According to the first embodiment, it is not necessary to implement a diagnostic circuit in the PLD1, and the number of design steps can be reduced. According to the first embodiment, in the programmable area of the logic block 100 of the PLD1, not only the area in which the user logic is programmed but also the entire programmable area can be diagnosed as comprehensively as possible. According to the first embodiment, it is possible to comprehensively diagnose the input of the multiple input signal lines 801 of the LUT2 (FIG. 8) regardless of the value. In other words, it is possible to comprehensively diagnose all of the multiple input signal lines of the LUT2. The PLD diagnostic method of the first embodiment is a method for diagnosing a certain type of PLD (i.e., a type having an LUT and FFs) as a diagnostic object, but it can be applied to a certain type of PLD without depending on the vendor or type (for example, differences in array, size, number of LUT input terminals, etc.), and does not require design depending on the vendor or type. According to the first embodiment, even if a defect occurs after product shipment, diagnosis can be used to easily determine whether the cause is a physical failure of the PLD device or simply a design flaw, thereby achieving cost reduction.
[0082] In addition, the PLD diagnostic method of the first embodiment has the following advantages. According to the first embodiment, unlike the conventional technique, it is not necessary to design and implement a generating circuit for a diagnostic signal (in other words, a pattern). According to the first embodiment, the diagnosable area (the number of corresponding LBs) in the programmable area is increased. It is assumed that the size of the programmable area is the same constant area in the PLD of the conventional technique and the PLD of the first embodiment. In the conventional technique, it is necessary to implement a diagnostic circuit (corresponding hardware) for the fault diagnosis function in a part of the programmable area in the PLD. That is, the area in which the user logic can be set among the entire programmable area is the part excluding the diagnostic circuit. On the other hand, in the PLD of the first embodiment, it is not necessary to implement a dedicated diagnostic circuit (corresponding hardware) in the programmable area for the implementation of the fault diagnosis function. Therefore, in the first embodiment, the area in which the user logic can be set among the entire programmable area is the entire area. During diagnosis, a diagnostic circuit as described above is temporarily configured within the programmable area of the PLD, but after diagnosis, the user logic (normal operation circuit) can be configured.
[0083] [Variations] The following modifications of the first embodiment are also possible. In the first embodiment, a method for reliably diagnosing wiring passing through LUT2 and FF5 including a plurality of input signal lines of the LB100 has been shown. Furthermore, in the modification, other wiring parts in the LB can also be diagnosed, and comprehensiveness is further improved. In this modification, the state of wiring and switches for diagnosis is set in the PLD of FIG. 7. In general, the LB100 has a configuration as shown in FIG. 8, and depending on the assembly of the LBC110, it is possible to diagnose not only the wiring between LUT2 and FF5 in the same LB100, but also the wiring between LUT2 and FF5 between different LB100s.
[0084] 11 is an explanatory diagram of a PLD diagnosis method according to a modified example of the first embodiment, showing an example of the configuration of the LB 100 during diagnosis. A setting value of "1" is set for the memory 3B connected to the selector 4B in the LB 100. As a result, the selector 4B selects and outputs the signal d on the input signal line 903 from the two input signals (y, d).
[0085] The input of the signal d of the LB100 is different from the inputs (a, b, c) of the LUT2. This is the following input when explained in the configuration of FIG. 7. Focusing on one LB100 in FIG. 7, for example, four other LB100s are arranged around and adjacent to the LB100, above, below, left and right, via wiring 705 and wiring connection box (CB) 704. Assume that this central LB100 has four inputs from the four adjacent LB100s. The four inputs are, for example, signals a, b, c, and d. Then, three of the inputs are used as the inputs (a, b, c) of the LUT2 mentioned above. The remaining input is the input of the signal d. The wiring is connected in the PLD in FIG. 7 so as to achieve such a connection relationship. Various LBC110s can be connected, not limited to the LBC710 in FIG. 7.
[0086] In the modified example, the diagnostic signal d1 during diagnosis flows in the LBC 110 as follows. For example, consider the first LB and the second LB as the inter-LB connection. The diagnostic signal d1 (signal value of 0 or 1 at a certain point in time) is first input to the input signal line 801 (a, b, c) of the LUT2 of the first LB as shown in FIG. 11 of the LBC 110, and the output value of the LUT2 is output as a signal y on the output signal line 802. The output of the signal y is input to the input signal line 903 of the signal d of the next second LB based on the wiring connection between the LBs 100. The input of the signal d is selected and output by the selector 4B, input to FF5, and becomes the output of the signal q on the output signal line 906 from FF5. The output of the signal q is input to the input signal line 801 (a, b, c) of the LUT2 of the next LB 100, and so on.
[0087] In the PLD diagnosis method of this modification, as described above, in multiple LBs 100, diagnostic signals flow in both the signal line of signal y and the signal line of signal d in the same manner, so that by observing these output signals, it is possible to determine a failure or malfunction in the same manner as described above (whether or not it is a 01 repeat signal). In other words, according to this modification, other wiring (signal line 903, etc.) in the LB 100 can also be diagnosed as targets, improving the comprehensiveness of the diagnosis.
[0088] Although the present invention has been specifically described based on the embodiment, the present invention is not limited to the above-described embodiment and can be modified in various ways without departing from the gist of the present invention. [Explanation of symbols]
[0089] 1...PLD, 1M...configuration, 10...PLD mounting board, 11...configuration ROM, 11A...normal operation circuit data, 11B...diagnosis data, 11C...NAND version diagnostic circuit data, 11D...NOR version diagnostic circuit data, 12...circuit data selection switch, 13...clock supplier, 14...display, 15...observation terminal, 16...waveform observation device, 100...LB, 101...diagnosis signal generation unit, 102...output terminal, 110...LBC, 111...input signal line, 112...output signal line, d1...diagnosis signal, d2...output signal.
Claims
1. A programmable logic device diagnostic method for diagnosing a fault or malfunction of a programmable logic device, comprising: The programmable logic device includes a plurality of logic blocks in a programmable area; Each of the plurality of logic blocks includes a lookup table having a plurality of input signal lines and one output signal line, and a flip-flop connected to a subsequent stage of the lookup table; The programmable logic device diagnostic method includes: a diagnostic step of configuring the diagnostic circuit in the programmable area by loading diagnostic data for configuring a diagnostic circuit into a configuration memory of the programmable logic device at the time of diagnosis, and executing a diagnosis; The diagnostic circuitry includes: a diagnostic signal generating circuit for generating a signal that repeats 0 and 1 as a diagnostic signal; A logic block chain in which the plurality of logic blocks are connected in series and one output signal line of each logic block is connected to a plurality of input signal lines of a logic block in a next stage; having The diagnostic signal output from the diagnostic signal generation circuit is input to an input signal line of a first logic block of the logic block chain, and an output signal line of a last logic block of the logic block chain is connected to an output terminal of the programmable logic device; The diagnosis step includes: A first step in which a NAND or NOR is configured as an equivalent circuit in the lookup table of each logical block of the logical block chain; a second step of inputting the diagnostic signal to a first logical block of the logical block chain; a third step of observing an output signal from an output terminal of the programmable logic device; A fourth step of determining that there is no fault or defect in the logical block chain if the observed signal value is a signal value that repeats 0 and 1, and determining that there is a fault or defect in the logical block chain if the observed signal value is not a signal value that repeats 0 and 1; 23. A programmable logic device diagnostic method comprising:
2. 2. The programmable logic device diagnostic method according to claim 1, further comprising: The diagnosis step includes: configuring a NAND as an equivalent circuit in the lookup table and performing diagnosis; and configuring a NOR as an equivalent circuit in the lookup table to perform diagnosis. In the diagnosis of the NAND, in the fourth step, if the observed signal value becomes a signal value fixed to 1, it is determined that a stuck-at-0 fault in which a signal value is stuck to 0 has occurred in any one of the logical blocks of the logical block chain, In the diagnosis using the NOR, if the observed signal value becomes a signal value fixed to 0 in the fourth step, it is determined that a stuck-at-1 fault in which the signal value is stuck to 1 has occurred in any one of the logic blocks of the logic block chain. A method for diagnosing a programmable logic device.
3. 2. The programmable logic device diagnostic method according to claim 1, further comprising: The diagnostic signal generating circuit includes: an output terminal of a flip-flop in one logic block is connected in a loop back to all of a plurality of input terminals of a look-up table; a clock signal from outside the programmable logic device is input to generate the diagnostic signal; A method for diagnosing a programmable logic device.
4. 2. The programmable logic device diagnostic method according to claim 1, further comprising: The diagnostic signal generating circuit includes: an output terminal of a last logic block in an odd number of logic blocks is connected in a loop so as to return to all of the plurality of input terminals of the look-up table of the first logic block, and an output signal line of each intermediate logic block is connected to the plurality of input signal lines of a logic block in a next stage; generating a clock signal and said diagnostic signal; A method for diagnosing a programmable logic device.
5. 2. The programmable logic device diagnostic method according to claim 1, further comprising: a step of switching between configuring the normal operation circuit in the programmable area by loading normal operation circuit data for configuring a normal operation circuit from a configuration memory outside the programmable logic device to a configuration memory of the programmable logic device based on a selection setting of a circuit data selection switch outside the programmable logic device, and configuring the diagnostic circuit by loading the diagnostic data. A method for diagnosing a programmable logic device.
6. A programmable logic device diagnostic apparatus for diagnosing a fault or malfunction of a programmable logic device, comprising: a substrate on which the programmable logic device is mounted; A configuration ROM provided on the substrate; Equipped with The programmable logic device includes a plurality of logic blocks in a programmable area; Each of the plurality of logic blocks includes a lookup table having a plurality of input signal lines and one output signal line, and a flip-flop connected to a subsequent stage of the lookup table; During diagnosis, diagnostic data for configuring a diagnostic circuit is loaded from the configuration ROM to a configuration memory of the programmable logic device, thereby configuring the diagnostic circuit in the programmable area and executing a diagnosis; The diagnostic circuitry includes: a diagnostic signal generating circuit for generating a signal that repeats 0 and 1 as a diagnostic signal; A logic block chain in which the plurality of logic blocks are connected in series and one output signal line of each logic block is connected to a plurality of input signal lines of a logic block in a next stage; having The diagnostic signal output from the diagnostic signal generation circuit is input to an input signal line of a first logic block of the logic block chain, and an output signal line of a last logic block of the logic block chain is connected to an output terminal of the programmable logic device; In the diagnosis, The lookup table of each logical block of the logical block chain is configured with a NAND or NOR as an equivalent circuit, inputting the diagnostic signal into a first logical block of the logical block chain; Observing an output signal from an output terminal of the programmable logic device; If the observed signal value is a signal value that repeats 0 and 1, it is determined that there is no fault or defect in the logical blockchain, and if the signal value is not a signal value that repeats 0 and 1, it is determined that there is a fault or defect in the logical blockchain. Programmable logic device diagnostic equipment.
Citation Information
Patent Citations
Self check circuit for programmable logic circuit
JP1997139667A
Testing circuit for semiconductor IC
JP1997281190A
Programmable memory built-in self-test combining micro- code and finite state machine self-test
JP2002140900A
Internal signal observation method for prototyping system and programmable device
JP2004023364A
Programmable logic device and method of verifying the same
JP2014060537A
