WO2020124347A1 - Fpga chip and electronic device having said fpga chip - Google Patents

Fpga chip and electronic device having said fpga chip Download PDF

Info

Publication number
WO2020124347A1
WO2020124347A1 PCT/CN2018/121705 CN2018121705W WO2020124347A1 WO 2020124347 A1 WO2020124347 A1 WO 2020124347A1 CN 2018121705 W CN2018121705 W CN 2018121705W WO 2020124347 A1 WO2020124347 A1 WO 2020124347A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
storage
enabled
resource management
subunit
Prior art date
Application number
PCT/CN2018/121705
Other languages
French (fr)
Chinese (zh)
Inventor
孙辉
庹伟
陈星�
麻军平
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201880068934.5A priority Critical patent/CN111279313A/en
Priority to PCT/CN2018/121705 priority patent/WO2020124347A1/en
Publication of WO2020124347A1 publication Critical patent/WO2020124347A1/en

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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • 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
    • 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
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • 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

Definitions

  • the invention relates to the field of FPGA chips (Field-Programmable Gate Array), in particular to an FPGA chip and electronic equipment with the FPGA chip.
  • FPGA chips Field-Programmable Gate Array
  • FPGA chips are more and more used for their customizable design and short development cycle.
  • the flexible design of FPGA chips also brings the disadvantage of higher power consumption than ASIC devices.
  • FPGA low power design needs to be considered.
  • the conventional low-power design of FPGA chips is realized by turning off some functional modules by the gated clock.
  • the former is suitable for application in long-term shut-off function modules, while the latter depends on the algorithm of the design tool.
  • the power consumption of the memory unit occupies a large proportion of power consumption. Because the read and write logic of the memory unit is very different, it is difficult for the tool to automatically insert 100% to identify, and the manual insertion workload is too large. The insertion method is difficult to accurately control the power consumption of the memory unit.
  • the invention provides an FPGA chip and an electronic device with the FPGA chip.
  • an FPGA chip is provided, and the FPGA chip is applied to an electronic device;
  • the FPGA chip includes:
  • a memory unit the memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits, and each storage subunit includes an enabling terminal;
  • a resource management module is electrically coupled to the data writing interface, and is electrically coupled to the enable end of each storage unit;
  • the resource management module can obtain the current use state of the electronic device through the data writing interface, and output a first enable signal according to the current use state of the electronic device to trigger one of the memory units Or multiple memory subunits are enabled.
  • an electronic device comprising:
  • Data acquisition module and/or data storage module are Data acquisition module and/or data storage module.
  • the FPGA chip includes a memory unit and a resource management module.
  • the memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits. Each storage subunit includes an enabling terminal.
  • the resource management module and the resource management module The data writing interface is electrically coupled and connected to the enable terminal of each storage unit;
  • the data writing interface is electrically coupled to the data acquisition module and/or data storage module;
  • the data collection module is used to collect data and send the collected data to the data writing interface and/or the data storage module to send the data stored by the data storage module to the data writing interface;
  • the resource management module can obtain the current use state of the electronic device through the data writing interface, and output a first enable signal according to the current use state of the electronic device to trigger one of the memory units Or multiple memory subunits are enabled.
  • an FPGA chip is provided, and the FPGA chip is applied to an electronic device;
  • the FPGA chip includes:
  • a memory unit the memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits, and each storage subunit includes an enabling terminal;
  • a resource management module is electrically coupled to the data writing interface, and is electrically coupled to the enable end of each storage unit;
  • the resource management module After detecting that the data writing interface receives the data to be written, the resource management module outputs an enable signal according to the size of the data to be written to trigger one or more storages in the memory unit The subunit is enabled.
  • an electronic device comprising:
  • Data acquisition module and/or data storage module are Data acquisition module and/or data storage module.
  • the FPGA chip includes a memory unit and a resource management module.
  • the memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits. Each storage subunit includes an enabling terminal.
  • the resource management module and the resource management module The data writing interface is electrically coupled and connected to the enable terminal of each storage unit;
  • the data writing interface is electrically coupled to the data acquisition module and/or data storage module;
  • the data collection module is used to collect data and send the collected data to the data writing interface and/or the data storage module to send the data stored by the data storage module to the data writing interface;
  • the resource management module can obtain the current use state of the electronic device through the data writing interface, and output a first enable signal according to the current use state of the electronic device to trigger one of the memory units Or multiple memory subunits are enabled.
  • the memory unit when the FPGA chip of the present invention is packaged, the memory unit is divided, and the memory unit is divided into a plurality of storage subunits.
  • the size of the data to be written on the state or data writing interface triggers the enablement of one or more storage subunits in the memory unit, realizing the dynamic application of memory resources, ensuring that the smallest memory resources are used in each scenario, the largest
  • the limit reduces the power consumption of the FPGA chip, so that the FPGA chip can meet the electronic equipment with higher power consumption requirements; and, the method for reducing the power consumption of the FPGA chip of the present invention has strong flexibility.
  • Figure 1 is a schematic diagram of the structure of the FPGA chip in the related art
  • FIG. 2 is a schematic structural diagram of an FPGA chip in an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an FPGA chip in another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of the specific structure of the FPGA chip of the embodiment shown in FIG. 3;
  • FIG. 5 is another schematic diagram of the FPGA chip of the embodiment shown in FIG. 3;
  • FIG. 6 is a schematic structural diagram of an FPGA chip in another embodiment of the present invention.
  • FIG. 7 is a schematic structural view of an electronic device in an embodiment of the invention.
  • FIG. 8 is a schematic structural diagram of another electronic device in an embodiment of the present invention.
  • the FPGA chip includes module A, module B, and module C.
  • scenario 1 only module A is turned on; in scenario 2, only module B is turned on; in scenario 3, only module C is turned on.
  • module B and module C can be turned off by the gated clock in scenario 1; module A and module C can be turned off by the gated clock in scenario 2; Control the clock to turn off module A and module B.
  • scenario 1, scenario 2, and scenario 3 can be divided according to the usage scenario of the electronic device where the FPGA chip is currently located, or can also be divided into tasks currently performed by the FPGA chip.
  • the functional modules that can be turned off are scattered throughout the design (for example, a large number of submodules D are scattered in module A, module B, and module C), a large number of gated clocks need to be instantiated manually, and the workload Great.
  • Another way to reduce the power consumption of the FPGA chip is to use software to add the gated clock. This method depends heavily on the software algorithm; in addition, if there is a design that depends on the function to switch (such as dynamic storage application), the software will It is difficult to identify and cannot achieve the effect of reducing the power consumption of the FPGA chip.
  • the FPGA chip after receiving the write request, the FPGA chip will enable the entire memory unit regardless of whether the current data to be written is large or small (referring to the size of the data capacity), and then the current chip to be written Data is written to the enabled memory unit. If the current data to be written is small, enabling the entire memory unit will cause waste of power consumption of the FPGA chip, which is not conducive to the low power consumption requirement of the FPGA chip.
  • the FPGA chip of the embodiment of the present invention divides the memory unit when it is packaged, and when it is used, it can be enabled according to the current use state of the electronic device or the size of the data to be written to the memory unit currently written
  • the corresponding storage subunit ensures that the minimum memory resources are used in various scenarios, and the power consumption of the FPGA chip is reduced to the maximum extent, so that the FPGA chip can meet the electronic devices with higher power consumption requirements.
  • the FPGA chip 30 may include a memory unit 1 and a resource management module 2, wherein the memory unit 1 includes a data writing interface 11 and the memory unit 1 has a plurality of storage elements In the unit 12, each storage sub-unit 12 includes an enable terminal 121.
  • the FPGA chip 30 may include one or more memory units 1, and each memory unit 1 includes a plurality of storage subunits 12 respectively.
  • the memory unit 1 is RAM (random access memory, random access memory). It can be understood that the memory unit 1 is not limited to RAM, but may also be other storage spaces capable of storing data.
  • the smaller the capacity the more difficult the production of the storage subunit 12 and the higher the production cost. Therefore, considering the power consumption optimization requirements and the production difficulty and cost of the storage subunit 12, a storage subunit suitable for the size and number of capacities can be selected 12Package to form memory unit 1.
  • the multiple storage subunits 12 of the memory unit 1 are equal in size, which facilitates the dynamic application of memory resources.
  • the multiple storage units of the memory unit 1 may not be completely equal.
  • the size of the plurality of storage sub-units 12 is taken as an example for further description.
  • the design specification (capacity size) of the memory unit 1 and the current use status of the electronic device, etc. may be selected to select the memory unit 1
  • the size of each storage subunit 12 in the storage system is optional.
  • a plurality of storage subunits 12 of equal size are selected to form a memory unit 1, such as 5 2K ( Capacity unit: kilobytes) of the storage sub-unit 12, packaged to form a 10K memory unit 1.
  • a plurality of storage subunits 12 of equal size are selected to form a memory unit 1, for example, when the shooting device needs 8K of memory to work when shooting, and the shooting device performs video playback Only requires 1080p memory to work, so four 2K memory subunits 12 can be selected and packaged to form an 8K memory unit 1.
  • the FPGA chip 30 of this embodiment may be applied to an electronic device.
  • the electronic device may include a front-end module and a back-end module.
  • the front-end module sends data to the FPGA chip 30, and the FPGA chip 30 stores the received data in the memory unit 1. In the middle (cache), the data is read from the memory unit 1 by the back-end module for other processing.
  • the electronic device in this embodiment may be a shooting device, such as a hand-held gimbal camera or a camera mounted on a drone.
  • the electronic device may include a shooting state and/or a video playback state and other usage states.
  • the front-end module may be a data acquisition module 10, a data storage module 20, or other.
  • the resource management module 2 of this embodiment is electrically coupled to the data writing interface 11 and electrically coupled to the enable terminal 121 of each storage unit.
  • the resource management module 2 can obtain the current use status of the electronic device through the data writing interface 11, and output a first enable signal according to the current use status of the electronic device to trigger one of the memory units 1 or Multiple storage sub-units 12 are enabled.
  • the memory unit 1 includes four storage subunits 12, and when the shooting device is in a shooting state, the first output terminal 22 electrically coupled to the enable terminals 121 of the four storage subunits 12 all output a first enable signal , Triggering the four storage subunits 12 to be enabled to meet the memory resource requirements required in the shooting state; when the shooting device is in the video playback state, the first electrically coupled connection to the enabling terminals 121 of the four storage subunits 12 One of the output terminals 22 outputs the first enable signal to enable one of the storage subunits 12 to meet the memory resource requirements required for the video playback state.
  • the resource management module 2 outputs the first enable signal according to the size of the data to be written corresponding to the current use status of the electronic device.
  • the memory unit 1 includes five 2K storage subunits 12, and when the resource management module 2 acquires that the shooting device is in a shooting state, four of the first output terminals 22 output the first The enable signal triggers four 2K memory subunits 12 to be enabled.
  • the FPGA chip 30 of the embodiment of the present invention divides the memory unit 1 when it is packaged, divides the memory unit 1 into a plurality of storage subunits 12, and when in use, triggers the memory unit 1 according to the current use state of the electronic device
  • the one or more storage subunits 12 are enabled, which realizes the dynamic application of memory resources, ensures that the minimum memory resources are used in various scenarios, and minimizes the power consumption of the FPGA chip 30, so that the FPGA chip 30 can meet the function Electronic devices that require higher power consumption; and, the method for reducing the power consumption of the FPGA chip 30 in the embodiments of the present invention is highly flexible.
  • enabling the storage subunit 12 refers to switching the storage subunit 12 from the reset state to the working state.
  • the storage sub-unit 12 can store data in the working state, but cannot store data in the reset state.
  • the memory sub-unit 12 consumes the lowest power in the reset state.
  • the enable terminal 121 of each storage subunit 12 when the electronic device is powered on, the enable terminal 121 of each storage subunit 12 is in a reset state, and at this time, the FPGA chip 30 has the lowest power consumption.
  • the resource management module 2 of this embodiment After detecting that the enabling terminals 121 of all the storage subunits 12 are in the reset state, the resource management module 2 of this embodiment outputs a first enable signal according to the current use state of the electronic device to trigger one of the memory units 1 or The multiple storage subunits 12 are enabled to maximize the power consumption of the FPGA chip 30.
  • the resource management module 2 of this embodiment may include a first detection terminal 21 and a first output terminal 22.
  • the first detection terminal 21 is electrically coupled to the data writing interface 11, and the first output terminal 22 is connected to each
  • the enable terminal 121 of the memory cell is electrically coupled and connected.
  • the first output terminal 22 is directly electrically coupled to the enable terminal 121 of each memory subunit 12, and the signal output by the first output terminal 22 is directly input to the enable terminal 121 of the corresponding memory subunit 12.
  • each memory subunit 12 is enabled when the enable terminal 121 of the memory subunit 12 is at a high level, and each memory subunit 12 is enabled at a low power level at the enable terminal 121 of the memory subunit 12 Usually in the reset state.
  • the first output terminal 22 outputs a high level, the corresponding storage subunit 12 is enabled.
  • the first output terminal 22 is indirectly electrically coupled to the enable terminal 121 of each memory subunit 12, and whether the enable terminal 121 of the memory subunit 12 is enabled not only needs to consider whether the first output terminal 22 To output the first enable signal, the signals output by other modules must also be considered.
  • the FPGA chip 30 further includes a forward detection module 3.
  • the forward detection module 3 is electrically coupled to the data writing interface 11 and electrically connected to the enable terminal 121 of each storage subunit 12.
  • the resource management module 2 outputs a first enable signal according to the size of the data to be written corresponding to the current usage state of the electronic device, to trigger one or more storage subunits 12 in the memory unit 1 to be in the to-be-enabled state.
  • the forward detection module 3 After detecting that the data writing interface 11 receives the data to be written, the forward detection module 3 outputs a second enable signal to enable the storage subunit 12 to be enabled.
  • the resource management module 2 estimates the size of the data to be written in the memory unit 1 under the usage state according to the current usage state of the electronic device, and the One or more storage sub-units 12 are set to a state to be enabled (herein, storage sub-units 12 in a state to be enabled are also referred to as storage sub-units 12 to be enabled).
  • storage sub-units 12 in a state to be enabled are also referred to as storage sub-units 12 to be enabled.
  • the storage subunit 12 to be enabled is in a reset state until the forward detection module 3 detects that there is valid data on the data writing interface 11. Then, the storage subunit 12 to be enabled is enabled to avoid that the data writing interface 11 does not receive valid data, but the power consumption caused by enabling the storage subunit 12 is wasted.
  • the forward detection module 3 of this embodiment may include a second detection terminal 31 and a second output terminal 32, wherein the second detection terminal 31 is electrically coupled to the data writing interface 11 and the second output terminal 32 It is electrically coupled to the enable terminal 121 of each memory cell.
  • the conditions for enabling the enable terminal 121 of the storage subunit 12 include: a first output terminal 22 electrically coupled to the storage subunit 12 outputs a first enable signal, and electrically connected to the storage subunit 12
  • the coupled second output terminal 32 outputs the second enable signal, which ensures that the minimum memory resources are used in various scenarios and the power consumption of the FPGA chip 30 is reduced to the maximum.
  • the FPGA chip 30 of this embodiment may further include a first logic circuit 4, and the resource management module 2 and the forward detection module 3 are electrically coupled to the enable terminal 121 of each memory subunit 12 through the first logic circuit 4 connection.
  • the first logic circuit 4 includes a first input terminal, a second input terminal, and a third output terminal, the first output terminal 22 is electrically coupled to the first input terminal, and the second output terminal 32 is electrically coupled to the second input terminal The third output terminal is electrically coupled to the enable terminal 121 of each memory subunit 12.
  • the first logic circuit 4 may include at least one of OR operation, AND operation, XOR operation, and NOT operation.
  • the first logic circuit 4 includes an AND logic device, and the signal output by the first output terminal 22 and the signal output by the second output terminal 32 are output to the storage subunit 12 after being ANDed with the logic device ⁇ 121 ⁇ The enable end 121.
  • the signal output from the first output terminal 22 and the signal from the second output terminal 32 are both at a high level, and the logic device can output a high power
  • the enable terminal 121 of the memory sub-unit 12 is at a high level.
  • the memory unit 1 includes four 1K storage sub-units 12, and after detecting valid data to be written, the FPGA chip 30 sequentially enables the four storage sub-units 12, when the first storage sub-unit 12 is full After that, the second, third, and fourth memory sub-units 12 are turned on in sequence to further reduce the power consumption of the FPGA chip 30.
  • the forward detection module 3 may include a write address judgment module 33.
  • the write address judgment module 33 is electrically coupled to the data write interface 11 and is connected to the enable terminal of each storage subunit 12. 121 is electrically coupled.
  • the write address judgment module 33 of this embodiment is used to judge the row address information of the data to be written in the current frame on the data writing interface 11, and output the second enable signal to the storage corresponding to the row address information according to the row address information
  • the enabling end 121 of the subunit 12 can ensure that under different resolution input conditions, the corresponding number of storage subunits 12 are turned on.
  • the write address judgment module 33 is electrically coupled to the enable terminal 121 of each storage subunit 12 via a logic judgment unit.
  • the write address judgment module 33 judges that the address information of the data to be written is between 0 and 2K, it outputs a second enable signal through a logic judgment unit electrically coupled to the first storage subunit 12 to enable the first Storage subunit 12; when the write address judgment module 33 judges that the address information of the data to be written is in the range of 2K to 4K, it outputs the second enable signal through the logic judgment unit electrically coupled to the second storage subunit 12 to enable The second storage subunit 12; when the write address judgment module 33 judges that the address information of the data to be written is between 4K and 6K, it outputs the second enable signal through the logic judgment unit electrically coupled to the third storage subunit 12 To enable the third storage subunit 12; when the write address judgment module 33 judges that the address information of the data to be written is between 6K and 8K, it outputs the second through a logic judgment unit electrically coupled to the fourth storage subunit 12 The enable signal enables the fourth storage sub-unit 12.
  • the write address judgment module 33 is directly electrically coupled to the enable terminal 121 of each storage subunit 12.
  • each memory subunit 12 is enabled when the enable terminal 121 of the memory subunit 12 is at a high level, and each memory subunit 12 is enabled at a low power level at the enable terminal 121 of the memory subunit 12 Usually in the reset state.
  • the first output terminal 22 outputs a high level and the write address judgment module 33 outputs a second enable signal, the corresponding storage subunit 12 is enabled.
  • the write address judgment module 33 is indirectly electrically coupled to the enable terminal 121 of each storage subunit 12, and whether the enable terminal 121 of the storage subunit 12 is enabled not only needs to consider whether the first output terminal 22 The output of the first enable signal and whether the write address judgment module 33 outputs the second enable signal also needs to consider the signals output by other modules.
  • the forward detection module 3 may further include a frame data detection module 34 that is electrically coupled to the data writing interface 11 and electrically coupled to the enable terminal 121 of each storage subunit 12 connection.
  • the data on the data writing interface 11 may include valid data (data to be written) and invalid data (non-data to be written).
  • the valid data includes a specific frame header identifier and a specific frame tail identifier. There may be invalid data between adjacent two frames of valid data. The invalid data does not have the frame header identifier and the frame trailer identifier, or the frame header identifier of the invalid data is different from the frame header identifier of the valid data, and the frame identifier of the invalid data is valid.
  • the end of frame identification of the data is also different.
  • the identification bits (including the frame header identification and the frame end identification) in the data are logic levels, and after receiving the data, the FPGA chip 30 converts the identification bits into internal logic levels (1 or 0).
  • the frame data detection module 34 is used to detect the frame header identifier and the frame trailer identifier of the data to be written on the data writing interface 11. Specifically, the frame data detection module 34 detects whether a specific frame header identifier and a specific frame trailer identifier are detected or According to the detected logic level corresponding to the specific frame header identifier and the specific frame trailer identifier, it is determined whether the data is valid data.
  • the frame data detection module 34 of this embodiment releases all the enabled storage subunits 12 when detecting the specific frame end flag, so that the enable terminals 121 of all the enabled storage subunits 12 are in a reset state to prevent invalidation
  • the data is stored in the memory unit 1, and the power consumption of the FPGA chip 30 is reduced.
  • the frame data detection module 34 detects the current specific frame tail flag and before the next frame header flag, regardless of whether the signal output by the write address judgment module 33 is the second enable signal, all the storage subunits 12 are in Reset state.
  • the configuration register can be used to ensure that after a certain time (such as 10ms) at the end of the current frame of valid data and until the beginning of the next frame of valid data, the write address judgment module 33 cannot trigger the storage subunit 12 to be enabled, thereby maintaining memory Unit 1 is reset.
  • the write address judgment module 33 After the frame data detection module 34 detects the frame header identifier of the next frame, if the write address judgment module 33 outputs the second enable signal, the corresponding storage subunit 12 is enabled, that is, the frame data detection module 34 detects the next frame After the frame header is identified, the write address judgment module 33 can trigger the released storage subunit 12 to be re-enabled. In this embodiment, the valid data in the next frame will overwrite the invalid data previously on the data writing interface 11, After the write address judgment module 33 re-enables the released storage subunit 12, the data stored in the storage subunit 12 are all valid data.
  • the write address judgment module 33 and the frame data detection module 34 of this embodiment are electrically coupled to the data write interface 11 through the first detection terminal 21, as shown in FIG. 5.
  • the FPGA chip 30 may further include a second logic circuit 5, and the write address judgment module 33 and the frame data detection module 34 are electrically coupled to the enable terminal 121 of each storage subunit 12 through the second logic circuit 5.
  • the second logic circuit 5 includes at least one of OR operation, AND operation, XOR operation, and NOT operation.
  • the second logic circuit 5 includes an AND logic device, and the signal output from the write address judgment module 33 and the signal output from the frame data detection module 34 are output to the storage subunit 12 after being ANDed with the logic device ⁇ 121 ⁇ The enable end 121.
  • the storage subunit 12 is enabled when its enable terminal 121 is at a high level, and the frame data detection module 34 outputs a low level between the detection of the end of the frame of the current frame data and the detection of the frame header of the next frame So that the second logic device outputs a low level to all the enabled storage sub-units 12 so that all the enabled storage sub-units 12 are in a reset state; after detecting the frame header identification of the next frame, the frame data detection module 34 , Output high level, trigger the released memory sub-unit 12 to re-enable.
  • the frame data detection module 34 when the frame data detection module 34 outputs a high level and the write address judgment module 33 outputs a second enable signal, the corresponding storage subunit 12 is enabled.
  • the resource management module 2 outputs a first enable signal according to the current usage state of the electronic device to trigger the enable of one or more storage subunits 12 in the memory unit 1
  • the data write interface 11 is used The data to be written is written into the enabled one or more storage subunits 12, and the data to be written is cached in the storage subunit 12.
  • the resource management module 2 of the FPGA chip 30 of this embodiment has the function of dynamically releasing memory in addition to the function of dynamically applying memory.
  • the resource management module 2 may implement storage according to a set release mechanism. The dynamic release of the subunit 12, after the release, the storage subunit 12 is in a reset state, to further avoid the waste of power consumption of the FPGA.
  • the memory unit 1 may further include a data reading interface 13, and the resource management module 2 is electrically coupled to the data reading interface 13.
  • the resource management module 2 further includes a third detection terminal 23 that is electrically coupled to the data reading interface 13.
  • the resource management module 2 detects each enabled storage subunit through the data reading interface 13 The data read status of unit 12.
  • the resource management module 2 determines that the enabled storage sub-unit 12 satisfies the preset resource release strategy according to the data reading status of each enabled storage sub-unit 12, it releases the enabled
  • the storage sub-unit 12 makes the enable terminal 121 of the enabled storage sub-unit 12 in a reset state.
  • the resource management module 2 detects the row of read data on the data read interface 13 Address information, and when it is determined that the row address information of the read data on the data reading interface 13 does not contain the row address information of the data stored in the currently enabled storage subunit 12, the currently enabled storage subunit is determined 12 Meet the preset resource release strategy.
  • the release mechanism is to release the content of the storage subunit 12 when it is read empty.
  • the resource management module 2 detects the row address information of the read data on the data reading interface 13 and determines that the row address information of the read data on the data reading interface 13 does not contain the current enable After the row address information of the data stored in the storage sub-unit 12 of the storage subunit 12, it is further detected that the data writing interface 11 has not received new data to be written for a period longer than a preset time period, or that the data writing interface 11 is further detected The row address information of the data to be written does not include the row address information of the data stored in the currently enabled storage subunit 12 is longer than the preset duration, and it is determined that the currently enabled storage subunit 12 satisfies the preset resource release Strategy.
  • the release mechanism of the currently enabled storage subunit 12 is that the content of the currently enabled storage subunit 12 is read empty and there is no new data to be written within the preset time period after the content is read empty.
  • the written data is written to the interface 11, or the content of the currently enabled storage subunit 12 is read empty and the preset duration after the content is read empty.
  • the data to be written on the data writing interface 11 does not include writing to the The data of the storage subunit 12 that is currently enabled.
  • the preset duration can be set according to needs, such as 10 seconds, 20 seconds, 30 seconds or other.
  • the resource management module 2 After releasing the currently enabled storage subunit 12, the resource management module 2 re-enables the released storage subunit 12 if it detects that the data writing interface 11 receives new data to be written. For example, when the shooting device shoots, when the storage subunit 12 is enabled, a line of data is stored, and then this line of data is read again. Before receiving new data, the storage subunit 12 can be reset to reduce power consumption. Until the FPGA receives new data to be written, the released storage subunit 12 will be enabled again, and the new data to be written will be stored in the storage subunit 12.
  • the FPGA chip 30 is used in a camera.
  • the FPGA chip 30 includes a RAM 100 with a size of 8K.
  • the RAM 100 includes a 2K RAM 101, a 2K RAM 102, a 2K RAM 103, and a 2K RAM 104.
  • 8K of memory resources are required, and RAM101, RAM102, RAM103, and RAM104 are all enabled; when the camera is in the video playback state, 1080P of memory resources are required, and RAM101 is enabled.
  • the power consumption of the optimized FPGA chip 30 is reduced by 30%.
  • the FPGA chip includes a resource management module 2 but no forward detection module 3.
  • the resource management module 2 after detecting that the data writing interface 11 receives the data to be written, the resource management module 2 outputs an enable signal according to the size of the data to be written to trigger one or more of the memory unit 1
  • the storage subunit 12 is enabled.
  • the resource management module 2 of the alternative embodiment directly enables one of the plurality of storage subunits 12 according to the size of the data to be written ⁇ Multiple storage subunits 12.
  • the memory unit 1 includes four 2K storage subunits 12.
  • the enable terminals 121 of the four storage subunits 12 are electrically coupled to the first An output terminal 22 outputs an enable signal, triggering the four storage subunits 12 to be enabled, and storing 8K data to be written into the four storage subunits 12; when the data writing interface 11 currently receives the write to be received If the data is 1080P, one of the first output terminals 22 electrically coupled to the enable terminals 121 of the four memory subunits 12 outputs an enable signal, so that one of the memory subunits 12 is enabled, and the 1080P size The data to be written is stored in the enabled storage sub-unit 12.
  • the other parts of the alternative embodiment are similar to the FPGA chip 30 of the above embodiment.
  • the FPGA chip of this alternative embodiment divides the memory unit 1 when it is packaged, divides the memory unit 1 into a plurality of storage subunits 12, and in use, according to the size of the data to be written on the data writing interface 11 , Triggering the enablement of one or more storage subunits 12 in the memory unit 1 to realize the dynamic application of memory resources, ensuring that the minimum memory resources are used in various scenarios, and maximally reducing the power consumption of the FPGA chip, making the FPGA
  • the chip can meet the electronic equipment with high power consumption requirements; moreover, the method for reducing the power consumption of the FPGA chip of the present invention has strong flexibility.
  • An embodiment of the present invention further provides an electronic device.
  • the electronic device may include an acquisition module and/or a data storage module 20 and the FPGA chip 30 described in Embodiment 1 or Embodiment 2 above.
  • the data writing interface 11 is electrically coupled to the data collection module 10 and/or the data storage module 20.
  • the data collection module 10 is used to collect data and send the collected data to the data writing interface 11 and/or the data storage module 20
  • the data stored in the data storage module 20 is sent to the data writing interface 11.
  • the electronic device includes a data collection module 10 and an FPGA chip 30, and the data collection module 10 is electrically coupled to the FPGA chip 30.
  • a shooting device is used for shooting (the shooting device is in a shooting state)
  • the data collection module 10 is an image acquisition device of the shooting device.
  • the image acquisition device captures an image and sends the image to
  • the FPGA chip 30, the FPGA chip 30 caches the image in the memory unit 1.
  • the electronic device may further include a back-end module, and the back-end module may be an image processing module or a data storage module 20 (SD card or solid state drive SSD).
  • the image processing module can read the image cached in the memory unit 1 and perform image processing
  • the data storage module 20 can read the image cached in the memory unit 1 and store it.
  • the electronic device includes a data storage module 20 and an FPGA chip 30, and the data storage module 20 is electrically coupled to the FPGA chip 30.
  • a historical display image such as an LCD display
  • the data storage module 20 is the shooting device.
  • the data storage module 20 sends the image stored in the data storage module 20 to the FPGA chip 30, and the FPGA chip 30 caches the image in the memory unit 1.
  • the electronic device may further include a back-end module, and the back-end module may be a display drive module, which may read the image in the memory unit 1 and display it through the display screen of the shooting device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Logic Circuits (AREA)

