Dog feeding method and system suitable for window watchdog

By performing logical operations and comparison processing on the feeding source signal in the window watchdog and MCU, the dog feeding status signal is generated, and the problem of feeding dogs being easily disturbed and unable to be synchronously checked in the prior art is solved, and a high-precision and safe dog feeding operation is achieved.

CN119576630APending Publication Date: 2025-03-07WUXI GUOXINWEI HIGH-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411724087.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The prior art is susceptible to interference when feeding dogs, and cannot synchronously verify the working status of the window watchdog and MCU, resulting in unsafe and reliable system.

Method used

During the window time of the window watchdog, the window watchdog and MCU are configured to perform dog feeding logic operations on the feeding source signal, generate target feeding signals and verify feeding signals, and perform comparison processing. Finally, the dog feeding status signal is generated through arbitration processing to determine whether the dog feeding operation is performed.

Benefits of technology

It improves the accuracy and safety of feeding dogs, and can verify the working status of the window watchdog to ensure the reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576630A_ABST
    Figure CN119576630A_ABST
Patent Text Reader

Abstract

The invention relates to a dog feeding method and system suitable for a window watchdog. The method comprises the following steps: in a window watchdog, performing comparison processing on a target dog feeding signal and a verification dog feeding signal so as to generate a first dog feeding verification state signal after comparison processing; in the MCU unit, the verification dog feeding signal and the target dog feeding signal are subjected to comparison processing, and a second dog feeding verification state signal is generated after comparison processing; comparing and arbitrating the first dog feeding verification state signal and the second dog feeding verification state signal to generate a dog feeding state signal after comparing and arbitrating, the dog feeding state signal comprising a dog feeding effective state or a dog feeding ineffective state, and when and only when the dog feeding state signal is the dog feeding effective state, the dog feeding state signal is the dog feeding ineffective state; and performing dog feeding operation on the window watchdog by using the target dog feeding signal. The dog feeding precision is high, the window watchdog can be verified according to the working state of the MCU when the dog is fed to the window watchdog, and safety and reliability are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a dog feeding method and system, in particular to a dog feeding method and system suitable for a window watchdog. Background Art

[0002] The Window Watchdog (WWDG) is a mechanism for detecting software failures, usually used to monitor whether the application deviates from the normal operating sequence due to external interference or unforeseen logic conditions. The Window Watchdog implements the monitoring function through a down counter and a configurable time window. Within the specific time window, the down counter must be refreshed, otherwise the system will trigger a reset.

[0003] The characteristic of the window watchdog is that its feeding time is within a range of upper and lower limits. The user can set this time window by setting the relevant registers. If the feeding operation is performed too early or too late within the window, the system will be reset. The counter of the window watchdog must be refreshed between the upper window and the lower window, not too early or too late. This is the so-called "window".

[0004] At present, when feeding the watchdog, the feeding operation is generally performed directly on the window watchdog, which is easily interfered with and cannot synchronously check the working status of the window watchdog and the internal MCU. Summary of the invention

[0005] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a dog feeding method and system suitable for a window watchdog, which has high feeding accuracy. When feeding the window watchdog, the window watchdog can also be checked with the working state of the MCU, which is safe and reliable.

[0006] According to the technical solution provided by the present invention, a dog feeding method suitable for a window watchdog, the dog feeding method comprising: Within the window time of the window watchdog, the window watchdog is configured to perform a dog feeding logic operation on the dog feeding source signal to generate a target dog feeding signal after the dog feeding logic operation, and the generated target dog feeding signal is sent to the MCU unit. At the same time, the MCU unit is configured to perform a dog feeding logic operation on the dog feeding source signal to generate a verification dog feeding signal after the dog feeding logic operation, and the verification dog feeding signal is sent to the window watchdog; In the window watchdog, the target dog feeding signal and the verification dog feeding signal are compared and processed to generate a first verification state signal of the dog feeding after the comparison processing; In the MCU unit, the verification dog feeding signal is compared with the target dog feeding signal to generate a dog feeding second verification state signal after the comparison process; The first verification state signal of feeding the dog and the second verification state signal of feeding the dog are compared and arbitrated to generate a dog feeding state signal after comparison and arbitration, wherein the dog feeding state signal includes a dog feeding effective state or a dog feeding invalid state, wherein: If and only if the dog feeding state signal is in the dog feeding valid state, the window watchdog is fed using the target dog feeding signal.

[0007] When the window watchdog performs the feeding logic operation on the feeding source signal, it includes the seed update operation and the seed logic operation performed in sequence, among which, When executing the dog feeding logic operation, the dog feeding source signal generates the dog feeding update signal after the seed update operation, and the dog feeding update signal generates the target dog feeding signal after the seed logic operation; When the dog feeding source signal is loaded into the window watchdog for the first time, the dog feeding update signal is consistent with the dog feeding source signal; The seed logic operation performed on the dog feeding update signal at least includes a negation operation performed on the dog feeding update signal.

