A method and system for parallel static learning of digital circuits under memory constraints

By adopting a parallel static learning method in large-scale digital circuits, dividing learning task groups and using multi-thread shared event queues, the problem of slow static learning running speed is solved, and the memory utilization and running speed are significantly improved.

CN113919255BActive Publication Date: 2024-10-29SHANTOU UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111064447.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-10
Publication Date
2024-10-29
Estimated Expiration
2041-09-10

AI Technical Summary

Technical Problem

In the existing technology, static learning runs slowly in large-scale digital circuits, and executing the learning program multiple times during the ATPG process increases the running time, making it impractical in large digital circuits with millions or tens of millions of logic gates.

Method used

The parallel static learning method of digital circuits under limited memory is adopted. By scanning digital circuits, learning task groups are divided and multiple parallel threads are created to share an event queue. The threads process events in the event queue in turn to improve the parallel processing efficiency of static learning.

Benefits of technology

It greatly improves the calculation speed of static learning, reduces the memory occupation and memory space for storing simulation values, improves thread utilization, avoids the problem of low event rate, and significantly speeds up the running speed of static learning when memory is limited.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113919255B_ABST
    Figure CN113919255B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and in particular to a method and system for parallel static learning of digital circuits under memory limitation, the method comprising: scanning a digital circuit, collecting all learning tasks that need to be learned in the digital circuit; storing the learning tasks in an array and dividing them into a plurality of groups; creating a plurality of parallel threads, and allocating a common event queue for all parallel threads; obtaining events stimulated by learning tasks in a learning task group, and putting the events into an event queue; all threads jointly perform parallel static learning on the events in the event queue; after all threads jointly complete a group of learning task groups, determining whether there are unfinished learning task groups, and if so, selecting a group of learning task groups from the unfinished learning task groups for learning; otherwise, all threads stop working; the present invention realizes static learning in a parallel manner under the premise of occupying less memory space, thereby greatly improving the running speed of static learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a parallel static learning method and system for digital circuits under memory constraints. Background Art

[0002] Digital circuit designs must undergo test simulation before tape-out to ensure the correctness and completeness of the digital circuits being fed into the chip. Therefore, test simulation plays a key role in digital circuit design. ATPG (automatic test pattern generation) is a process in which test vectors used in digital circuit testing are automatically generated by a program, playing an important role in digital circuit testing. Static learning is an algorithm used to identify additional implicit inference relationships between logic gates in digital circuits. It is usually performed as a preprocessing step before ATPG begins, and the results obtained will help ATPG complete more quickly.

[0003] Backtracking may be required during ATPG operation when the following two situations occur:

[0004] 1) When a fault cannot propagate its effects to the output nodes of a digital circuit based on the current values ​​assigned to the logic gates;

[0005] 2) In order to meet the test conditions of the test vector, a signal must be set to 0 and 1 at the same time.

[0006] When backtracking, the ATPG algorithm needs to undo the assignment of one or more signals and then reassign the signals that need to be reassigned or other related signals. This operation attempts to eliminate the two situations mentioned above. As can be seen, backtracking is necessary for ATPG, but it is also very time-consuming.

[0007] Static learning is a learning algorithm used to identify additional implicit inference relationships between logic gates in digital circuits. The static learning process assigns a binary value (0 or 1) to each logic gate in the digital circuit and then performs forward or backward inference using this assigned value as a starting point. During the inference process, if implicit inference relationships between logic gates are identified, these relationships are stored and can be utilized in subsequent ATPG runs. Static learning can also identify conflicts and redundancies in digital circuits. Using the implicit inference relationships obtained through static learning during the ATPG process allows for efficient pruning of the search space and reduces the number of backtracking attempts, which in turn reduces ATPG run time.

[0008] Static learning and event-driven logic simulation share similarities in that both utilize event queues for event management. When static learning is implemented using a single thread, the logic gates in the digital circuit are learned one by one. Learning the next gate begins only after the current gate has been learned. Single-threaded static learning requires only a single event queue to complete all event management tasks. However, due to the limitations of single-threaded implementations, the entire static learning process becomes very slow and time-consuming once the digital circuit scales up. Running the learning program dynamically or recursively during the ATPG run requires multiple executions of the learning program, significantly increasing runtime and making its application to large digital circuits with millions or even tens of millions of logic gates impractical.

