CN105653384A - Soft-core CPU resetting method and master-slave type system - Google Patents

Soft-core CPU resetting method and master-slave type system Download PDF

Info

Publication number
CN105653384A
CN105653384A CN201511028108.2A CN201511028108A CN105653384A CN 105653384 A CN105653384 A CN 105653384A CN 201511028108 A CN201511028108 A CN 201511028108A CN 105653384 A CN105653384 A CN 105653384A
Authority
CN
China
Prior art keywords
soft
application program
cpu
soft nucleus
nucleus cpu
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.)
Pending
Application number
CN201511028108.2A
Other languages
Chinese (zh)
Inventor
江锐
唐受全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Wellav Technologies Co ltd
Original Assignee
Huizhou Wellav Technologies Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huizhou Wellav Technologies Co ltd filed Critical Huizhou Wellav Technologies Co ltd
Priority to CN201511028108.2A priority Critical patent/CN105653384A/en
Publication of CN105653384A publication Critical patent/CN105653384A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0721Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment within a central processing unit [CPU]
    • G06F11/0724Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment within a central processing unit [CPU] in a multiprocessor or a multi-core unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

Abstract

The invention discloses a soft-core CPU resetting method. The soft-core CPU resetting method comprises the steps that a master CPU sends application programs down to a soft-core CPU; the soft-core CPU executes a bootstrap program in a bootstrap program module and saves the application programs in an application program backup region and an application program execution region in an off-chip RAM; the soft-core CPU jumps to execute the application programs stored in the application program execution region on the basis of the bootstrap program and saves state parameters in a parameter save region in the off-chip RAM; a logic monitor module monitors the working state of the soft-core CPU and sends out a reset signal to the soft-core CPU when the logic monitor module detects that the soft-core CPU is abnormal; the soft-core CPU executes the bootstrap program to copy the application programs in the application program backup region to the application program execution region; the soft-core CPU jumps to execute the application programs stored in the application program execution region and reads the state parameters in the parameter save region, and therefore rapid resetting of the soft-core CPU is achieved. Compared with the prior art, the method has the advantages that the resetting efficiency of the soft-core CPU can be improved when the soft-core CPU is abnormal.

Description