[0008] When performing seed logic operations on the dog feed update signal, signal mathematical operations are also included, where: The signal mathematical operation includes signal multiplication operation, signal addition operation, signal subtraction operation and signal division operation. When the seed logic operation is performed on the dog feeding update signal, the dog feeding update signal is sequentially subjected to signal multiplication operation, signal addition operation, signal subtraction operation, inversion operation and signal division operation to generate a target dog feeding signal after the signal division operation.

[0009] When performing signal multiplication, the dog feed update signal is multiplied by 2 n Multiply them to obtain the dog-feeding multiplication operation result data after multiplication, wherein n is the remaining bit space capacity; When performing signal addition operation, the dog feeding multiplication result operation data and the addition operation value are accumulated to obtain the dog feeding addition operation result data after accumulation; When performing signal subtraction operation, the dog feeding addition result operation data and the subtraction operation value are subtracted to obtain the dog feeding subtraction operation result data after the subtraction operation, wherein the subtraction operation value and the addition operation value are not greater than 2. n ; When performing the inversion operation, the dog feeding subtraction operation result data is inverted to obtain the dog feeding inversion operation result data after inversion; When performing signal division operation, divide the inverse operation result data of the dog by 2. n And the feeding dog division operation result data is used as the target feeding dog signal.

[0010] A watchdog seed update module, a watchdog seed logic operation module and a watchdog internal comparator are set in the window watchdog, wherein: Use the watchdog seed update module to perform the seed update operation. Using the watchdog seed logic operation module to perform the seed logic operation; The comparator inside the watchdog is used to perform comparison processing between the target dog feeding signal and the verification dog feeding signal.

[0011] When comparing and arbitrating the first verification state signal of the dog feeding and the second verification state signal of the dog feeding, it includes: Configure the comparison arbitration priority object, where the comparison arbitration priority object is the window watchdog or MCU unit; Based on the configured comparison arbitration priority object, the first verification state signal of feeding the dog and the second verification state signal of feeding the dog are compared and arbitrated, wherein: When the dog feeding verification status signal corresponding to the comparison arbitration priority object is in a valid state, the dog feeding status signal is configured as a dog feeding valid state, otherwise, the dog feeding status signal is configured as a dog feeding invalid state.

[0012] In the comparison arbitration priority object, when the verification dog feeding signal is consistent with the target dog feeding signal, the generated dog feeding verification status signal is in a valid state, otherwise, the generated dog feeding verification status signal is in an invalid state.

[0013] When the dog feeding status signal is in the dog feeding valid state, the window watchdog is configured to enter the window mode and wait for the dog feeding operation of the next dog feeding cycle, otherwise, a dog feeding error alarm message is sent.

[0014] A dog feeding system suitable for a window watchdog, used to execute the above-mentioned dog feeding method, comprising: The window watchdog performs a dog feeding logic operation on the dog feeding source signal within the window time of the window watchdog to generate a target dog feeding signal after the dog feeding logic operation, and sends the generated target dog feeding signal to the MCU unit. Thereafter, the target dog feeding signal is compared with the calibration dog feeding signal sent by the MCU unit to generate a first dog feeding verification state signal after comparison processing; The MCU unit performs a dog feeding logic operation on the dog feeding source signal within the window time of the window watchdog to generate a verification dog feeding signal after the dog feeding logic operation, and sends the verification dog feeding signal to the window watchdog. Thereafter, the verification dog feeding signal is compared with the target dog feeding signal sent by the window watchdog to generate a second dog feeding verification state signal after comparison processing; The comparison arbitration processor is used to perform comparison arbitration processing on the first dog feeding verification state signal and the second dog feeding verification state signal to generate a dog feeding state signal after comparison arbitration, wherein the dog feeding state signal includes a dog feeding effective state or a dog feeding invalid state.

[0015] The dog feeding logic operation performed by the window watchdog on the dog feeding signal source is consistent with the dog feeding logic operation performed by the MCU unit on the dog feeding source signal.

[0016] The advantages of the present invention are as follows: a window watchdog is configured to perform a dog feeding logic operation on a dog feeding source signal and generate a target dog feeding signal, and an MCU unit is configured to perform a dog feeding logic operation on the dog feeding source signal and generate a corresponding verification dog feeding signal; the window watchdog and the MCUt unit both compare and process the target dog feeding signal with the verification dog feeding signal, and then perform comparison and arbitration processing through an arbitration comparison processor, so as to determine whether the dog feeding state signal is a dog feeding effective state or a dog feeding invalid state, and then realize dog feeding operation or error alarm for the window watchdog, which can improve the dog feeding accuracy, and when feeding the window watchdog, the window watchdog can also be verified with the working state of the MCU unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 The present invention is a schematic flow chart of an embodiment of a method for feeding a dog.