[0009] Therefore, how to improve the running speed of static learning in the ATPG process in response to the shortcomings of existing technologies has become an urgent problem to be solved. Summary of the Invention

[0010] The purpose of the present invention is to provide a method and system for parallel static learning of digital circuits under memory constraints to solve one or more technical problems existing in the prior art and at least provide a beneficial option or create conditions.

[0011] In order to achieve the above object, the present invention provides the following technical solutions:

[0012] A parallel static learning method for digital circuits under memory constraints, the method comprising the following steps:

[0013] Step S100: Scan the entire digital circuit to collect all learning tasks that need to be learned in the digital circuit;

[0014] Step S200: storing all learning tasks that need to be learned in the digital circuit into an array, and dividing all learning tasks that need to be learned in the array into a plurality of learning task groups;

[0015] Step S300: Create multiple parallel threads and allocate a common event queue to all parallel threads;

[0016] Step S400: sequentially select a set of learning task groups, obtain events triggered by the learning tasks in the learning task groups, and place the events into an event queue;

[0017] Step S500: calling all parallel threads to start working, so that all threads can learn the events in the event queue together;

[0018] Step S600: After all threads have completed a set of learning task groups, determine whether there are any unfinished learning task groups. If so, select a set of learning task groups from the unfinished learning task groups in order to learn; otherwise, all threads stop working.

[0019] Furthermore, the learning task includes the ID of the logic gate and a simulation value of the logic gate; the event queue is a queue for storing and managing events, and the event queue is responsible for collecting events and popping out the collected events in sequence. The event refers to a logic gate in which the value of the fan-in node in the digital circuit changes.

[0020] Furthermore, in step S200, all the learning tasks to be learned in the array are divided into several learning task groups, including:

[0021] Get the learning tasks, and divide all the learning tasks in the array into several learning task groups based on the ID of the logic gate in the learning task.

[0022] Furthermore, step S500 includes:

[0023] Step S510: The thread selects an unprocessed event from the event queue in sequence;

[0024] Step S520: The thread determines the logic gate corresponding to the selected event, scans the logic values ​​of all fan-in nodes of the logic gate, and determines the simulation values ​​existing in the logic values ​​of all fan-in nodes;

[0025] The logic gate stores an original value and at most m simulation values; the original value is the original logic value; the simulation value consists of a simulation logic value and excitation information of the simulation logic value, and the excitation information is used to mark the learning task that excites the value; the combination method of the simulation value is:

[0026] Shift the excitation information one position to the left to obtain the shifted result;

[0027] Perform a bitwise OR operation on the lowest bit of the shifted result and the simulation logic value to obtain the simulation value;

[0028] The method for extracting information of the simulation value is:

[0029] Take the lowest bit of the simulation value as the simulation logic value;

[0030] Shift the simulation value one position to the right to obtain the excitation information of the simulation logic value;

[0031] Step S530: When a simulation value exists in the logic value of the fan-in node, the logic gate is evaluated based on the simulation value to obtain a learning logic value;

[0032] Step S540: If the learned logic value is inconsistent with the original value currently stored in the logic gate, and the simulation value currently stored in the logic gate does not include the learned logic value, the thread stores the learned logic value as the simulation value of the logic gate.

[0033] Step S550: Determine whether the number of simulation values ​​stored in the logic gate exceeds m; if so, execute step S560; if not, execute step S570;

[0034] Step S560: Abandon the learning task that triggers the simulation value, mark the learning task as unfinished, and place it in the next learning task group;

[0035] Step S570: The thread stores all the learned logic values ​​obtained into the simulation values ​​stored in the logic gate, and marks the fan-out node of the logic gate as an event and puts it into the event queue.

[0036] Furthermore, the step S530 includes:

[0037] Scan the logic values ​​stored in each fan-in node in the order of the logic gate's fan-in nodes, and scan whether the stored logic values ​​contain simulation values. If so, evaluate the logic gate for this simulation value; if not, skip this fan-in node and check the next fan-in node until all fan-in nodes have been scanned.

[0038] Further, performing a logic gate evaluation on the simulation value includes:

[0039] When evaluating a logic gate for any simulation value of any fan-in node;