Abstract

An FPGA chip and an electronic device having said FPGA chip, the FPGA chip comprising: an internal memory unit (1), the internal memory unit (1) comprising a data write interface (11), and the internal memory unit (1) having multiple memory sub-cells (12), each memory sub-cell (12) comprising an enable terminal (121); and a resource management module (2), the resource management module (2) being electrically coupled to the data write interface (11) and electrically coupled to the enable terminal (121) of each memory cell (12); the resource management module (2) being capable of acquiring a current use state of an electronic device via the data write interface (11), and according to the current use state of the electronic device, outputting a first enable signal, so as to trigger enabling of one or more memory sub-cells (12) in the internal memory unit (1). The present FPGA chip has functionality of dynamic application of internal memory resources, ensuring that a minimum of internal memory resources are used in every scenario, minimizing FPGA chip power consumption.

Description

FPGA芯片和具有该FPGA芯片的电子设备FPGA chip and electronic device with the FPGA chip 技术领域Technical field
本发明涉及FPGA芯片(Field-Programmable Gate Array,现场可编程逻辑门阵列)领域,尤其涉及一种FPGA芯片和具有该FPGA芯片的电子设备。The invention relates to the field of FPGA chips (Field-Programmable Gate Array), in particular to an FPGA chip and electronic equipment with the FPGA chip.
背景技术Background technique
在电子设备领域,FPGA芯片以可定制化设计以及开发周期短的特性,被越来越多的使用,但FPGA芯片设计灵活的同时也带来了功耗相比于ASIC器件较高的劣势,对于功耗要求较高的电子设备,需要考虑FPGA低功耗设计。In the field of electronic equipment, FPGA chips are more and more used for their customizable design and short development cycle. However, the flexible design of FPGA chips also brings the disadvantage of higher power consumption than ASIC devices. For electronic devices with high power consumption requirements, FPGA low power design needs to be considered.
常规的FPGA芯片低功耗设计是通过门控时钟关断一些功能模块来实现,门控时钟的插入通常有两种方法:FPGA芯片设计时手动加入、通过工具自动加入。前者适合应用在长期关断的功能模块中,后者依赖于设计工具的算法。在FPGA芯片中,内存单元功耗占据功耗比例很大,由于内存单元读写逻辑千差万别,工具自动插入很难100%识别,而手动插入工作量又太大,可见,上述两种门控时钟插入方法很难对内存单元功耗进行精准控制。The conventional low-power design of FPGA chips is realized by turning off some functional modules by the gated clock. There are usually two methods for inserting the gated clock: manually adding in the FPGA chip design, and automatically adding through the tool. The former is suitable for application in long-term shut-off function modules, while the latter depends on the algorithm of the design tool. In the FPGA chip, the power consumption of the memory unit occupies a large proportion of power consumption. Because the read and write logic of the memory unit is very different, it is difficult for the tool to automatically insert 100% to identify, and the manual insertion workload is too large. The insertion method is difficult to accurately control the power consumption of the memory unit.
发明内容Summary of the invention
本发明提供一种FPGA芯片和具有该FPGA芯片的电子设备。The invention provides an FPGA chip and an electronic device with the FPGA chip.
具体地,本发明是通过如下技术方案实现的:Specifically, the present invention is achieved through the following technical solutions:
根据本发明的第一方面,提供一种FPGA芯片,所述FPGA芯片应用于电子设备中;所述FPGA芯片包括:According to a first aspect of the present invention, an FPGA chip is provided, and the FPGA chip is applied to an electronic device; the FPGA chip includes:
内存单元,所述内存单元包括数据写入接口,且所述内存单元具有多个存储子单元,每个存储子单元包括使能端;和A memory unit, the memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits, and each storage subunit includes an enabling terminal; and
资源管理模块,所述资源管理模块与所述数据写入接口电耦合连接,并与每个存储单元的使能端电耦合连接;A resource management module, the resource management module is electrically coupled to the data writing interface, and is electrically coupled to the enable end of each storage unit;
所述资源管理模块能够通过所述数据写入接口获取所述电子设备的当前使用状态,并根据所述电子设备的当前使用状态,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元使能。The resource management module can obtain the current use state of the electronic device through the data writing interface, and output a first enable signal according to the current use state of the electronic device to trigger one of the memory units Or multiple memory subunits are enabled.
根据本发明的第二方面,提供一种电子设备,所述电子设备包括:According to a second aspect of the invention, an electronic device is provided, the electronic device comprising:
数据采集模块和/或数据存储模块;以及Data acquisition module and/or data storage module; and
FPGA芯片,包括内存单元和资源管理模块,所述内存单元包括数据写入接口,且所述内存单元具有多个存储子单元,每个存储子单元包括使能端;所述资源管理模 块与所述数据写入接口电耦合连接,并与每个存储单元的使能端电耦合连接;The FPGA chip includes a memory unit and a resource management module. The memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits. Each storage subunit includes an enabling terminal. The resource management module and the resource management module The data writing interface is electrically coupled and connected to the enable terminal of each storage unit;
所述数据写入接口与数据采集模块和/或数据存储模块电耦合连接;The data writing interface is electrically coupled to the data acquisition module and/or data storage module;
所述数据采集模块用于采集数据并将采集的数据发送至所述数据写入接口和/或所述数据存储模块将该数据存储模块所存储的数据发送至所述数据写入接口;The data collection module is used to collect data and send the collected data to the data writing interface and/or the data storage module to send the data stored by the data storage module to the data writing interface;
所述资源管理模块能够通过所述数据写入接口获取所述电子设备的当前使用状态,并根据所述电子设备的当前使用状态,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元使能。The resource management module can obtain the current use state of the electronic device through the data writing interface, and output a first enable signal according to the current use state of the electronic device to trigger one of the memory units Or multiple memory subunits are enabled.
根据本发明的第三方面,提供一种FPGA芯片,所述FPGA芯片应用于电子设备中;所述FPGA芯片包括:According to a third aspect of the present invention, an FPGA chip is provided, and the FPGA chip is applied to an electronic device; the FPGA chip includes:
内存单元,所述内存单元包括数据写入接口,且所述内存单元具有多个存储子单元,每个存储子单元包括使能端;和A memory unit, the memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits, and each storage subunit includes an enabling terminal; and
资源管理模块,所述资源管理模块与所述数据写入接口电耦合连接,并与每个存储单元的使能端电耦合连接;A resource management module, the resource management module is electrically coupled to the data writing interface, and is electrically coupled to the enable end of each storage unit;
所述资源管理模块在检测到所述数据写入接口接收到待写入数据后,根据所述待写入数据的大小,输出使能信号,以触发所述内存单元中的一个或多个存储子单元使能。After detecting that the data writing interface receives the data to be written, the resource management module outputs an enable signal according to the size of the data to be written to trigger one or more storages in the memory unit The subunit is enabled.
根据本发明的第四方面,提供一种电子设备,所述电子设备包括:According to a fourth aspect of the present invention, there is provided an electronic device, the electronic device comprising:
数据采集模块和/或数据存储模块;以及Data acquisition module and/or data storage module; and
FPGA芯片,包括内存单元和资源管理模块,所述内存单元包括数据写入接口,且所述内存单元具有多个存储子单元,每个存储子单元包括使能端;所述资源管理模块与所述数据写入接口电耦合连接,并与每个存储单元的使能端电耦合连接;The FPGA chip includes a memory unit and a resource management module. The memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits. Each storage subunit includes an enabling terminal. The resource management module and the resource management module The data writing interface is electrically coupled and connected to the enable terminal of each storage unit;
所述数据写入接口与数据采集模块和/或数据存储模块电耦合连接;The data writing interface is electrically coupled to the data acquisition module and/or data storage module;
所述数据采集模块用于采集数据并将采集的数据发送至所述数据写入接口和/或所述数据存储模块将该数据存储模块所存储的数据发送至所述数据写入接口;The data collection module is used to collect data and send the collected data to the data writing interface and/or the data storage module to send the data stored by the data storage module to the data writing interface;
所述资源管理模块能够通过所述数据写入接口获取所述电子设备的当前使用状态,并根据所述电子设备的当前使用状态,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元使能。The resource management module can obtain the current use state of the electronic device through the data writing interface, and output a first enable signal according to the current use state of the electronic device to trigger one of the memory units Or multiple memory subunits are enabled.
由以上本发明实施例提供的技术方案可见,本发明的FPGA芯片在封装时,对内存单元进行了划分,将内存单元划分成多个存储子单元,在使用时,可根据电子设备的当前使用状态或数据写入接口上的待写入数据的大小,触发内存单元中的一个或多个存储子单元使能,实现了内存资源的动态申请,确保在各个场景下使用最少的内存资源,最大限度的降低了FPGA芯片的功耗,使得FPGA芯片能够满足功耗要求较 高的电子设备;并且,本发明降低FPGA芯片功耗的方法灵活性强。It can be seen from the technical solutions provided by the above embodiments of the present invention that when the FPGA chip of the present invention is packaged, the memory unit is divided, and the memory unit is divided into a plurality of storage subunits. When in use, it can be based on the current use of electronic equipment The size of the data to be written on the state or data writing interface triggers the enablement of one or more storage subunits in the memory unit, realizing the dynamic application of memory resources, ensuring that the smallest memory resources are used in each scenario, the largest The limit reduces the power consumption of the FPGA chip, so that the FPGA chip can meet the electronic equipment with higher power consumption requirements; and, the method for reducing the power consumption of the FPGA chip of the present invention has strong flexibility.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present invention, the drawings required in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without paying any creative labor, other drawings can also be obtained based on these drawings.
图1是相关技术中FPGA芯片的结构示意图;Figure 1 is a schematic diagram of the structure of the FPGA chip in the related art;
图2是本发明一实施例中的FPGA芯片的结构示意图;2 is a schematic structural diagram of an FPGA chip in an embodiment of the present invention;
图3是本发明另一实施例中的FPGA芯片的结构示意图;3 is a schematic structural diagram of an FPGA chip in another embodiment of the present invention;
图4是图3所示实施例的FPGA芯片的具体结构示意图;4 is a schematic diagram of the specific structure of the FPGA chip of the embodiment shown in FIG. 3;
图5是图3所示实施例的FPGA芯片的另一具体结构示意图;FIG. 5 is another schematic diagram of the FPGA chip of the embodiment shown in FIG. 3;
图6是本发明又一实施例中的FPGA芯片的结构示意图;6 is a schematic structural diagram of an FPGA chip in another embodiment of the present invention;
图7是本发明一实施例中的电子设备的结构示意图;7 is a schematic structural view of an electronic device in an embodiment of the invention;
图8是本发明一实施例中的另一电子设备的结构示意图。8 is a schematic structural diagram of another electronic device in an embodiment of the present invention.
附图标记:10:数据采集模块;20:数据存储模块;30:FPGA芯片;1:内存单元;11:数据写入接口;12:存储子单元;121:使能端;13:数据读取接口;2:资源管理模块;21:第一检测端;22:第一输出端;23:第三检测端;3:前向检测模块;31:第二检测端;32:第二输出端;33:写地址判断模块;34:帧数据检测模块;4:第一逻辑电路;5:第二逻辑电路。Reference signs: 10: data acquisition module; 20: data storage module; 30: FPGA chip; 1: memory unit; 11: data writing interface; 12: storage subunit; 121: enable terminal; 13: data reading Interface; 2: resource management module; 21: first detection terminal; 22: first output terminal; 23: third detection terminal; 3: forward detection module; 31: second detection terminal; 32: second output terminal; 33: Write address judgment module; 34: Frame data detection module; 4: First logic circuit; 5: Second logic circuit.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present invention.
下面结合附图,对本发明的FPGA芯片和具有该FPGA芯片的电子设备进行详细说明。在不冲突的情况下,下述的实施例及实施方式中的特征可以相互组合。The FPGA chip of the present invention and the electronic device with the FPGA chip will be described in detail below with reference to the drawings. The features in the following examples and implementations can be combined with each other without conflict.
相关技术中,在进行FPGA芯片低功耗设计时,参见图1,手动加入门控时钟来关断FPGA芯片中的一些功能模块(如内存单元),该方式适合关断设计中可长期关断的功能模块,例如FPGA芯片包括模块A、模块B和模块C,场景1中,只开启模块A;场景2中,只开启模块B;场景3中,只开启模块C。为达到降低FPGA芯片功耗的目的,可在场景1时,通过门控时钟关闭模块B和模块C;在场景2时,通 过门控时钟关闭模块A和模块C;在场景3时,通过门控时钟关闭模块A和模块B。需要说明的是,场景1、场景2、场景3可根据FPGA芯片当前所在电子设备的使用场景划分,也可以为FPGA芯片当前执行的任务划分。但是,如果可以关断的功能模块分散的存在于整个设计中(例如大量子模块D零散的分布在模块A、模块B和模块C中),就需要手动例化大量的门控时钟,工作量很大。In the related art, when designing FPGA chips with low power consumption, refer to Figure 1, and manually add a gated clock to shut down some functional modules (such as memory cells) in the FPGA chip. This method is suitable for shutting down the design for a long time. For example, the FPGA chip includes module A, module B, and module C. In scenario 1, only module A is turned on; in scenario 2, only module B is turned on; in scenario 3, only module C is turned on. To achieve the goal of reducing the power consumption of the FPGA chip, module B and module C can be turned off by the gated clock in scenario 1; module A and module C can be turned off by the gated clock in scenario 2; Control the clock to turn off module A and module B. It should be noted that scenario 1, scenario 2, and scenario 3 can be divided according to the usage scenario of the electronic device where the FPGA chip is currently located, or can also be divided into tasks currently performed by the FPGA chip. However, if the functional modules that can be turned off are scattered throughout the design (for example, a large number of submodules D are scattered in module A, module B, and module C), a large number of gated clocks need to be instantiated manually, and the workload Great.
另一种降低FPGA芯片功耗的方式是利用软件加入门控时钟,这种方式对软件算法依赖性很大;另外,若设计中存在依赖于功能做切换(例如动态存储申请)时,软件会很难识别,无法达到降低FPGA芯片功耗的效果。Another way to reduce the power consumption of the FPGA chip is to use software to add the gated clock. This method depends heavily on the software algorithm; in addition, if there is a design that depends on the function to switch (such as dynamic storage application), the software will It is difficult to identify and cannot achieve the effect of reducing the power consumption of the FPGA chip.
又参见图1,相关技术中,FPGA芯片在接收到写入请求后,不管当前待写入数据是大还是小(指数据容量大小),都会使能整个内存单元,再将当前待写入的数据写入使能的内存单元。若当前待写入的数据较小时,使能整个内存单元会造成FPGA芯片的功耗浪费,不利于FPGA芯片低功耗的需求。Referring also to FIG. 1, in the related art, after receiving the write request, the FPGA chip will enable the entire memory unit regardless of whether the current data to be written is large or small (referring to the size of the data capacity), and then the current chip to be written Data is written to the enabled memory unit. If the current data to be written is small, enabling the entire memory unit will cause waste of power consumption of the FPGA chip, which is not conducive to the low power consumption requirement of the FPGA chip.
对于此,本发明实施例的FPGA芯片在封装时,对内存单元进行了划分,在使用时,可根据电子设备的当前使用状态或当前待写入内存单元的待写入数据的大小,使能对应的存储子单元,确保在各个场景下使用最少的内存资源,最大限度的降低了FPGA芯片的功耗,使得FPGA芯片能够满足功耗要求较高的电子设备。For this, the FPGA chip of the embodiment of the present invention divides the memory unit when it is packaged, and when it is used, it can be enabled according to the current use state of the electronic device or the size of the data to be written to the memory unit currently written The corresponding storage subunit ensures that the minimum memory resources are used in various scenarios, and the power consumption of the FPGA chip is reduced to the maximum extent, so that the FPGA chip can meet the electronic devices with higher power consumption requirements.
下面结合附图对本发明实施例的FPGA芯片进行详细说明。The FPGA chip of the embodiment of the present invention will be described in detail below with reference to the drawings.
参见图2,本发明实施例提供一种FPGA芯片,该FPGA芯片30可包括内存单元1和资源管理模块2,其中,内存单元1包括数据写入接口11,且内存单元1具有多个存储子单元12,每个存储子单元12包括使能端121。FPGA芯片30可包括一个或多个内存单元1,每个内存单元1分别包括多个存储子单元12。Referring to FIG. 2, an embodiment of the present invention provides an FPGA chip. The FPGA chip 30 may include a memory unit 1 and a resource management module 2, wherein the memory unit 1 includes a data writing interface 11 and the memory unit 1 has a plurality of storage elements In the unit 12, each storage sub-unit 12 includes an enable terminal 121. The FPGA chip 30 may include one or more memory units 1, and each memory unit 1 includes a plurality of storage subunits 12 respectively.
可选的,该内存单元1为RAM(random access memory,随机存取存储器),可以理解,该内存单元1并不限于RAM,也可为其他能够存储数据的存储空间。Optionally, the memory unit 1 is RAM (random access memory, random access memory). It can be understood that the memory unit 1 is not limited to RAM, but may also be other storage spaces capable of storing data.
在内存单元1的容量大小确定后,存储子单元12容量越小,构成该内存单元1的存储子单元12的数量越多,内存单元1的颗粒度越大,越便于功耗优化。但容量越小,存储子单元12的制作难度越大,制作成本也越高,故考虑到功耗优化需求以及存储子单元12的制作难度、成本,可选择适合容量大小和数量的存储子单元12封装形成内存单元1。After the capacity of the memory unit 1 is determined, the smaller the capacity of the storage subunit 12 is, the more the number of storage subunits 12 constituting the memory unit 1 is, and the larger the granularity of the memory unit 1 is, the easier it is to optimize power consumption. However, the smaller the capacity, the more difficult the production of the storage subunit 12 and the higher the production cost. Therefore, considering the power consumption optimization requirements and the production difficulty and cost of the storage subunit 12, a storage subunit suitable for the size and number of capacities can be selected 12Package to form memory unit 1.
可选的,内存单元1的多个存储子单元12的大小相等,便于实现内存资源的动态申请。当然,内存单元1的多个存储单元也可不完全相等。本实施例以多个存储子单元12的大小相等为例进一步说明,在封装FPGA芯片30时,可考虑内存单元1的设计规格(容量大小)和电子设备的当前使用状态等来选择内存单元1中各个存储子单元12的大小,可选的,在一实施例中,按照内存单元1的容量大小,选择大小相等的多个存储子单元12封装形成一内存单元1,如选择5个2K(容量单位:千字节) 的存储子单元12,封装形成一个10K的内存单元1。在另一实施例中,根据电子设备的当前使用状态,选择大小相等的多个存储子单元12封装形成一内存单元1,如拍摄装置拍摄时需要8K的内存工作,而拍摄装置进行视频回放时只需要1080p的内存工作,故可选择4个2K的存储子单元12,封装形成一个8K的内存单元1。Optionally, the multiple storage subunits 12 of the memory unit 1 are equal in size, which facilitates the dynamic application of memory resources. Of course, the multiple storage units of the memory unit 1 may not be completely equal. In this embodiment, the size of the plurality of storage sub-units 12 is taken as an example for further description. When packaging the FPGA chip 30, the design specification (capacity size) of the memory unit 1 and the current use status of the electronic device, etc. may be selected to select the memory unit 1 The size of each storage subunit 12 in the storage system is optional. In an embodiment, according to the capacity of the memory unit 1, a plurality of storage subunits 12 of equal size are selected to form a memory unit 1, such as 5 2K ( Capacity unit: kilobytes) of the storage sub-unit 12, packaged to form a 10K memory unit 1. In another embodiment, according to the current use status of the electronic device, a plurality of storage subunits 12 of equal size are selected to form a memory unit 1, for example, when the shooting device needs 8K of memory to work when shooting, and the shooting device performs video playback Only requires 1080p memory to work, so four 2K memory subunits 12 can be selected and packaged to form an 8K memory unit 1.
本实施例的FPGA芯片30可应用在电子设备中,该电子设备可包括前端模块和后端模块,前端模块会将数据发送至FPGA芯片30,FPGA芯片30将接收到的数据存放到内存单元1中(缓存),再由后端模块从内存单元1中将数据读走去做其他处理。本实施例的电子设备可为拍摄装置,如手持云台相机或搭载在无人机上的相机,该电子设备可包括拍摄状态和/或视频回放状态等使用状态。该前端模块可为数据采集模块10,也可为数据存储模块20,还可为其他。The FPGA chip 30 of this embodiment may be applied to an electronic device. The electronic device may include a front-end module and a back-end module. The front-end module sends data to the FPGA chip 30, and the FPGA chip 30 stores the received data in the memory unit 1. In the middle (cache), the data is read from the memory unit 1 by the back-end module for other processing. The electronic device in this embodiment may be a shooting device, such as a hand-held gimbal camera or a camera mounted on a drone. The electronic device may include a shooting state and/or a video playback state and other usage states. The front-end module may be a data acquisition module 10, a data storage module 20, or other.
本实施例的资源管理模块2与数据写入接口11电耦合连接,并与每个存储单元的使能端121电耦合连接。在本实施例中,资源管理模块2能够通过数据写入接口11获取电子设备的当前使用状态,并根据电子设备的当前使用状态,输出第一使能信号,以触发内存单元1中的一个或多个存储子单元12使能。例如,内存单元1包括4个存储子单元12,当拍摄装置处于拍摄状态时,与这4个存储子单元12的使能端121电耦合连接的第一输出端22均输出第一使能信号,触发这4个存储子单元12使能,满足拍摄状态所需的内存资源需求;当拍摄装置处于视频回放状态时,与这4个存储子单元12的使能端121电耦合连接的第一输出端22中的一个输出第一使能信号,使得其中1个存储子单元12使能,满足视频回放状态所需的内存资源需求。The resource management module 2 of this embodiment is electrically coupled to the data writing interface 11 and electrically coupled to the enable terminal 121 of each storage unit. In this embodiment, the resource management module 2 can obtain the current use status of the electronic device through the data writing interface 11, and output a first enable signal according to the current use status of the electronic device to trigger one of the memory units 1 or Multiple storage sub-units 12 are enabled. For example, the memory unit 1 includes four storage subunits 12, and when the shooting device is in a shooting state, the first output terminal 22 electrically coupled to the enable terminals 121 of the four storage subunits 12 all output a first enable signal , Triggering the four storage subunits 12 to be enabled to meet the memory resource requirements required in the shooting state; when the shooting device is in the video playback state, the first electrically coupled connection to the enabling terminals 121 of the four storage subunits 12 One of the output terminals 22 outputs the first enable signal to enable one of the storage subunits 12 to meet the memory resource requirements required for the video playback state.
可选的,资源管理模块2根据电子设备的当前使用状态对应的待写入数据的大小,输出第一使能信号。例如,拍摄装置拍摄时需要8K的内存工作,内存单元1包括5个2K的存储子单元12,资源管理模块2在获取到拍摄装置处于拍摄状态时,其中4个第一输出端22输出第一使能信号,从而触发4个2K的存储子单元12使能。Optionally, the resource management module 2 outputs the first enable signal according to the size of the data to be written corresponding to the current use status of the electronic device. For example, when the shooting device needs 8K of memory to work when shooting, the memory unit 1 includes five 2K storage subunits 12, and when the resource management module 2 acquires that the shooting device is in a shooting state, four of the first output terminals 22 output the first The enable signal triggers four 2K memory subunits 12 to be enabled.
本发明实施例的FPGA芯片30在封装时,对内存单元1进行了划分,将内存单元1划分成多个存储子单元12,在使用时,根据电子设备的当前使用状态,触发内存单元1中的一个或多个存储子单元12使能,实现了内存资源的动态申请,确保在各个场景下使用最少的内存资源,最大限度的降低了FPGA芯片30的功耗,使得FPGA芯片30能够满足功耗要求较高的电子设备;并且,本发明实施例降低FPGA芯片30功耗的方法灵活性强。The FPGA chip 30 of the embodiment of the present invention divides the memory unit 1 when it is packaged, divides the memory unit 1 into a plurality of storage subunits 12, and when in use, triggers the memory unit 1 according to the current use state of the electronic device The one or more storage subunits 12 are enabled, which realizes the dynamic application of memory resources, ensures that the minimum memory resources are used in various scenarios, and minimizes the power consumption of the FPGA chip 30, so that the FPGA chip 30 can meet the function Electronic devices that require higher power consumption; and, the method for reducing the power consumption of the FPGA chip 30 in the embodiments of the present invention is highly flexible.
需要说明的是,本发明实施例中,使能存储子单元12是指将存储子单元12从复位状态切换至工作状态。其中,存储子单元12在工作状态下能够存入数据,在复位状态下无法存入数据。本实施例中,存储子单元12在复位状态时功耗最低。It should be noted that, in the embodiment of the present invention, enabling the storage subunit 12 refers to switching the storage subunit 12 from the reset state to the working state. The storage sub-unit 12 can store data in the working state, but cannot store data in the reset state. In this embodiment, the memory sub-unit 12 consumes the lowest power in the reset state.
其中,电子设备上电工作时,每个存储子单元12的使能端121均处于复位状态,此时,FPGA芯片30功耗最低。本实施例的资源管理模块2在检测到所有存储子 单元12的使能端121处于复位状态之后,根据电子设备的当前使用状态,输出第一使能信号,以触发内存单元1中的一个或多个存储子单元12使能,最大限度地优化FPGA芯片30的功耗。Wherein, when the electronic device is powered on, the enable terminal 121 of each storage subunit 12 is in a reset state, and at this time, the FPGA chip 30 has the lowest power consumption. After detecting that the enabling terminals 121 of all the storage subunits 12 are in the reset state, the resource management module 2 of this embodiment outputs a first enable signal according to the current use state of the electronic device to trigger one of the memory units 1 or The multiple storage subunits 12 are enabled to maximize the power consumption of the FPGA chip 30.
又参见图2,本实施例的资源管理模块2可包括第一检测端21和第一输出端22,第一检测端21与数据写入接口11电耦合连接,第一输出端22与每个存储单元的使能端121电耦合连接。Referring again to FIG. 2, the resource management module 2 of this embodiment may include a first detection terminal 21 and a first output terminal 22. The first detection terminal 21 is electrically coupled to the data writing interface 11, and the first output terminal 22 is connected to each The enable terminal 121 of the memory cell is electrically coupled and connected.
在一实施例中,第一输出端22与每个存储子单元12的使能端121直接电耦合连接,第一输出端22输出的信号直接输入对应存储子单元12的使能端121。可选的,每个存储子单元12在该存储子单元12的使能端121在高电平时使能,并且,每个存储子单元12在该存储子单元12的使能端121在低电平时处于复位状态。本实施例中,第一输出端22输出高电平时,对应存储子单元12使能。In an embodiment, the first output terminal 22 is directly electrically coupled to the enable terminal 121 of each memory subunit 12, and the signal output by the first output terminal 22 is directly input to the enable terminal 121 of the corresponding memory subunit 12. Optionally, each memory subunit 12 is enabled when the enable terminal 121 of the memory subunit 12 is at a high level, and each memory subunit 12 is enabled at a low power level at the enable terminal 121 of the memory subunit 12 Usually in the reset state. In this embodiment, when the first output terminal 22 outputs a high level, the corresponding storage subunit 12 is enabled.
在另一实施例中,第一输出端22与每个存储子单元12的使能端121间接电耦合连接,存储子单元12的使能端121是否使能不仅需要考虑第一输出端22是否输出第一使能信号,还需考虑其他模块输出的信号。In another embodiment, the first output terminal 22 is indirectly electrically coupled to the enable terminal 121 of each memory subunit 12, and whether the enable terminal 121 of the memory subunit 12 is enabled not only needs to consider whether the first output terminal 22 To output the first enable signal, the signals output by other modules must also be considered.
参见图3,FPGA芯片30还包括前向检测模块3,前向检测模块3与数据写入接口11电耦合连接,并与每个存储子单元12的使能端121电耦合连接。其中,资源管理模块2根据电子设备的当前使用状态对应的待写入数据的大小,输出第一使能信号,以触发内存单元1中的一个或多个存储子单元12处于待使能状态。前向检测模块3在检测到数据写入接口11接收到待写入数据后,输出第二使能信号,以使能待使能的存储子单元12。本实施例中,当电子设备工作时,资源管理模块2会根据电子设备的当前使用状态,估计该使用状态下可能存入内存单元1的待写入数据的大小,而将内存单元1中的一个或多个存储子单元12设置成待使能状态(本文中,处于待使能状态的存储子单元12也称作待使能的存储子单元12)。在前向检测模块3未检测到数据写入接口11存在有效数据之前,待使能的存储子单元12均处于复位状态,直到前向检测模块3检测到数据写入接口11上存在有效数据后,才将待使能的存储子单元12使能,避免数据写入接口11未接收到有效数据,但存储子单元12使能带来的功耗浪费。Referring to FIG. 3, the FPGA chip 30 further includes a forward detection module 3. The forward detection module 3 is electrically coupled to the data writing interface 11 and electrically connected to the enable terminal 121 of each storage subunit 12. Wherein, the resource management module 2 outputs a first enable signal according to the size of the data to be written corresponding to the current usage state of the electronic device, to trigger one or more storage subunits 12 in the memory unit 1 to be in the to-be-enabled state. After detecting that the data writing interface 11 receives the data to be written, the forward detection module 3 outputs a second enable signal to enable the storage subunit 12 to be enabled. In this embodiment, when the electronic device is working, the resource management module 2 estimates the size of the data to be written in the memory unit 1 under the usage state according to the current usage state of the electronic device, and the One or more storage sub-units 12 are set to a state to be enabled (herein, storage sub-units 12 in a state to be enabled are also referred to as storage sub-units 12 to be enabled). Before the forward detection module 3 detects that there is valid data in the data writing interface 11, the storage subunit 12 to be enabled is in a reset state until the forward detection module 3 detects that there is valid data on the data writing interface 11. Then, the storage subunit 12 to be enabled is enabled to avoid that the data writing interface 11 does not receive valid data, but the power consumption caused by enabling the storage subunit 12 is wasted.
又参见图3,本实施例的前向检测模块3可包括第二检测端31和第二输出端32,其中,第二检测端31与数据写入接口11电耦合连接,第二输出端32与每个存储单元的使能端121电耦合连接。本实施例中,存储子单元12的使能端121使能的条件包括:与该存储子单元12电耦合连接的第一输出端22输出第一使能信号,以及与该存储子单元12电耦合连接的第二输出端32输出第二使能信号,确保了在各个场景下使用最少的内存资源,最大限度地降低FPGA芯片30的功耗。3, the forward detection module 3 of this embodiment may include a second detection terminal 31 and a second output terminal 32, wherein the second detection terminal 31 is electrically coupled to the data writing interface 11 and the second output terminal 32 It is electrically coupled to the enable terminal 121 of each memory cell. In this embodiment, the conditions for enabling the enable terminal 121 of the storage subunit 12 include: a first output terminal 22 electrically coupled to the storage subunit 12 outputs a first enable signal, and electrically connected to the storage subunit 12 The coupled second output terminal 32 outputs the second enable signal, which ensures that the minimum memory resources are used in various scenarios and the power consumption of the FPGA chip 30 is reduced to the maximum.
参见图4,本实施例的FPGA芯片30还可包括第一逻辑电路4,资源管理模块 2和前向检测模块3通过第一逻辑电路4与每个存储子单元12的使能端121电耦合连接。具体的,第一逻辑电路4包括第一输入端、第二输入端以及第三输出端,第一输出端22与第一输入端电耦合连接,第二输出端32与第二输入端电耦合连接,第三输出端与每个存储子单元12的使能端121电耦合连接。第一逻辑电路4可包括或运算、与运算、异或运算和非运算中的至少一种。作为一种可行的实现方式,第一逻辑电路4包括与逻辑器件,第一输出端22输出的信号和第二输出端32输出的信号经与逻辑器件执行与运算后,输出至存储子单元12的使能端121。例如,存储子单元12在其使能端121为高电平时使能,则第一输出端22输出的信号和第二输出端32输出的信号均为高电平时,与逻辑器件才能输出高电平而使得存储子单元12的使能端121为高电平时。Referring to FIG. 4, the FPGA chip 30 of this embodiment may further include a first logic circuit 4, and the resource management module 2 and the forward detection module 3 are electrically coupled to the enable terminal 121 of each memory subunit 12 through the first logic circuit 4 connection. Specifically, the first logic circuit 4 includes a first input terminal, a second input terminal, and a third output terminal, the first output terminal 22 is electrically coupled to the first input terminal, and the second output terminal 32 is electrically coupled to the second input terminal The third output terminal is electrically coupled to the enable terminal 121 of each memory subunit 12. The first logic circuit 4 may include at least one of OR operation, AND operation, XOR operation, and NOT operation. As a feasible implementation manner, the first logic circuit 4 includes an AND logic device, and the signal output by the first output terminal 22 and the signal output by the second output terminal 32 are output to the storage subunit 12 after being ANDed with the logic device的使端121。 The enable end 121. For example, when the memory subunit 12 is enabled when its enable terminal 121 is at a high level, the signal output from the first output terminal 22 and the signal from the second output terminal 32 are both at a high level, and the logic device can output a high power When the enable terminal 121 of the memory sub-unit 12 is at a high level.
在一些实施例中,待使能的存储子单元12为多个,前向检测模块3在检测到数据写入接口11接收到待写入数据后,根据每帧待写入数据的行地址信息,依次使能多个待使能的存储子单元12,使得当前使能的待使能存储子单元12在上一使能的待使能存储子单元12写入行数据结束后被使能。例如,内存单元1包括4个1K的存储子单元12,FPGA芯片30在检测到有效的待写入数据后,依次使能4个存储子单元12,当第1个存储子单元12被写满之后,再依次开启第2个、第3个、第4个存储子单元12,进一步降低FPGA芯片30的功耗。In some embodiments, there are multiple storage subunits 12 to be enabled, and after detecting that the data writing interface 11 receives the data to be written, the forward detection module 3 according to the row address information of the data to be written per frame , Sequentially enabling a plurality of memory subunits 12 to be enabled, so that the currently enabled memory subunit 12 to be enabled is enabled after writing the row data of the last enabled memory subunit 12 to be enabled. For example, the memory unit 1 includes four 1K storage sub-units 12, and after detecting valid data to be written, the FPGA chip 30 sequentially enables the four storage sub-units 12, when the first storage sub-unit 12 is full After that, the second, third, and fourth memory sub-units 12 are turned on in sequence to further reduce the power consumption of the FPGA chip 30.
在一些实施例中,参见图5,前向检测模块3可包括写地址判断模块33,写地址判断模块33与数据写入接口11电耦合连接,并与每个存储子单元12的使能端121电耦合连接。本实施例的写地址判断模块33用于判断数据写入接口11上当前帧待写入数据的行地址信息,并根据行地址信息,输出第二使能信号至与该行地址信息对应的存储子单元12的使能端121,从而可以保证在不同的分辨率输入条件下,开启对应大小的存储子单元12个数,如待写入数据为8K分辨率,则使能4个2K的存储子单元12;待写入数据为2K分辨率,则使能1个2K的存储子单元12。本实施例中,写地址判断模块33分别经一逻辑判断单元与每个存储子单元12的使能端121电耦合连接。In some embodiments, referring to FIG. 5, the forward detection module 3 may include a write address judgment module 33. The write address judgment module 33 is electrically coupled to the data write interface 11 and is connected to the enable terminal of each storage subunit 12. 121 is electrically coupled. The write address judgment module 33 of this embodiment is used to judge the row address information of the data to be written in the current frame on the data writing interface 11, and output the second enable signal to the storage corresponding to the row address information according to the row address information The enabling end 121 of the subunit 12 can ensure that under different resolution input conditions, the corresponding number of storage subunits 12 are turned on. If the data to be written is 8K resolution, 4 2K storages are enabled Sub-unit 12; the data to be written has a resolution of 2K, so that a 2K storage sub-unit 12 is enabled. In this embodiment, the write address judgment module 33 is electrically coupled to the enable terminal 121 of each storage subunit 12 via a logic judgment unit.
例如,写地址判断模块33在判断待写入数据的地址信息处于0~2K,则通过与第1个存储子单元12电耦合连接的逻辑判断单元输出第二使能信号,使能第1个存储子单元12;写地址判断模块33在判断待写入数据的地址信息处于2K~4K,则通过与第2个存储子单元12电耦合连接的逻辑判断单元输出第二使能信号,使能第2个存储子单元12;写地址判断模块33在判断待写入数据的地址信息处于4K~6K,则通过与第3个存储子单元12电耦合连接的逻辑判断单元输出第二使能信号,使能第3个存储子单元12;写地址判断模块33在判断待写入数据的地址信息处于6K~8K,则通过与第4个存储子单元12电耦合连接的逻辑判断单元输出第二使能信号,使能第4个存储子单元12。For example, when the write address judgment module 33 judges that the address information of the data to be written is between 0 and 2K, it outputs a second enable signal through a logic judgment unit electrically coupled to the first storage subunit 12 to enable the first Storage subunit 12; when the write address judgment module 33 judges that the address information of the data to be written is in the range of 2K to 4K, it outputs the second enable signal through the logic judgment unit electrically coupled to the second storage subunit 12 to enable The second storage subunit 12; when the write address judgment module 33 judges that the address information of the data to be written is between 4K and 6K, it outputs the second enable signal through the logic judgment unit electrically coupled to the third storage subunit 12 To enable the third storage subunit 12; when the write address judgment module 33 judges that the address information of the data to be written is between 6K and 8K, it outputs the second through a logic judgment unit electrically coupled to the fourth storage subunit 12 The enable signal enables the fourth storage sub-unit 12.
进一步的,在一些实施例中,写地址判断模块33与每个存储子单元12的使能端121直接电耦合连接。可选的,每个存储子单元12在该存储子单元12的使能端121在高电平时使能,并且,每个存储子单元12在该存储子单元12的使能端121在低电平时处于复位状态。本实施例中,第一输出端22输出高电平且写地址判断模块33输出第二使能信号时,对应存储子单元12使能。Further, in some embodiments, the write address judgment module 33 is directly electrically coupled to the enable terminal 121 of each storage subunit 12. Optionally, each memory subunit 12 is enabled when the enable terminal 121 of the memory subunit 12 is at a high level, and each memory subunit 12 is enabled at a low power level at the enable terminal 121 of the memory subunit 12 Usually in the reset state. In this embodiment, when the first output terminal 22 outputs a high level and the write address judgment module 33 outputs a second enable signal, the corresponding storage subunit 12 is enabled.
在另一些实施例中,写地址判断模块33与每个存储子单元12的使能端121间接电耦合连接,存储子单元12的使能端121是否使能不仅需要考虑第一输出端22是否输出第一使能信号以及写地址判断模块33是否输出第二使能信号,还需考虑其他模块输出的信号。In other embodiments, the write address judgment module 33 is indirectly electrically coupled to the enable terminal 121 of each storage subunit 12, and whether the enable terminal 121 of the storage subunit 12 is enabled not only needs to consider whether the first output terminal 22 The output of the first enable signal and whether the write address judgment module 33 outputs the second enable signal also needs to consider the signals output by other modules.
例如,参见图5,前向检测模块3还可包括帧数据检测模块34,帧数据检测模块34与数据写入接口11电耦合连接,并与每个存储子单元12的使能端121电耦合连接。本实施例中,数据写入接口11上的数据可包括有效数据(待写入数据)和无效数据(非待写入数据),其中,有效数据包括特定帧头标识和特定帧尾标识,相邻两帧有效数据之间可能会存在无效数据,无效数据不具有帧头标识和帧尾标识,或者无效数据的帧头标识与有效数据的帧头标识不相同,无效数据的帧尾标识与有效数据的帧尾标识也不相同。数据中的标识位(包括帧头标识和帧尾标识)为逻辑电平,FPGA芯片30在接收到数据后,会将标识位转化为内部逻辑电平(1或0)。帧数据检测模块34用于检测数据写入接口11上的待写入数据的帧头标识和帧尾标识,具体的,帧数据检测模块34根据是否检测到特定帧头标识和特定帧尾标识或者根据检测到的特定帧头标识和特定帧尾标识对应的逻辑电平来判断数据是否为有效数据。本实施例的帧数据检测模块34在检测到特定帧尾标识时,释放所有已使能的存储子单元12,使得所有已使能的存储子单元12的使能端121处于复位状态,防止无效数据被存入内存单元1,并降低FPGA芯片30的功耗。并且,帧数据检测模块34在检测到当前特定帧尾标识之后,检测到下一帧头标识之前,无论写地址判断模块33输出的信号是否为第二使能信号,所有存储子单元12均处于复位状态。具体可通过配置寄存器,保证在当前帧有效数据帧尾一定时间(如10ms)后,一直到下一帧有效数据帧头期间,写地址判断模块33无法触发存储子单元12使能,从而保持内存单元1复位。For example, referring to FIG. 5, the forward detection module 3 may further include a frame data detection module 34 that is electrically coupled to the data writing interface 11 and electrically coupled to the enable terminal 121 of each storage subunit 12 connection. In this embodiment, the data on the data writing interface 11 may include valid data (data to be written) and invalid data (non-data to be written). Among them, the valid data includes a specific frame header identifier and a specific frame tail identifier. There may be invalid data between adjacent two frames of valid data. The invalid data does not have the frame header identifier and the frame trailer identifier, or the frame header identifier of the invalid data is different from the frame header identifier of the valid data, and the frame identifier of the invalid data is valid. The end of frame identification of the data is also different. The identification bits (including the frame header identification and the frame end identification) in the data are logic levels, and after receiving the data, the FPGA chip 30 converts the identification bits into internal logic levels (1 or 0). The frame data detection module 34 is used to detect the frame header identifier and the frame trailer identifier of the data to be written on the data writing interface 11. Specifically, the frame data detection module 34 detects whether a specific frame header identifier and a specific frame trailer identifier are detected or According to the detected logic level corresponding to the specific frame header identifier and the specific frame trailer identifier, it is determined whether the data is valid data. The frame data detection module 34 of this embodiment releases all the enabled storage subunits 12 when detecting the specific frame end flag, so that the enable terminals 121 of all the enabled storage subunits 12 are in a reset state to prevent invalidation The data is stored in the memory unit 1, and the power consumption of the FPGA chip 30 is reduced. Moreover, after the frame data detection module 34 detects the current specific frame tail flag and before the next frame header flag, regardless of whether the signal output by the write address judgment module 33 is the second enable signal, all the storage subunits 12 are in Reset state. Specifically, the configuration register can be used to ensure that after a certain time (such as 10ms) at the end of the current frame of valid data and until the beginning of the next frame of valid data, the write address judgment module 33 cannot trigger the storage subunit 12 to be enabled, thereby maintaining memory Unit 1 is reset.
帧数据检测模块34在检测到下一帧帧头标识后,若写地址判断模块33输出第二使能信号,则对应存储子单元12使能,即帧数据检测模块34在检测到下一帧帧头标识后,写地址判断模块33才能够触发被释放的存储子单元12重新使能,本实施例中,下一帧有效数据会对之前处于数据写入接口11上的无效数据进行覆盖,写地址判断模块33再重新使能被释放的存储子单元12后,被存入存储子单元12的数据均为有效数据。After the frame data detection module 34 detects the frame header identifier of the next frame, if the write address judgment module 33 outputs the second enable signal, the corresponding storage subunit 12 is enabled, that is, the frame data detection module 34 detects the next frame After the frame header is identified, the write address judgment module 33 can trigger the released storage subunit 12 to be re-enabled. In this embodiment, the valid data in the next frame will overwrite the invalid data previously on the data writing interface 11, After the write address judgment module 33 re-enables the released storage subunit 12, the data stored in the storage subunit 12 are all valid data.
本实施例的写地址判断模块33和帧数据检测模块34均通过第一检测端21与数据写入接口11电耦合连接,如图5所示。The write address judgment module 33 and the frame data detection module 34 of this embodiment are electrically coupled to the data write interface 11 through the first detection terminal 21, as shown in FIG. 5.
又参见图5,FPGA芯片30还可包括第二逻辑电路5,写地址判断模块33和帧数据检测模块34通过第二逻辑电路5与每个存储子单元12的使能端121电耦合连接。可选的,第二逻辑电路5包括或运算、与运算、异或运算和非运算中的至少一种。作为一种可行的实现方式,第二逻辑电路5包括与逻辑器件,写地址判断模块33输出的信号和帧数据检测模块34输出的信号经与逻辑器件执行与运算后,输出至存储子单元12的使能端121。例如,存储子单元12在其使能端121为高电平时使能,帧数据检测模块34在检测到当前帧数据的帧尾标识至检测到下一帧帧头标识之间,输出低电平,使得第二逻辑器件输出低电平至所有已使能的存储子单元12,使得所有已使能的存储子单元12处于复位状态;帧数据检测模块34在检测到下一帧帧头标识后,输出高电平,触发被释放的存储子单元12重新使能。本实施例中,帧数据检测模块34输出高电平且写地址判断模块33输出第二使能信号时,使能对应的存储子单元12。Referring again to FIG. 5, the FPGA chip 30 may further include a second logic circuit 5, and the write address judgment module 33 and the frame data detection module 34 are electrically coupled to the enable terminal 121 of each storage subunit 12 through the second logic circuit 5. Optionally, the second logic circuit 5 includes at least one of OR operation, AND operation, XOR operation, and NOT operation. As a feasible implementation manner, the second logic circuit 5 includes an AND logic device, and the signal output from the write address judgment module 33 and the signal output from the frame data detection module 34 are output to the storage subunit 12 after being ANDed with the logic device的使端121。 The enable end 121. For example, the storage subunit 12 is enabled when its enable terminal 121 is at a high level, and the frame data detection module 34 outputs a low level between the detection of the end of the frame of the current frame data and the detection of the frame header of the next frame So that the second logic device outputs a low level to all the enabled storage sub-units 12 so that all the enabled storage sub-units 12 are in a reset state; after detecting the frame header identification of the next frame, the frame data detection module 34 , Output high level, trigger the released memory sub-unit 12 to re-enable. In this embodiment, when the frame data detection module 34 outputs a high level and the write address judgment module 33 outputs a second enable signal, the corresponding storage subunit 12 is enabled.
本实施例中,在资源管理模块2根据电子设备的当前使用状态,输出第一使能信号,以触发内存单元1中的一个或多个存储子单元12使能之后,通过数据写入接口11将待写入数据写入使能的一个或多个存储子单元12,将待写入数据缓存在存储子单元12中。In this embodiment, after the resource management module 2 outputs a first enable signal according to the current usage state of the electronic device to trigger the enable of one or more storage subunits 12 in the memory unit 1, the data write interface 11 is used The data to be written is written into the enabled one or more storage subunits 12, and the data to be written is cached in the storage subunit 12.
进一步的,本实施例的FPGA芯片30的资源管理模块2除了具有内存动态申请的功能之外,还具有内存的动态释放功能,具体的,资源管理模块2可根据设定的释放机制,实现存储子单元12的动态释放,释放后存储子单元12处于复位态,进一步避免FPGA的功耗浪费。Further, the resource management module 2 of the FPGA chip 30 of this embodiment has the function of dynamically releasing memory in addition to the function of dynamically applying memory. Specifically, the resource management module 2 may implement storage according to a set release mechanism. The dynamic release of the subunit 12, after the release, the storage subunit 12 is in a reset state, to further avoid the waste of power consumption of the FPGA.
结合图2和图3,内存单元1还可包括数据读取接口13,资源管理模块2与数据读取接口13电耦合连接。具体的,资源管理模块2还包括第三检测端23,第三检测端23与数据读取接口13电耦合连接。本实施例中,在数据写入接口11将待写入数据写入使能的一个或多个存储子单元12之后,资源管理模块2通过数据读取接口13检测每个已使能的存储子单元12的数据读取状态。并且,资源管理模块2在根据每个已使能的存储子单元12的数据读取状态,确定出该已使能的存储子单元12满足预设的资源释放策略时,释放该已使能的存储子单元12,使得该已使能的存储子单元12的使能端121处于复位状态。2 and 3, the memory unit 1 may further include a data reading interface 13, and the resource management module 2 is electrically coupled to the data reading interface 13. Specifically, the resource management module 2 further includes a third detection terminal 23 that is electrically coupled to the data reading interface 13. In this embodiment, after the data writing interface 11 writes the data to be written into the enabled one or more storage subunits 12, the resource management module 2 detects each enabled storage subunit through the data reading interface 13 The data read status of unit 12. In addition, when the resource management module 2 determines that the enabled storage sub-unit 12 satisfies the preset resource release strategy according to the data reading status of each enabled storage sub-unit 12, it releases the enabled The storage sub-unit 12 makes the enable terminal 121 of the enabled storage sub-unit 12 in a reset state.
可采用不同的策略来判断当前被读取数据的存储子单元12是否满足预设的资源释放策略,例如,在一些例子中,资源管理模块2检测数据读取接口13上的读取数据的行地址信息,并确定出数据读取接口13上的读取数据的行地址信息不包含当前已使能的存储子单元12所存储的数据的行地址信息时,确定当前已使能的存储子单元12满足预设的资源释放策略。本实施例中,释放机制是存储子单元12内容被读空时释放。Different strategies can be used to determine whether the currently read data storage subunit 12 meets the preset resource release strategy. For example, in some examples, the resource management module 2 detects the row of read data on the data read interface 13 Address information, and when it is determined that the row address information of the read data on the data reading interface 13 does not contain the row address information of the data stored in the currently enabled storage subunit 12, the currently enabled storage subunit is determined 12 Meet the preset resource release strategy. In this embodiment, the release mechanism is to release the content of the storage subunit 12 when it is read empty.
在另一实施例中,资源管理模块2检测数据读取接口13上的读取数据的行地 址信息,并确定出数据读取接口13上的读取数据的行地址信息不包含当前已使能的存储子单元12所存储的数据的行地址信息之后,进一步检测到数据写入接口11未接收到新的待写入数据的时长大于预设时长,或者进一步检测到数据写入接口11上的待写入数据的行地址信息不包含当前已使能的存储子单元12所存储的数据的行地址信息的时长大于预设时长,确定当前已使能的存储子单元12满足预设的资源释放策略。本实施例中,当前已使能的存储子单元12的释放机制是当前已使能的存储子单元12内容被读空且在内容被读空后的预设时长内无新的待写入数据被写入数据写入接口11,或者当前已使能的存储子单元12内容被读空且在内容被读空后的预设时长数据写入接口11上的待写入数据不包含写入该当前已使能的存储子单元12的数据。其中,预设时长可根据需要设定,如10秒、20秒、30秒或其他。In another embodiment, the resource management module 2 detects the row address information of the read data on the data reading interface 13 and determines that the row address information of the read data on the data reading interface 13 does not contain the current enable After the row address information of the data stored in the storage sub-unit 12 of the storage subunit 12, it is further detected that the data writing interface 11 has not received new data to be written for a period longer than a preset time period, or that the data writing interface 11 is further detected The row address information of the data to be written does not include the row address information of the data stored in the currently enabled storage subunit 12 is longer than the preset duration, and it is determined that the currently enabled storage subunit 12 satisfies the preset resource release Strategy. In this embodiment, the release mechanism of the currently enabled storage subunit 12 is that the content of the currently enabled storage subunit 12 is read empty and there is no new data to be written within the preset time period after the content is read empty The written data is written to the interface 11, or the content of the currently enabled storage subunit 12 is read empty and the preset duration after the content is read empty. The data to be written on the data writing interface 11 does not include writing to the The data of the storage subunit 12 that is currently enabled. Among them, the preset duration can be set according to needs, such as 10 seconds, 20 seconds, 30 seconds or other.
资源管理模块2在释放当前已使能的存储子单元12之后,若检测到数据写入接口11接收到新的待写入数据,则重新使能被释放的存储子单元12。例如拍摄装置进行拍摄时,当存储子单元12使能后被存入一行数据,接着这一行数据又被读走,在没有收到新的数据之前,可以复位存储子单元12,降低功耗,直到FPGA接收到新的待写入数据,才会再次使能该被释放的存储子单元12,将新的待写入数据存入该存储子单元12。After releasing the currently enabled storage subunit 12, the resource management module 2 re-enables the released storage subunit 12 if it detects that the data writing interface 11 receives new data to be written. For example, when the shooting device shoots, when the storage subunit 12 is enabled, a line of data is stored, and then this line of data is read again. Before receiving new data, the storage subunit 12 can be reset to reduce power consumption. Until the FPGA receives new data to be written, the released storage subunit 12 will be enabled again, and the new data to be written will be stored in the storage subunit 12.
在一具体实施例中,参见图6,FPGA芯片30应用在相机中,FPGA芯片30包括RAM100的大小为8K,RAM100包括2K的RAM101、2K的RAM102、2K的RAM103以及2K的RAM104。当相机处于拍摄状态时,需要8K的内存资源,RAM101、RAM102、RAM103和RAM104均使能;当相机处于视频回放状态时,需要1080P的内存资源,RAM101使能。In a specific embodiment, referring to FIG. 6, the FPGA chip 30 is used in a camera. The FPGA chip 30 includes a RAM 100 with a size of 8K. The RAM 100 includes a 2K RAM 101, a 2K RAM 102, a 2K RAM 103, and a 2K RAM 104. When the camera is in the shooting state, 8K of memory resources are required, and RAM101, RAM102, RAM103, and RAM104 are all enabled; when the camera is in the video playback state, 1080P of memory resources are required, and RAM101 is enabled.
在特定使用场景下,相比未进行优化的FPGA芯片30,优化后的FPGA芯片30的功耗降低了30%。Under certain usage scenarios, compared with the unoptimized FPGA chip 30, the power consumption of the optimized FPGA chip 30 is reduced by 30%.
在一可替代实施例中,FPGA芯片包括资源管理模块2,但不具有前向检测模块3。该替代实施例中,资源管理模块2在检测到数据写入接口11接收到待写入数据后,根据待写入数据的大小,输出使能信号,以触发内存单元1中的一个或多个存储子单元12使能。与上述实施例的FPGA芯片30不同的是,替代实施例的资源管理模块2在确定存在有效待写入数据后,直接根据待写入数据的大小,使能多个存储子单元12中的一个或多个存储子单元12。例如,内存单元1包括4个2K存储子单元12,当数据写入接口11当前接收到的待写入数据为8K大小,则这4个存储子单元12的使能端121电耦合连接的第一输出端22均输出使能信号,触发这4个存储子单元12使能,将8K大小待写入数据存入4个存储子单元12;当数据写入接口11当前接收到的待写入数据为1080P大小,则与这4个存储子单元12的使能端121电耦合连接的第一输出端22中的一个输出使能信号,使得其中1个存储子单元12使能,将1080P大小待写入数据存入该使能的存储子单元12。In an alternative embodiment, the FPGA chip includes a resource management module 2 but no forward detection module 3. In this alternative embodiment, after detecting that the data writing interface 11 receives the data to be written, the resource management module 2 outputs an enable signal according to the size of the data to be written to trigger one or more of the memory unit 1 The storage subunit 12 is enabled. Different from the FPGA chip 30 of the above embodiment, after determining that there is valid data to be written, the resource management module 2 of the alternative embodiment directly enables one of the plurality of storage subunits 12 according to the size of the data to be written或 Multiple storage subunits 12. For example, the memory unit 1 includes four 2K storage subunits 12. When the data to be written currently received by the data writing interface 11 is 8K in size, the enable terminals 121 of the four storage subunits 12 are electrically coupled to the first An output terminal 22 outputs an enable signal, triggering the four storage subunits 12 to be enabled, and storing 8K data to be written into the four storage subunits 12; when the data writing interface 11 currently receives the write to be received If the data is 1080P, one of the first output terminals 22 electrically coupled to the enable terminals 121 of the four memory subunits 12 outputs an enable signal, so that one of the memory subunits 12 is enabled, and the 1080P size The data to be written is stored in the enabled storage sub-unit 12.
替代实施例的其他部分与上述实施例的FPGA芯片30相类似。The other parts of the alternative embodiment are similar to the FPGA chip 30 of the above embodiment.
该替代实施例的FPGA芯片在封装时,对内存单元1进行了划分,将内存单元1划分成多个存储子单元12,在使用时,根据数据写入接口11上的待写入数据的大小,触发内存单元1中的一个或多个存储子单元12使能,实现了内存资源的动态申请,确保在各个场景下使用最少的内存资源,最大限度的降低了FPGA芯片的功耗,使得FPGA芯片能够满足功耗要求较高的电子设备;并且,本发明降低FPGA芯片功耗的方法灵活性强。The FPGA chip of this alternative embodiment divides the memory unit 1 when it is packaged, divides the memory unit 1 into a plurality of storage subunits 12, and in use, according to the size of the data to be written on the data writing interface 11 , Triggering the enablement of one or more storage subunits 12 in the memory unit 1 to realize the dynamic application of memory resources, ensuring that the minimum memory resources are used in various scenarios, and maximally reducing the power consumption of the FPGA chip, making the FPGA The chip can meet the electronic equipment with high power consumption requirements; moreover, the method for reducing the power consumption of the FPGA chip of the present invention has strong flexibility.
本发明实施例还提供一种电子设备,该电子设备可包括采集模块和/或数据存储模块20以及上述实施例一或实施例二所述的FPGA芯片30。An embodiment of the present invention further provides an electronic device. The electronic device may include an acquisition module and/or a data storage module 20 and the FPGA chip 30 described in Embodiment 1 or Embodiment 2 above.
其中,数据写入接口11与数据采集模块10和/或数据存储模块20电耦合连接,数据采集模块10用于采集数据并将采集的数据发送至数据写入接口11和/或数据存储模块20将该数据存储模块20所存储的数据发送至数据写入接口11。The data writing interface 11 is electrically coupled to the data collection module 10 and/or the data storage module 20. The data collection module 10 is used to collect data and send the collected data to the data writing interface 11 and/or the data storage module 20 The data stored in the data storage module 20 is sent to the data writing interface 11.
在一实施例中,参见图7,电子设备包括数据采集模块10和FPGA芯片30,数据采集模块10与FPGA芯片30电耦合连接。以电子设备为拍摄装置为例,本实施例中,使用拍摄装置进行拍摄(拍摄装置处于拍摄状态),数据采集模块10为拍摄装置的图像采集装置,图像采集装置采集图像,并将图像发送至FPGA芯片30,FPGA芯片30将图像缓存在内存单元1中。进一步的,电子设备还可包括后端模块,该后端模块可为图像处理模块或数据存储模块20(SD卡或固态硬盘SSD)。图像处理模块可读取缓存在内存单元1中的图像并进行图像处理,数据存储模块20可读取缓存在内存单元1中的图像并进行存储。In an embodiment, referring to FIG. 7, the electronic device includes a data collection module 10 and an FPGA chip 30, and the data collection module 10 is electrically coupled to the FPGA chip 30. Taking an electronic device as a shooting device as an example, in this embodiment, a shooting device is used for shooting (the shooting device is in a shooting state), and the data collection module 10 is an image acquisition device of the shooting device. The image acquisition device captures an image and sends the image to The FPGA chip 30, the FPGA chip 30 caches the image in the memory unit 1. Further, the electronic device may further include a back-end module, and the back-end module may be an image processing module or a data storage module 20 (SD card or solid state drive SSD). The image processing module can read the image cached in the memory unit 1 and perform image processing, and the data storage module 20 can read the image cached in the memory unit 1 and store it.
在另一实施例中,参见图8,电子设备包括数据存储模块20和FPGA芯片30,数据存储模块20与FPGA芯片30电耦合连接。以电子设备为拍摄装置为例,本实施例中,使用拍摄装置的显示屏(如LCD显示屏)对历史拍摄的图像进行回放(拍摄装置处于视频回放状态),数据存储模块20为拍摄装置的数据存储模块20,数据存储模块20将该数据存储模块20所存储的图像发送至FPGA芯片30,FPGA芯片30将图像缓存在内存单元1中。进一步的,电子设备还可包括后端模块,该后端模块可为显示驱动模块,该显示驱动模块可读取内存单元1中的图像并通过拍摄装置的显示屏进行显示。In another embodiment, referring to FIG. 8, the electronic device includes a data storage module 20 and an FPGA chip 30, and the data storage module 20 is electrically coupled to the FPGA chip 30. Taking an electronic device as a shooting device as an example, in this embodiment, a historical display image (such as an LCD display) is used to play back the historically captured images (the shooting device is in a video playback state), and the data storage module 20 is the shooting device. The data storage module 20 sends the image stored in the data storage module 20 to the FPGA chip 30, and the FPGA chip 30 caches the image in the memory unit 1. Further, the electronic device may further include a back-end module, and the back-end module may be a display drive module, which may read the image in the memory unit 1 and display it through the display screen of the shooting device.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一 个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is any such actual relationship or order. The terms "include", "include", or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also others that are not explicitly listed Elements, or also include elements inherent to such processes, methods, objects, or equipment. Without further restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, article or equipment that includes the element.
以上对本发明实施例所提供的FPGA芯片和具有该FPGA芯片的电子设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The FPGA chip provided by the embodiment of the present invention and the electronic device provided with the FPGA chip have been described in detail above. Specific examples are used in this article to explain the principle and implementation of the present invention. The description of the above embodiment is only for help Understand the method of the present invention and its core idea; meanwhile, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification is not It should be understood as a limitation to the present invention.