[0018] Figure 2 The figure is a schematic diagram of an embodiment of the work flow of the window watchdog window mode of the present invention.

[0019] Figure 3 The present invention is a block diagram of an embodiment of the dog feeding system.

[0020] Figure 4 The figure is a structural block diagram of an embodiment of the seed logic operation module of the present invention.

[0021] Figure 5 A schematic diagram of an embodiment of the window watchdog feeding operation of the present invention.

[0022] Explanation of the accompanying drawings: 1-window watchdog, 2-MCU unit, 3-arbitration comparison processor, 10-watchdog seed update module, 11-watchdog seed logic operation module, 12-watchdog internal comparator, 20-processing unit seed update module, 21-processing unit seed logic operation module, 22-processing unit watchdog internal comparator, 40-multiplication unit, 41-addition unit, 42-subtraction unit, 43-inversion unit and 44-division unit. DETAILED DESCRIPTION

[0023] The present invention will be further described below in conjunction with specific drawings and embodiments.

[0024] In order to improve the dog feeding accuracy, the present invention provides a dog feeding method suitable for a window watchdog, and specifically, the dog feeding method comprises: Within the window time of the window watchdog 1, the window watchdog 1 is configured to perform a dog feeding logic operation on the dog feeding source signal to generate a target dog feeding signal after the dog feeding logic operation, and the generated target dog feeding signal is sent to the MCU unit 2. At the same time, the MCU unit 2 is configured to perform a dog feeding logic operation on the dog feeding source signal to generate a verification dog feeding signal after the dog feeding logic operation, and the verification dog feeding signal is sent to the window watchdog 1; In the window watchdog 1, the target dog feeding signal and the verification dog feeding signal are compared and processed to generate a first verification state signal of the dog feeding after the comparison processing; In the MCU unit 2, the verification dog feeding signal is compared with the target dog feeding signal to generate a dog feeding second verification state signal after the comparison process; The first verification state signal of feeding the dog and the second verification state signal of feeding the dog are compared and arbitrated to generate a dog feeding state signal after comparison and arbitration, wherein the dog feeding state signal includes a dog feeding effective state or a dog feeding invalid state, wherein: When and only when the dog feeding state signal is in the dog feeding valid state, the target dog feeding signal is used to perform a dog feeding operation on the window watchdog 1.

[0025] As can be seen from the above description, when feeding the window watchdog 1, a feeding signal is generally loaded into the window watchdog 1 to refresh the timing state of the window watchdog 1 using the feeding signal. The feeding principle of the window watchdog 1 can be consistent with the prior art and will not be described here. The window watchdog 1 can adopt the existing commonly used form, and the window time of the window watchdog 1 can be configured by the existing technical means.

[0026] Figure 2 An embodiment of the window working mode of the window watchdog 1 is shown in FIG. As can be seen from the figure, after power-on, the state of the window watchdog 1 is detected. When the window watchdog 1 starts normally, the window watchdog 1 is initialized, otherwise, the window watchdog 1 is closed. After the window watchdog 1 is initialized, the first dog feeding will occur externally. After the first dog feeding, the window watchdog 1 will enter the window mode. For the window watchdog 1 in the window mode, when the dog feeding timeout occurs, the dog feeding error will be triggered; when the dog feeding signal in the window mode is incorrect, the dog feeding error will also be triggered. When the dog feeding signal is correct, the window watchdog 1 will remain in the window mode.

[0027] In order to improve the accuracy of feeding dogs, Figure 1 An embodiment of the dog feeding method of the present invention is shown in Figure 1It can be known that when feeding the window watchdog 1, the window watchdog 1 should be configured to perform a dog feeding logic operation on the dog feeding source signal within the window time of the window watchdog 1, and generate a target dog feeding signal after the dog feeding logic operation, wherein the dog feeding source signal is generally loaded externally and used to generate a target dog feeding signal. In one embodiment of the present invention, a corresponding target dog feeding signal can be generated by performing a dog feeding logic operation on the dog feeding source signal. It can be understood that the target dog feeding signal is a signal to be fed to the window watchdog 1, but whether the target dog feeding signal is used to perform the dog feeding operation on the window watchdog 1 needs to be verified and judged.

[0028] The target dog feeding signal generated by the window watchdog 1 should be sent to the MCU unit 2. The MCU unit 2 can generally be used as the controller of the application scenario where the window watchdog 1 is located. The MCU unit 2 can adopt the existing commonly used microprocessor form. In order to verify the target dog feeding signal, the MCU unit 2 should be configured to perform dog feeding logic operations on the dog feeding source signal. After that, a verification dog feeding signal can be generated. Of course, the verification dog feeding signal generated by the MCU unit 2 should also be sent to the window watchdog 1. It should be noted that the dog feeding logic operation performed by the window watchdog 1 on the dog feeding signal source is consistent with the dog feeding logic operation performed by the MCU unit 2 on the dog feeding source signal. Of course, the dog feeding source signal should generally be the same. The method and process of performing dog feeding logic operations on the dog feeding source signal will be described in detail below.