[0040] Determine whether the logic values ​​stored in the remaining fan-in nodes of the logic gate contain a specific simulation value, and the specific simulation value is the same as the excitation information of the simulation value. If so, use the specific simulation value and the simulation value to jointly evaluate the logic gate; if not, use the original value and the simulation value to jointly evaluate the gate.

[0041] A computer-readable storage medium stores a program for parallel static learning of digital circuits under memory constraints. When the program is executed by a processor, the steps of any one of the above-described methods for parallel static learning of digital circuits under memory constraints are implemented.

[0042] A parallel static learning system for digital circuits under memory constraints, the system comprising:

[0043] at least one processor;

[0044] at least one memory for storing at least one program;

[0045] When the at least one program is executed by the at least one processor, the at least one processor implements any one of the above-mentioned parallel static learning methods for digital circuits under memory constraints.

[0046] The beneficial effects of the present invention are as follows: the present invention discloses a method and system for parallel static learning of digital circuits under memory constraints, which improves the computational speed of static learning by simultaneously learning multiple tasks and processing events in an event queue in parallel using multiple threads. Having multiple learning tasks being learned simultaneously share the same event queue can greatly reduce the occupied memory space; dividing the learning task group into several groups reduces the overlap rate of events stimulated by each group of learning tasks, thereby reducing the memory space required to store simulation values ​​and avoiding the consumption of a large amount of memory. The present invention improves the utilization rate of the event queue, fully improves the effective utilization rate of threads, avoids the disadvantage of a low event rate during static learning operation, and greatly improves the running speed of static learning under memory constraints. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0048] Figure 1 1 is a flow chart of a method for parallel static learning of digital circuits under memory constraints according to an embodiment of the present invention;

[0049] Figure 2 is a schematic diagram of dividing learning tasks in an embodiment of the present invention;

[0050] Figure 3 Schematic diagram of logic values ​​stored corresponding to logic gates in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of this application to fully understand the purpose, scheme and effect of this application. It should be noted that the embodiments and features in the embodiments of this application can be combined with each other unless there is a conflict.

[0052] While researching static learning, the inventors discovered that existing single-threaded implementations suffer from excessively long runtimes. To address this, they identified areas in the static learning process that could be implemented in parallel. Based on limited memory, they proposed a new parallel static learning implementation method that avoids excessive memory consumption while significantly improving the speed of static learning.

[0053] refer to Figure 1 ,like Figure 1 The present invention provides a method for parallel static learning of digital circuits under memory constraints, which includes the following steps:

[0054] Step S100: Scan the entire digital circuit to collect all learning tasks that need to be learned in the digital circuit;

[0055] Step S200: storing all learning tasks that need to be learned in the digital circuit into an array, and dividing all learning tasks that need to be learned in the array into a plurality of learning task groups;

[0056] Step S300: Create multiple parallel threads and allocate a common event queue to all parallel threads;

[0057] Step S400: sequentially select a set of learning task groups, obtain events triggered by the learning tasks in the learning task groups, and put the events into an event queue;

[0058] Step S500: calling all parallel threads to start working, so that all threads can learn the events in the event queue together;

[0059] Step S600: After all threads have completed a set of learning task groups, determine whether there are any unfinished learning task groups. If so, select a set of learning task groups from the unfinished learning task groups in order to learn; otherwise, all threads stop working.

[0060] In the embodiment provided by the present invention, the entire digital circuit is first scanned to collect and store all tasks that need to be learned. A single event queue is allocated for subsequent event management by all parallel threads. All parallel threads are then called to work. All threads share the same event queue and jointly process a set of learning tasks in parallel. After completing a set of learning tasks, if any unfinished tasks remain, a new set of tasks is learned until all tasks in the array are completed.

[0061] In a preferred embodiment, the learning task includes the ID of a logic gate and a simulation value of the logic gate; the event queue is a queue for storing and managing events, and is responsible for collecting events and popping out the collected events in a first-in-last-out order. The event refers to a logic gate in a digital circuit in which the logic value of a fan-in node changes;

[0062] In a preferred embodiment, in step S200, all learning tasks to be learned in the array are divided into several learning task groups, including:

[0063] Get the learning tasks, and divide all the learning tasks in the array into several learning task groups based on the ID of the logic gate in the learning task.

