CN114461477B - Method and device for realizing chip detection, computer storage medium and terminal - Google Patents

Method and device for realizing chip detection, computer storage medium and terminal Download PDF

Info

Publication number
CN114461477B
CN114461477B CN202210371014.9A CN202210371014A CN114461477B CN 114461477 B CN114461477 B CN 114461477B CN 202210371014 A CN202210371014 A CN 202210371014A CN 114461477 B CN114461477 B CN 114461477B
Authority
CN
China
Prior art keywords
alu
determining
data
chip
workload
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.)
Active
Application number
CN202210371014.9A
Other languages
Chinese (zh)
Other versions
CN114461477A (en
Inventor
易峰
张雨生
刘明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sunlune Technology Beijing Co Ltd
Original Assignee
Sunlune Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sunlune Technology Beijing Co Ltd filed Critical Sunlune Technology Beijing Co Ltd
Priority to CN202210371014.9A priority Critical patent/CN114461477B/en
Publication of CN114461477A publication Critical patent/CN114461477A/en
Application granted granted Critical
Publication of CN114461477B publication Critical patent/CN114461477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2226Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test ALU
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Disclosed herein are a method, an apparatus, a computer storage medium and a terminal for implementing chip detection, including: for a proof of work (PoW) chip under static test, for each first logic calculation unit (ALU), obtaining first data read by the first ALU, the first data being read from a first memory block according to a preset memory address; determining a first ALU for the workload proving operation according to the determined correctness of the data reading of the first ALU; the first ALU is any ALU in the PoW chip to be detected; the memory address includes: a preset number of addresses determined by the distribution of address lines and/or data lines over which data is transmitted. According to the embodiment of the invention, whether the first ALU is used for the workload proving operation or not is judged through the data reading of the preset memory address, so that the detection time of the PoW chip is reduced; furthermore, other components are prevented from influencing the current functional unit of the chip by gradually detecting other parts of the chip.

Description

Method and device for realizing chip detection, computer storage medium and terminal
Technical Field
The present disclosure relates to, but not limited to, chip detection technologies, and in particular, to a method, an apparatus, a computer storage medium, and a terminal for implementing chip detection.
Background
The proof of workload (PoW) algorithm generally requires a large memory and a large number of channels, so PoW chips often have the following characteristics: 1) integrating more compute units (ALUs); 2) integrating more storage control units; 3) and integrating a full connection control unit. The larger the number of integrated functional units of the PoW chip is, the more the functional units may cause problems, i.e., chip differences, in the chip production process.
The detection methods of the general workload proving chip are as follows: 1) design for testability (DFT), which can quickly detect whether the internal connection of the chip is correctly connected, but does not detect whether the chip functions are normal; 2) testing each functional unit by designing a functional test script program, and marking the failed functional unit if the functional unit is determined to be failed through detection; because functional units in a chip are mutually influenced, when one functional unit fails, a single test cannot judge whether the functional unit fails or is caused by the failure of other functional units, and therefore each functional unit needs to be detected as much as possible, and the problem of long test time exists; in addition, the above method cannot detect the chip in use in real time, and when a new failed functional unit occurs in the use process of the chip, the failed functional unit cannot be determined.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a method and a device for realizing chip detection, a computer storage medium and a terminal, which can reduce the detection time of a PoW chip.
The embodiment of the invention provides a method for realizing chip detection, which comprises the following steps:
for a workload certification PoW chip in a static test, aiming at each first logic calculation unit ALU, obtaining first data read by the first ALU, wherein the first data are read from a first storage block according to a preset memory address;
determining the correct rate of the first ALU data reading according to the acquired first data read by the first ALU;
determining a first ALU for the workload proving operation according to the determined correct rate of the data reading of the first ALU;
after determining the first ALU for the workload proof operation, progressively determining a first memory block, a first lower terminal, and a first upper terminal available for the workload proof operation;
the first ALU is any ALU in the PoW chip to be detected; the memory address includes: the address of the preset number is determined according to the distribution of the address lines and/or the data lines for transmitting data; the first lower terminal is a lower terminal connected with the first storage block in the full-connection control module of the PoW chip; the first upper terminal is an upper terminal connected with the first ALU in a full-connection control module of the PoW chip.
In one illustrative example, the determining a first ALU for a workload attestation operation includes:
and when the accuracy of the data reading of the first ALU is greater than a preset accuracy threshold value, determining that the first ALU is used for the workload proving operation.
In one illustrative example, the progressively determining the first memory block, the first lower terminal, and the first upper terminal available for the workload proving operation includes, for each first ALU other than the first ALU determined to be used for the workload proving operation, determining the first memory block and the first lower terminal available for the workload proving operation by:
acquiring second data read by each second ALU, wherein the second data are read from the first storage block according to the corresponding memory address of each second ALU;
according to the second data read by each second ALU, respectively determining the correct rate of the data read corresponding to each second ALU;
determining a first memory block and a first lower terminal for a workload proving operation according to the determined correct rate of data reading corresponding to each of the second ALUs;
wherein the second ALU comprises: and other ALUs except the first ALU in the PoW chip.
In one illustrative example, the determining a first memory block and a first lower terminal for a workload attestation operation includes:
Determining that the first memory block and a first lower terminal are used for a workload attestation operation when a correctness rate of one or more of the second ALU data reads is greater than a correctness rate threshold.
In an exemplary example, the step-by-step determining the first memory block, the first lower terminal, and the first upper terminal available for the workload proof operation includes determining the first upper terminal available for the workload proof operation by detecting that, after determining the first memory block and the first lower terminal for the workload proof operation, for each of the first ALUs, all of the second ALUs read data have a correct rate less than or equal to a correct rate threshold:
acquiring third data read by the first ALU, wherein the third data are read from all second storage blocks according to a preset memory address;
according to the obtained third data read by the first ALU, respectively determining the correct rate of data reading of the first ALU from each second storage block;
determining a first upper terminal for workload proving operation according to the determined correctness of the first ALU for data reading from each second storage block;
wherein the second memory block includes: and other memory blocks in the PoW chip except the first memory block.
In one illustrative example, the determining a first upper terminal for the workload proof operation comprises:
when the correctness rate of the first ALU for data reading from more than one second storage block is greater than the correctness rate threshold value, determining that a first upper terminal is used for workload proving operation.
In one illustrative example, when a correct rate of data reads by the first ALU from all of the second memory blocks after the determining the first upper terminal for the workload manifest operation is less than or equal to the correct rate threshold, the method further comprises:
determining that the connection between the first upper terminal and the first lower terminal is invalid.
In one illustrative example, the method further comprises:
respectively counting the operation success rate of the ALU to be executed by each ALU of the PoW chip in the working state;
and when the operation success rate of the ALU is less than a preset success rate threshold value, determining that the ALU is not used for the workload proving operation.
On the other hand, an embodiment of the present invention further provides a computer storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for implementing chip detection is implemented.
In another aspect, an embodiment of the present invention further provides a terminal, including: a memory and a processor, the memory having a computer program stored therein; wherein,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by the processor, implements a method of implementing chip detection as described above.
In another aspect, an embodiment of the present invention further provides an apparatus for implementing chip detection, including: the device comprises an acquisition unit, a correct rate determining unit and a result determining unit; wherein,
the acquisition unit is configured to: for a workload certification PoW chip in a static test, aiming at each first logic calculation unit ALU, obtaining first data read by the first ALU, wherein the first data are read from a first storage block according to a preset memory address;
the unit for determining the correct rate is set as: determining the correct rate of the first ALU data reading according to the acquired first data read by the first ALU;
the determination result unit is set to: determining a first ALU for the workload proving operation according to the determined correct rate of the data reading of the first ALU; after determining the first ALU for the workload proof operation, progressively determining a first memory block, a first lower terminal, and a first upper terminal available for the workload proof operation;
The first ALU is any ALU in the PoW chip to be detected; the memory address includes: the address of the preset quantity is determined according to the distribution of the address lines and/or the data lines for transmitting data; the first lower terminal is a lower terminal connected with the first storage block in a full-connection control module of the PoW chip; the first upper terminal is an upper terminal connected with the first ALU in a full-connection control module of the PoW chip.
The technical scheme of the application includes: for a proof of work (PoW) chip under static test, for each first logic calculation unit (ALU), obtaining first data read by the first ALU, the first data being read from a first memory block according to a preset memory address; determining the correct rate of the data reading of the first ALU according to the acquired first data read by the first ALU; determining a first ALU for the workload proving operation according to the determined correct rate of the data reading of the first ALU; the first ALU is any ALU in the PoW chip to be detected; the memory address includes: a preset number of addresses determined according to the distribution of address lines and/or data lines for transmitting data. According to the embodiment of the invention, whether the first ALU is used for the workload proving operation or not is judged by acquiring the correct rate of the data read by the first ALU through the preset number of memory addresses, so that the detection time length of the functional unit in the PoW chip is reduced; furthermore, in the embodiment of the present invention, when the accuracy of the first ALU data reading is less than or equal to the accuracy threshold, the first ALU, the first memory block, and the upper terminal and the lower terminal therebetween are detected step by step, so that the current functional unit is prevented from being affected by other functional units included in the chip.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flowchart of a method for implementing chip detection according to an embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus for implementing chip detection according to an embodiment of the present invention;
fig. 3 is a block diagram of a PoW chip according to an exemplary application of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method for implementing chip detection according to an embodiment of the present invention, as shown in fig. 1, including:
step 101, for a workload certification (PoW) chip in a static test, for each first logic calculation unit (ALU), obtaining first data read by the first ALU, wherein the first data is read from a first storage block according to a preset memory address;
step 102, determining the correct rate of the first ALU data reading according to the acquired first data read by the first ALU;
in an illustrative example, embodiments of the invention may determine the correct rate of data reads by the first ALU based on the arithmetic logic of the first ALU.
103, determining a first ALU for workload proving operation according to the determined correct rate of the data reading of the first ALU;
the first ALU is any ALU in the PoW chip to be detected; the memory address includes: a preset number of addresses determined according to the distribution of address lines and/or data lines for transmitting data.
In an exemplary embodiment, the above processing of the embodiment of the present invention may be implemented by using a preset upper computer, a preset processor, or a preset single chip microcomputer as an execution subject.
The technical scheme of the application includes: for a proof of work (PoW) chip in a static test, acquiring first data read by a first logic calculation unit (ALU) for each ALU, the first data being read from a first memory block according to a preset memory address; determining the correct rate of the first ALU data reading according to the acquired first data read by the first ALU; determining a first ALU for the workload proving operation according to the determined correct rate of the data reading of the first ALU; the first ALU is any ALU in the PoW chip to be detected; the memory address includes: a preset number of addresses determined according to the distribution of address lines and/or data lines for transmitting data. According to the embodiment of the invention, whether the first ALU is used for the workload proving operation or not is judged by acquiring the correct rate of the data read by the first ALU through the preset number of memory addresses, so that the detection time length of the functional unit in the PoW chip is reduced; furthermore, in the embodiment of the present invention, when the accuracy of the first ALU data reading is less than or equal to the accuracy threshold, the first ALU, the first memory block, and the upper terminal and the lower terminal therebetween are detected step by step, so that the current functional unit is prevented from being affected by other functional units included in the chip.
In one illustrative example, an embodiment of the present invention determines a first ALU for a workload attestation operation, comprising:
and when the correctness of the data reading of the first ALU is greater than a preset correctness threshold, determining that the first ALU is used for the workload proving operation.
In an exemplary embodiment, the accuracy threshold in the embodiment of the present invention may be set by a person skilled in the art according to the testing time detected by the PoW chip and/or the occupation of the computational power resource by the ALU, and theoretically, the longer the testing time is, the smaller the accuracy threshold is, the shorter the testing time is, and the larger the accuracy threshold is; in an exemplary embodiment, the embodiment of the invention sets the threshold of the accuracy according to the occupation of the ALU on the computing power resource, and when the threshold of the accuracy is reasonable, the first ALU is determined to be used for the workload to prove that the operation is reasonable; when the accuracy threshold is too high, ALU which occupies reasonable calculation resources can not be applied; when the accuracy threshold is too low, the ALU occupying too much computational resources can be continuously applied; the embodiment of the invention adjusts the accuracy threshold value, and when the accuracy threshold value is higher, the value of the accuracy threshold value can be reduced; when the accuracy threshold is low, the value of the accuracy threshold can be improved.
In an exemplary embodiment, after determining the first ALU used for the workload proving operation, for each first ALU other than the first ALU determined for the workload proving operation, the method further comprises:
acquiring second data read by each second ALU, wherein the second data are read from the first storage block according to the corresponding memory address of each second ALU;
according to the second data read by each second ALU, respectively determining the correct rate of the data read corresponding to each second ALU;
determining a first storage block and a first lower terminal for workload proving operation according to the determined correct rate of data reading corresponding to each second ALU; wherein the second ALU comprises: ALUs except the first ALU in the PoW chip; the first lower terminal is a lower terminal connected with the first storage block in the full-connection control module of the PoW chip.
In the embodiment of the invention, for the logic calculation unit ALU in the PoW chip, the first ALU which can be used for the workload proving operation is determined, after the first ALU which can be used for the workload proving operation is determined, the first storage block and the first lower terminal which can be used for the workload proving operation are further determined through the second data read by the second ALU, and mutual influence among functional units contained in the PoW chip is avoided through gradual detection, so that whether the first storage block and the first lower terminal can be used for the workload proving operation is determined, and the application efficiency of operation resources of the PoW chip is improved.
In one illustrative example, an embodiment of the present invention determines a first memory block and a first lower terminal for a workload proof operation, comprising:
when the correctness rate of more than one second ALU data read is greater than the correctness rate threshold, the first memory block and the first lower terminal are determined to be used for the workload proving operation.
According to the embodiment of the invention, the second data reading is carried out by setting the second ALU according to the set memory address, and whether the first storage block and the first lower terminal are used for the workload proving operation or not is determined according to the accuracy of the second data, so that the application efficiency of the operation resources of the PoW chip is improved.
In an illustrative example, after determining the first memory block and the first lower terminal for the workload proving operation, when the correct rate of all the second ALU read data for each first ALU is less than or equal to the correct rate threshold, the method of the embodiment of the present invention further comprises:
acquiring third data read by the first ALU, wherein the third data are read from all second storage blocks according to a preset memory address;
according to the acquired third data read by the first ALU, the correct rate of data reading of the first ALU from each second storage block is determined respectively;
determining a first upper terminal for workload proving operation according to the determined correct rate of data reading of the first ALU from each second storage block; wherein the second memory block includes: other memory blocks except the first memory block in the PoW chip; the first upper terminal is an upper terminal connected with the first ALU in the fully-connected control module of the PoW chip.
In one illustrative example, an embodiment of the present invention determines a first upper terminal for a workload proof operation, comprising:
when the correctness rate of the first ALU for data reading from more than one second memory block is more than a correctness threshold value, the first upper terminal is determined to be used for the workload proving operation.
In the embodiment of the invention, after the first storage block and the first lower terminal which can be used for the workload proving operation are determined for the logic calculation unit ALU in the PoW chip, the first upper terminal is further processed, so that the mutual influence among the functional units contained in the PoW chip is avoided, and the application efficiency of the operation resources of the PoW chip is improved by further determining whether the first upper terminal can be used for the workload proving operation.
In an exemplary embodiment, when the correctness rates of the first ALU reading data from all the second memory blocks are less than or equal to the correctness threshold, the method of the embodiment of the present invention further comprises:
it is determined that the connection between the first upper terminal and the first lower terminal is invalid.
In an illustrative example, a method in an embodiment of the present invention further includes:
respectively counting the operation success rate of the ALU to be executed by each ALU of the PoW chip in the working state;
And when the operation success rate of the ALU is less than a preset success rate threshold value, determining that the ALU is not used for the workload proving operation.
In an illustrative example, embodiments of the present invention may determine whether a PoW chip is in operation based on data that an ALU performs an operation.
In an exemplary embodiment, the embodiment of the present invention may perform the statistics of the success rate of the operation from the time when the PoW chip enters the working state; in an exemplary embodiment, the embodiment of the present invention may take a preset duration as a statistical period, and count the operation success rate of the PoW chip entering the working state;
in an exemplary embodiment, the success rate threshold of the embodiment of the present invention may be set by a person skilled in the art according to the occupation situation of the functional unit on the computing power resource, in combination with experience; when the calculation power resource occupation is not in direct proportion to the success rate or is similar to the direct proportion relation, determining that the ALU is not used for the workload proving operation; thereby avoiding the loss of computing power; for example 30%; when determining whether to use a functional unit for workload proving operation according to the computing power loss (computing power loss) caused by the functional unit, the embodiment of the present invention should theoretically reserve the functional unit for workload proving operation if the computing power loss is greater than the computing power loss caused by reserving the functional unit. If the computation power loss is less than the computation power loss caused by retaining this functional unit, the functional unit should theoretically be determined not to be used for the workload proving operation.
According to the embodiment of the invention, through static and dynamic testing methods, in static testing, the detection standard can be reduced, only the definite functional units which are not suitable for workload proving operation are detected, and the detection time of the PoW chip is reduced; the real-time detection of the PoW chip in a working state is realized in a dynamic detection mode, and the detection of a new functional unit which is not suitable for workload proving operation appears in the use process of the chip under the condition that the detection time is not increased.
The embodiment of the invention also provides a computer storage medium, wherein a computer program is stored in the computer storage medium, and when being executed by a processor, the computer program realizes the method for realizing the chip detection.
An embodiment of the present invention further provides a terminal, including: a memory and a processor, the memory having stored therein a computer program; wherein,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by a processor, implements a method of implementing chip detection as described above.
Fig. 2 is a block diagram of a device for implementing chip detection according to an embodiment of the present invention, as shown in fig. 2, including: the device comprises an acquisition unit, a correct rate determining unit and a result determining unit; wherein,
The acquisition unit is configured to: for a workload certification PoW chip in a static test, aiming at each first logic calculation unit ALU, first data read by the first ALU are obtained, and the first data are read from a first storage block according to a preset memory address;
the determine-correct-rate unit is set to: determining the correct rate of the first ALU data reading according to the acquired first data read by the first ALU;
the determination result unit is set to: determining a first ALU for the workload proving operation according to the determined correct rate of the data reading of the first ALU;
the first ALU is any ALU in the PoW chip to be detected; the memory address includes: a preset number of addresses determined according to the distribution of address lines and/or data lines for transmitting data.
The technical scheme of the application includes: for a proof of work (PoW) chip in a static test, acquiring first data read by a first logic calculation unit (ALU) for each ALU, the first data being read from a first memory block according to a preset memory address; determining the correct rate of the first ALU data reading according to the acquired first data read by the first ALU; determining a first ALU for the workload proving operation according to the determined correct rate of the data reading of the first ALU; the first ALU is any ALU in the PoW chip to be detected; the memory address includes: a preset number of addresses determined according to the distribution of address lines and/or data lines for transmitting data. According to the embodiment of the invention, whether the first ALU is used for the workload proving operation or not is judged by acquiring the correct rate of the data read by the first ALU through the preset number of memory addresses, so that the detection time length of the functional unit in the PoW chip is reduced; furthermore, in the embodiment of the present invention, when the accuracy of the first ALU data reading is less than or equal to the accuracy threshold, the first ALU, the first memory block, and the upper terminal and the lower terminal therebetween are detected step by step, so that the current functional unit is prevented from being affected by other functional units included in the chip.
In an illustrative example, an embodiment of the present invention determines that the result unit is set to:
and when the correctness of the data reading of the first ALU is greater than a preset correctness threshold, determining that the first ALU is used for the workload proving operation.
In an exemplary embodiment, the obtaining unit of the embodiment of the present invention is further configured to: after the first ALU used for the workload proving operation is determined by the correct rate determining unit, for each first ALU except the first ALU determined for the workload proving operation, second data read by each second ALU is obtained, and the second data are read from the first storage block according to the corresponding memory address of each second ALU;
the determine-correct-rate unit is further arranged to: according to the second data read by each second ALU, respectively determining the correct rate of the data read corresponding to each second ALU;
the determination result unit is further configured to: determining a first storage block and a first lower terminal for workload proving operation according to the determined correct rate of data reading corresponding to each second ALU;
wherein the second ALU comprises: ALUs except the first ALU in the PoW chip; the first lower terminal is a lower terminal connected with the first storage block in the full-connection control module of the PoW chip.
In an illustrative example, the determination result unit is arranged to determine a first memory block and a first lower terminal for the workload proving operation, and includes:
when the correctness rate of more than one second ALU data read is greater than the correctness rate threshold, the first memory block and the first lower terminal are determined to be used for the workload proving operation.
In an exemplary embodiment, the obtaining unit of the embodiment of the present invention is further configured to: after the first storage block and the first lower terminal used for the workload proving operation are determined, third data read by the first ALU are obtained, and the third data are read from all the second storage blocks according to a preset memory address;
the determine-correct-rate unit is further arranged to: according to the obtained third data read by the first ALU, the accuracy of data reading of the first ALU from each second storage block is respectively determined;
the determination result unit is further configured to: determining a first upper terminal for workload proving operation according to the determined correct rate of data reading of the first ALU from each second storage block;
wherein the second storage block includes: storing other storage blocks except the first storage block in the PoW chip; the first upper terminal is an upper terminal connected with the first ALU in the full-connection control module of the PoW chip.
In an illustrative example, the determination result unit of an embodiment of the present invention is configured to determine a first upper terminal for a workload proving operation, including:
when the correctness rate of the first ALU for data reading from more than one second memory block is more than a correctness threshold value, the first upper terminal is determined to be used for the workload proving operation.
In an exemplary embodiment, the determination result unit of the embodiment of the present invention is further configured to: the determination of the correct rate unit determines that the connection between the first upper terminal and the first lower terminal is invalid when the determination of the correct rate by the first ALU for data reading from all the second memory blocks is less than or equal to the correct rate threshold.
In an exemplary embodiment, the unit for determining the correct rate according to the embodiment of the present invention is further configured to: respectively counting the operation success rate of the ALU to be executed by each ALU of the PoW chip in the working state;
the determination result unit is further configured to: and when the operation success rate of the ALU is less than a preset success rate threshold value, determining that the ALU is not used for the workload proving operation.
The following briefly describes embodiments of the present invention through application examples, which are only used to set forth the embodiments of the present invention and are not used to limit the scope of the embodiments of the present invention.
Application examples
The present application example defines the detection that the ALU does not execute the operation task as static detection, and defines the detection that the ALU executes the operation task as dynamic detection. The application example detects the workload proving chip based on a static and dynamic combination mode, after the chip is started, firstly, the functional units which are not used for workload proving operation are quickly found out through a static detection method, in the process of using the PoW chip, the service conditions of the functional units are dynamically counted, and the functional units which are not used for workload proving operation and are missed to be detected due to incomplete testing are found out. Fig. 3 is a block diagram of a PoW chip according to an exemplary application of the present invention, and as shown in fig. 3, the PoW chip includes: the full-connection control unit is provided with an upper terminal and a lower terminal; after the ALU is connected with the upper terminal, the lower terminal of the full-connection control unit is connected with the storage block; it should be noted that, in the embodiment of the present invention, a storage control module is further included between the terminal and the storage block; an address line and a data line for transmitting data are included between the ALU and the memory block; the ALU is used as a calculation unit, reads data from the storage block, and obtains a corresponding operation result according to the calculation of a preset operation logic; the memory control module is used for reading data of a specified memory address from the memory block according to the execution of the ALU read data.
The application example assumes that a PoW chip comprises N ALUs, x represents the sequencing number of the ALUs, the x-th ALU is taken as ALU-x, and the value of x is 1-N; the application example assumes that a PoW chip comprises M storage blocks, y represents the sequence number of the storage blocks, the y-th storage block is recorded as a storage block y, and the value of y is 1-M; an ALU-x reads data from a predetermined memory address of a memory block y to calculate, the ALU-x inputs the memory address to an upper terminal x (the number of the upper terminal is the same as that of the ALU connected with the upper terminal), a full connection control unit judges that the address belongs to the memory block according to the memory address, for example, the memory block y belongs to, the upper terminal x and the lower terminal y are connected, and the memory address data of the memory block y is read through a memory control module y (the number of the memory block connected with the memory control module y is the same); finally, ALU-x obtains a calculation result according to the read data; the upper computer is used as an execution main body of chip detection of the application example, and can determine the accuracy of ALU-x data reading according to the arithmetic logic of the ALU;
when the accuracy of ALU-x data reading is larger than a preset accuracy threshold value, determining that ALU-x can be used for workload proving operation;
when the correctness of the ALU-x data reading is smaller than or equal to the correctness threshold, acquiring data read by the second ALU from the storage block y according to the corresponding memory address of each second ALU;
Respectively determining the correct rate of data reading corresponding to each second ALU according to the acquired data read from the memory block y by each second ALU;
when the correctness rate of more than one second ALU data reading is greater than the correctness rate threshold value, determining that the memory block y and the first lower terminal can be used for the workload proving operation;
wherein the second ALU comprises: ALUs other than ALU-x; the first lower terminal is a lower terminal connected with the storage block y in the fully-connected control module of the PoW chip.
When the correctness of the second ALU read data is smaller than the correctness threshold, obtaining the data read by the ALU-x from all the second storage blocks according to the preset memory address;
according to the obtained data read from the second storage blocks by the ALU-x, respectively determining the correct rate of data reading of the ALU-x from each second storage block;
when the correctness rate of the data reading of the ALU-x from the more than one second storage block is greater than the correctness rate threshold value, determining that the first upper terminal can be used for workload proving operation;
wherein the second memory block includes: other memory blocks than memory block y; the first upper terminal includes: and the upper terminal of the full connection control module is connected with the ALU-x.
And when the correct rate of data reading by the ALU-x from all the second memory blocks is less than or equal to the correct rate threshold value, determining that the connection between the first upper terminal and the first lower terminal is invalid.
When the application example is used for testing the storage block, all bytes in the storage block do not need to be tested, a preset number of memory block addresses are selected for data reading and writing according to the distribution of the address lines and the data lines for transmitting data, and the reading result of the whole storage block is represented by sampling data. The test time is reduced, and the influence of the measured bad blocks on the judgment of the test result is avoided; for example, a plurality of memory addresses are selected from the memory block 1, the ALU reads data on the memory addresses, if all the memory addresses are wrong, it is further required to verify whether the memory block is correct, and if part of the memory addresses is successful and part of the memory addresses is failed, it indicates that the ALU function unit can be used for workload proving operation, but it is further required to verify whether the memory block is correct; this application example ALU1-ALUN accesses this memory block in sequence, indicating that the memory block is available for workload proof operations if there is an ALU read that is correct, and that the memory block is problematic or that the fully connected control module is problematic if none or part of the ALU read is correct.
When the memory block can be determined to be correct, the ALU function is normal, if the read data is wrong, the connection of the current upper terminal and the current lower terminal is failed, and if the part which is correct is incorrect, the judgment needs to be carried out through a probability statistical algorithm.
The application example adjusts the accuracy parameter through probability calculation and a large number of actual tests, and balances the test time and the result accuracy. The accuracy threshold is a key parameter, and according to the characteristics of the chip, in the application example, at the accuracy threshold, the loss of computing power caused by closing the functional unit is greater than the loss of computing power caused by keeping the functional unit with the problem.
The static detection in the application example is a rapid detection process, and has the possibility of missing detection, so when the chip works, the application example counts the arithmetic success rate of the ALU, and when the arithmetic success rate of the ALU is lower than a certain success rate threshold value, the ALU is marked as unavailable for workload proving operation.
The application example detects the workload proof chip based on a static and dynamic combined method, can reduce the detection standard in the static test, only detects a clear and unavailable workload proof operation module, and reduces the chip detection time; the long-time running of the chip is utilized during dynamic testing, more accurate detection is indirectly realized, the detection quality of the PoW chip is improved under the condition that the detection time is not increased, the application of the PoW chip to computing power resources is improved, and the occupation of ALU and storage blocks which cannot be used for workload proving operation on the computing power resources is avoided.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (11)