Claims (60)

  1. 一种FPGA芯片,所述FPGA芯片应用于电子设备中;其特征在于,所述FPGA芯片包括:An FPGA chip, which is used in electronic equipment; characterized in that the FPGA chip includes:
    内存单元,所述内存单元包括数据写入接口,且所述内存单元具有多个存储子单元,每个存储子单元包括使能端;和A memory unit, the memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits, and each storage subunit includes an enabling terminal; and
    资源管理模块,所述资源管理模块与所述数据写入接口电耦合连接,并与每个存储单元的使能端电耦合连接;A resource management module, the resource management module is electrically coupled to the data writing interface, and is electrically coupled to the enable end of each storage unit;
    所述资源管理模块能够通过所述数据写入接口获取所述电子设备的当前使用状态,并根据所述电子设备的当前使用状态,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元使能。The resource management module can obtain the current use state of the electronic device through the data writing interface, and output a first enable signal according to the current use state of the electronic device to trigger one of the memory units Or multiple memory subunits are enabled.
  2. 根据权利要求1所述的FPGA芯片,其特征在于,多个所述存储子单元的大小相等。The FPGA chip according to claim 1, wherein the plurality of storage subunits are equal in size.
  3. 根据权利要求1所述的FPGA芯片,其特征在于,所述电子设备为相机,所述使用状态包括以下至少一种:The FPGA chip according to claim 1, wherein the electronic device is a camera, and the use state includes at least one of the following:
    拍摄状态、视频回放状态。Shooting status, video playback status.
  4. 根据权利要求1所述的FPGA芯片,其特征在于,所述资源管理模块包括第一检测端和第一输出端,所述第一检测端与所述数据写入接口电耦合连接,所述第一输出端与每个存储单元的使能端电耦合连接。The FPGA chip according to claim 1, wherein the resource management module includes a first detection terminal and a first output terminal, the first detection terminal is electrically coupled to the data writing interface, and the first An output terminal is electrically coupled to the enable terminal of each memory cell.
  5. 根据权利要求1或4所述的FPGA芯片,其特征在于,所述资源管理模块根据所述电子设备的当前使用状态对应的待写入数据的大小,输出第一使能信号。The FPGA chip according to claim 1 or 4, wherein the resource management module outputs a first enable signal according to the size of the data to be written corresponding to the current use status of the electronic device.
  6. 根据权利要求5所述的FPGA芯片,其特征在于,所述FPGA还包括前向检测模块,所述前向检测模块与所述数据写入接口电耦合连接,并与每个存储子单元的使能端电耦合连接;The FPGA chip according to claim 5, wherein the FPGA further comprises a forward detection module, the forward detection module is electrically coupled to the data writing interface and connected to each storage subunit Energy-end electrical coupling connection;
    所述资源管理模块根据所述电子设备的当前使用状态对应的待写入数据的大小,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元处于待使能状态;The resource management module outputs a first enable signal according to the size of the data to be written corresponding to the current use state of the electronic device, to trigger one or more storage subunits in the memory unit to be in the enable state ;
    所述前向检测模块在检测到所述数据写入接口接收到待写入数据后,输出第二使能信号,以使能所述待使能的存储子单元。After detecting that the data writing interface receives the data to be written, the forward detection module outputs a second enable signal to enable the storage subunit to be enabled.
  7. 根据权利要求6所述的FPGA芯片,其特征在于,所述FPGA芯片还包括第一逻辑电路,所述资源管理模块和所述前向检测模块通过所述第一逻辑电路与每个存储子单元的使能端电耦合连接。The FPGA chip according to claim 6, wherein the FPGA chip further includes a first logic circuit, and the resource management module and the forward detection module communicate with each storage subunit through the first logic circuit The enable terminal is electrically coupled.
  8. 根据权利要求7所述的FPGA芯片,其特征在于,所述第一逻辑电路包括或运算、与运算、异或运算和非运算中的至少一种。The FPGA chip according to claim 7, wherein the first logic circuit includes at least one of an OR operation, an AND operation, an XOR operation, and a NOT operation.
  9. 根据权利要求6所述的FPGA芯片,其特征在于,所述待使能的存储子单元为多个;The FPGA chip according to claim 6, wherein there are multiple storage subunits to be enabled;
    所述前向检测模块在检测到所述数据写入接口接收到待写入数据后,根据每帧待写入数据的行地址信息,依次使能所述多个待使能的存储子单元,使得当前使能的待 使能存储子单元在上一使能的待使能存储子单元写入行数据结束后被使能。After detecting that the data writing interface receives the data to be written, the forward detection module sequentially enables the plurality of storage subunits to be enabled according to the row address information of the data to be written in each frame, Therefore, the currently enabled memory subunit to be enabled is enabled after the writing of row data of the last enabled memory subunit to be enabled is completed.
  10. 根据权利要求9所述的FPGA芯片,其特征在于,所述前向检测模块包括写地址判断模块,所述写地址判断模块与所述数据写入接口电耦合连接,并与每个存储子单元的使能端电耦合连接;The FPGA chip according to claim 9, wherein the forward detection module includes a write address judgment module, the write address judgment module is electrically coupled to the data write interface, and is connected to each storage subunit The electrical connection of the enable end of the;
    所述写地址判断模块用于判断所述数据写入接口上当前帧待写入数据的行地址信息,并根据所述行地址信息,输出第二使能信号至与该行地址信息对应的存储子单元的使能端。The write address judgment module is used to judge the row address information of the data to be written in the current frame on the data writing interface, and according to the row address information, output a second enable signal to the storage corresponding to the row address information The enable end of the subunit.
  11. 根据权利要求10所述的FPGA芯片,其特征在于,所述前向检测模块还包括帧数据检测模块,所述帧数据检测模块与所述数据写入接口电耦合连接,并与每个存储子单元的使能端电耦合连接;The FPGA chip according to claim 10, wherein the forward detection module further comprises a frame data detection module, the frame data detection module is electrically coupled to the data writing interface and connected to each storage sub The enable end of the unit is electrically coupled;
    所述帧数据检测模块用于检测所述数据写入接口上当前帧待写入数据的帧头标识和帧尾标识;The frame data detection module is used to detect a frame header identifier and a frame trailer identifier of the data to be written in the current frame on the data writing interface;
    所述帧数据检测模块在检测到特定帧尾标识时,释放所有已使能的存储子单元,使得所有已使能的存储子单元的使能端处于复位状态;The frame data detection module releases all the enabled storage subunits when detecting the specific frame end flag, so that the enabled terminals of all the enabled storage subunits are in a reset state;
    所述帧数据检测模块在检测到特定帧头标识之后,若写地址判断模块输出第二使能信号,则使能对应的存储子单元。After the frame data detection module detects the specific frame header identifier, if the write address judgment module outputs the second enable signal, the corresponding storage subunit is enabled.
  12. 根据权利要求11所述的FPGA芯片,其特征在于,所述FPGA芯片还包括第二逻辑电路,所述写地址判断模块和所述帧数据检测模块通过所述第二逻辑电路与每个存储子单元的使能端电耦合连接。The FPGA chip according to claim 11, wherein the FPGA chip further includes a second logic circuit, and the write address judgment module and the frame data detection module communicate with each storage sub via the second logic circuit The enable terminal of the unit is electrically coupled and connected.
  13. 根据权利要求12所述的FPGA芯片,其特征在于,所述第二逻辑电路包括或运算、与运算、异或运算和非运算中的至少一种。The FPGA chip according to claim 12, wherein the second logic circuit includes at least one of an OR operation, an AND operation, an XOR operation, and a NOT operation.
  14. 根据权利要求1所述的FPGA芯片,其特征在于,所述资源管理模块在检测到所有存储子单元的使能端处于复位状态之后,根据所述电子设备的当前使用状态,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元使能。The FPGA chip according to claim 1, wherein the resource management module outputs the first enable according to the current use state of the electronic device after detecting that the enable terminals of all the storage subunits are in the reset state Signal to trigger one or more storage subunits in the memory unit to be enabled.
  15. 根据权利要求1所述的FPGA芯片,其特征在于,在所述资源管理模块根据所述电子设备的当前使用状态,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元使能之后,通过所述数据写入接口将待写入数据写入所述使能的一个或多个存储子单元。The FPGA chip according to claim 1, wherein the resource management module outputs a first enable signal according to the current use state of the electronic device to trigger one or more storages in the memory unit After the subunit is enabled, the data to be written is written into the enabled one or more storage subunits through the data writing interface.
  16. 根据权利要求15所述的FPGA芯片,其特征在于,所述内存单元还包括数据读取接口,所述资源管理模块与所述数据读取接口电耦合连接;The FPGA chip according to claim 15, wherein the memory unit further includes a data reading interface, and the resource management module is electrically coupled to the data reading interface;
    在所述数据写入接口将所述待写入数据写入所述使能的一个或多个存储子单元之后,所述资源管理模块通过所述数据读取接口检测每个已使能的存储子单元的数据读取状态;After the data writing interface writes the data to be written into the enabled one or more storage subunits, the resource management module detects each enabled storage through the data reading interface The data reading status of the subunit;
    并且,所述资源管理模块在根据每个已使能的存储子单元的数据读取状态,确定出该已使能的存储子单元满足预设的资源释放策略时,释放该已使能的存储子单元,使得该已使能的存储子单元的使能端处于复位状态。In addition, the resource management module releases the enabled storage when it is determined that the enabled storage subunit satisfies the preset resource release strategy according to the data reading status of each enabled storage subunit The subunit, so that the enabled end of the enabled storage subunit is in a reset state.
  17. 根据权利要求16所述的FPGA芯片,其特征在于,所述资源管理模块检测所述数据读取接口上的读取数据的行地址信息,并确定出所述数据读取接口上的读取数据的行地址信息不包含当前已使能的存储子单元所存储的数据的行地址信息时,确定当前已使能的存储子单元满足预设的资源释放策略。The FPGA chip according to claim 16, wherein the resource management module detects row address information of the read data on the data read interface and determines the read data on the data read interface When the row address information does not include the row address information of the data stored in the currently enabled storage subunit, it is determined that the currently enabled storage subunit satisfies the preset resource release strategy.
  18. 根据权利要求17所述的FPGA芯片,其特征在于,所述资源管理模块确定当前已使能的存储子单元满足预设的资源释放策略进一步包括:The FPGA chip according to claim 17, wherein the resource management module determining that the currently enabled storage subunit satisfies a preset resource release strategy further comprises:
    在所述资源管理模块检测所述数据读取接口上的读取数据的行地址信息,并确定出所述数据读取接口上的读取数据的行地址信息不包含当前已使能的存储子单元所存储的数据的行地址信息之后,The resource management module detects the row address information of the read data on the data reading interface, and determines that the row address information of the read data on the data reading interface does not contain the currently enabled storage sub After the row address information of the data stored in the cell,
    进一步检测到所述数据写入接口未接收到新的待写入数据的时长大于预设时长,或者,Further detecting that the data writing interface has not received new data to be written for a period of time greater than a preset period of time, or,
    进一步检测到所述数据写入接口上的待写入数据的行地址信息不包含所述当前已使能的存储子单元所存储的数据的行地址信息的时长大于预设时长。It is further detected that the row address information of the data to be written on the data writing interface does not include the row address information of the data stored in the currently enabled storage subunit is longer than the preset duration.
  19. 根据权利要求16所述的FPGA芯片,其特征在于,所述资源管理模块在释放所述当前已使能的存储子单元之后,若检测到所述数据写入接口接收到新的待写入数据,则重新使能所述被释放的存储子单元。The FPGA chip according to claim 16, wherein after the resource management module releases the currently enabled storage subunit, if it is detected that the data writing interface receives new data to be written , Then re-enable the released storage subunit.
  20. 根据权利要求1所述的FPGA芯片,其特征在于,所述内存单元为RAM。The FPGA chip according to claim 1, wherein the memory unit is a RAM.
  21. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device includes:
    数据采集模块和/或数据存储模块;以及Data acquisition module and/or data storage module; and
    FPGA芯片,包括内存单元和资源管理模块,所述内存单元包括数据写入接口,且所述内存单元具有多个存储子单元,每个存储子单元包括使能端;所述资源管理模块与所述数据写入接口电耦合连接,并与每个存储单元的使能端电耦合连接;The FPGA chip includes a memory unit and a resource management module. The memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits. Each storage subunit includes an enabling terminal. The resource management module and the resource management module The data writing interface is electrically coupled and connected to the enable terminal of each storage unit;
    所述数据写入接口与数据采集模块和/或数据存储模块电耦合连接;The data writing interface is electrically coupled to the data acquisition module and/or data storage module;
    所述数据采集模块用于采集数据并将采集的数据发送至所述数据写入接口和/或所述数据存储模块将该数据存储模块所存储的数据发送至所述数据写入接口;The data collection module is used to collect data and send the collected data to the data writing interface and/or the data storage module to send the data stored by the data storage module to the data writing interface;
    所述资源管理模块能够通过所述数据写入接口获取所述电子设备的当前使用状态,并根据所述电子设备的当前使用状态,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元使能。The resource management module can obtain the current use state of the electronic device through the data writing interface, and output a first enable signal according to the current use state of the electronic device to trigger one of the memory units Or multiple memory subunits are enabled.
  22. 根据权利要求21所述的电子设备,其特征在于,多个所述存储子单元的大小相等。The electronic device according to claim 21, wherein the plurality of storage subunits are equal in size.
  23. 根据权利要求21所述的电子设备,其特征在于,所述电子设备为相机,所述使用状态包括以下至少一种:The electronic device according to claim 21, wherein the electronic device is a camera, and the use state includes at least one of the following:
    拍摄状态、视频回放状态。Shooting status, video playback status.
  24. 根据权利要求21所述的电子设备,其特征在于,所述资源管理模块包括第一检测端和第一输出端,所述第一检测端与所述数据写入接口电耦合连接,所述第一输出端与每个存储单元的使能端电耦合连接。The electronic device according to claim 21, wherein the resource management module includes a first detection terminal and a first output terminal, the first detection terminal is electrically coupled to the data writing interface, and the first An output terminal is electrically coupled to the enable terminal of each memory cell.
  25. 根据权利要求21或24所述的电子设备,其特征在于,所述资源管理模块根据所述电子设备的当前使用状态对应的待写入数据的大小,输出第一使能信号。The electronic device according to claim 21 or 24, wherein the resource management module outputs a first enable signal according to the size of the data to be written corresponding to the current use status of the electronic device.
  26. 根据权利要求25所述的电子设备,其特征在于,所述FPGA还包括前向检测模块,所述前向检测模块与所述数据写入接口电耦合连接,并与每个存储子单元的使能端电耦合连接;The electronic device according to claim 25, wherein the FPGA further comprises a forward detection module, the forward detection module is electrically coupled to the data writing interface and connected to each storage subunit Energy-end electrical coupling connection;
    所述资源管理模块根据所述电子设备的当前使用状态对应的待写入数据的大小,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元处于待使能状态;The resource management module outputs a first enable signal according to the size of the data to be written corresponding to the current use state of the electronic device, to trigger one or more storage subunits in the memory unit to be in the enable state ;
    所述前向检测模块在检测到所述数据写入接口接收到待写入数据后,输出第二使能信号,以使能所述待使能的存储子单元。After detecting that the data writing interface receives the data to be written, the forward detection module outputs a second enable signal to enable the storage subunit to be enabled.
  27. 根据权利要求26所述的电子设备,其特征在于,所述FPGA芯片还包括第一逻辑电路,所述资源管理模块和所述前向检测模块通过所述第一逻辑电路与每个存储子单元的使能端电耦合连接。The electronic device according to claim 26, wherein the FPGA chip further includes a first logic circuit, and the resource management module and the forward detection module communicate with each storage subunit through the first logic circuit The enable terminal is electrically coupled.
  28. 根据权利要求27所述的电子设备,其特征在于,所述第一逻辑电路包括或运算、与运算、异或运算和非运算中的至少一种。The electronic device according to claim 27, wherein the first logic circuit includes at least one of an OR operation, an AND operation, an XOR operation, and a NOT operation.
  29. 根据权利要求26所述的电子设备,其特征在于,所述待使能的存储子单元为多个;The electronic device according to claim 26, wherein there are multiple storage subunits to be enabled;
    所述前向检测模块在检测到所述数据写入接口接收到待写入数据后,根据每帧待写入数据的行地址信息,依次使能所述多个待使能的存储子单元,使得当前使能的待使能存储子单元在上一使能的待使能存储子单元写入行数据结束后被使能。After detecting that the data writing interface receives the data to be written, the forward detection module sequentially enables the plurality of storage subunits to be enabled according to the row address information of the data to be written in each frame, Therefore, the currently enabled memory subunit to be enabled is enabled after the writing of row data of the last enabled memory subunit to be enabled is completed.
  30. 根据权利要求29所述的电子设备,其特征在于,所述前向检测模块包括写地址判断模块,所述写地址判断模块与所述数据写入接口电耦合连接,并与每个存储子单元的使能端电耦合连接;The electronic device according to claim 29, wherein the forward detection module includes a write address judgment module, the write address judgment module is electrically coupled to the data write interface, and is connected to each storage subunit The electrical connection of the enable end of the;
    所述写地址判断模块用于判断所述数据写入接口上当前帧待写入数据的行地址信息,并根据所述行地址信息,输出第二使能信号至与该行地址信息对应的存储子单元的使能端。The write address judgment module is used to judge the row address information of the data to be written in the current frame on the data writing interface, and according to the row address information, output a second enable signal to the storage corresponding to the row address information The enable end of the subunit.
  31. 根据权利要求30所述的电子设备,其特征在于,所述前向检测模块还包括帧数据检测模块,所述帧数据检测模块与所述数据写入接口电耦合连接,并与每个存储子单元的使能端电耦合连接;The electronic device according to claim 30, wherein the forward detection module further comprises a frame data detection module, the frame data detection module is electrically coupled to the data writing interface and connected to each storage sub The enable end of the unit is electrically coupled;
    所述帧数据检测模块用于检测所述数据写入接口上当前帧待写入数据的帧头标识和帧尾标识;The frame data detection module is used to detect a frame header identifier and a frame trailer identifier of the data to be written in the current frame on the data writing interface;
    所述帧数据检测模块在检测到特定帧尾标识时,释放所有已使能的存储子单元,使得所有已使能的存储子单元的使能端处于复位状态;The frame data detection module releases all the enabled storage subunits when detecting the specific frame end flag, so that the enabled terminals of all the enabled storage subunits are in a reset state;
    所述帧数据检测模块在检测到特定帧头标识之后,若写地址判断模块输出第二使能信号,则使能对应的存储子单元。After the frame data detection module detects the specific frame header identifier, if the write address judgment module outputs the second enable signal, the corresponding storage subunit is enabled.
  32. 根据权利要求31所述的电子设备,其特征在于,所述FPGA芯片还包括第二逻辑电路,所述写地址判断模块和所述帧数据检测模块通过所述第二逻辑电路与每个 存储子单元的使能端电耦合连接。The electronic device according to claim 31, wherein the FPGA chip further includes a second logic circuit, and the write address determination module and the frame data detection module communicate with each storage sub via the second logic circuit The enable terminal of the unit is electrically coupled and connected.
  33. 根据权利要求32所述的电子设备,其特征在于,所述第二逻辑电路包括或运算、与运算、异或运算和非运算中的至少一种。The electronic device according to claim 32, wherein the second logic circuit includes at least one of an OR operation, an AND operation, an XOR operation, and a NOT operation.
  34. 根据权利要求21所述的电子设备,其特征在于,所述资源管理模块在检测到所有存储子单元的使能端处于复位状态之后,根据所述电子设备的当前使用状态,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元使能。The electronic device according to claim 21, wherein the resource management module outputs the first enable according to the current use state of the electronic device after detecting that the enable terminals of all the storage subunits are in the reset state Signal to trigger one or more storage subunits in the memory unit to be enabled.
  35. 根据权利要求21所述的电子设备,其特征在于,在所述资源管理模块根据所述电子设备的当前使用状态,输出第一使能信号,以触发所述内存单元中的一个或多个存储子单元使能之后,通过所述数据写入接口将待写入数据写入所述使能的一个或多个存储子单元。The electronic device according to claim 21, wherein the resource management module outputs a first enable signal according to the current usage state of the electronic device to trigger one or more storages in the memory unit After the subunit is enabled, the data to be written is written into the enabled one or more storage subunits through the data writing interface.
  36. 根据权利要求35所述的电子设备,其特征在于,所述内存单元还包括数据读取接口,所述资源管理模块与所述数据读取接口电耦合连接;The electronic device according to claim 35, wherein the memory unit further includes a data reading interface, and the resource management module is electrically coupled to the data reading interface;
    在所述数据写入接口将所述待写入数据写入所述使能的一个或多个存储子单元之后,所述资源管理模块通过所述数据读取接口检测每个已使能的存储子单元的数据读取状态;After the data writing interface writes the data to be written into the enabled one or more storage subunits, the resource management module detects each enabled storage through the data reading interface The data reading status of the subunit;
    并且,所述资源管理模块在根据每个已使能的存储子单元的数据读取状态,确定出该已使能的存储子单元满足预设的资源释放策略时,释放该已使能的存储子单元,使得该已使能的存储子单元的使能端处于复位状态。In addition, the resource management module releases the enabled storage when it is determined that the enabled storage subunit satisfies the preset resource release strategy according to the data reading status of each enabled storage subunit The subunit, so that the enabled end of the enabled storage subunit is in a reset state.
  37. 根据权利要求36所述的电子设备,其特征在于,所述资源管理模块检测所述数据读取接口上的读取数据的行地址信息,并确定出所述数据读取接口上的读取数据的行地址信息不包含当前已使能的存储子单元所存储的数据的行地址信息时,确定当前已使能的存储子单元满足预设的资源释放策略。The electronic device according to claim 36, wherein the resource management module detects row address information of the read data on the data read interface and determines the read data on the data read interface When the row address information does not include the row address information of the data stored in the currently enabled storage subunit, it is determined that the currently enabled storage subunit satisfies the preset resource release strategy.
  38. 根据权利要求37所述的电子设备,其特征在于,所述资源管理模块确定当前已使能的存储子单元满足预设的资源释放策略进一步包括:The electronic device according to claim 37, wherein the resource management module determining that the currently enabled storage subunit satisfies a preset resource release policy further comprises:
    在所述资源管理模块检测所述数据读取接口上的读取数据的行地址信息,并确定出所述数据读取接口上的读取数据的行地址信息不包含当前已使能的存储子单元所存储的数据的行地址信息之后,The resource management module detects the row address information of the read data on the data reading interface, and determines that the row address information of the read data on the data reading interface does not contain the currently enabled storage sub After the row address information of the data stored in the cell,
    进一步检测到所述数据写入接口未接收到新的待写入数据的时长大于预设时长,或者,Further detecting that the data writing interface has not received new data to be written for a period of time greater than a preset period of time, or,
    进一步检测到所述数据写入接口上的待写入数据的行地址信息不包含所述当前已使能的存储子单元所存储的数据的行地址信息的时长大于预设时长。It is further detected that the row address information of the data to be written on the data writing interface does not include the row address information of the data stored in the currently enabled storage subunit is longer than the preset duration.
  39. 根据权利要求36所述的电子设备,其特征在于,所述资源管理模块在释放所述当前已使能的存储子单元之后,若检测到所述数据写入接口接收到新的待写入数据,则重新使能所述被释放的存储子单元。The electronic device according to claim 36, characterized in that, after releasing the currently enabled storage subunit, the resource management module detects that the data writing interface receives new data to be written , Then re-enable the released storage subunit.
  40. 根据权利要求21所述的电子设备,其特征在于,所述内存单元为RAM。The electronic device according to claim 21, wherein the memory unit is a RAM.
  41. 一种FPGA芯片,所述FPGA芯片应用于电子设备中;其特征在于,所述FPGA 芯片包括:An FPGA chip, which is used in electronic equipment; characterized in that the FPGA chip includes:
    内存单元,所述内存单元包括数据写入接口,且所述内存单元具有多个存储子单元,每个存储子单元包括使能端;和A memory unit, the memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits, and each storage subunit includes an enabling terminal; and
    资源管理模块,所述资源管理模块与所述数据写入接口电耦合连接,并与每个存储单元的使能端电耦合连接;A resource management module, the resource management module is electrically coupled to the data writing interface, and is electrically coupled to the enable end of each storage unit;
    所述资源管理模块在检测到所述数据写入接口接收到待写入数据后,根据所述待写入数据的大小,输出使能信号,以触发所述内存单元中的一个或多个存储子单元使能。After detecting that the data writing interface receives the data to be written, the resource management module outputs an enable signal according to the size of the data to be written to trigger one or more storages in the memory unit The subunit is enabled.
  42. 根据权利要求41所述的FPGA芯片,其特征在于,多个所述存储子单元的大小相等。The FPGA chip according to claim 41, wherein the plurality of storage subunits are equal in size.
  43. 根据权利要求41所述的FPGA芯片,其特征在于,所述资源管理模块包括第一检测端和第一输出端,所述第一检测端与所述数据写入接口电耦合连接,所述第一输出端与每个存储单元的使能端电耦合连接。The FPGA chip according to claim 41, wherein the resource management module includes a first detection terminal and a first output terminal, the first detection terminal is electrically coupled to the data writing interface, and the first An output terminal is electrically coupled to the enable terminal of each memory cell.
  44. 根据权利要求41所述的FPGA芯片,其特征在于,所述资源管理模块在检测到所有存储子单元的使能端处于复位状态之后,根据所述待写入数据的大小,输出使能信号,以触发所述内存单元中的一个或多个存储子单元使能。The FPGA chip according to claim 41, wherein the resource management module outputs an enable signal according to the size of the data to be written after detecting that the enable terminals of all storage subunits are in a reset state, To trigger the enabling of one or more storage subunits in the memory unit.
  45. 根据权利要求41所述的FPGA芯片,其特征在于,在所述资源管理模块根据所述待写入数据的大小,输出使能信号,以触发所述内存单元中的一个或多个存储子单元使能之后,通过所述数据写入接口将待写入数据写入所述使能的一个或多个存储子单元。The FPGA chip according to claim 41, wherein the resource management module outputs an enable signal according to the size of the data to be written to trigger one or more storage subunits in the memory unit After being enabled, the data to be written is written into the enabled one or more storage subunits through the data writing interface.
  46. 根据权利要求45所述的FPGA芯片,其特征在于,所述内存单元还包括数据读取接口,所述资源管理模块与所述数据读取接口电耦合连接;The FPGA chip according to claim 45, wherein the memory unit further includes a data reading interface, and the resource management module is electrically coupled to the data reading interface;
    在所述数据写入接口将所述待写入数据写入所述使能的一个或多个存储子单元之后,所述资源管理模块通过所述数据读取接口检测每个已使能的存储子单元的数据读取状态;After the data writing interface writes the data to be written into the enabled one or more storage subunits, the resource management module detects each enabled storage through the data reading interface The data reading status of the subunit;
    并且,所述资源管理模块在根据每个已使能的存储子单元的数据读取状态,确定出该已使能的存储子单元满足预设的资源释放策略时,释放该已使能的存储子单元,使得该已使能的存储子单元的使能端处于复位状态。In addition, the resource management module releases the enabled storage when it is determined that the enabled storage subunit satisfies the preset resource release strategy according to the data reading status of each enabled storage subunit The subunit, so that the enabled end of the enabled storage subunit is in a reset state.
  47. 根据权利要求45所述的FPGA芯片,其特征在于,所述资源管理模块检测所述数据读取接口上的读取数据的行地址信息,并确定出所述数据读取接口上的读取数据的行地址信息不包含当前已使能的存储子单元所存储的数据的行地址信息时,确定当前已使能的存储子单元满足预设的资源释放策略。The FPGA chip according to claim 45, wherein the resource management module detects row address information of the read data on the data read interface and determines the read data on the data read interface When the row address information does not include the row address information of the data stored in the currently enabled storage subunit, it is determined that the currently enabled storage subunit satisfies the preset resource release strategy.
  48. 根据权利要求47所述的FPGA芯片,其特征在于,所述资源管理模块确定当前已使能的存储子单元满足预设的资源释放策略进一步包括:The FPGA chip according to claim 47, wherein the resource management module determining that the currently enabled storage subunit satisfies a preset resource release strategy further comprises:
    在所述资源管理模块检测所述数据读取接口上的读取数据的行地址信息,并确定出所述数据读取接口上的读取数据的行地址信息不包含当前已使能的存储子单元所存 储的数据的行地址信息之后,The resource management module detects the row address information of the read data on the data reading interface, and determines that the row address information of the read data on the data reading interface does not contain the currently enabled storage sub After the row address information of the data stored in the cell,
    进一步检测到所述数据写入接口未接收到新的待写入数据的时长大于预设时长,或者,Further detecting that the data writing interface has not received new data to be written for a period of time greater than a preset period of time, or,
    进一步检测到所述数据写入接口上的待写入数据的行地址信息不包含所述当前已使能的存储子单元所存储的数据的行地址信息的时长大于预设时长。It is further detected that the row address information of the data to be written on the data writing interface does not include the row address information of the data stored in the currently enabled storage subunit is longer than the preset duration.
  49. 根据权利要求46所述的FPGA芯片,其特征在于,所述资源管理模块在释放所述当前已使能的存储子单元之后,若检测到所述数据写入接口接收到新的待写入数据,则重新使能所述被释放的存储子单元。The FPGA chip according to claim 46, wherein after releasing the currently enabled storage subunit, the resource management module detects that the data writing interface receives new data to be written , Then re-enable the released storage subunit.
  50. 根据权利要求41所述的FPGA芯片,其特征在于,所述内存单元为RAM。The FPGA chip according to claim 41, wherein the memory unit is a RAM.
  51. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device includes:
    数据采集模块和/或数据存储模块;以及Data acquisition module and/or data storage module; and
    FPGA芯片,包括内存单元和资源管理模块,所述内存单元包括数据写入接口,且所述内存单元具有多个存储子单元,每个存储子单元包括使能端;所述资源管理模块与所述数据写入接口电耦合连接,并与每个存储单元的使能端电耦合连接;The FPGA chip includes a memory unit and a resource management module. The memory unit includes a data writing interface, and the memory unit has a plurality of storage subunits. Each storage subunit includes an enabling terminal. The resource management module and the resource management module The data writing interface is electrically coupled and connected to the enable terminal of each storage unit;
    所述数据写入接口与数据采集模块和/或数据存储模块电耦合连接;The data writing interface is electrically coupled to the data acquisition module and/or data storage module;
    所述数据采集模块用于采集数据并将采集的数据发送至所述数据写入接口和/或所述数据存储模块将该数据存储模块所存储的数据发送至所述数据写入接口;The data collection module is used to collect data and send the collected data to the data writing interface and/or the data storage module to send the data stored by the data storage module to the data writing interface;
    所述资源管理模块在检测到所述数据写入接口接收到待写入数据后,根据所述待写入数据的大小,输出使能信号,以触发所述内存单元中的一个或多个存储子单元使能。After detecting that the data writing interface receives the data to be written, the resource management module outputs an enable signal according to the size of the data to be written to trigger one or more storages in the memory unit The subunit is enabled.
  52. 根据权利要求51所述的电子设备,其特征在于,多个所述存储子单元的大小相等。The electronic device according to claim 51, wherein the plurality of storage subunits are equal in size.
  53. 根据权利要求51所述的电子设备,其特征在于,所述资源管理模块包括第一检测端和第一输出端,所述第一检测端与所述数据写入接口电耦合连接,所述第一输出端与每个存储单元的使能端电耦合连接。The electronic device according to claim 51, wherein the resource management module includes a first detection terminal and a first output terminal, the first detection terminal is electrically coupled to the data writing interface, and the first An output terminal is electrically coupled to the enable terminal of each memory cell.
  54. 根据权利要求51所述的电子设备,其特征在于,所述资源管理模块在检测到所有存储子单元的使能端处于复位状态之后,根据所述待写入数据的大小,输出使能信号,以触发所述内存单元中的一个或多个存储子单元使能。The electronic device according to claim 51, wherein the resource management module outputs an enable signal according to the size of the data to be written after detecting that the enable terminals of all storage subunits are in a reset state, To trigger the enabling of one or more storage subunits in the memory unit.
  55. 根据权利要求51所述的电子设备,其特征在于,在所述资源管理模块根据所述待写入数据的大小,输出使能信号,以触发所述内存单元中的一个或多个存储子单元使能之后,通过所述数据写入接口将待写入数据写入所述使能的一个或多个存储子单元。The electronic device according to claim 51, wherein the resource management module outputs an enable signal according to the size of the data to be written to trigger one or more storage subunits in the memory unit After being enabled, the data to be written is written into the enabled one or more storage subunits through the data writing interface.
  56. 根据权利要求55所述的电子设备,其特征在于,所述内存单元还包括数据读取接口,所述资源管理模块与所述数据读取接口电耦合连接;The electronic device according to claim 55, wherein the memory unit further includes a data reading interface, and the resource management module is electrically coupled to the data reading interface;
    在所述数据写入接口将所述待写入数据写入所述使能的一个或多个存储子单元之后,所述资源管理模块通过所述数据读取接口检测每个已使能的存储子单元的数据读 取状态;After the data writing interface writes the data to be written into the enabled one or more storage subunits, the resource management module detects each enabled storage through the data reading interface The data reading status of the subunit;
    并且,所述资源管理模块在根据每个已使能的存储子单元的数据读取状态,确定出该已使能的存储子单元满足预设的资源释放策略时,释放该已使能的存储子单元,使得该已使能的存储子单元的使能端处于复位状态。In addition, the resource management module releases the enabled storage when it is determined that the enabled storage subunit satisfies the preset resource release strategy according to the data reading status of each enabled storage subunit The subunit, so that the enabled end of the enabled storage subunit is in a reset state.
  57. 根据权利要求55所述的电子设备,其特征在于,所述资源管理模块检测所述数据读取接口上的读取数据的行地址信息,并确定出所述数据读取接口上的读取数据的行地址信息不包含当前已使能的存储子单元所存储的数据的行地址信息时,确定当前已使能的存储子单元满足预设的资源释放策略。The electronic device according to claim 55, wherein the resource management module detects row address information of the read data on the data read interface and determines the read data on the data read interface When the row address information does not include the row address information of the data stored in the currently enabled storage subunit, it is determined that the currently enabled storage subunit satisfies the preset resource release strategy.
  58. 根据权利要求57所述的电子设备,其特征在于,所述资源管理模块确定当前已使能的存储子单元满足预设的资源释放策略进一步包括:The electronic device according to claim 57, wherein the resource management module determining that the currently enabled storage subunit satisfies the preset resource release policy further comprises:
    在所述资源管理模块检测所述数据读取接口上的读取数据的行地址信息,并确定出所述数据读取接口上的读取数据的行地址信息不包含当前已使能的存储子单元所存储的数据的行地址信息之后,The resource management module detects the row address information of the read data on the data reading interface, and determines that the row address information of the read data on the data reading interface does not contain the currently enabled storage sub After the row address information of the data stored in the cell,
    进一步检测到所述数据写入接口未接收到新的待写入数据的时长大于预设时长,或者,Further detecting that the data writing interface has not received new data to be written for a period of time greater than a preset period of time, or,
    进一步检测到所述数据写入接口上的待写入数据的行地址信息不包含所述当前已使能的存储子单元所存储的数据的行地址信息的时长大于预设时长。It is further detected that the row address information of the data to be written on the data writing interface does not include the row address information of the data stored in the currently enabled storage subunit is longer than the preset duration.
  59. 根据权利要求56所述的电子设备,其特征在于,所述资源管理模块在释放所述当前已使能的存储子单元之后,若检测到所述数据写入接口接收到新的待写入数据,则重新使能所述被释放的存储子单元。The electronic device according to claim 56, characterized in that, after releasing the currently enabled storage subunit, the resource management module detects that the data writing interface receives new data to be written , Then re-enable the released storage subunit.
  60. 根据权利要求51所述的电子设备,其特征在于,所述内存单元为RAM。The electronic device according to claim 51, wherein the memory unit is a RAM.
PCT/CN2018/121705 2018-12-18 2018-12-18 Fpga chip and electronic device having said fpga chip WO2020124347A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880068934.5A CN111279313A (en) 2018-12-18 2018-12-18 FPGA chip and electronic equipment with same
PCT/CN2018/121705 WO2020124347A1 (en) 2018-12-18 2018-12-18 Fpga chip and electronic device having said fpga chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/121705 WO2020124347A1 (en) 2018-12-18 2018-12-18 Fpga chip and electronic device having said fpga chip

Publications (1)

Publication Number Publication Date
WO2020124347A1 true WO2020124347A1 (en) 2020-06-25

Family

ID=70999734

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/121705 WO2020124347A1 (en) 2018-12-18 2018-12-18 Fpga chip and electronic device having said fpga chip

Country Status (2)

Country Link
CN (1) CN111279313A (en)
WO (1) WO2020124347A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819145A (en) * 2021-02-26 2021-05-18 上海阵量智能科技有限公司 Chip, neural network training system, memory management method, device and equipment
CN116298811B (en) * 2023-03-31 2024-04-02 上海威固信息技术股份有限公司 Chip packaging detection system based on FPGA and packaging method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016161563A1 (en) * 2015-04-07 2016-10-13 SZ DJI Technology Co., Ltd. System and method for storing image data in parallel in a camera system
CN106851230A (en) * 2017-04-02 2017-06-13 中国人民解放军91550部队 For the camera triggering of high-speed flight target observation and image transfer method and device
CN107123129A (en) * 2017-04-28 2017-09-01 中国工程物理研究院应用电子学研究所 A kind of image processing apparatus and method
CN207833025U (en) * 2018-01-17 2018-09-07 航天数维高新技术股份有限公司 A kind of pos dot recorders of GPS
CN108700896A (en) * 2017-07-31 2018-10-23 深圳市大疆创新科技有限公司 Data conversion and filming control method, system, head assembly and UAV system
CN108989605A (en) * 2018-07-27 2018-12-11 湖南科技大学 A kind of image capturing and transmitting system and method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7882504B2 (en) * 2004-01-29 2011-02-01 Klingman Edwin E Intelligent memory device with wakeup feature
CN101315628B (en) * 2007-06-01 2011-01-05 华为技术有限公司 Internal memory database system and method and device for implementing internal memory data base
GB2515537A (en) * 2013-06-27 2014-12-31 Ibm Backup management for a plurality of logical partitions
CN104182356B (en) * 2014-09-19 2017-06-27 深圳市茁壮网络股份有限公司 A kind of EMS memory management process, device and terminal device
US9754644B2 (en) * 2014-12-30 2017-09-05 Capital Microelectronics Co., Ltd. Extensible configurable FPGA storage structure and FPGA device
CN104679671B (en) * 2015-03-26 2018-10-12 中国人民解放军国防科学技术大学 For the high-efficiency caching method and input buffer unit in processor end equipment
CN107168804A (en) * 2017-05-31 2017-09-15 上海联影医疗科技有限公司 A kind of memory source management method and system
CN108496161A (en) * 2017-09-29 2018-09-04 深圳市大疆创新科技有限公司 Data buffer storage device and control method, data processing chip, data processing system
CN108255431B (en) * 2018-01-11 2020-11-13 中国人民解放军国防科技大学 Low-power-consumption filing and analyzing system based on strategy and capable of achieving unified management

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016161563A1 (en) * 2015-04-07 2016-10-13 SZ DJI Technology Co., Ltd. System and method for storing image data in parallel in a camera system
CN106851230A (en) * 2017-04-02 2017-06-13 中国人民解放军91550部队 For the camera triggering of high-speed flight target observation and image transfer method and device
CN107123129A (en) * 2017-04-28 2017-09-01 中国工程物理研究院应用电子学研究所 A kind of image processing apparatus and method
CN108700896A (en) * 2017-07-31 2018-10-23 深圳市大疆创新科技有限公司 Data conversion and filming control method, system, head assembly and UAV system
CN207833025U (en) * 2018-01-17 2018-09-07 航天数维高新技术股份有限公司 A kind of pos dot recorders of GPS
CN108989605A (en) * 2018-07-27 2018-12-11 湖南科技大学 A kind of image capturing and transmitting system and method