A kind of soft nucleus CPU repositioning method and principal and subordinate's formula system
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of soft nucleus CPU repositioning method and principal and subordinate's formula system.
Background technology
Along with the development of design and manufaction technology, integrated circuit (IC) design has developed into the integrated of IP, i.e. SOC (SystemOn-a-Chip) designing technique. SOC can effectively reduce cost of development, shorten the construction cycle, is the topmost product development mode that industry member will adopt from now on.
See Fig. 1, it is one of SOC in conventional art application scene, comprises primary device 11 and from equipment 12 principal and subordinate's formula system. Primary device 11 has main CPU, and adopts SOC to realize from equipment 12. When system electrification, SOC is carried out initial configuration and issues application program by main CPU. The soft nucleus CPU of the upper use one of SOC or more, in order to perform application program, thus realizes the various functions of SOC customization. Soft nucleus CPU as from the core of equipment, once be limited to logic working situation and self structure impact and producing exception, by the normal operation of influential system. It is therefore necessary in time soft nucleus CPU is resetted. In conventional art, it is communicated by interface circuit with soft nucleus CPU by main CPU, the running status of soft nucleus CPU is monitored, once occur abnormal, just control soft nucleus CPU resets, namely by main CPU, soft nucleus CPU is carried out initial configuration, and issue application program, this kind of repositioning method, owing to communication interface communication is usually relatively slow, therefore whole process is consuming time long, and efficiency comparison is low, when the main CPU of primary device completes reconfiguring and transfer application soft nucleus CPU, may cause huge problem from equipment.
Summary of the invention
Based on this, it is necessary to provide a kind of soft nucleus CPU repositioning method and principal and subordinate's formula system, compared to conventional art, it is possible to when soft nucleus CPU is abnormal, it is to increase its reset efficiency.
A kind of soft nucleus CPU repositioning method, is applied to principal and subordinate's formula system, and described principal and subordinate's formula system comprises system and the outer RAM of sheet on main CPU, sheet, and described upper system comprises soft nucleus CPU, bootstrap program module and Logical Supervisory Control module;Described method comprises:
Application program is handed down to soft nucleus CPU by main CPU;
Soft nucleus CPU, performs the preamble in bootstrap program module, and the Application Backup district and the application program that application program are kept in the outer RAM of sheet perform district;
Soft nucleus CPU, based on preamble, redirect performs the application program that application program performs in district to store, and parameter conservation zone state parameter being kept in the outer RAM of sheet;
Logical Supervisory Control module, monitors the working order of soft nucleus CPU, after detecting that soft nucleus CPU is abnormal, sends reset signal to soft nucleus CPU;
Soft nucleus CPU, performs preamble, and to application program, the application copy in Application Backup district is performed district;
Soft nucleus CPU, redirect performs the application program that application program performs in district to store, and reads the state parameter in parameter conservation zone, thus realizes the Rapid reset of soft nucleus CPU.
A kind of principal and subordinate's formula system, comprises system and the outer RAM of sheet on main CPU, sheet, and described upper system comprises soft nucleus CPU, bootstrap program module and Logical Supervisory Control module;
Described main CPU, for being handed down to soft nucleus CPU by application program;
Soft nucleus CPU, for the preamble performed in bootstrap program module, the Application Backup district and the application program that application program are kept in the outer RAM of sheet perform district;
Soft nucleus CPU, also for based on preamble, redirect performs the application program that application program performs in district to store, and parameter conservation zone state parameter being kept in the outer RAM of sheet;
Logical Supervisory Control module, for the working order of soft nucleus CPU being monitored, after detecting that soft nucleus CPU is abnormal, sends reset signal to soft nucleus CPU;
Soft nucleus CPU, also for performing preamble, performs district by the application copy in Application Backup district to application program;
Soft nucleus CPU, also performs, for redirect, the application program that application program performs storage in district, and reads the state parameter in parameter conservation zone, thus realize the Rapid reset of soft nucleus CPU.
Above-mentioned soft nucleus CPU repositioning method and principal and subordinate's formula system, the application storage issued by main CPU by soft nucleus CPU performs district to Application Backup district and the application program of the outer RAM of sheet, redirect performs application program and performs the application program in district again, and parameter conservation zone state parameter being kept in the outer RAM of sheet, by Logical Supervisory Control module, the working order of soft nucleus CPU is monitored, after detecting that soft nucleus CPU is abnormal, reset signal is sent to soft nucleus CPU, application copy in Application Backup district is performed district to application program by soft nucleus CPU, redirect performs the application program that application program performs in district to store, and read the state parameter in parameter conservation zone, compared to conventional art by main CPU by communication interface circuit monitoring soft nucleus CPU state, and re-issue application program when resetting, improve reset efficiency.
Accompanying drawing explanation
Fig. 1 is an application scene schematic diagram of conventional art;
Fig. 2 is the structural representation of the principal and subordinate's formula system in an embodiment;
Fig. 3 is the storage organization schematic diagram of the outer RAM of the sheet in an embodiment.
Embodiment
In order to make the object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated. It is to be understood that specific embodiment described herein is only in order to explain the present invention, it is not intended to limit the present invention.
See Fig. 2, it provides a kind of principal and subordinate's formula system, comprising system and the outer RAM23 of sheet on main CPU21, sheet, described upper system comprises soft nucleus CPU 221, bootstrap program module 222 and Logical Supervisory Control module 223;
Described main CPU, for being handed down to soft nucleus CPU by application program;
Soft nucleus CPU, for the preamble performed in bootstrap program module, the Application Backup district and the application program that application program are kept in the outer RAM of sheet perform district;
Soft nucleus CPU, also for based on preamble, redirect performs the application program that application program performs in district to store, and parameter conservation zone state parameter being kept in the outer RAM of sheet;
Logical Supervisory Control module, for the working order of soft nucleus CPU being monitored, after detecting that soft nucleus CPU is abnormal, sends reset signal to soft nucleus CPU;
Soft nucleus CPU, also for performing preamble, performs district by the application copy in Application Backup district to application program;
Soft nucleus CPU, also performs, for redirect, the application program that application program performs storage in district, and reads the state parameter in parameter conservation zone, thus realize the Rapid reset of soft nucleus CPU.
Composition graphs 2 and Fig. 3, it provides a kind of soft nucleus CPU repositioning method that can be used for the formula system of principal and subordinate described in embodiment, the method comprises:
Application program is handed down to soft nucleus CPU by main CPU. Concrete, after the power-up, soft nucleus CPU is carried out initialize parameter configuration to system by main CPU, and provides application program to download.
Soft nucleus CPU, performs the preamble in bootstrap program module, and the Application Backup district and the application program that application program are kept in the outer RAM of sheet perform district.
Soft nucleus CPU, based on preamble, redirect performs the application program that application program performs in district to store, and parameter conservation zone state parameter being kept in the outer RAM of sheet.
Logical Supervisory Control module, monitors the working order of soft nucleus CPU, after detecting that soft nucleus CPU is abnormal, sends reset signal to soft nucleus CPU. Concrete, Logical Supervisory Control module and soft nucleus CPU can be on same a slice FPGA, and communication speed is very fast. Logical Supervisory Control module can pass through hardware description language, as VHDL, verilog etc. realize, the value of the inner a series of mark running status of register of soft nucleus CPU can be obtained in real time, thus the running status of soft nucleus CPU is detected, exception detected, it is possible to but be not limited to send a low level signal to soft nucleus CPU reset pin.
Soft nucleus CPU, re-executes preamble on sheet, simultaneously extraction logic status information, according to the exceptional reset mark in status information and Application Backup regional address and length, by the application copy in Application Backup district to application program execution district. Concrete, when resetting, soft nucleus CPU is from the Application Backup district copy application program in RAM sheet. As in Fig. 3, Application Backup district and application program perform district and belong to the outer RAM of a slice, and transfer is very fast, compared to conventional art by main CPU by communication interface as the serial ports such as UART, I2C issue program, it is to increase transfer rate. Fig. 3 is the storage organization of the outer RAM of a sheet, it it is Application Backup district between the 0x0 to 0x200000 of address, address 0x2000000 to 0x400000 is parameter storage zone, address 0x4000000 to 0x6000000 is that application program performs district, and address 0x6000000 to 0x8000000 is reserved area for subsequent use.
Soft nucleus CPU, redirect performs the application program that application program performs in district to store, and reads the state parameter in parameter conservation zone, thus realizes the Rapid reset of soft nucleus CPU. Concrete, soft nucleus CPU steering routine performs the application program in district, and reading state parameter loads, it is possible to quickly recover to system works progress when occurring abnormal, compared to conventional art, it is not necessary to accent starts to perform application program after the reset.
Soft nucleus CPU repositioning method in above-described embodiment and principal and subordinate's formula system, the application storage issued by main CPU by soft nucleus CPU performs district to Application Backup district and the application program of the outer RAM of sheet, redirect performs application program and performs the application program in district again, and parameter conservation zone state parameter being kept in the outer RAM of sheet, by Logical Supervisory Control module, the working order of soft nucleus CPU is monitored, after detecting that soft nucleus CPU is abnormal, reset signal is sent to soft nucleus CPU, application copy in Application Backup district is performed district to application program by soft nucleus CPU, redirect performs the application program that application program performs in district to store, and read the state parameter in parameter conservation zone, compared to conventional art by main CPU by communication interface circuit monitoring soft nucleus CPU state, and re-issue application program when resetting, improve reset efficiency.
The above embodiment only have expressed several enforcement modes of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to patent scope of the present invention. , it is also possible to make some distortion and improvement, it should be appreciated that for the person of ordinary skill of the art, without departing from the inventive concept of the premise these all belong to protection scope of the present invention. Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (2)