[0029] In the window watchdog 1, the target dog feeding signal and the verification dog feeding signal are compared and processed to generate the first dog feeding verification state signal after the comparison processing. In the comparison processing, it is mainly determined whether the target dog feeding signal and the verification dog feeding signal are the same. If the target dog feeding signal and the verification dog feeding signal are the same, the first dog feeding verification state signal generated by the window watchdog 1 should be "1", otherwise, it should be "0". In the MCU (Microcontroller Unit) unit 2, the comparison processing between the target dog feeding signal and the verification dog feeding signal is consistent with the comparison processing performed by the window watchdog 1. For details, please refer to the description of the comparison processing performed by the window watchdog 1 here.

[0030] After obtaining the first verification state signal of feeding the dog and the second verification state signal of feeding the dog, a comparative arbitration process should be performed. Specifically, during the comparative arbitration process, the first verification state signal of feeding the dog and the second verification state signal of feeding the dog are mainly compared. If the first verification state signal of feeding the dog and the second verification state signal of feeding the dog are the same, the dog feeding state signal can be directly obtained after comparison. When the first verification state signal of feeding the dog and the second verification state signal of feeding the dog are different, arbitration process is required. It can be seen from the above description that the first verification state signal of feeding the dog can be "1" or "0". Similarly, the second verification state signal of feeding the dog can also be "1" or "0". At this time, when the first verification state signal of feeding the dog and the second verification state signal of feeding the dog are the same, the first verification state signal of feeding the dog and the second verification state signal of feeding the dog can both be "1" or "0". When the first verification state signal of feeding the dog and the second verification state signal of feeding the dog are different, the first verification state signal of feeding the dog and the second verification state signal of feeding the dog form a state of "10" or "01".

[0031] In one embodiment of the present invention, when comparing and arbitrating the first dog feeding verification state signal and the second dog feeding verification state signal, the process includes: Configure the comparison arbitration priority object, where the comparison arbitration priority object is window watchdog 1 or MCU unit 2; Based on the configured comparison arbitration priority object, the first verification state signal of feeding the dog and the second verification state signal of feeding the dog are compared and arbitrated, wherein: When the dog feeding verification status signal corresponding to the comparison arbitration priority object is in a valid state, the dog feeding status signal is configured as a dog feeding valid state, otherwise, the dog feeding status signal is configured as a dog feeding invalid state.

[0032] It should be noted that, when performing arbitration processing, a comparison arbitration priority object should be selected, that is, one of the window watchdog 1 or MCU unit 2 should be selected as the comparison arbitration priority object. At this time, when performing arbitration processing, when the dog feeding verification status signal corresponding to the comparison arbitration priority object is in a valid state, the dog feeding status signal is configured as the dog feeding valid state, otherwise, the dog feeding status signal is configured as the dog feeding invalid state. If the window watchdog 1 is configured as the comparison arbitration priority object, the dog feeding verification status signal of the comparison arbitration priority object should be the first dog feeding verification status signal, and if the MCU unit 2 is configured as the comparison arbitration priority object, the dog feeding verification status signal of the comparison arbitration priority object should be the second dog feeding verification status signal.

[0033] In specific implementation, in the comparison arbitration priority object, when the verification dog feeding signal is consistent with the target dog feeding signal, the generated dog feeding verification state signal is in a valid state, otherwise, the generated dog feeding verification state signal is in an invalid state; specifically, if the comparison arbitration priority object is window watchdog 1, then when the verification dog feeding signal is consistent with the target dog feeding signal in window watchdog 1, the first dog feeding verification state signal is in a valid state, as described above, at this time, the first dog feeding verification state signal should be "1". It can be seen from this that when the dog feeding verification state is in a valid state, the corresponding state can be "1", and when the dog feeding verification state signal is in an invalid state, the corresponding state can be "0".

[0034] An embodiment of comparative arbitration processing is given above. It is understandable that other methods can be used to implement comparative arbitration processing, which is based on the ability to effectively generate the required dog feeding status signal. They will not be listed here one by one. In specific implementation, when and only when the dog feeding status signal is in the effective dog feeding state, the target dog feeding signal is used to feed the window watchdog 1. That is, when the dog feeding state signal is in the effective dog feeding state, the target dog feeding signal can be used to feed the window watchdog 1. When the dog feeding operation is performed on the window watchdog 1, the window watchdog 1 is configured to enter the window mode and wait for the dog feeding operation of the next dog feeding cycle. It is understandable that the dog feeding operation of the next dog feeding cycle still needs to perform the above-mentioned dog feeding process so as to improve the accuracy and reliability of the dog feeding operation of each dog feeding cycle.