Also Published As

Publication number Publication date
CN111279313A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
JP5454224B2 (en) Storage device and storage system
CN105138287B (en) Store equipment, interrupt control method and power-on time measurement method
CN102946529B (en) Based on image transmitting and the treatment system of FPGA and multi-core DSP
CN109412914A (en) Flow data and AXI interface communication equipment
KR102520983B1 (en) Acceleration control system based on binarization algorithm, chip and robot
WO2020124347A1 (en) Fpga chip and electronic device having said fpga chip
CN102572393A (en) Wireless video acquisition device based on field programmable gata array (FPGA) and digital signal processor (DSP)
CN110392232B (en) Real-time data monitoring platform
CN107491267B (en) High-speed image data storage device based on L VDS interface
CN112235525A (en) ZYNQ-based GigE interface camera target identification method and system
CN104917645A (en) Method and device for detecting message transmission overtime on line
CN103402068A (en) Uncompressed video play system and method
CN116089343A (en) AXI-based data storage method, device, storage medium and equipment
US10139880B2 (en) Data storage system and method analyzing non-signal
KR100844988B1 (en) Memory high-speed copy equipment and a method
CN106776374B (en) Efficient data buffering method based on FPGA
KR20150072469A (en) Nonvolatile memory devicee and data storage device including the same
CN113438474A (en) Camera module testing device and control method thereof
CN206611519U (en) A kind of high speed real time image collection Transmission system
CN116996647A (en) Video transmission method of BMC, BMC and system-level chip
CN206331414U (en) A kind of solid state hard disc
CN209881907U (en) Image acquisition equipment based on FPGA
CN117472815A (en) Storage module conversion interface under AXI protocol and conversion method thereof
CN104102601A (en) FPGA (field programmable gate array) based image data acquisition and storage system
US9971522B2 (en) Memory system and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18943605

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18943605

Country of ref document: EP

Kind code of ref document: A1