CN113535248A - TP chip power-on starting method for reducing SRAM space - Google Patents

TP chip power-on starting method for reducing SRAM space Download PDF

Info

Publication number
CN113535248A
CN113535248A CN202110707107.XA CN202110707107A CN113535248A CN 113535248 A CN113535248 A CN 113535248A CN 202110707107 A CN202110707107 A CN 202110707107A CN 113535248 A CN113535248 A CN 113535248A
Authority
CN
China
Prior art keywords
cpu
dramb
remap
space
boot
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
Application number
CN202110707107.XA
Other languages
Chinese (zh)
Other versions
CN113535248B (en
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.)
Hefei Pinetech Electronics Co ltd
Original Assignee
Hefei Pinetech Electronics 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 Hefei Pinetech Electronics Co ltd filed Critical Hefei Pinetech Electronics Co ltd
Priority to CN202110707107.XA priority Critical patent/CN113535248B/en
Publication of CN113535248A publication Critical patent/CN113535248A/en
Application granted granted Critical
Publication of CN113535248B publication Critical patent/CN113535248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0877Cache access modes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0893Caches characterised by their organisation or structure
    • G06F12/0895Caches characterised by their organisation or structure of parts of caches, e.g. directory or tag array
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
    • G06F15/781On-chip cache; Off-chip memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7839Architectures of general purpose stored program computers comprising a single central processing unit with memory
    • G06F15/7842Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers)
    • G06F15/7846On-chip cache and off-chip main memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1028Power efficiency
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1041Resource optimization
    • G06F2212/1044Space efficiency improvement
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Power Sources (AREA)

Abstract

A TP chip power-on starting method for reducing SRAM space comprises the following steps: s1, defining a register bit REMAP, and performing address mapping control by this bit, where REMAP is 0 at the beginning of power-on; s2, resetting the CPU by the IC internal module, stopping the CPU from running, simultaneously carrying the Boot program stored by the Eflash to Dramb by the Eflash _ Ctrl module, and releasing the CPU reset after the carrying is finished; s3, the CPU starts to run Boot, the running space is Dramb at the moment, and the data cache space of the CPU is Drama; s4, when the Boot function is completed, configuring the register to make REMAP 1; when REMAP is 1, CPU resets to make CPU run again, at this time, CPU running space is mapped to Eflash, both Drama and Dramb are used as data buffer area, and routing distribution is carried out according to IC invented address division to access Drama or Dramb. The invention achieves the aims of reducing the area of the SRAM and reducing the power consumption.

Description

