This application claims the priority benefit of Taiwan application serial no. 108117027, filed on May 17, 2019. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The present disclosure relates to a signal processing technology, and in particular, to an electronic device, a signal validator, and a method for signal validation.
During designing of an electronic device, to check whether each signal from a printed circuit board of the electronic device meets a design requirement, a designer generally measures a pin located on the printed circuit board using a professional instrument (such as an oscilloscope) to obtain a detailed waveform of a signal, thereby sequentially determining a voltage level of the signal, an enabling sequence of a signal impulse, a duration of a delay time, and the like. Then, the designer adjusts software, hardware, firmware, and the like in an electronic system according to the foregoing measurement results, and repeats the foregoing manner to measure signals until all signals meet the design requirement. Although measurement and validation procedures for signals are very complicated and laborious, the foregoing practice is common during the designing of the electronic device.
If the electronic device continues to update or revise the software or the firmware, or failure occurs and the like, although the hardware of the electronic device is not adjusted, during each revision, the designer still needs to measure important signals from the electronic device, for example, measuring the signals related to turn-on and turn-off of the electronic device, to avoid adjusting to a primary and important turn-on function or other important functions when the electronic device is updated or revised. Therefore, how to enable a particular and important signal in the electronic device to be measured conveniently and repeatedly for a plurality of times without using assistance of a professional instrument or dismantling the electronic device is one of the problems to be resolved by a person skilled in the art.
The present disclosure provides an electronic device, a signal validator, and a method for signal validation to easily determine whether an important signal related to a main function (such as turning on and shutdown in the electronic device) is abnormal, so that a designer or maintenance personnel can easily determine status of the electronic device, thereby saving manpower and time.
The electronic device in the embodiments of the present disclosure includes a circuit board and a signal validator. The circuit board is configured to generate a plurality of signals. The signal validator is coupled to the circuit board to obtain the signals. The signal validator records a current voltage level of each signal as a sequence code and records a time interval between the sequence code and a previous sequence code as a delay time corresponding to the sequence code when a voltage level of one of the signals changes. The signal validator sequentially determines whether the sequence code matches with a prearranged sequence code. When the sequence code matches with the prearranged sequence code, the signal validator determines whether each delay time corresponding to each sequence code exceeds a predetermined delay time. When the delay time is less than the predetermined delay time, the signal validator determines that the signals pass signal validation.
The method for signal validation in the embodiments of the present disclosure includes the following steps: obtaining a plurality of signals from a circuit board; when a voltage level of one of the signals changes, recording a current voltage level of each of the signals as a sequence code, and recording a time interval between the sequence code and a previous sequence code as a delay time corresponding to the sequence code; sequentially determining whether the sequence code matches with a prearranged sequence code; when the sequence code matches with the prearranged sequence code, determining whether each delay time corresponding to each sequence code exceeds a predetermined delay time; and when the delay time is less than the predetermined delay time, determining that the signals pass the signal validation.
The signal validator in the embodiments of the present disclosure is adapted to a circuit board, the circuit board being configured to generate a plurality of signals. The signal validator includes a memory and a controller. The controller is coupled to the memory. The controller is configured to record a current voltage level of each of the signals as a sequence code into the memory, and record a time interval between the sequence code and a previous sequence code as a delay time corresponding to the sequence code into the memory when a voltage level of one of the signals changes. The controller sequentially determines whether the sequence code matches with a prearranged sequence code. When the sequence code matches with the prearranged sequence code, the controller determines whether each delay time corresponding to each sequence code exceeds a predetermined delay time. When the delay time is less than the predetermined delay time, the controller determines that the signals passes signal validation.
Based on the foregoing, in the embodiments of the present disclosure, a period of operation of the main functions (such as turning on and shutdown of an electronic device) is considered as the signal validation period during designing, the signal validator records the voltage levels and the delay times of the signals related to the main functions at the beginning of the signal validation period, automatically validates whether the voltage levels of the signals match with the prearranged sequence codes, and after it is determined that the voltage levels of the signals match with the prearranged sequence codes, determines whether a delay time that is of different signals and that is between time points at which voltage levels of the different signals change matches with the predetermined delay time. When the sequence code matches with the prearranged sequence codes and the delay time is less than the predetermined delay time, it is determined that the signals pass the signal validation. Therefore, when the electronic device updates or revises software or firmware, or needs to measure the signals related to the main functions due to a fault, the signal validator or the method for signal validation may be directly used to determine whether the signals related to the main functions are abnormal, so that the designer or maintenance personnel can easily determine status of the electronic device, to replace the method of originally using an oscilloscope to measure the signals, thereby saving manpower and time.
To make the features and advantages of the present disclosure more comprehensible, a detailed description is made below with reference to the accompanying drawings by using embodiments.
The signal validator 120 records a current voltage level of each of the signals S1-SN as a sequence code when a voltage level of one of the signals S1-SN changes. In addition, the signal validator 120 further records a time interval between the sequence code and a previous sequence code as a delay time corresponding to the sequence code. In other words, the so-called “delay time” is a time interval between a time point at which the voltage level of one of the signals S1-SN changes and a previous time point at which a voltage level of another one of the signals S1-SN changes.
The signal validator 120 uses the sequence code and the delay time corresponding to each sequence code to determine whether waveforms of the signals match with predetermined waveforms of the signals during designing, thereby determining whether the signals meet the design requirement. In other words, the signal validator 120 determines whether the signals pass signal validation according to the sequence code and each delay time corresponding to each sequence code. The signal validator 120 sequentially determines whether the recorded sequence code matches with a prearranged sequence code. When the recorded sequence code matches with the prearranged sequence code, the signal validator 120 determines whether each delay time corresponding to each sequence code exceeds a predetermined delay time. When the sequence code matches with the prearranged sequence code and each delay time is less than the predetermined delay time, the signal validator 120 determines that the signals pass the signal validation.
The electronic device 100 may further include an access bus 130 and an external operation apparatus 140, in which the access bus 130 is used for the signal validator 120 to transmit information. The external operation apparatus 140 is, for example, a notebook computer used by a designer, a consumer electronic device, an electronic device with a screen that may present information about a validation result, or the like. The signal validator 120 may transmit the validation result to the external operation apparatus 140 through the access bus 130 (such as an integrated circuit bus (I2C) or a system management bus (SMBUS)).
For corresponding operations of the controller 210 and the timer 220 in the signal validator 120, reference may be made to
The signal validation period in this embodiment may be a turn-on period of an electronic device 100, a shutdown period of the electronic device 100, or a specific period during which the person applying this embodiment wants to inspect one or more specific signals. The turn-on period of the electronic device 100 is used as the signal validation period herein. In this case, the signal validator 120 is first started using a standby power before turn-on of the electronic device 100, to completely record the signals S1-SN during turn-on of the electronic device 100.
For ease of description and to allow the signal validator 120 in
In step S420, the controller 210 determines whether a voltage level of one of signals S1-S4 changes. If yes, step S440 is performed. In step S440, the controller 210 records a current voltage level of each of the signals S1-S4 as a sequence code into the memory 240, and reads the count value in the timer 220 as a delay time corresponding to the sequence code. In step S450, after the sequence code and the delay time corresponding to the sequence code are recorded into the memory 240, the controller 210 resets the count value in the timer 220, to accumulate the count value again. In contrast, if a determining result in step S420 is no, step S430 is performed.
In step S430, the controller 210 determines whether the count value in the timer 220 exceeds a predetermined timeout value set by a system. A reason for performing step S430 lies in that when the signal validator 120 is recording, the electronic device 100 may crash for a reason and the voltage level of the signal is not changed, so that the timer 220 of the signal validator 120 continuously accumulates the count value, or all the signals S1-S4 are already in an enabled state and the electronic device 100 is normally turned on. In other words, such situation is likely to be an emergency measure when the following two cases occur: all the signals S1-S4 are already in the enabled state, or the signals S1-S4 always maintain a same voltage level without change. Therefore, in order to avoid a case that the signal validator 120 constantly performs the method for signal validation and cannot stop recording, step S430 is used herein to allow the controller 210 to stop recording the sequence code and the delay time corresponding to the sequence code into the memory 240. Therefore, when the determining result in step S430 is yes, the controller 210 stops recording the sequence code and the delay time corresponding to the sequence code into the memory 240 in step S460. When the determining result in step S430 is no, the controller 210 returns to step S420.
A time point T1 in
A time point T2 in
By analogy, the controller 210 records a sequence code RC3 (1, 1, 1, 0) and a time interval between the sequence code RC3 and the previous sequence code RC2 as a corresponding delay time DLT2 (2 clk) into the memory 240 at the time point T3. The controller 210 records a sequence code RC4 (1, 1, 1, 1) and a time interval between the sequence code RC4 and the previous sequence code RC3 as the corresponding delay time DLT3 (3 clk) into the memory 240 at the time point T4. In other words, if the sequence codes RC1-RC4 are hexadecimal values, the sequence codes RC1-RC4 are visually enabled sequentially. This manner is used by a designer to find out a problem when the signals S1-S4 are arranged. After the time point T4, because all of the signals S1-S4 are in the enabled state, the controller 210 proceeds to step S460 from step S430 in
Because
When a determining result in step S610 is no, it indicates that the signals S1-S4 do not pass the signal validation. Therefore, step S630 is performed. The controller 210 determines that the signals do not pass the signal validation, and provides a validation result of “not passing signal validation” to the external operation apparatus 140. In contrast, when a determining result in step S610 is yes, that is, the sequence codes RC1-RC4 sequentially match with the prearranged sequence codes, step S620 is performed. The controller 210 determines whether each of the delay times DLT1-DLT3 corresponding to each of the sequence codes RC1-RC4 exceeds the predetermined delay time (assumed as 5 clk herein).
When a determining result in step S620 is yes, it indicates that the signals S1-S4 are delayed for too long and do not pass the signal validation. Therefore, step S630 is performed, the controller 210 provides a validation result of “not passing signal validation” to the external operation apparatus 140. In contrast, when a determining result in step S620 is no, it indicates that the signals S1-S4 are not delayed for too long and pass the signal validation. Therefore, step S640 is performed. The controller 210 determines that the signals pass the signal validation, and provides a validation result of “passing signal validation” to the external operation apparatus 140.
In the embodiment of the present disclosure, all steps in
It may be learned from the above that the sequence code RC1′ to the sequence code RC4′ are respectively (1, 0, 0, 0), (1, 0, 1, 0), (1, 1, 1, 0), and (1, 1, 1, 1), and in step S330 in
After recording the sequence code and the delay time corresponding to the sequence code into the memory 240, the controller 210 in this embodiment may further perform simple data processing on the information to facilitate information reading of the external operation apparatus 140. For example, the controller 210 in
Based on the foregoing, in the embodiments of the present disclosure, a period of operation of the main functions (such as turn-on and turn-off of an electronic device) is considered as the signal validation period, the signal validator records voltage levels and delay times of signals related to the main functions at the beginning of the signal validation period, automatically validates whether the voltage levels of the signals match with the prearranged sequence codes, and after it is determined that the voltage levels of the signals match with the prearranged sequence codes, determines whether a delay time between time points at which voltage levels of different signals change matches with the predetermined delay time. When the sequence code matches with the prearranged sequence codes and the delay time is less than the predetermined delay time, it is determined that the signals pass the signal validation. Therefore, when the electronic device updates or revises software or firmware, or needs to measure the signals related to the main functions due to a fault, the signal validator or the method for signal validation may be directly used to determine whether the signals related to the main functions are abnormal, so that the designer or maintenance personnel can easily determine status of the electronic device, to replace the method of originally using an oscilloscope to measure the signals, thereby saving manpower and time.
Although the present disclosure is described with reference to the above embodiments, the embodiments are not intended to limit the present disclosure. A person of ordinary skill in the art may make variations and modifications without departing from the spirit and scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
108117027 | May 2019 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
4176780 | Sacher | Dec 1979 | A |
4714875 | Bailey | Dec 1987 | A |
6054863 | Morrison | Apr 2000 | A |
6801049 | Ishida et al. | Oct 2004 | B2 |
6828815 | Ishida et al. | Dec 2004 | B2 |
8407372 | Wang | Mar 2013 | B2 |
20030016044 | Ishida et al. | Jan 2003 | A1 |
20040160240 | Ishida et al. | Aug 2004 | A1 |
20040163023 | Ishida et al. | Aug 2004 | A1 |
20060212266 | Chen | Sep 2006 | A1 |
Number | Date | Country |
---|---|---|
101398776 | Apr 2009 | CN |
101436154 | May 2009 | CN |
500926 | Sep 2002 | TW |
200632637 | Sep 2006 | TW |
Number | Date | Country | |
---|---|---|---|
20200363467 A1 | Nov 2020 | US |