[0035] In specific implementation, when the dog feeding state signal is in the dog feeding invalid state, a dog feeding error alarm message should be sent so that the MCU unit 2 can perform alarm processing to avoid unnecessary resetting of the window watchdog 1 and affect normal operation.

[0036] From the above description, it can be seen that the dog feeding logic operation performed by the window watchdog 1 on the dog feeding source signal is consistent with the dog feeding logic operation performed by the MCU unit 2 on the dog feeding source signal. The following takes the dog feeding logic operation performed by the window watchdog 1 as an example to illustrate the equation of the dog feeding logic operation.

[0037] In one embodiment of the present invention, when the window watchdog 1 performs a feeding logic operation on the feeding source signal, it includes a seed update operation and a seed logic operation performed in sequence, wherein: When executing the dog feeding logic operation, the dog feeding source signal generates the dog feeding update signal after the seed update operation, and the dog feeding update signal generates the target dog feeding signal after the seed logic operation; When the dog feeding source signal is loaded into the window watchdog 1 for the first time, the dog feeding update signal is consistent with the dog feeding source signal; The seed logic operation performed on the dog feeding update signal at least includes a negation operation performed on the dog feeding update signal.

[0038] In specific implementation, the seed update operation specifically refers to updating based on the dog feeding source signal. The method of updating the dog feeding source signal may include shift update, XOR and other update processing methods. Generally, in each dog feeding cycle, a seed update operation is performed on the dog feeding source signal. Generally, the dog feeding update signal of the current cycle is used as the dog feeding source signal of the next dog feeding cycle to achieve cyclic update.

[0039] It should be noted that when the dog feeding source signal is loaded into the window watchdog for the first time, the dog feeding update signal is consistent with the dog feeding source signal, as mentioned above Figure 2 In the process, the feeding source signal is loaded after power-on and initialization of the window watchdog 1. For the feeding source signal loaded to the window watchdog 1 for the first time, the seed update operation is only to move the feeding source signal and generate a feeding update signal, that is, the feeding source signal loaded for the first time does not need to be updated.

[0040] In specific implementation, the seed logic operation performed on the dog feeding update signal at least includes a negation operation on the dog feeding update signal. When the dog feeding update signal is generally binary data, the dog feeding update signal can be negated. At this time, a target dog feeding signal can be formed. The method and process of negating the dog feeding update signal and generating the target dog feeding signal can be consistent with the prior art and will not be repeated here.

[0041] Figure 3 FIG. 1 shows an embodiment of a window watchdog 1 when implementing the dog feeding method of the present invention. As can be seen from the figure, a watchdog seed update module 10, a watchdog seed logic operation module 11 and a watchdog internal comparator 12 are set in the window watchdog 1, wherein: The watchdog seed update module 10 is used to perform a seed update operation. Utilizing the watchdog seed logic operation module 11 to perform seed logic operation; The watchdog internal comparator 12 is used to perform a comparison process between the target watchdog feeding signal and the verification watchdog feeding signal.

[0042] Figure 3 In the embodiment, Seed is the watchdog feeding source signal, and the watchdog feeding source signal is loaded into the watchdog seed updating module 10, so as to utilize the watchdog seed updating module 10 to perform the seed updating operation. As can be seen from the above description, the seed updating operation performed can be a shift or XOR processing, so the specific implementation structure of the watchdog seed updating module 10 can be determined according to the form of the seed updating operation. Figure 4 and Figure 5 In the example, the corresponding lfsr refers to the watchdog seed update module 10.

[0043] It should be noted that the method of writing the dog feeding enable signal is to determine whether the dog feeding source signal is loaded into the watchdog seed update module 10 for the first time. Of course, other methods can also be used to determine whether the dog feeding source signal is loaded into the watchdog seed update module 10 for the first time. The specific determination method can be selected and determined according to needs, and examples will not be given here one by one.

[0044] The watchdog seed logic operation module 11 is connected to the watchdog seed update module 10. The watchdog seed logic operation module 11 can be used to perform seed logic operation on the dog feeding update signal output by the watchdog seed update module 10. The watchdog seed logic operation module 11 is also connected to the watchdog internal comparator 12 in the window watchdog 1 and the processing unit watchdog internal comparator 22 in the MCU unit 2, so as to send the target dog feeding signal to the watchdog internal comparator 12 and the processing unit watchdog internal comparator 22 at the same time, so as to use the watchdog internal comparator 12 to compare and process the target dog feeding signal and the verification dog feeding signal. The watchdog internal comparator 12 can adopt the existing commonly used comparator form, so as to achieve the said comparison processing.