TP chip power-on starting method for reducing SRAM space
Technical Field
The invention relates to the technical field of chips, in particular to a TP chip power-on starting method for reducing SRAM space.
Background
In globalization today, the development of electronic products is also a day-to-day change, and electronic products which are creative and closely related to human life are continuously emerging. Along with the requirement of people on the quality of life is gradually improved, the wearable product can detect health indexes such as heart rate and blood pressure, so the wearable market is a huge potential market, and both a terminal manufacturer and a touch display IC company can be dedicated to the development of the wearable market product.
The TP IC is an essential component of the smart wearable device, and the area and power consumption of the TP IC are required to be higher by the smart wearable device.
For a small embedded application SOC chip, an SRAM, a plug-in SPI FLASH and an Eflash are generally used as the operation space of the APP.
When the SRAM is used as the APP space, an additional read-only memory device Rom is needed as the operation space of the Boot, and the Boot has the main functions of communicating with an external host to download the APP file into the SRAM storage area through an external interface and check the APP; or the Boot reads the APP file into the SRAM storage area by reading the storage space of the plug-in SPI flash in which the APP file is stored, and then checks the APP.
When the flashh is used as the APP running space, the running space of the Boot in the conventional scheme may be divided into two cases. The first is that extra Rom is needed as the operation space of Boot; the second is that Boot also runs in the flashspace.
When the SRAM is used as the APP running space, the Boot region is an independent region, and an additional Rom memory device is needed, so that the area of the IC is increased. And the SRAM is used as the operation space of the APP, so that the SRAM is easily interfered by ESD, once the data in the SRAM is knocked over by the ESD, the whole system cannot be reset, and the power needs to be powered on again. In addition, because Rom is used as the Boot running space, the Boot needs to be added into the production flow when the IC is produced, so that the modification cannot be carried out. Once errors are found during subsequent chip verification, the errors must be corrected by re-streaming, and the fault-tolerant cost is too high.
When the flashh is used as the APP operation space, the two Boot operation modes of the traditional scheme have respective disadvantages. The first method needs extra Rom as the Boot operating space, and the Boot area is an independent area and needs extra Rom storage equipment, so that the area of the IC is increased. Once errors are found during subsequent chip verification, the errors must be corrected by re-streaming, and the fault-tolerant cost is too high. The second type of Boot also runs in the flash space, the main function of the Boot is to upgrade or download an APP file to the flash space, because only one flash interface is provided, the switching of the access of the flash interface is needed to meet the requirement of CPU instruction fetching and data access at the same time, the speed is reduced, and the TP IC has requirements on the first frame time of reporting points.
Disclosure of Invention
The invention provides a TP chip power-on starting method for reducing SRAM space, which is used for achieving the purposes of saving SRAM area and reducing power consumption, and the specific scheme is as follows:
a TP chip power-on starting method for reducing SRAM space comprises the following steps:
s1, defining a register bit REMAP, and performing address mapping control by this bit, where REMAP is 0 at the beginning of power-on;
s2, resetting the CPU by the IC internal module, stopping the CPU from running, simultaneously carrying the Boot program stored by the Eflash to Dramb by the Eflash _ Ctrl module, and releasing the CPU reset after the carrying is finished;
s3, the CPU starts to run Boot, the running space is Dramb at the moment, and the data cache space of the CPU is Drama;
s4, when the Boot function is completed, configuring the register to make REMAP 1; when REMAP is 1, CPU resets to make CPU run again, at this time, CPU running space is mapped to Eflash (storage area of APP), both Drama and Dramb are used as data buffer area, and routing distribution access Drama or Dramb is carried out according to address division of IC invention.
The invention has the beneficial effects that:
(1) with the higher integration of ICs, the global demand for SOC chips is also increasing. One of the main reasons for being called an SOC chip is that the IC has a CPU core integrated therein, and the CPU has the meaning of running APP. For a small embedded application SOC chip, SRAM and Eflash are generally used as the running space of APP. Whichever mode is used as the operating space of the APP, an additional storage space is required to operate the power-on Boot program of the system, which is generally referred to as Boot. When the IC is powered on, the invention firstly utilizes an IC internal module to move the Boot of the Eflash to the DRAM serving as a data cache space as a temporary Boot operation space. Therefore, the Boot operation space and the data cache space are subjected to time-sharing multiplexing, and the aims of reducing the area of the SRAM and reducing the power consumption are fulfilled.
(2) According to the invention, the eFlash is used as a Boot storage area, and when the eFlash is operated, the IC internal module is used for temporarily transporting the Boot to a DRAM area of a data cache, so that the defects of the traditional scheme in the background technology are effectively overcome.
Drawings
Fig. 1 is a block diagram of internal logic when REMAP is 0.
Fig. 2 is a block diagram of internal logic when REMAP is 1.
Detailed Description
A TP chip power-on starting method for reducing SRAM space. The method comprises the following steps:
s1, defining a register bit REMAP, and performing address mapping control by this bit, where REMAP is 0 at the beginning of power-on;
s2, resetting the CPU by the IC internal module, stopping the CPU from running, simultaneously carrying the Boot program stored by the Eflash to Dramb by the Eflash _ Ctrl module, and releasing the CPU reset after the carrying is finished;
s3, the CPU starts to run Boot, the running space is Dramb at the moment, and the data cache space of the CPU is Drama;
s4, when the Boot function is completed, the configuration register sets REMAP to 1, as shown in fig. 1. When REMAP is 1, CPU resets to make CPU run again, at this time, CPU running space is mapped to Eflash (storage area of APP), both Drama and Dramb are used as data buffer area, and routing allocation access Drama or Dramb is performed according to address division of IC invention, as shown in FIG. 2.
As can be seen from the present invention, the data buffer area of the CPU is divided into Drama and Dramb. Dramb is used as an instruction operation area of the CPU when the REMAP is 0, and is used as a data cache area of the CPU when the REMAP is 1, thereby achieving the purpose of time division multiplexing. When performing the size division of Drama and Dramb, it follows that the space where Drama and Dramb are added together should satisfy the requirement of data buffer space in the ReMAP 1 stage, and the size of Dramb should satisfy the size of Boot file.
Therefore, the purposes of reducing the area of the SRAM and reducing the power consumption are achieved through the ingenious arrangement of the invention, and the scheme of using the Elash as the CPU operation space also enhances the ESD resistance.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.

Claims (1)

1. A TP chip power-on starting method for reducing SRAM space is characterized by comprising the following steps:
s1, defining a register bit REMAP, and performing address mapping control by this bit, where REMAP is 0 at the beginning of power-on;
s2, resetting the CPU by the IC internal module, stopping the CPU from running, simultaneously carrying the Boot program stored by the Eflash to Dramb by the Eflash _ Ctrl module, and releasing the CPU reset after the carrying is finished;
s3, the CPU starts to run Boot, the running space is Dramb at the moment, and the data cache space of the CPU is Drama;
s4, when the Boot function is completed, configuring the register to make REMAP 1; when REMAP is 1, CPU resets to make CPU run again, at this time, CPU running space is mapped to Eflash, both Drama and Dramb are used as data buffer area, and routing distribution is carried out according to IC invented address division to access Drama or Dramb.
CN202110707107.XA 2021-06-24 2021-06-24 TP chip power-on starting method for reducing SRAM space Active CN113535248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110707107.XA CN113535248B (en) 2021-06-24 2021-06-24 TP chip power-on starting method for reducing SRAM space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110707107.XA CN113535248B (en) 2021-06-24 2021-06-24 TP chip power-on starting method for reducing SRAM space