1. A method for realizing chip detection comprises the following steps:
for a workload certification PoW chip in a static test, aiming at each first logic calculation unit ALU, first data read by the first ALU are obtained, and the first data are read from a first storage block according to a preset memory address;
determining the correct rate of the first ALU data reading according to the acquired first data read by the first ALU;
determining a first ALU for the workload proving operation according to the determined correct rate of the data reading of the first ALU;
after determining the first ALU for the workload proof operation, progressively determining a first memory block, a first lower terminal, and a first upper terminal available for the workload proof operation;
the first ALU is any ALU in the PoW chip to be detected; the memory address includes: the address of the preset number is determined according to the distribution of the address lines and/or the data lines for transmitting data; the first lower terminal is a lower terminal connected with the first storage block in the full-connection control module of the PoW chip; the first upper terminal is an upper terminal connected with the first ALU in a full-connection control module of the PoW chip.
2. The method of claim 1, wherein determining the first ALU to use for the workload attestation operation comprises:
And when the correctness of the first ALU data reading is greater than a preset correctness threshold, determining that the first ALU is used for the workload proving operation.
3. The method of claim 1, wherein progressively determining the first memory block, the first lower terminal, and the first upper terminal available for the workload proof operation comprises, for each first ALU other than the first ALU determined for the workload proof operation, determining the first memory block and the first lower terminal available for the workload proof operation by:
acquiring second data read by each second ALU, wherein the second data are read from the first storage block according to the corresponding memory address of each second ALU;
according to the second data read by each second ALU, respectively determining the correct rate of the corresponding data read by each second ALU;
determining a first memory block and a first lower terminal for a workload proving operation in dependence on the determined correctness rate of the respective data read by each of the second ALUs;
wherein the second ALU comprises: and other ALUs except the first ALU in the PoW chip.
4. The method of claim 3, wherein determining the first memory block and the first lower terminal for the workload proof operation comprises:
Determining that the first memory block and a first lower terminal are used for a workload attestation operation when a correctness rate of one or more of the second ALU data reads is greater than a correctness rate threshold.
5. The method of claim 3 wherein progressively determining the first memory block, the first lower terminal, and the first upper terminal available for workload proof operations comprises determining the first upper terminal available for workload proof operations by, after determining the first memory block and the first lower terminal for workload proof operations, for each of the first ALUs when the rate of correctness for all of the second ALUs read data is less than or equal to a threshold rate of correctness:
acquiring third data read by the first ALU, wherein the third data are read from all second storage blocks according to a preset memory address;
according to the obtained third data read by the first ALU, respectively determining the correct rate of data reading of the first ALU from each second storage block;
determining a first upper terminal for workload proving operation according to the determined correctness of the first ALU for data reading from each second storage block;
wherein the second storage block comprises: and other memory blocks in the PoW chip except the first memory block.
6. The method of claim 5, wherein determining the first upper terminal for the workload proof operation comprises:
when the correctness rate of the first ALU for data reading from more than one second storage block is greater than the correctness rate threshold value, determining that a first upper terminal is used for workload proving operation.
7. The method of claim 5 or 6, wherein after determining the first upper terminal for the workload attestation operation, when a correct rate of data reads by the first ALU from all of the second memory blocks is less than or equal to the correct rate threshold, the method further comprises:
determining that the connection between the first upper terminal and the first lower terminal is invalid.
8. The method according to any one of claims 1 to 6, further comprising:
respectively counting the operation success rate of the ALU to be executed by each ALU of the PoW chip in the working state;
and when the operation success rate of the ALU is less than a preset success rate threshold value, determining that the ALU is not used for the workload proving operation.
9. A computer storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing a method of implementing chip detection as claimed in any one of claims 1-8.
10. A terminal, comprising: a memory and a processor, the memory having a computer program stored therein; wherein,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by the processor, implements a method of implementing chip detection as claimed in any one of claims 1-8.
11. An apparatus for implementing chip detection, comprising: the device comprises an acquisition unit, a correct rate determining unit and a result determining unit; wherein,
the acquisition unit is configured to: for a workload certification PoW chip in a static test, aiming at each first logic calculation unit ALU, obtaining first data read by the first ALU, wherein the first data are read from a first storage block according to a preset memory address;
the unit for determining the correct rate is set as: determining the correct rate of the first ALU data reading according to the acquired first data read by the first ALU;
the determination result unit is set to: determining a first ALU for the workload proving operation according to the determined correct rate of the data reading of the first ALU; after determining the first ALU for the workload proof operation, progressively determining a first memory block, a first lower terminal, and a first upper terminal available for the workload proof operation;
The first ALU is any ALU in the PoW chip to be detected; the memory address includes: the address of the preset number is determined according to the distribution of the address lines and/or the data lines for transmitting data; the first lower terminal is a lower terminal connected with the first storage block in a full-connection control module of the PoW chip; the first upper terminal is an upper terminal connected with the first ALU in a full-connection control module of the PoW chip.
CN202210371014.9A 2022-04-11 2022-04-11 Method and device for realizing chip detection, computer storage medium and terminal Active CN114461477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210371014.9A CN114461477B (en) 2022-04-11 2022-04-11 Method and device for realizing chip detection, computer storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210371014.9A CN114461477B (en) 2022-04-11 2022-04-11 Method and device for realizing chip detection, computer storage medium and terminal