[0045] From the above description, it can be known that the watchdog seed logic operation module 11 should at least be able to perform a negation operation. In addition, when performing a seed logic operation on the watchdog update signal, the watchdog seed logic operation module 11 can also perform a signal mathematical operation. Specifically, The signal mathematical operation includes signal multiplication operation, signal addition operation, signal subtraction operation and signal division operation. When the seed logic operation is performed on the dog feeding update signal, the dog feeding update signal is sequentially subjected to signal multiplication operation, signal addition operation, signal subtraction operation, inversion operation and signal division operation to generate a target dog feeding signal after the signal division operation.

[0046] It should be noted that when the watchdog seed logic operation module 11 performs signal mathematical operations in addition to the negation operation, it can indicate that the window watchdog 1 is in a normal working state, thereby verifying the working state of the window watchdog 1.

[0047] In one embodiment of the present invention, when performing a signal multiplication operation, the dog feeding update signal is multiplied by 2 n Multiply them to obtain the dog-feeding multiplication operation result data after multiplication, wherein n is the remaining bit space capacity; When performing signal addition operation, the dog feeding multiplication result operation data and the addition operation value are accumulated to obtain the dog feeding addition operation result data after accumulation; When performing signal subtraction operation, the dog feeding addition result operation data and the subtraction operation value are subtracted to obtain the dog feeding subtraction operation result data after the subtraction operation, wherein the subtraction operation value and the addition operation value are not greater than 2. n ; When performing the inversion operation, the dog feeding subtraction operation result data is inverted to obtain the dog feeding inversion operation result data after inversion; When performing signal division operation, divide the inverse operation result data of the dog by 2. n And the feeding dog division operation result data is used as the target feeding dog signal.

[0048] Figure 4 , a schematic diagram of an embodiment of the watchdog seed logic operation module 11 is shown in the figure, in which the watchdog seed logic operation module 11 includes a multiplication unit 40, an addition unit 41, a subtraction unit 42, a negation unit 43 and a division unit 44 connected in sequence, wherein the multiplication unit 40 is used to perform a signal multiplication operation, the addition unit 41 is used to perform a signal addition operation, the subtraction unit 42 is used to perform a signal subtraction operation, the negation unit 43 is used to perform a negation operation, and the division unit 44 is used to perform a signal division operation. Figure 4 In the example, Lfsr_out is the dog feeding update signal.

[0049] Depend on Figure 4 It can be seen that the multiplication unit 40 multiplies the dog feeding update signal by 2 n The multiplication unit 40 can be a conventional multiplier. In specific implementation, the remaining bit space capacity n is related to the allocated dog feeding logic operation space, etc. For example, when the allocated space is 8 bits and the size of the dog feeding source signal is 5 bits, the maximum value of the remaining bit space capacity n can be 3.

[0050] The adding unit 41 is used to accumulate the multiplication result data of the feeding dog and the addition operation value. Figure 4 In the example, y is the addition operation value; the subtraction unit 42 is used to perform a difference operation between the addition operation result data and the subtraction operation value of the feeding dog, Figure 4 The x in is the subtraction value. In the specific implementation, the corresponding values ​​of the addition value and the subtraction value cannot overflow. From the above description, it can be seen that if the remaining bit space capacity n is 3, then the maximum value of the addition value y can be 7, and the subtraction value x must be less than or equal to the addition value y. Therefore, if the addition value y is 5, the maximum value of the subtraction value x can only be 5. The specific value is based on the satisfaction of no overflow.

[0051] The inversion unit 43 is used to invert the result data of the dog feeding subtraction operation, and the division unit 44 is used to divide the result data of the dog feeding inversion operation by 2. n And the feeding dog division operation result data is used as the target feeding dog signal. In specific implementation, the negation unit 43 and the division unit 44 can adopt the existing commonly used implementation form, based on the inversion and division operations that can be disabled.

[0052] Figure 2An embodiment of the MCU unit 2 is also shown. In the figure, a processing unit seed update module 20, a processing unit seed logic operation module 21 and a processing unit watchdog internal comparator 22 are set in the MCU unit 2. Specifically, the specific working process of the processing unit seed update module 20, the processing unit seed logic operation module 21 and the processing unit watchdog internal comparator 22 can refer to the corresponding description of the above-mentioned window watchdog 1, and the specific operation shall be based on the ability to achieve the same dog feeding logic operation.

[0053] Depend on Figure 2 It can be seen that when the present invention performs the dog feeding operation, the dog feeding source signal should also be loaded into the MCU unit 2, that is, the MCU unit 2 and the window watchdog 1 can respectively perform the dog feeding logic operation on the dog feeding signal source. From the above description of performing the dog feeding logic operation, it can be seen that the present invention performs the dog feeding logic operation synchronously by the window watchdog 1 and the MCU unit 2, and can realize the verification of the corresponding working states of the window watchdog 1 and the MCU unit 2, ensuring that the window watchdog 1 and the MCU unit 2 are working normally without hanging up, thereby increasing the safety and confidentiality during the dog feeding operation.

[0054] From the above description, a dog feeding system suitable for a window watchdog can be obtained. The dog feeding system can be used to execute the dog feeding method described above, specifically, including: Window watchdog 1, within the window time of window watchdog 1, performs a dog feeding logic operation on the dog feeding source signal to generate a target dog feeding signal after the dog feeding logic operation, and sends the generated target dog feeding signal to MCU unit 2, and then compares the target dog feeding signal with the calibration dog feeding signal sent by the MCU unit to generate a first dog feeding verification state signal after comparison processing; MCU unit 2 performs a dog feeding logic operation on the dog feeding source signal within the window time of the window watchdog 1 to generate a verification dog feeding signal after the dog feeding logic operation, and sends the verification dog feeding signal to the window watchdog 1, and then compares the verification dog feeding signal with the target dog feeding signal sent by the window watchdog to generate a second dog feeding verification state signal after comparison processing; The comparison arbitration processor 3 is used to perform comparison arbitration processing on the first dog feeding verification state signal and the second dog feeding verification state signal to generate a dog feeding state signal after comparison arbitration, wherein the dog feeding state signal includes a dog feeding effective state or a dog feeding invalid state.

[0055] Figure 3 An embodiment of the watchdog feeding system is shown in the figure. As can be seen from the figure, the comparison arbitration processor 3 is located outside the window watchdog 1 and the MCU unit 2. The comparison arbitration processor 3 can adopt an existing commonly used comparison processor, and the specific comparison arbitration processing can be realized.

[0056] Figure 5 FIG. 2 shows an embodiment of a dog feeding operation implemented by the dog feeding system of the present invention. As can be seen from the figure, when feeding the dog, the dog feeding source signal should be configured first, and the configured dog feeding source signal should be checked. When the dog feeding source signal does not meet the requirements, the current dog feeding source signal needs to be discarded and wait for reconfiguration. When it meets the requirements, it is necessary to detect whether the current dog feeding source signal is loaded for the first time. When it is loaded for the first time, the corresponding seed logic operation is directly performed. Otherwise, the seed update operation should be performed first. Figure 5 The Alu calculation specifically refers to the watchdog seed logic operation module 11 and the processing unit seed logic operation module 21 performing corresponding seed logic operations.

[0057] Figure 5 In the embodiment, for the window watchdog 1, the external calculation result specifically refers to the verification feeding signal sent by the MCU unit 2, and for the MCU unit 2, the external calculation result specifically refers to the target feeding signal sent by the window watchdog 1. Whether the dog is correctly fed is mainly determined by comparing the arbitration processor 3 to determine whether the feeding state signal is a feeding valid state or a feeding invalid state.

[0058] During operation, in each dog feeding cycle, the processing unit seed update module 20 and the watchdog seed update module 10 both perform a seed update operation to generate corresponding target dog feeding signals and verification dog feeding signals. For details, please refer to the above description.

Claims

1. A dog feeding method suitable for a window watchdog, characterized in that: The dog feeding method comprises: Within the window time of the window watchdog, the window watchdog is configured to perform a dog feeding logic operation on the dog feeding source signal to generate a target dog feeding signal after the dog feeding logic operation, and the generated target dog feeding signal is sent to the MCU unit. At the same time, the MCU unit is configured to perform a dog feeding logic operation on the dog feeding source signal to generate a verification dog feeding signal after the dog feeding logic operation, and the verification dog feeding signal is sent to the window watchdog; In the window watchdog, the target dog feeding signal and the verification dog feeding signal are compared and processed to generate a first verification state signal of the dog feeding after the comparison processing; In the MCU unit, the verification dog feeding signal is compared with the target dog feeding signal to generate a dog feeding second verification state signal after the comparison process; The first verification state signal of feeding the dog and the second verification state signal of feeding the dog are compared and arbitrated to generate a dog feeding state signal after comparison and arbitration, wherein the dog feeding state signal includes a dog feeding effective state or a dog feeding invalid state, wherein: If and only if the dog feeding state signal is in the dog feeding valid state, the window watchdog is fed using the target dog feeding signal.

2. The dog feeding method suitable for a window watchdog according to claim 1, characterized in that: When the window watchdog performs the feeding logic operation on the feeding source signal, it includes the seed update operation and the seed logic operation performed in sequence, among which, When executing the dog feeding logic operation, the dog feeding source signal generates the dog feeding update signal after the seed update operation, and the dog feeding update signal generates the target dog feeding signal after the seed logic operation; When the dog feeding source signal is loaded into the window watchdog for the first time, the dog feeding update signal is consistent with the dog feeding source signal; The seed logic operation performed on the dog feeding update signal at least includes a negation operation performed on the dog feeding update signal.

3. The dog feeding method suitable for a window watchdog according to claim 2, characterized in that: When performing seed logic operations on the dog feed update signal, signal mathematical operations are also included, where: The signal mathematical operation includes signal multiplication operation, signal addition operation, signal subtraction operation and signal division operation. When the seed logic operation is performed on the dog feeding update signal, the dog feeding update signal is sequentially subjected to signal multiplication operation, signal addition operation, signal subtraction operation, inversion operation and signal division operation to generate a target dog feeding signal after the signal division operation.

4. The dog feeding method suitable for a window watchdog according to claim 3, characterized in that: When performing signal multiplication, the dog feed update signal is multiplied by 2 n Multiply them to obtain the dog-feeding multiplication operation result data after multiplication, wherein n is the remaining bit space capacity; When performing signal addition operation, the dog feeding multiplication result operation data and the addition operation value are accumulated to obtain the dog feeding addition operation result data after accumulation; When performing signal subtraction operation, the dog feeding addition result operation data and the subtraction operation value are subtracted to obtain the dog feeding subtraction operation result data after the subtraction operation, wherein the subtraction operation value and the addition operation value are not greater than 2. n ; When performing the inversion operation, the dog feeding subtraction operation result data is inverted to obtain the dog feeding inversion operation result data after inversion; When performing signal division operation, divide the inverse operation result data of the dog by 2. n And the feeding dog division operation result data is used as the target feeding dog signal.

5. The dog feeding method suitable for a window watchdog according to any one of claims 2 to 4, characterized in that: A watchdog seed update module, a watchdog seed logic operation module and a watchdog internal comparator are set in the window watchdog, wherein: Use the watchdog seed update module to perform the seed update operation. Using the watchdog seed logic operation module to perform the seed logic operation; The comparator inside the watchdog is used to perform comparison processing between the target dog feeding signal and the verification dog feeding signal.

6. The dog feeding method suitable for a window watchdog according to any one of claims 1 to 4, characterized in that: When comparing and arbitrating the first verification state signal of the dog feeding and the second verification state signal of the dog feeding, it includes: Configure the comparison arbitration priority object, where the comparison arbitration priority object is the window watchdog or MCU unit; Based on the configured comparison arbitration priority object, the first verification state signal of feeding the dog and the second verification state signal of feeding the dog are compared and arbitrated, wherein: When the dog feeding verification status signal corresponding to the comparison arbitration priority object is in a valid state, the dog feeding status signal is configured as a dog feeding valid state, otherwise, the dog feeding status signal is configured as a dog feeding invalid state.

7. The dog feeding method suitable for a window watchdog according to any one of claims 1 to 4, characterized in that In the comparison arbitration priority object, when the verification dog feeding signal is consistent with the target dog feeding signal, the generated dog feeding verification status signal is in a valid state, otherwise, the generated dog feeding verification status signal is in an invalid state.

8. The dog feeding method suitable for a window watchdog according to any one of claims 1 to 4, characterized in that: When the dog feeding status signal is in the dog feeding valid state, the window watchdog is configured to enter the window mode and wait for the dog feeding operation of the next dog feeding cycle, otherwise, a dog feeding error alarm message is sent.

9. A dog feeding system suitable for a window watchdog, characterized in that: The method for feeding a dog according to any one of claims 1 to 8 comprises: The window watchdog performs a dog feeding logic operation on the dog feeding source signal within the window time of the window watchdog to generate a target dog feeding signal after the dog feeding logic operation, and sends the generated target dog feeding signal to the MCU unit. Thereafter, the target dog feeding signal is compared with the calibration dog feeding signal sent by the MCU unit to generate a first dog feeding verification state signal after comparison processing; The MCU unit performs a dog feeding logic operation on the dog feeding source signal within the window time of the window watchdog to generate a verification dog feeding signal after the dog feeding logic operation, and sends the verification dog feeding signal to the window watchdog. Thereafter, the verification dog feeding signal is compared with the target dog feeding signal sent by the window watchdog to generate a second dog feeding verification state signal after comparison processing; The comparison arbitration processor is used to perform comparison arbitration processing on the first dog feeding verification state signal and the second dog feeding verification state signal to generate a dog feeding state signal after comparison arbitration, wherein the dog feeding state signal includes a dog feeding effective state or a dog feeding invalid state.

10. The dog feeding system suitable for a window watchdog according to claim 9, characterized in that: The dog feeding logic operation performed by the window watchdog on the dog feeding signal source is consistent with the dog feeding logic operation performed by the MCU unit on the dog feeding source signal.