1. Technical Field
Embodiments of the present disclosure relate to data checking devices and methods, and more particularly, to a computing device and method of checking burned-in files.
2. Description of Related Art
A complex programmable logic device (CPLD) is an electronic component used to build reconfigurable digital circuits. Unlike a logic gate, which has a fixed function, a CPLD has an undefined function at the time of manufacture. Before the CPLD can be used in a circuit, it must be programmed, that is, configured. Incorrect programming of the CPLD could result in the CPLD being unusable. Therefore there is room for improvement in the art.
In general, the word “module,” as used hereinafter, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware. It will be appreciated that modules may comprise connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processers. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable storage medium or other computer storage device.
The burning-in check system 12 comprises a number of function modules (see
The storage device 10 can comprise some type(s) of non-transitory computer-readable storage medium, such as a hard disk drive, a compact disc, a digital video disc, or a tape drive.
The control device 13 can comprise a processor, a microprocessor, an application-specific integrated circuit (ASIC), and a field programmable gate array (FPGA), for example.
The output device 14 may be a light emitting diode (LED) device indicating if the file 11 has been burned-in the CPLD chip 3 correctly.
In step S10, the control device 13 obtains the file 11 from the storage device 10 and computes a checksum value of the file 11. The checksum value is used to check whether the file 11 has been burned-in the CPLD chip 3 correctly, which is calculated according to each data bit of the file 11.
In step S11, the control device 13 integrates the burning-in check system 12 into the file 11, selects a first pin and a second pin of the CPLD chip 3, and presets output modes of checking results of whether the file 11 has been burned-in the CPLD chip 3 correctly. In one embodiment, the output modes may comprise that when the file 11 has been burned-in the CPLD chip 3 correctly, the output device 14, such as the LED device emits green lights, and when the file 11 has been burned-in the CPLD chip 3 incorrectly, the LED device emits red lights.
In step S12, the control device 13 controls the burner 2 to burn-in the file 11 that is integrated with the burning-in check system 12 into the CPLD chip 3.
In step S13, the I/O module 120 outputs the checksum value of the file 11 from the first pin of the CPLD chip 3 to the second pin of the CPLD chip 3.
In step S14, the comparison module 121 compares the checksum value outputted from the second pin with the checksum value computed by the control device 13, to check if the file 11 has been burned-in correctly. In one embodiment, when the checksum value outputted from the second pin is the same as the checksum value computed by the control device 13, the file 11 has been burned-in correctly. Otherwise, when the checksum value outputted from the second pin is different from the checksum value computed by the control device 13, the file 11 has been burned-in incorrectly.
In step S15, the result module 122 outputs checking results of whether the file 11 has been burned-in the CPLD chip 3 correctly to the output device 14 using the preset output mode.
It should be emphasized that the above-described embodiments of the present disclosure, including any particular embodiments, are merely possible examples of implementations, set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2012105435354 | Dec 2012 | CN | national |