[0064] like Figure 2 As shown, in the specific implementation, in step S200, the logic gates to be learned and the corresponding simulation values ​​are combined into specific numerical values ​​through logical bit operations and stored in the array. It should be noted that it is necessary to ensure that the size of the array can meet the storage of all learning tasks to avoid some learning tasks not being stored due to the array being too small, resulting in erroneous results. When grouping the learning tasks in the array, based on the ID of the logic gate in the learning task, the learning tasks that are far apart, that is, the learning tasks with a large gate ID difference are grouped together; for example, one percent of the number of logic gates in the circuit is defined as the boundary value for the distance between them, and the learning tasks whose gate ID difference between each other is the boundary value are grouped together.

[0065] In this embodiment, assuming that the number of all learning tasks that need to be learned is N, all learning tasks that need to be learned in the array are equally divided into n groups. If n cannot be divided by N, the number of learning tasks contained in the last group of learning task groups is the remainder of N / n, that is, mod(N, n).

[0066] In a preferred embodiment, step S500 includes:

[0067] Step S510: The thread selects an unprocessed event from the event queue in sequence;

[0068] Step S520: The thread determines the logic gate corresponding to the selected event, scans the logic values ​​of all fan-in nodes of the logic gate, and determines the simulation values ​​existing in the logic values ​​of all fan-in nodes;

[0069] like Figure 3 As shown, in a specific implementation, the logic gate stores an original value and at most m simulation values; m is a positive integer, and the original value is the original logic value; the simulation value consists of a simulation logic value and excitation information of the simulation logic value, and the excitation information is used to mark the learning task that excites the value; the combination method of the simulation value is:

[0070] Shift the excitation information one position to the left to obtain the shifted result;

[0071] Perform a bitwise OR operation on the lowest bit of the shifted result and the simulation logic value to obtain the simulation value;

[0072] The method for extracting information of the simulation value is:

[0073] Take the lowest bit of the simulation value as the simulation logic value;

[0074] Shift the simulation value one position to the right to obtain the excitation information of the simulation logic value;

[0075] For example, when storing simulation values:

[0076] Assume that the stimulus information (the number of the learning task) is 3 (11 in binary);

[0077] (1) If the simulation logic value is 1;

[0078] Shift the learning task number one position to the left, the result is: 110;

[0079] Perform a bitwise OR operation on the lowest bit of the result and the simulated logic value 1, and the result is: 111;

[0080] Store 111 as the simulation value;

[0081] (2) If the simulation logic value is 0;

[0082] Shift the learning task number one position to the left, the result is: 110;

[0083] Perform a bitwise OR operation on the lowest bit of the result and the simulated logic value 0, and the result is: 110;

[0084] 110 is stored as the simulation value.

[0085] When reading simulation values:

[0086] Scanning a fan-in node reveals a simulation value of 111.

[0087] The lowest bit (1) of the simulation value is taken as the simulation logic value;

[0088] Shift the simulation value one position to the right to obtain 11 (3 in decimal), which is used as the excitation information (the number of the learning task).

[0089] In this embodiment, the number of stored simulation values ​​is limited, and m is a maximum number threshold of simulation values; the number of stored simulation values ​​can be 0, 1, or any number not exceeding the set number m.

[0090] Step S530: When a simulation value exists in the logic value of the fan-in node, the logic gate is evaluated based on the simulation value to obtain a learning logic value;

[0091] Step S540: If the learned logic value is inconsistent with the original value currently stored in the logic gate, and the simulation value currently stored in the logic gate does not include the learned logic value, the thread stores the learned logic value as the simulation value of the logic gate.

[0092] It's understandable that after a thread completes evaluating a logic gate, it checks whether the learned logic value is consistent with the original value and whether the learned logic value has been stored in the gate's simulation value to determine whether the gate's value needs to be updated. If so, the newly learned value is stored, and similarly, stimulus information is added. That is, if a new simulation value is obtained by evaluating the gate, the thread updates the stored simulation value of the gate.

[0093] Step S550: Determine whether the number of simulation values ​​stored in the logic gate exceeds m; if so, execute step S560; if not, execute step S570;