Publications (2)

Publication Number Publication Date
CN113535248A true CN113535248A (en) 2021-10-22
CN113535248B CN113535248B (en) 2024-05-28

Family

ID=78096692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110707107.XA Active CN113535248B (en) 2021-06-24 2021-06-24 TP chip power-on starting method for reducing SRAM space

Country Status (1)

Country Link
CN (1) CN113535248B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001331323A (en) * 2000-05-18 2001-11-30 Canon Inc Downloading method, device and system
CN1430142A (en) * 2001-12-29 2003-07-16 深圳市中兴通讯股份有限公司上海第二研究所 Device for realizing software down loading using single-chip processor in communication system and its method
CN105608023A (en) * 2014-10-29 2016-05-25 梅特勒-托利多(常州)测量技术有限公司 Method and system for protecting DRAM stored data of embedded system software
CN108763760A (en) * 2018-05-29 2018-11-06 西安微电子技术研究所 A kind of system level chip based on two-stage BOOT structures
CN111176739A (en) * 2019-12-29 2020-05-19 苏州浪潮智能科技有限公司 System starting method, device, equipment and storage medium
CN111198718A (en) * 2019-12-27 2020-05-26 广东高云半导体科技股份有限公司 FPGA-based processor starting method and processor
CN112068904A (en) * 2020-09-27 2020-12-11 山东云海国创云计算装备产业创新中心有限公司 Chip boot operation method, device and related assembly

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001331323A (en) * 2000-05-18 2001-11-30 Canon Inc Downloading method, device and system
CN1430142A (en) * 2001-12-29 2003-07-16 深圳市中兴通讯股份有限公司上海第二研究所 Device for realizing software down loading using single-chip processor in communication system and its method
CN105608023A (en) * 2014-10-29 2016-05-25 梅特勒-托利多(常州)测量技术有限公司 Method and system for protecting DRAM stored data of embedded system software
CN108763760A (en) * 2018-05-29 2018-11-06 西安微电子技术研究所 A kind of system level chip based on two-stage BOOT structures
CN111198718A (en) * 2019-12-27 2020-05-26 广东高云半导体科技股份有限公司 FPGA-based processor starting method and processor
CN111176739A (en) * 2019-12-29 2020-05-19 苏州浪潮智能科技有限公司 System starting method, device, equipment and storage medium
CN112068904A (en) * 2020-09-27 2020-12-11 山东云海国创云计算装备产业创新中心有限公司 Chip boot operation method, device and related assembly

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王雪娇;: "基于ARM芯片I.MX51的bootloader移植", 电子技术, no. 07, 25 July 2012 (2012-07-25) *

Also Published As

Publication number Publication date
CN113535248B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
US20190339869A1 (en) Techniques to configure a solid state drive to operate in a storage mode or a memory mode
US7890690B2 (en) System and method for dual-ported flash memory
US8090980B2 (en) System, method, and computer program product for providing data redundancy in a plurality of storage devices
KR101699104B1 (en) Dynamic allocation of power budget for a system having non-volatile memory
US7904672B2 (en) System and method for providing data redundancy after reducing memory writes
US20080052451A1 (en) Flash storage chip and flash array storage system
US20150143048A1 (en) Multi-cpu system and computing system having the same
TWI557541B (en) Fine grained power management in virtualized mobile platforms
CN111240751B (en) Hardware isolation method and system based on vehicle-mounted intelligent cabin
US9983889B1 (en) Booting of integrated circuits
US9460813B2 (en) Memory system
TWI812398B (en) Initialization methods and associated controller, memory device and host
CN107797642B (en) power backup method and device
US20180365425A1 (en) Systems and methods for securely booting a system on chip via a virtual collated internal memory pool
CN111857840A (en) BIOS starting method and device
CN111966626B (en) Server starting device and method based on ESPI bus
CN103761129A (en) Method of implementing SDIO (secure digital input/output) interface drive in Boot loader layer
US9530466B1 (en) System and method for memory access dynamic mode switching
TW201512846A (en) Memory card access device, control method thereof, and memory card access system
CN113535248A (en) TP chip power-on starting method for reducing SRAM space
TW200811707A (en) Computer system and boot code accessing method thereof
CN102736908B (en) System, the device and method of remotely located CMOS parameters
US20230280932A1 (en) Data read/write method and hybrid memory
CN105068835B (en) Mobile terminal and debugging information display method thereof
CN213365494U (en) Dual-BMC management system of mainboard

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant