CN102270028A - Automatic Loongson mainboard resetting device based on field programmable gate array (FPGA) - Google Patents
Automatic Loongson mainboard resetting device based on field programmable gate array (FPGA) Download PDFInfo
- Publication number
- CN102270028A CN102270028A CN2011102050872A CN201110205087A CN102270028A CN 102270028 A CN102270028 A CN 102270028A CN 2011102050872 A CN2011102050872 A CN 2011102050872A CN 201110205087 A CN201110205087 A CN 201110205087A CN 102270028 A CN102270028 A CN 102270028A
- Authority
- CN
- China
- Prior art keywords
- fpga
- signal
- gpio pin
- godson
- mainboard
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides an automatic Loongson mainboard resetting device based on a field programmable gate array (FPGA). An FPGA chip and a resetting circuit are arranged on a Loongson mainboard, wherein the FPGA chip receives a signal of a general-purpose input/output (GPIO) pin of a Loongson central processor unit (CPU) and sends the signal to the resetting circuit; and the resetting circuit sends a resetting signal to the Loongson CPU, a north bridge chip and a south bridge chip.
Description
Technical field
The present invention relates to the Godson mainboard and automatically reset, specifically, relate to a kind of automatically reset device of Godson mainboard based on FPGA.
Background technology
Because the cause of the design of loongson3A CPU, the HT bus that can cause CPU does not link under individual cases with the HT bus of RS780E and the situation that occurs crashing, but when this situation occurring, the mainboard that resets just can make it chain again.
Therefore in order to repair the BUG of this hardware, the mainboard that designs with loongson3A CPU and AMD RS780E north bridge in the market can adopt a kind of method of using house dog to realize the timing automatic mainboard that resets.Detailed method such as Fig. 1:
The key of the realization of this method is to select a watchdog circuit, watchdog circuit, be watchdog timer again, it is a timer circuit, an input is generally arranged, cry and feed dog (kicking the dog or service the dog), a RST end that outputs to MCU in the time of the MCU operate as normal, is held to feeding dog every signal of end time output, give the WDT zero clearing, do not feed dog if surpass official hour, (generally when program fleet), WDT regularly surpasses, will provide a reset signal to MCU, MCU is resetted. its function is to prevent that MCU from crashing.
Principle of work for Fig. 1 is such: when mainboard one start, watchdog circuit has just been started working, because there is individual timer the watchdog circuit the inside, one power on so, timer has just picked up counting, and Godson 3A CPU need be by the GPIO pin of oneself, regularly send pulse waveform to watchdog circuit, allow the timer of watchdog circuit carry out clear operation, if and CPU is not with on north bridge is connected, mainboard crashes so, and PMON can not continue to carry out yet, and therefore comes the timer of watchdog circuit is carried out clear operation with regard to not sending pulse, and like this, when house dog timing the time to the regular hour, will send the order that resets with reset circuit, make the reset circuit monoblock mainboard that resets.Like this just can solve the hardware BUG of the above-mentioned Godson 3A CPU that carries.
But there is the problem of adjustability difference in such method.At first will select a suitable watchdog circuit is exactly a problem, because there is the problem of maximum timing in watchdog chip, so the speed of on type selecting, carrying out with regard to the program that needs concern PMON.Like this, if the program of PMON has been changed, just cause previously used house dog just to be done for possibly, because surpassed the maximum timing number of house dog.
The time of the timer of watchdog circuit is provided with in addition needs to use RC to be provided with, like this, and neither be very convenient in debugging.Simultaneously since need allow CPU regularly send reset signal to watchdog circuit, like this, can take the occupancy of number of C PU.
Summary of the invention
Realize the problem of the automatically reset adjustability difference of Godson 3A mainboard in order to solve watchdog circuit.The present invention adopts the mode of FPGA to realize automatically reseting of Godson mainboard.
A kind of automatically reset device of Godson mainboard based on FPGA, fpga chip and reset circuit on the Godson mainboard, have been added, described fpga chip receives the signal of the GPIO pin of Godson CPU, described fpga chip sends a signal to described reset circuit, and described reset circuit sends reset signal to Godson CPU, north bridge chips and South Bridge chip.
Preferably, when the Godson mainboard starts, check out after whether the HT bus connect, load the assignment program GPIO pin is carried out assignment at PMON.
Preferably, described assignment program is not operated the GPIO pin when the HT bus does not connect; After on the HT bus connects, to GPIO pin assignment.
Preferably, described FPGA begins to detect GPIO pin value after the time of setting.
Preferably, if described GPIO pin value 0, then FPGA sends signal and gives reset circuit; Described GPIO pin value is if be not 0, and then FPGA does not send signal.
Preferably, described reset circuit sends reset signal and gives Godson CPU after receiving the signal of FPGA, and north bridge chips and South Bridge chip restart.
Preferably, the initial value of described GPIO pin is 0.
Preferably, the time of described setting is to set in FPGA by program.
Beneficial effect of the present invention is as follows:
1, it is unrestricted that FPGA regulates the time, and than the method for house dog, convenience is to have improved greatly.
2, owing to be to realize automatically reseting with FPGA, employing be the method that detects GPIO pin level, and, after being provided with a value,, can remain this value if it is not operated again for the GPIO pin of Godson 3A CPU always.The utilization factor that like this just can be good at saving CPU, and unlike the method for using house dog, CPU also wants sending watchdog zero clearing signal and need take the utilization factor of CPU regularly.
Description of drawings
Fig. 1 is the resetting means of present Godson mainboard
Fig. 2 is the resetting means of Godson mainboard of the present invention
Embodiment
The present invention has changed watchdog circuit commonly used at present into FPGA and has realized that detailed principle of work is as follows:
The present invention utilizes the GPIO pin of Godson 3A CPU to make an issue of, because we know the GPIO pin of Godson 3A, it is output as " 0 " under the state that it is not carried out any operation, therefore the GPIO pin of Godson 3A is connected on the FPGA, by after detecting the program whether HT chain on the PMON, add the program of GPIO pin assignment, because FPGA is being provided with temporal superiority, therefore when FPGA begins to detect this GPIO pin by the time (execution speed that needs coupling PMON is set of time) is set, if find that at this moment the value of GPIO pin does not change, then show system extremely at link this part of HT, at this moment system is restarted by FPGA.Like this just having avoided the people is the situation of restarting.And if variation has taken place in discovery GPIO pin at this moment, prove that then PMON has carried out the code of this delegation, that is to say the link success of HT, then FPGA does not send reset signal to reset circuit.
Claims (8)
1. automatically reset device of Godson mainboard based on FPGA, it is characterized in that: on the Godson mainboard, added fpga chip and reset circuit, described fpga chip receives the signal of the G PIO pin of Godson CPU, described fpga chip sends a signal to described reset circuit, and described reset circuit sends reset signal to Godson CPU, north bridge chips and South Bridge chip.
2. device as claimed in claim 1 is characterized in that: when the Godson mainboard starts, check out after whether the HT bus connect at PMON, load the assignment program GPIO pin is carried out assignment.
3. device as claimed in claim 2 is characterized in that: described assignment program is not operated the GPIO pin when the HT bus does not connect; After on the HT bus connects, to GPIO pin assignment.
4. device as claimed in claim 1 is characterized in that: described FPGA begins to detect GPIO pin value after the time of setting.
5. device as claimed in claim 4 is characterized in that: if described GPIO pin value 0, then FPGA sends signal and gives reset circuit; Described GPIO pin value is if be not 0, and then FPGA does not send signal.
6. device as claimed in claim 5 is characterized in that: described reset circuit sends reset signal and gives Godson CPU after receiving the signal of FPGA, and north bridge chips and South Bridge chip restart.
7. device as claimed in claim 1 is characterized in that: the initial value of described GPIO pin is 0.
8. device as claimed in claim 4 is characterized in that: the time of described setting is to set in FPGA by program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110205087 CN102270028B (en) | 2011-07-21 | 2011-07-21 | Automatic Loongson mainboard resetting device based on field programmable gate array (FPGA) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110205087 CN102270028B (en) | 2011-07-21 | 2011-07-21 | Automatic Loongson mainboard resetting device based on field programmable gate array (FPGA) |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102270028A true CN102270028A (en) | 2011-12-07 |
CN102270028B CN102270028B (en) | 2013-08-28 |
Family
ID=45052356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110205087 Active CN102270028B (en) | 2011-07-21 | 2011-07-21 | Automatic Loongson mainboard resetting device based on field programmable gate array (FPGA) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102270028B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686358A (en) * | 2013-11-14 | 2014-03-26 | 乐视致新电子科技(天津)有限公司 | MCU reset control device, television system and method |
CN104156289A (en) * | 2014-07-09 | 2014-11-19 | 中国电子科技集团公司第三十二研究所 | Synchronous control method and system based on detection circuit |
CN104572535A (en) * | 2014-12-26 | 2015-04-29 | 中国电子科技集团公司第十五研究所 | Autonomous and controllable computing device based on CPCI-E (compact peripheral component interconnect-express) bus |
CN105743468A (en) * | 2014-12-09 | 2016-07-06 | 联想(北京)有限公司 | Circuit module, electronic equipment, and information processing method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1321922A (en) * | 2000-07-29 | 2001-11-14 | 深圳市中兴通讯股份有限公司 | Resetting method of CPU system containing field programmable gate array |
US20050105006A1 (en) * | 2002-03-20 | 2005-05-19 | Pitsch Robert A. | Production line boot sector lock |
CN2824125Y (en) * | 2005-08-11 | 2006-10-04 | 中兴通讯股份有限公司 | Watchdog reset circuit |
CN1854742A (en) * | 2005-04-21 | 2006-11-01 | 鸿富锦精密工业(深圳)有限公司 | System and method for testing light-emitting diodes light and its tie wire of computer panel |
CN101145075A (en) * | 2007-08-09 | 2008-03-19 | 中兴通讯股份有限公司 | Veneer reposition control method |
CN102063081A (en) * | 2010-11-04 | 2011-05-18 | 天津曙光计算机产业有限公司 | Design method for realizing power on and off and time sequence resetting of Loongson mainboard by utilizing state machine |
-
2011
- 2011-07-21 CN CN 201110205087 patent/CN102270028B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1321922A (en) * | 2000-07-29 | 2001-11-14 | 深圳市中兴通讯股份有限公司 | Resetting method of CPU system containing field programmable gate array |
US20050105006A1 (en) * | 2002-03-20 | 2005-05-19 | Pitsch Robert A. | Production line boot sector lock |
CN1854742A (en) * | 2005-04-21 | 2006-11-01 | 鸿富锦精密工业(深圳)有限公司 | System and method for testing light-emitting diodes light and its tie wire of computer panel |
CN2824125Y (en) * | 2005-08-11 | 2006-10-04 | 中兴通讯股份有限公司 | Watchdog reset circuit |
CN101145075A (en) * | 2007-08-09 | 2008-03-19 | 中兴通讯股份有限公司 | Veneer reposition control method |
CN102063081A (en) * | 2010-11-04 | 2011-05-18 | 天津曙光计算机产业有限公司 | Design method for realizing power on and off and time sequence resetting of Loongson mainboard by utilizing state machine |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686358A (en) * | 2013-11-14 | 2014-03-26 | 乐视致新电子科技(天津)有限公司 | MCU reset control device, television system and method |
CN104156289A (en) * | 2014-07-09 | 2014-11-19 | 中国电子科技集团公司第三十二研究所 | Synchronous control method and system based on detection circuit |
CN104156289B (en) * | 2014-07-09 | 2017-10-27 | 中国电子科技集团公司第三十二研究所 | Synchronous control method and system based on detection circuit |
CN105743468A (en) * | 2014-12-09 | 2016-07-06 | 联想(北京)有限公司 | Circuit module, electronic equipment, and information processing method |
CN105743468B (en) * | 2014-12-09 | 2020-02-21 | 联想(北京)有限公司 | Circuit module, electronic equipment and information processing method |
CN104572535A (en) * | 2014-12-26 | 2015-04-29 | 中国电子科技集团公司第十五研究所 | Autonomous and controllable computing device based on CPCI-E (compact peripheral component interconnect-express) bus |
Also Published As
Publication number | Publication date |
---|---|
CN102270028B (en) | 2013-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102270028B (en) | Automatic Loongson mainboard resetting device based on field programmable gate array (FPGA) | |
CN100568191C (en) | The full-range dog-feeding method of embedded system | |
US9946677B2 (en) | Managing single-wire communications | |
CN106233273B (en) | Mix virtual GPIO | |
EP2847681B1 (en) | Device having configurable breakpoint based on interrupt status | |
CN106527249B (en) | Timer for peripheral watchdog | |
CN102521187A (en) | Method for solving communication deadlock of I2C (Inter-Integrated Circuit) bus | |
CN102023912A (en) | Dormancy wake-up testing system and method | |
CN102096649A (en) | UART-based sleep wakeup method and device | |
CN104737148A (en) | Virtual gpio | |
CN103853625A (en) | Realizing device and method for multi-task watchdog | |
CN102163071A (en) | Control circuit and power control method during reset thereof | |
US20120005656A1 (en) | Adapter and debugging method using the same | |
CN103389914A (en) | Satellite-borne triple modular redundancy system based on clock synchronization technology | |
CN103543344A (en) | Method for solving failure of capacitive screen and capacitive screen anomaly detection circuit | |
TWI564722B (en) | Black plane and method for detecting serial general purpose input/output signal thereof | |
CN104572331B (en) | The monitoring module enabled with power monitoring and delayed | |
CN101833480B (en) | Method for realizing watchdog by using timer and resetting pin of singlechip | |
CN102025565B (en) | I2C bus communication detection method used among multiple devices | |
CN101645057A (en) | Method and device for preventing CPU local bus from suspension | |
CN206069103U (en) | Intelligent elevator control system based on STC single-chip microcomputers | |
TWI501593B (en) | Switch test apparatus and test apparatus thereof | |
CN202615379U (en) | Watchdog resetting circuit | |
CN101739021B (en) | Equipment self-inspection control device | |
CN102193609B (en) | Setting method for power supply locking and electronic device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C41 | Transfer of patent application or patent right or utility model | ||
TR01 | Transfer of patent right |
Effective date of registration: 20160119 Address after: 124000 Panjin, Liaoning Province, coastal economic zone in the coastal area of the crown building, building 3018, room 3, Liaoning Patentee after: Dawning Information Systems (Liaoning) Co., Ltd. Address before: 300384 Tianjin city Xiqing District Huayuan Industrial Zone (outer ring) Haitai Huake Street No. 15 1-3 Patentee before: Sugon Information Industry Co., Ltd. |