CN111078590A - Efficient access address bit overturning statistical device - Google Patents

Efficient access address bit overturning statistical device Download PDF

Info

Publication number
CN111078590A
CN111078590A CN201911396493.4A CN201911396493A CN111078590A CN 111078590 A CN111078590 A CN 111078590A CN 201911396493 A CN201911396493 A CN 201911396493A CN 111078590 A CN111078590 A CN 111078590A
Authority
CN
China
Prior art keywords
memory
access
address bit
accumulator
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911396493.4A
Other languages
Chinese (zh)
Inventor
王耀华
刘胜
唐冬灯
郭阳
鲁建壮
陈小文
陈海燕
刘仲
雷元武
刘畅
张洋
张显
金志成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
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 National University of Defense Technology filed Critical National University of Defense Technology
Priority to CN201911396493.4A priority Critical patent/CN111078590A/en
Publication of CN111078590A publication Critical patent/CN111078590A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0646Configuration or reconfiguration

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a high-efficiency memory access address bit turning statistical device, which comprises: the bit flipping monitoring array is used for triggering the access quantity counting of the corresponding storage channel according to each effective access of the storage channels; the bitwise accumulator array is used for recording the access quantity count of each storage channel; a control section for enabling and resetting and providing a read operation; the memory controller comprises a memory body and the statistical device. The invention directly counts the actual memory access address bit turnover rate, avoids the problem of inaccuracy and incompleteness of the traditional method, has the advantages of simple realization, convenient operation and capability of accurately and comprehensively counting the address bit turnover information when the application accesses the memory, and thus can effectively guide the optimization of the memory address mapping.

Description

Efficient access address bit overturning statistical device
Technical Field
The invention relates to the field of processors, in particular to an efficient memory access address bit turning statistical device.
Background
With the continuous development of processors, the limitation of memory efficiency on the overall performance of the processor becomes more and more obvious. The address mapping mode is one of the key factors influencing the exertion of the storage efficiency. The efficient address mapping mode can effectively reduce the storage delay, thereby greatly improving the storage efficiency, and therefore, how to optimize the address mapping mode plays an important role in the overall performance of the processor. The turn-over rate of the address bit is important information for guiding address mapping optimization, and a typical current address mapping optimization mode is to obtain address change information through offline simulation of a program and perform corresponding mapping optimization according to the information. However, due to the influence of factors such as dynamic task scheduling of an operating system, address transformation, simulator implementation precision and the like, the real transformation situation of the access and memory addresses of the application program cannot be completely and accurately counted by an off-line simulation mode, so that the optimization of the access and memory efficiency is limited, and the problem of limited application scenes exists.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the invention directly counts the actual memory access address bit turnover rate, avoids the problems of inaccuracy and incompleteness of the traditional method, has the advantages of simple realization, convenient operation and capability of accurately and comprehensively counting the address bit turnover information when the application accesses the memory, and thus can effectively guide the optimization of the address mapping of the memory.
In order to solve the technical problems, the invention adopts the technical scheme that:
a memory access address bit flipping statistical device is characterized by comprising:
the bit flipping monitoring array is mounted on a storage bus of the high-bandwidth memory and used for triggering the access quantity counting of the corresponding storage channel according to each effective access of the storage channel;
the bitwise accumulator array is used for recording the access quantity count of each storage channel;
and the control component is used for enabling and resetting the memory channel access counting module and providing an external access counting reading operation.
Optionally, the bit flipping monitoring array includes N monitoring units, the monitoring units are in one-to-one correspondence with the accumulator and the storage channel, each monitoring unit is configured to trigger a counting operation of the storage channel according to each valid access of the corresponding storage channel, where N is a memory access address bit width.
Optionally, the bitwise accumulator array includes N accumulators, each one-to-one corresponding to a memory channel, the accumulators only need to support an add-1 operation, cancel subsequent accumulations when the accumulation value reaches a maximum value, and hold the maximum value until the accumulators are reset.
In addition, the invention also provides a memory controller which comprises a memory body, wherein the memory body is integrated with or hung with the memory access address bit overturning statistical device.
In addition, the invention also provides a memory, which comprises a memory body with a memory controller, wherein the memory controller is the memory controller.
In addition, the invention also provides a microprocessor, which comprises a processor body with a memory, wherein the memory is the memory.
In addition, the invention also provides a computer device, which comprises a computer device body with a microprocessor, wherein the microprocessor is the microprocessor.
Compared with the prior art, the invention has the following advantages:
1. the invention is independent of the operating system actually operated by the processor, and the statistical precision is not influenced by the address mapping of the operating system and the task scheduling.
2. The invention does not depend on the realization precision and the simulation speed of a simulator, and can accurately and completely count the address turnover information of the target application.
3. The device has simple structure and high operation efficiency.
4. The invention directly counts the actual memory access address bit turnover rate, avoids the problem of inaccuracy and incompleteness of the traditional method, has the advantages of simple realization, convenient operation and capability of accurately and comprehensively counting the address bit turnover information when the application accesses the memory, and thus can effectively guide the optimization of the memory address mapping.
Drawings
FIG. 1 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
FIG. 2 is a schematic diagram of a bit flipping monitor array structure of an apparatus according to an embodiment of the present invention.
FIG. 3 is a block diagram of a bit-wise accumulator array according to an embodiment of the present invention.
FIG. 4 is a schematic structural diagram of a control component of the apparatus according to the embodiment of the present invention.
Detailed Description
As shown in fig. 1, the memory access address bit flipping statistic apparatus of this embodiment includes:
the bit flipping monitoring array is mounted on a storage bus of the high-bandwidth memory and used for triggering the access quantity counting of the corresponding storage channel according to each effective access of the storage channel;
the bitwise accumulator array is used for recording the access quantity count of each storage channel;
and the control component is used for enabling and resetting the memory channel access counting module and providing an external access counting reading operation.
As can be seen from fig. 1, the memory access address bit flipping statistical apparatus of this embodiment is composed of a bitwise accumulator array, a bit flipping monitoring array, and a control unit. The bit overturning monitoring array is directly connected with the access address bus and used for monitoring whether each bit address is overturned or not, and the monitoring result is used for controlling the accumulation operation of the bitwise accumulator array. The control unit is used for enabling and resetting the access address bit flip statistic device and providing read operation for the bitwise accumulator array. During the design process of the processor, the memory access address bit flipping statistic device of the embodiment can be integrated in the memory controller or hung on an address bus of the memory controller as a separate component. As a general matter, each register in the bitwise accumulator array may be treated as a read-only configuration register.
As shown in fig. 2, the bit flipping monitoring array includes N monitoring units, the monitoring units are in one-to-one correspondence with the accumulator and the memory channel, each monitoring unit is configured to trigger a counting operation of the memory channel according to each valid access of the corresponding memory channel, where N is a memory access address bit width. As a general embodiment, the monitoring unit comprises an exclusive-OR circuit and a register for storing the last address bit; the two inputs to the exclusive or circuit are the register and the current address bit, respectively.
As shown in fig. 3, the bitwise accumulator array includes N accumulators, each one-to-one corresponding to a memory channel, the accumulators only need to support an add-1 operation, cancel subsequent accumulations when the accumulation value reaches a maximum value, and hold the maximum value until the accumulators are reset. As a general embodiment, the bit width of the accumulator is 40 bits, and the bit width of the accumulator can be expanded or reduced according to an actual system. As a particular illustration, when the accumulation value reaches a maximum value, subsequent accumulations are cancelled, and the maximum value is maintained until the accumulator is reset. Referring to fig. 2, each monitoring unit is in one-to-one correspondence with an accumulator. The monitoring unit is used for judging whether the current effective address bit is overturned compared with the last effective address bit, and if the current effective address bit is overturned, the corresponding accumulator is added with 1.
As shown in fig. 4, the control unit is mainly used for enabling, resetting and reading control operations of the access address bit flipping statistic device. Where the enable operation is used to turn on the statistics of address bit flips. After the application is executed, the value of the bitwise accumulator array is read through a read operation, and as a general embodiment, the read function is divided into two read modes: 1) batch reading, namely sequentially reading accumulated values of all accumulators; 2) a specific read, i.e. a specific accumulator value specified by the accumulator sequence number is read out independently. After the reading of the accumulated information is completed, the reset operation clears the accumulated value of the accumulator and sets the last address bit value in the bit flipping monitoring unit to be invalid.
In addition, the embodiment further provides a memory controller, which includes a memory body, and the memory body is integrated with or mounted with the above memory access address bit flipping statistical device.
In addition, the embodiment further provides a memory, which includes a memory body with a memory controller, where the memory controller is the aforementioned memory controller.
In addition, the present embodiment further provides a microprocessor, which includes a processor body with a memory, where the memory is the aforementioned memory.
In addition, the embodiment further provides a computer device, which includes a computer device body with a microprocessor, where the microprocessor is the aforementioned microprocessor.
The foregoing is considered as illustrative of the preferred embodiments of the invention and is not to be construed as limiting the invention in any way. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Those skilled in the art can make numerous possible variations and modifications to the present invention, or modify equivalent embodiments to equivalent variations, without departing from the scope of the invention, using the teachings disclosed above. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical spirit of the present invention should fall within the protection scope of the technical scheme of the present invention, unless the technical spirit of the present invention departs from the content of the technical scheme of the present invention.

Claims (7)

1. A memory access address bit flipping statistical device is characterized by comprising:
the bit flipping monitoring array is mounted on a storage bus of the high-bandwidth memory and used for triggering the access quantity counting of the corresponding storage channel according to each effective access of the storage channel;
the bitwise accumulator array is used for recording the access quantity count of each storage channel;
and the control component is used for enabling and resetting the memory channel access counting module and providing an external access counting reading operation.
2. The memory access address bit flipping statistic device according to claim 1, wherein the bit flipping monitoring array comprises N monitoring units, the monitoring units are in one-to-one correspondence with the accumulator and the memory channel, each monitoring unit is configured to trigger a counting operation of the memory channel according to each valid access of the corresponding memory channel, where N is a memory access address bit width.
3. The memory access address bit flipping statistic device of claim 1, wherein said bit-wise accumulator array comprises N accumulators, each accumulator is in one-to-one correspondence with a memory channel, the accumulator only needs to support an add-1 operation, when the accumulated value reaches a maximum value, the subsequent accumulation is cancelled, and the maximum value is maintained until the accumulator is reset.
4. A memory controller comprises a memory body, and is characterized in that the memory body is integrated with or hung with the memory access address bit reversal statistical device as claimed in any one of claims 1-3.
5. A memory comprising a memory body with a memory controller, wherein the memory controller is the memory controller of claim 4.
6. A microprocessor comprising a processor body with a memory, wherein the memory is the memory of claim 5.
7. A computer device comprising a computer device body having a microprocessor, wherein the microprocessor is the microprocessor of claim 6.
CN201911396493.4A 2019-12-30 2019-12-30 Efficient access address bit overturning statistical device Pending CN111078590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911396493.4A CN111078590A (en) 2019-12-30 2019-12-30 Efficient access address bit overturning statistical device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911396493.4A CN111078590A (en) 2019-12-30 2019-12-30 Efficient access address bit overturning statistical device

Publications (1)

Publication Number Publication Date
CN111078590A true CN111078590A (en) 2020-04-28

Family

ID=70319702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911396493.4A Pending CN111078590A (en) 2019-12-30 2019-12-30 Efficient access address bit overturning statistical device

Country Status (1)

Country Link
CN (1) CN111078590A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076219A (en) * 2021-04-27 2021-07-06 中国人民解放军国防科技大学 High-energy-efficiency on-chip memory error detection and correction circuit and implementation method
CN113539159A (en) * 2021-06-15 2021-10-22 北京欧铼德微电子技术有限公司 Display control method, display device, display driver chip, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0167241B1 (en) * 1984-05-08 1993-12-15 Advanced Micro Devices, Inc. Microprogramme sequence controller
CN101005413A (en) * 2007-01-30 2007-07-25 华为技术有限公司 Method and device for realizing multiple logic path counting
CN101141296A (en) * 2007-08-16 2008-03-12 华为技术有限公司 Channelizing logic single channel statistic method and apparatus
CN107886990A (en) * 2017-11-06 2018-04-06 北京时代民芯科技有限公司 The method of testing and system of the incorgruous single-particle inversion of microprocessor embedded SRAM multidigit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0167241B1 (en) * 1984-05-08 1993-12-15 Advanced Micro Devices, Inc. Microprogramme sequence controller
CN101005413A (en) * 2007-01-30 2007-07-25 华为技术有限公司 Method and device for realizing multiple logic path counting
CN101141296A (en) * 2007-08-16 2008-03-12 华为技术有限公司 Channelizing logic single channel statistic method and apparatus
CN107886990A (en) * 2017-11-06 2018-04-06 北京时代民芯科技有限公司 The method of testing and system of the incorgruous single-particle inversion of microprocessor embedded SRAM multidigit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076219A (en) * 2021-04-27 2021-07-06 中国人民解放军国防科技大学 High-energy-efficiency on-chip memory error detection and correction circuit and implementation method
CN113076219B (en) * 2021-04-27 2022-07-12 中国人民解放军国防科技大学 High-energy-efficiency on-chip memory error detection and correction circuit and implementation method
CN113539159A (en) * 2021-06-15 2021-10-22 北京欧铼德微电子技术有限公司 Display control method, display device, display driver chip, and storage medium
CN113539159B (en) * 2021-06-15 2024-01-16 北京欧铼德微电子技术有限公司 Display control method, display device, display driving chip and storage medium

Similar Documents

Publication Publication Date Title
US10782915B2 (en) Device controller that schedules memory access to a host memory, and storage device including the same
US7934025B2 (en) Content terminated DMA
WO2014107148A1 (en) Adaptive data prefetching
TW201706842A (en) Memory module error tracking
CN111078590A (en) Efficient access address bit overturning statistical device
US9727502B2 (en) System and method for direct memory access transfers
TWI612473B (en) Methods for garbage collection and apparatuses using the same
WO2020248798A1 (en) Method and device for intelligently identifying unreliable block in non-volatile storage medium
US6499028B1 (en) Efficient identification of candidate pages and dynamic response in a NUMA computer
CN106489132A (en) The method of read-write data, device, storage device and computer system
US8892968B2 (en) Bit-level memory controller and a method thereof
CN110727543A (en) Commercial asymmetric cryptographic algorithm hardware module
CN105095104A (en) Method and device for data caching processing
JP2018536230A (en) Cache access
CN100470524C (en) Small-capacity FIFO storage device data-moving trigger and method
CN118092807A (en) Cache space allocation method and memory storage device
US10452574B2 (en) Read performance on a SATA storage device behind a host bus adapter
CN116166186A (en) Cache controller based on dual-port Sram and working method
CN111858256B (en) Command queue monitoring circuit, data exchange method and equipment thereof
US20070143534A1 (en) Nonvolatile-memory-access control apparatus and nonvolatile-memory control system
TWI725925B (en) Method and flash memory controller capable of avoiding inefficient memory block swap or inefficient garbage collection
US9117520B2 (en) Data encoding for non-volatile memory
US9117514B2 (en) Data encoding for non-volatile memory
US10175913B2 (en) Link management method and physical device
CN109388593B (en) Method for dynamic resource management, memory device and controller of memory device

Legal Events

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

Application publication date: 20200428

RJ01 Rejection of invention patent application after publication