[0094] It should be noted that the maximum number of simulated values ​​that can be stored in the logic value corresponding to each logic gate is pre-set. If the maximum number of simulated values ​​does not exceed the set number, the new simulated value can be stored. If the maximum number of simulated values ​​exceeds the set number, no new simulated values ​​are stored. By limiting the number of simulated values ​​that can be stored in the logic value, memory resource usage can be limited, adapting to memory-constrained conditions.

[0095] Step S560: Abandon the learning task that triggers the simulation value, mark the learning task as unfinished, and place it in the next learning task group;

[0096] Step S570: The thread stores all the learned logic values ​​obtained into the simulation values ​​stored in the logic gate, and marks the fan-out node of the logic gate as an event and puts it into the event queue.

[0097] In a preferred embodiment, step S530 includes:

[0098] Scan the logic values ​​stored in each fan-in node in the order of the logic gate's fan-in nodes, and scan whether the stored logic values ​​contain simulation values. If so, evaluate the logic gate for this simulation value; if not, skip this fan-in node and check the next fan-in node until all fan-in nodes have been scanned.

[0099] In a preferred embodiment, performing a logic gate evaluation on the simulation value includes:

[0100] When evaluating a logic gate for any simulation value of any fan-in node;

[0101] Determine whether the logic values ​​stored in the remaining fan-in nodes of the logic gate contain a specific simulation value, and the specific simulation value is the same as the excitation information of the simulation value. If so, use the specific simulation value and the simulation value to jointly evaluate the logic gate; if not, use the original value and the simulation value to jointly evaluate the gate.

[0102] For example, when evaluating a logic gate for a certain simulation value of a certain fan-in node, the fan-in node is called fan-in node A, and the simulation value is called simulation value A. The corresponding stored logic values ​​of the remaining fan-in nodes except fan-in node A are scanned one by one in the order of the fan-in nodes of the logic gate to check whether the logic values ​​stored in each of the remaining fan-in nodes contain a specific simulation value, and the specific simulation value has the same excitation information as the simulation value A. If so, the specific simulation value and simulation value A (that is, a certain simulation value of a certain fan-in node) are used together to evaluate the logic gate. If not, the original value and simulation value A are used together to evaluate the gate.

[0103] Those skilled in the art will appreciate that types of logic gates include: AND gate, OR gate, NOT gate, NAND gate, NOR gate, XNOR gate, XOR gate, etc. In the embodiments provided herein, the type of logic gate includes at least one of the following: AND gate, OR gate, NOT gate, NAND gate, NOR gate, XNOR gate, XOR gate, XOR gate.

[0104] and Figure 1 Corresponding to the method, an embodiment of the present invention further provides a computer-readable storage medium, on which a parallel static learning program for digital circuits under memory constraints is stored. When the parallel static learning program for digital circuits under memory constraints is executed by a processor, the steps of the parallel static learning method for digital circuits under memory constraints as described in any of the above embodiments are implemented.

[0105] and Figure 1 Corresponding to the method, an embodiment of the present invention further provides a digital circuit parallel static learning system under memory constraints, the system comprising:

[0106] at least one processor;

[0107] at least one memory for storing at least one program;

[0108] When the at least one program is executed by the at least one processor, the at least one processor implements the parallel static learning method for digital circuits under memory constraints described in any of the above embodiments.

[0109] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0110] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete logic gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor serves as the control center of the memory-constrained digital circuit parallel static learning system, and utilizes various interfaces and lines to connect various parts of the entire memory-constrained digital circuit parallel static learning system's operable devices.

[0111] The memory can be used to store the computer program and / or module, and the processor implements various functions of the digital circuit parallel static learning system under memory limitation by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as an event management function, a logic gate evaluation function), etc.; the data storage area can store data created according to the execution of the program (such as event data, logic values ​​of logic gates), etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart-Media-Card, SMC), a secure digital (Secure-Digital, SD) card, a flash card (Flash-Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0112] Although the description of the present application has been quite detailed and specifically describes several embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be considered to provide a broad possible interpretation of these claims by reference to the appended claims, taking into account the prior art, so as to effectively cover the intended scope of the present application. In addition, the above description of the present application is based on the embodiments foreseen by the inventors, which is intended to provide a useful description, and those non-substantial changes to the present application that have not yet been foreseen may still represent equivalent changes to the present application.

Claims