Publications (2)

Publication Number Publication Date
CN114461477A CN114461477A (en) 2022-05-10
CN114461477B true CN114461477B (en) 2022-06-28

Family

ID=81418302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210371014.9A Active CN114461477B (en) 2022-04-11 2022-04-11 Method and device for realizing chip detection, computer storage medium and terminal

Country Status (1)

Country Link
CN (1) CN114461477B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816110A (en) * 2019-01-24 2019-05-28 杭州嘉楠耘智信息科技有限公司 Scrypt algorithm workload proving method and device
AU2020100045A4 (en) * 2020-01-10 2020-02-13 Nie, Wenchang Mr A consortium block chain system using proof of work computing ability to realize valuable calculation
CN112331253A (en) * 2020-10-30 2021-02-05 深圳市宏旺微电子有限公司 Chip testing method, terminal and storage medium
CN114003544A (en) * 2021-12-30 2022-02-01 中科声龙科技发展(北京)有限公司 Control chip, workload proving system and transmission method
CN114003552A (en) * 2021-12-30 2022-02-01 中科声龙科技发展(北京)有限公司 Workload proving operation method, workload proving chip and upper computer
CN114002587A (en) * 2021-12-30 2022-02-01 中科声龙科技发展(北京)有限公司 Chip supporting workload proving mechanism and testing method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816110A (en) * 2019-01-24 2019-05-28 杭州嘉楠耘智信息科技有限公司 Scrypt algorithm workload proving method and device
AU2020100045A4 (en) * 2020-01-10 2020-02-13 Nie, Wenchang Mr A consortium block chain system using proof of work computing ability to realize valuable calculation
CN112331253A (en) * 2020-10-30 2021-02-05 深圳市宏旺微电子有限公司 Chip testing method, terminal and storage medium
CN114003544A (en) * 2021-12-30 2022-02-01 中科声龙科技发展(北京)有限公司 Control chip, workload proving system and transmission method
CN114003552A (en) * 2021-12-30 2022-02-01 中科声龙科技发展(北京)有限公司 Workload proving operation method, workload proving chip and upper computer
CN114002587A (en) * 2021-12-30 2022-02-01 中科声龙科技发展(北京)有限公司 Chip supporting workload proving mechanism and testing method thereof