1. a soft nucleus CPU repositioning method, is applied to principal and subordinate's formula system, and described principal and subordinate's formula system comprises system and the outer RAM of sheet on main CPU, sheet, and described upper system comprises soft nucleus CPU, bootstrap program module and Logical Supervisory Control module; It is characterized in that, described method comprises:
Application program is handed down to soft nucleus CPU by main CPU;
Soft nucleus CPU, performs the preamble in bootstrap program module, and the Application Backup district and the application program that application program are kept in the outer RAM of sheet perform district;
Soft nucleus CPU, based on preamble, redirect performs the application program that application program performs in district to store, and parameter conservation zone state parameter being kept in the outer RAM of sheet;
Logical Supervisory Control module, monitors the working order of soft nucleus CPU, after detecting that soft nucleus CPU is abnormal, sends reset signal to soft nucleus CPU;
Soft nucleus CPU, performs preamble, and to application program, the application copy in Application Backup district is performed district;
Soft nucleus CPU, redirect performs the application program that application program performs in district to store, and reads the state parameter in parameter conservation zone, thus realizes the Rapid reset of soft nucleus CPU.
2. principal and subordinate's formula system, it is characterised in that, described principal and subordinate's formula system comprises system and the outer RAM of sheet on main CPU, sheet, and described upper system comprises soft nucleus CPU, bootstrap program module and Logical Supervisory Control module;
Described main CPU, for being handed down to soft nucleus CPU by application program;
Soft nucleus CPU, for the preamble performed in bootstrap program module, the Application Backup district and the application program that application program are kept in the outer RAM of sheet perform district;
Soft nucleus CPU, also for based on preamble, redirect performs the application program that application program performs in district to store, and parameter conservation zone state parameter being kept in the outer RAM of sheet;
Logical Supervisory Control module, for the working order of soft nucleus CPU being monitored, after detecting that soft nucleus CPU is abnormal, sends reset signal to soft nucleus CPU;
Soft nucleus CPU, also for performing preamble, performs district by the application copy in Application Backup district to application program;
Soft nucleus CPU, also performs, for redirect, the application program that application program performs storage in district, and reads the state parameter in parameter conservation zone, thus realize the Rapid reset of soft nucleus CPU.
CN201511028108.2A 2015-12-30 2015-12-30 Soft-core CPU resetting method and master-slave type system Pending CN105653384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511028108.2A CN105653384A (en) 2015-12-30 2015-12-30 Soft-core CPU resetting method and master-slave type system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511028108.2A CN105653384A (en) 2015-12-30 2015-12-30 Soft-core CPU resetting method and master-slave type system