1. A parallel static learning method for digital circuits under memory constraints, characterized in that: The method comprises the following steps: Step S100, scanning the entire digital circuit to collect all learning tasks that need to be learned in the digital circuit; Step S200, storing all learning tasks that need to be learned in the digital circuit into an array, and dividing all learning tasks that need to be learned in the array into a plurality of learning task groups; Step S300: create multiple parallel threads and allocate a common event queue to all parallel threads; Step S400: select a group of learning task groups in order, obtain events triggered by the learning tasks in the learning task groups, and put the events into an event queue; Step S500: calling all parallel threads to start working, so that all threads can learn the events in the event queue together; Step S600: After all threads have completed a set of learning task groups, determine whether there are any unfinished learning task groups. If so, select a set of learning task groups from the unfinished learning task groups in order to learn; otherwise, all threads stop working. Step S500 includes: Step S510: The thread selects an unprocessed event from the event queue in turn; Step S520, the thread determines the logic gate corresponding to the selected event, scans the logic values ​​of all fan-in nodes of the logic gate, and determines the simulation values ​​existing in the logic values ​​of all fan-in nodes; The logic gate stores an original value and at most m simulation values; the original value is the original logic value; the simulation value is composed of a simulation logic value and the excitation information of the simulation logic value, and the excitation information is used to mark the learning task that excites the value; the combination method of the simulation value is: Shift the excitation information one position to the left to obtain the shifted result; Perform a bitwise OR operation on the lowest bit of the shifted result and the simulation logic value to obtain a simulation value; The method for extracting information of the simulation value is: Take the lowest bit of the simulation value as the simulation logic value; Shift the simulation value rightward by one position to obtain the excitation information of the simulation logic value; Step S530: When there is a simulation value in the logic value of the fan-in node, the logic gate is evaluated based on the simulation value to obtain a learning logic value; Step S540: If the learned logic value is inconsistent with the original value currently stored in the logic gate, and the simulation value currently stored in the logic gate does not include the learned logic value, the thread stores the learned logic value as the simulation value of the logic gate; Step S550, determining whether the number of simulation values ​​stored in the logic gate exceeds m; if so, executing step S560, if not, executing step S570; Step S560: abandon the learning task that triggers the simulation value, mark the learning task as unfinished, and put it into the next learning task group; Step S570: The thread stores all the learned logic values ​​obtained into the simulation values ​​stored in the logic gate, and marks the fan-out node of the logic gate as an event and puts it into the event queue.

2. The method for parallel static learning of digital circuits under memory constraints according to claim 1, characterized in that: The learning task includes the ID of the logic gate and a simulation value of the logic gate; the event queue is a queue for storing and managing events, and the event queue is responsible for collecting events and popping out the collected events in sequence. The event refers to a logic gate whose fan-in node value in a digital circuit changes.

3. The method for parallel static learning of digital circuits under memory constraints according to claim 2, characterized in that: In step S200, all learning tasks to be learned in the array are divided into a number of learning task groups, including: Get the learning tasks, and divide all the learning tasks in the array equally into several learning task groups based on the IDs of the logic gates in the learning tasks.

4. The method for parallel static learning of digital circuits under memory constraints according to claim 3, characterized in that: The step S530 includes: Scan the corresponding stored logic values ​​of each fan-in node in the order of the fan-in nodes of the logic gate, and scan whether the stored logic values ​​contain simulation values. If so, evaluate the logic gate for this simulation value; if not, skip this fan-in node and check the next fan-in node until all fan-in nodes have been scanned.

5. The method for parallel static learning of digital circuits under memory constraints according to claim 4, characterized in that: The evaluation of a logic gate for the simulation value includes: When evaluating a logic gate for any simulation value of any fan-in node; Determine whether the logic values ​​stored in the remaining fan-in nodes of the logic gate contain a specific simulation value, and the specific simulation value is the same as the excitation information of the simulation value. If so, use the specific simulation value and the simulation value to evaluate the logic gate together; if not, use the original value and the simulation value to evaluate the gate together.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the parallel static learning method for digital circuits under memory constraints as described in any one of claims 1 to 5 are implemented.

7. A digital circuit parallel static learning system under memory constraints, characterized in that: The system comprises: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the parallel static learning method for digital circuits under memory constraints as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Digital circuit static learning method and system based on data parallelism

    CN113919261A