Also Published As

Publication number Publication date
CN114461477A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN112331249A (en) Method and device for predicting service life of storage device, terminal equipment and storage medium
CN110502382B (en) TYPE-C interface testing method and device, storage medium and electronic equipment
CN114461477B (en) Method and device for realizing chip detection, computer storage medium and terminal
CN114153712A (en) Exception handling method, device, equipment and storage medium
CN110765005B (en) Software reliability evaluation method and device
CN116755024A (en) Method and device for testing electric energy meter communication interface and readable storage medium
CN116879769A (en) Self-discharge test method and device, electronic equipment and storage medium
CN116433622A (en) Method, device, equipment and medium for deleting repeated identification of end points of battery cell pole piece
CN116501464A (en) Operating system control method, device and storage medium
CN111596199B (en) Test chip, integrated circuit test method and system and detection equipment
US20210158882A1 (en) Testing memory cells by allocating an access value to a memory access and granting an access credit
CN114741218A (en) Method, device, equipment, system and medium for extracting abnormal index of operating system
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN116991651B (en) Error injection method, system on chip, computer equipment and storage medium
CN117076183B (en) Error reporting method, system on chip, computer equipment and storage medium
CN117076182B (en) Error reporting method, system on chip, computer equipment and storage medium
CN114267402B (en) Bad storage unit testing method, device, equipment and storage medium of flash memory
CN115357458B (en) Method and device for testing TISDM display information
CN114024882B (en) Router performance test method, device, system and storage medium
CN115842709A (en) Fault detection method and device, electronic equipment and storage medium
CN118740980A (en) Call center number self-checking method and device, electronic equipment and medium
CN118277184A (en) Health monitoring method and device for application program
CN115934507A (en) Automatic test method, device and equipment of result checker and storage medium
CN116048976A (en) Interface call information determining method, device, equipment and storage medium
CN115327953A (en) Simulation test method and device for intelligent driving algorithm, electronic equipment and medium

Legal Events

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