Publications (1)

Publication Number Publication Date
CN105653384A true CN105653384A (en) 2016-06-08

Family

ID=56490231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511028108.2A Pending CN105653384A (en) 2015-12-30 2015-12-30 Soft-core CPU resetting method and master-slave type system

Country Status (1)

Country Link
CN (1) CN105653384A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528311A (en) * 2016-09-29 2017-03-22 杭州芯讯科技有限公司 Embedded system and control method thereof
CN106951342A (en) * 2017-03-17 2017-07-14 数据通信科学技术研究所 Flash error correction method in a kind of TF cards
CN108121625A (en) * 2016-11-30 2018-06-05 联芯科技有限公司 The method that data are obtained during error
CN109032823A (en) * 2018-05-30 2018-12-18 出门问问信息科技有限公司 A kind of extremely self-healing method and device of voice module
CN115562465A (en) * 2022-09-14 2023-01-03 中国科学院空间应用工程与技术中心 Resetting method and system for soft-core processor in FPGA system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804799A (en) * 2005-01-12 2006-07-19 华为技术有限公司 SCM online loading and updating method and system
CN1929669A (en) * 2006-07-25 2007-03-14 浙江三维通信股份有限公司 Method for applied remote upgrade of directly amplifying station equipment embedded software
CN101004690A (en) * 2007-01-09 2007-07-25 京信通信技术(广州)有限公司 Integrative method for updating load program and application program in embedded type system
CN202041826U (en) * 2010-12-27 2011-11-16 北京遥测技术研究所 Integrated antenna digital control device based on NIOS II microprocessor
CN103744713A (en) * 2014-02-11 2014-04-23 哈尔滨工业大学 Autonomous configuration method for FPGA (field programmable gate array)-based embedded dual-core system
CN104102518A (en) * 2014-07-23 2014-10-15 江苏兆伏新能源有限公司 Double-CPU system and program updating method thereof
CN104282054A (en) * 2014-08-06 2015-01-14 上海交通大学 MVB (Multifunction Vehicle Bus) bus decoding and on-vehicle recording system based on SOPC technology
CN104346239A (en) * 2014-06-27 2015-02-11 国家电网公司 Method and device for recovering anomaly of application program in embedded system
CN104572206A (en) * 2015-01-14 2015-04-29 厦门为那通信科技有限公司 Application program self updating and backup recovery method
CN104698941A (en) * 2015-03-11 2015-06-10 南京大全自动化科技有限公司 FPGA-based (field programmable gate array-based) embedded dual-core relay protecting system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804799A (en) * 2005-01-12 2006-07-19 华为技术有限公司 SCM online loading and updating method and system
CN1929669A (en) * 2006-07-25 2007-03-14 浙江三维通信股份有限公司 Method for applied remote upgrade of directly amplifying station equipment embedded software
CN101004690A (en) * 2007-01-09 2007-07-25 京信通信技术(广州)有限公司 Integrative method for updating load program and application program in embedded type system
CN202041826U (en) * 2010-12-27 2011-11-16 北京遥测技术研究所 Integrated antenna digital control device based on NIOS II microprocessor
CN103744713A (en) * 2014-02-11 2014-04-23 哈尔滨工业大学 Autonomous configuration method for FPGA (field programmable gate array)-based embedded dual-core system
CN104346239A (en) * 2014-06-27 2015-02-11 国家电网公司 Method and device for recovering anomaly of application program in embedded system
CN104102518A (en) * 2014-07-23 2014-10-15 江苏兆伏新能源有限公司 Double-CPU system and program updating method thereof
CN104282054A (en) * 2014-08-06 2015-01-14 上海交通大学 MVB (Multifunction Vehicle Bus) bus decoding and on-vehicle recording system based on SOPC technology
CN104572206A (en) * 2015-01-14 2015-04-29 厦门为那通信科技有限公司 Application program self updating and backup recovery method
CN104698941A (en) * 2015-03-11 2015-06-10 南京大全自动化科技有限公司 FPGA-based (field programmable gate array-based) embedded dual-core relay protecting system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528311A (en) * 2016-09-29 2017-03-22 杭州芯讯科技有限公司 Embedded system and control method thereof
CN108121625A (en) * 2016-11-30 2018-06-05 联芯科技有限公司 The method that data are obtained during error
CN106951342A (en) * 2017-03-17 2017-07-14 数据通信科学技术研究所 Flash error correction method in a kind of TF cards
CN106951342B (en) * 2017-03-17 2019-07-19 数据通信科学技术研究所 The error correction method of Flash in a kind of TF card piece
CN109032823A (en) * 2018-05-30 2018-12-18 出门问问信息科技有限公司 A kind of extremely self-healing method and device of voice module
CN115562465A (en) * 2022-09-14 2023-01-03 中国科学院空间应用工程与技术中心 Resetting method and system for soft-core processor in FPGA system

Similar Documents

Publication Publication Date Title
CN105653384A (en) Soft-core CPU resetting method and master-slave type system
CN102622150B (en) Static eliminating method for touch screen
KR20140079417A (en) Apparatus and methods for an interconnect power manager
CN103955414A (en) Self-restoration method and device of USB (universal serial bus) Host fault
CN103399840A (en) Out-of-band altering method of configuration file of computer and computer
CN105302383A (en) Anti-interference method and device for capacitive touch sensor
CN102681739B (en) Static elimination method for touch screen
CN104331318B (en) A kind of Embedded Double system and its method of work
CN103593622A (en) FPGA-based design method of safe and trusted computer
CN103403689A (en) Resource failure management method, device and system
CN104010077B (en) A kind of information processing method and electronic equipment
CN104125049A (en) Redundancy implementation method of PCIE (Peripheral Component Interface Express) device based on BRICKLAND platform
CN105138425A (en) Detection method and system for health status of disk
CN110968352B (en) Reset system and server system of PCIE equipment
CN104750226A (en) USB (universal serial bus) OTG (on-the-go) pattern recognition system and USB OTG pattern recognition method
CN106528320B (en) Computer system
CN101794241A (en) Circuit of power-on reset of triple redundancecy fault-tolerance computer based on programmable logic device
CN103423186A (en) Fan failure detection method and electronic device
CN105095041A (en) Chip debugging method
CN105260275A (en) Power on/off testing method applicable to automatic configuration partition of high-end host computer
CN106092484A (en) The service data report method of mobile terminal and device
CN104133759A (en) Method and device for realizing extension module removal
CN206363301U (en) The TYPE_C interface protocol chips of super low-power consumption
CN102281105A (en) Method and device for detecting optical fiber state
CN109391481A (en) Virtualize network element failure self-healing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160608

RJ01 Rejection of invention patent application after publication