Reinforcement learning based circuit topology parameter exploration
The method employs reinforcement learning to efficiently explore circuit design space by classifying single-stage circuits and updating parameters based on feedback, addressing the complexity of transistor-level design and reducing simulator communication, thus speeding up the circuit generation process.
Patent Information
- Application Number
- PCT/US2024/030867
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-10-24
AI Technical Summary
The exploration of circuit design space at the transistor level is complex, and existing techniques face challenges in efficiently generating new circuit configurations due to the need for frequent communication with circuit simulators during the training phase, slowing down the design process.
A computer-implemented method using reinforcement learning to generate multistage circuits by creating a library of single-stage circuits, classifying them based on input and output connections, and using a weight resonant network to produce sample configurations and update parameters based on feedback from a multistage circuit evaluator and simulator, thereby reducing the need for frequent simulator communication.
This approach enhances the efficiency of design space exploration and accelerates the circuit generation process by minimizing interactions with simulators, allowing for faster training and optimization of circuit designs.
Smart Images

Figure US2024030867_24102024_PF_FP_ABST
Abstract
Description
FTRW-01421WO0 6000659PCT01 - 1 - REINFORCEMENT LEARNING BASED CIRCUIT TOPOLOGY PARAMETER EXPLORATION Inventors: Jiayu Li Yurong Xu Ziru Li Mingxuan He Yihong Ma Masood Mortazavi FIELD
[0001] The disclosure generally relates to systems and methods for generating and exploring circuits topologies using reinforcement learning. BACKGROUND
[0002] Design Space Exploration (DSE) is the process of exploring and evaluating possible design alternatives and configurations of a system or product, and can be applied to circuit configuration. Each design space may have a series of dimensions and a set of one or more values within each dimension. Reinforcement learning is a type of machine learning where an agent learns to make decisions by performing actions in an environment and receiving feedback in the form of rewards or penalties. This feedback helps the agent learn strategies to maximize cumulative rewards over time, effectively teaching it the best actions to take in various situations.
[0003] Circuit generation is a complex design task that can be accomplished by a human designer through technical expertise, intuition, and knowledge of established circuit design topologies. Some existing DSE techniques for circuit generation use transistors as fundamental building blocks of the circuit, and use optimization techniques or leverage existing topologies to innovate new configurations with tools such as variational autoencoders (VAEs) or generative adversarial networks (GANs). However, exploration of circuit design space at the transistor level is a complicated process. Additionally, communication with circuit simulators during the training phase significantly slows down the progression of the training.FTRW-01421WO0 6000659PCT01 - 2 - SUMMARY
[0004] A general aspect comprises a computer implemented method. The computer implemented method includes creating a library of single stage circuits, the library including a subgraph of each single stage circuit; classifying, in the library, each of the single stage circuits into at least one set, the classifying based on input and output connections of each single stage circuit; defining a number of stages for a multistage circuit. The method also includes providing a target reward for the multistage circuit. The method also includes generating sample configurations for the multistage circuit based on probability distributions created by a single stage, weight resonant network, where each sample configuration corresponds to a different configuration of single stage circuits may include the number of stages in the multistage circuit. The method also includes updating parameters of the weight resonant network based on feedback from a multistage circuit evaluator and circuit simulator. The method also includes generating a final multistage circuit based on the feedback using the weight resonant network. Other embodiments of this aspect include corresponding computer systems, apparatus, and computer programs recorded on one or more computer storage devices, each configured to perform the actions of the methods.
[0005] Implementations may include the computer implemented method where the creating the library may include: storing a lookup table recording one or more configurations of elemental devices of each single stage circuit; storing, for each configuration, at least a power and a gain for the configuration. Implementations may include the computer implemented method of any of the foregoing embodiments wherein the method further includes outputting the sample configurations to the circuit evaluator and a circuit simulator, and where the circuit evaluator provides the feedback as a loss function to the weight resonant network. Implementations may include the computer implemented method of any of the foregoing embodiments wherein the circuit simulator calculates a power and a gain for the sample configuration of the multistage circuit. Implementations may include the computer implemented method of any of the foregoing embodiments wherein the multistage circuit includes two or more stages, each stage selected from a different set. Implementations may include the computer implemented method of any of the foregoing embodiments wherein eachFTRW-01421WO0 6000659PCT01 - 3 - set includes a plurality of subgraphs. Each of the single stage circuits are amplifiers. Implementations may include the computer implemented method of any of the foregoing embodiments wherein each lookup table includes a width, and length of a transistor. Implementations may include the computer implemented method of any of the foregoing embodiments wherein each multistage circuit may include at least two elemental devices. Implementations may include the computer implemented method of any of the foregoing embodiments wherein the method further includes encoding the final multistage circuit as a graph for a graph convolutional network; and for each subgraph of a single stage circuit in the graph of the multistage circuit, aggregating features of all n-hop neighbor nodes and aggregating features of at least one node of a neighbor subgraph; generating actions based on both the aggregating and applying the actions to a different topology or elemental device technology. Implementations may include the computer implemented method of any of the foregoing embodiments wherein each node may include an elemental device of the multistage circuit. Implementations of the described techniques may include hardware, a method or process, or computer software on a computer-accessible medium.
[0006] One general aspect includes an apparatus. The apparatus includes a storage medium including computer instructions. The apparatus also includes one or more processors coupled to communicate with the storage medium, where the one or more processors execute the instructions to cause the apparatus to: create a library of single stage circuits, the library including a subgraph of each single stage circuit; classify, in the library, each of the single stage circuits into at least one set, the classifying based on input and output connections of each single stage circuit; define a number of stages for a multistage circuit; provide a target reward for the multistage circuit; generate sample configurations for the multistage circuit based on probability distributions created by a single stage, weight resonant network, where each sample configuration corresponds to a different configuration of single stage circuits may include the number of stages in the multistage circuit; update parameters of the weight resonant network based on feedback from a multistage circuit evaluator and circuit simulator; and generate a final multistage circuit based on the feedback using the weight resonant network. Other embodiments of this aspect include corresponding computer systems, apparatus, and computer programs recorded on one or more computer storage devices, each configured to perform the actions of the methods.FTRW-01421WO0 6000659PCT01 - 4 -
[0007] Implementations may include one the apparatus of any of the foregoing embodiments where the one or more processors execute the instructions to create the library by: storing a lookup table recording one or more configurations of elemental devices of each single stage circuit; storing, for each configuration, at least a power and a gain for the configuration. Implementations may include one the apparatus of any of the foregoing embodiments where each lookup table includes a width, and length of a transistor. Implementations may include one the apparatus of any of the foregoing embodiments wherein the one or more processors execute the instructions to output the sample configurations to the circuit evaluator and a circuit simulator, and where the circuit evaluator provides the feedback as a loss function to the weight resonant network. Implementations may include one the apparatus of any of the foregoing embodiments where the circuit simulator calculates a power and a gain for the sample configuration of the multistage circuit. Implementations may include one the apparatus of any of the foregoing embodiments where each multistage circuit includes two or more stages, each stage selected from a different set. Each set includes a plurality of subgraphs. Implementations may include one the apparatus of any of the foregoing embodiments where each of the single stage circuits are amplifiers. Implementations may include one the apparatus of any of the foregoing embodiments where each multistage circuit may include at least two elemental devices. Implementations may include one the apparatus of any of the foregoing embodiments where the one or more processors execute the instructions to encode the final multistage circuit as a graph for a graph convolutional network; and for each subgraph of a single stage circuit in the graph of the multistage circuit, aggregate features of all n-hop neighbor nodes and aggregating features of at least one node of a neighbor subgraph; generate actions based on both the aggregating and apply the actions to a different topology or elemental device technology. Implementations may include one the apparatus of any of the foregoing embodiments where each node may include an elemental device of the multistage circuit. Implementations of the described techniques may include hardware, a method or process, or computer software on a computer-accessible medium.
[0008] Another aspect includes a non-transitory computer-readable medium storing computer instructions for generating circuits, the instructions, when executed, cause the processor to perform the steps of: creating a library of single stage circuits, the library including a subgraph of each single stage circuit; classifying, in the library, each of the single stageFTRW-01421WO0 6000659PCT01 - 5 - circuits into at least one set, the classifying based on input and output connections of each single stage circuit; defining a number of stages for a multistage circuit. The instructions also include providing a target reward for the multistage circuit. The instructions also include generating sample configurations for the multistage circuit based on probability distributions created by a single stage, weight resonant network, where each sample configuration corresponds to a different configuration of single stage circuits may include the number of stages in the multistage circuit. The instructions also include updating parameters of the weight resonant network based on feedback from a multistage circuit evaluator and circuit simulator. The instructions also include generating a final multistage circuit based on the feedback using the weight resonant network.
[0009] Implementations may include the non-transitory computer-readable medium where the creating the library may include: storing a lookup table recording one or more configurations of elemental devices of each single stage circuit; and storing, for each configuration, at least a power and a gain for the configuration. Implementations may include the non-transitory computer-readable medium of any of the foregoing embodiments wherein the instructions cause the one or more processors to output the sample configurations to the circuit evaluator and a circuit simulator, and where the circuit evaluator provides the feedback as a loss function to the weight resonant network. Implementations may include the non- transitory computer-readable medium of any of the foregoing embodiments wherein the circuit simulator calculates a power and a gain for the sample configuration of the multistage circuit. Implementations may include the non-transitory computer-readable medium of any of the foregoing embodiments wherein the multistage circuit includes two or more stages, each stage selected from a different set. Implementations may include the non-transitory computer- readable medium of any of the foregoing embodiments wherein each set includes a plurality of subgraphs. Implementations may include the non-transitory computer-readable medium of any of the foregoing embodiments wherein each of the single stage circuits are amplifiers. Implementations may include the non-transitory computer-readable medium of any of the foregoing embodiments wherein each lookup table includes a width, and length of a transistor. Implementations may include the non-transitory computer-readable medium of any of the foregoing embodiments wherein each multistage circuit may include at least two elemental devices. Implementations may include the non-transitory computer-readable medium of any ofFTRW-01421WO0 6000659PCT01 - 6 - the foregoing embodiments further including encoding the final multistage circuit as a graph for a graph convolutional network; and for each subgraph of a single stage circuit in the graph of the multistage circuit, aggregating features of all n-hop neighbor nodes and aggregating features of at least one node of a neighbor subgraph; generating actions based on both the aggregating and applying the actions to a different topology or elemental device technology. Each node may include an elemental device of the multistage circuit. Implementations of the described techniques may include hardware, a method or process, or computer software on a computer-accessible medium.
[0010] Another aspect is the implemented computer method. The computer implemented method includes creating a library of single stage amplifier circuits, the library including, for each single stage circuit, a subgraph of the circuit and a lookup table recording one or more configurations of elemental devices of the circuit; classifying, in the library, each of the single stage circuits into at least one set, the classifying based on input and output connections of the single stage amplifier circuit; defining a number of stages for a multistage amplifier circuit. The method also includes providing a target power and a target gain for a multistage amplifier circuit. The method also includes generating sample configurations for the multistage amplifier circuit based on probability distributions created by a single stage, weight resonant network, where each sample configuration corresponds to a different configuration of the number of stages in the single stage circuit. The method also includes outputting the sample configurations to an evaluator and a simulator. The method also includes updating parameters of the weight resonant network based on feedback from the evaluator and simulator. The method also includes generating a final multistage amplifier circuit.
[0011] Implementations may include the computer implemented method where the method further includes encoding the final multistage amplifier circuit as a graph for a graph convolutional network; for each subgraph of a single stage amplifier circuit in the graph of the final multistage amplifier circuit, aggregating features of all n-hop neighbor nodes and aggregating features of at least one node of a neighbor subgraph; generating actions based on both the aggregating and applying the actions to a different topology or elemental device technology.FTRW-01421WO0 6000659PCT01 - 7 -
[0012] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. The claimed subject matter is not limited to implementations that solve any or all disadvantages noted in the Background. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Aspects of the present disclosure are illustrated by way of example and are not limited by the accompanying figures for which like references indicate the same or similar elements.
[0014] FIG. 1 is a flowchart of a method in accordance with the described technology generating multistage circuits, such as multistage amplifiers, from elemental circuits, such as single stage amplifiers.
[0015] FIG.2 is a flowchart illustrating one implementation of the method of FIG.1.
[0016] FIG.3 is a block diagram of a system implementing the described technology.
[0017] FIG.4 is a depiction of a multistage amplifier.
[0018] FIG.5 is a depiction of elemental circuits comprising single stage amplifiers which may be used to construct multistage amplifiers.
[0019] FIG.6 depicts one type of single stage amplifier and an associated lookup table.
[0020] FIG. 7 is a flowchart illustrating a method of creating a subgraph from a lookup table.
[0021] FIG.8 is a depiction of sub-graphs, stages and sets into which individual elemental circuits may be organized.FTRW-01421WO0 6000659PCT01 - 8 -
[0022] FIG.9 illustrates a single-step (compound-action) Markov Decision process (MDP) reinforcement-learning model for exploration of the circuit design space.
[0023] FIG.10 illustrates a one architecture for utilizing a DSE system for circuit design.
[0024] FIG.11 is a flowchart illustrating creation of sample circuit designs in accordance with the described technology.
[0025] FIG.12 is a listing of pseudocode illustrating the method of FIG.11.
[0026] FIG. 13 is block diagram and flow chart illustrating the function of a two-level Graph Convolutional Network – Reinforcement Learning (GCN - RL).
[0027] FIG. 14 is a flowchart illustrating a method for transferring knowledge between different technologies in accordance with the described technology.
[0028] FIG.15 is a graphical depiction of the operation of the two-level GCN agent.
[0029] FIG.16 is a block diagram illustrating an example of a network processing device that can be used to implement various embodiments of the technology described herein. DETAILED DESCRIPTION
[0030] Reinforcement learning (RL) is a machine learning approach that involves an agent learning to interact with an environment in order to maximize a reward signal to improve design space exploration processes and efficiencies. RL can be employed to aid in the search and optimization of design configurations to find improved designs while minimizing design space exploration efforts.
[0031] The described technology utilizes a single-step, weight resonant policy network with single step RL to generate multistage circuits based on elemental, single stage circuits. In embodiments, the elemental circuits comprise amplifiers and the multistage circuits comprise multistage amplifiers. However, it should be understood that the technology is not limited to analog circuits nor to amplification circuits. In embodiments, technology for transferring circuit design information from one designed multistage circuit to a different topology or different foundational technology is also provided.FTRW-01421WO0 6000659PCT01 - 9 -
[0032] In embodiments of a system, a neural network Netθconsumes a constant input tensor and produces a policy πθas a set of conditional probability density functions (PDFs) for sampling. These density functions comprise sample circuit configurations. Policy gradient algorithms in deep reinforcement learning (D-RL) are used to evaluate feedback on each sample circuit configuration to update Netθ. The weight resonant policy network with single step RL can, in one embodiment, learn to generate voltage amplifier circuit topology with a minimum power consumption and a desired gain. The technology framework makes the DSE sample efficient and increases the training speed during the generation of circuits without frequently communicating with a simulator. In addition, the aforementioned DSE techniques can be combined with a two-level GCN-RL to optimize device parameters and transfer the knowledge between different technologies and different topologies. The described CGN-RL can transfer other types of circuits where such circuits comprise multistage circuits which can be described as single stage circuits for which sub-graphs are created to describe the single stage circuit, as described herein.
[0033] FIG.1 illustrates a general method in accordance with the described technology for generating multistage analog circuits. The technology described herein will be described with respect to multistage analog amplifiers which may be constructed from single stage amplifiers, but other types of analog circuit, as well as multistage digital circuits, may be used with the technology. In accordance with the method, at 105, multistage circuits are decomposed into a series of elemental circuits or single stages. A multistage amplifier typically consists of several cascaded single stage amplifiers. Each single stage amplifier may be comprised of one or more elemental devices, such as transistors. Each single stage is typically coupled to the next through some form of inter-stage networking and generally has a specific role such as voltage amplification, current amplification, impedance matching, or the like. Individual stages of a multistage amplifier can be derived with reference to standard known stage configurations using reference texts, either manually by a human being or programmatically. At 110, a library of elemental (single stage) circuits is built. The library includes the configuration of each single stage circuit configured as a sub-graph as well as an associated lookup table for the single stage circuit. In embodiments, a library of single stage voltage amplifier structures may comprise fifty-two single stages comprising diode-connected loads, current-source loads, active loads (inverter), triode load, and cascode / triple cascode stages. As explained further herein, eachFTRW-01421WO0 6000659PCT01 - 10 - single stage circuit is configured as a subgraph for use in circuit generation, with each subgraph having an associated lookup table storing various configurations of the circuit (in terms of transistor size, gain and power consumption). At 110, the subgraphs and lookup tables are assigned to sets based on the input / output signals of each single stage circuit. The library also includes constraints (rules) which can bused by a circuit evaluator to restrict invalid connections based on the sets. The number of sets vary within each stage.
[0034] At 115, given a set of target characteristics for the multistage circuit, (which may comprise power and gain for a multistage amplifier), a multistage circuit is generated using RL techniques. In embodiments, a single-step (compound-action) Markov Decision process (MDP) reinforcement-learning model as described in PCT / US2021 / 064634 entitled PARALLEL PROCESSING USING A MEMORY-BASED COMMUNICATION MECHANISM and / or PCT / US2023 / 070271 SIGNLE STEP DESIGN SPACE EXPLORATION SYSTEM (both of which are incorporated by reference herein in their entirety) may be used to generate a circuit topology with a minimum power consumption when given a target gain. Given a target gain as input, a generated multistage amplifier configuration is output. In the single step RL model, a checking mechanism with predefined constraints and an anomaly reward function ensures that the generated circuit is valid.
[0035] At 120, optionally, the design knowledge of generated multistage circuits can be transferred to other circuit topologies and technologies.
[0036] FIG.2 is a flowchart illustrating a method for performing a step of creating a library of elemental circuits comprising single state amplifier circuits (i.e. step 110 of FIG.1). At 205, decomposition of multistage amplifiers into single stage amplifiers occurs. As noted herein, a multistage amplifier may comprise two or more single stage amplifiers connected together. A single stage amplifier generally contains one or two single transistors with a voltage or current input and a voltage or current output. Examples of single stage amplifiers are shown in FIGs. 5 and 6. Decomposition of multistage circuits involves a determination of all possible single stages which may comprise multistage circuits. In one embodiment, fifty-two (52) single stage analog amplifiers make up a library of, for example, diode-connected loads (P / N), current- source loads, active loads (inverter), triode loads and cascode / triple cascode stages. At 210, a subgraph is created for each single stage amplifier. The subgraph includes nodes that representFTRW-01421WO0 6000659PCT01 - 11 - components of each single stage amplifier which can be combined into a fully generated circuit. At 215, a lookup table is built for each subgraph. A lookup table can be built by inputting random transistor sizing (a Monte Carlo simulation) into a circuit simulator to obtain gain and power for the sizing combination in that circuit. An example of a lookup table is shown in FIG. 6 and represents the relationship among different transistor size, gain and minimum power consumption. At 220, subgraphs are classified into sets based on their input and output signals of each stage. A different number of sets may be defined for each amplifier stage. Different subgraph sets include differential / non differential voltage amplifiers (voltage input, voltage output); transimpedance amplifiers (current input, voltage output), transconductance amplifiers (voltage input, current output), and current amplifiers (current input, current output). At 225, the connection between adjacent stages is maintained by creating pre-defined constraints that prevent invalid combinations of single stages. The subgraphs, lookup tables, sets and single stages comprise the library used in the weight resonant policy network with single step RL as described below to generate different sample multistage circuits. At 230, for a given target gain, the weight resonant policy network will produce a generated circuit.
[0037] FIG. 3 illustrates components of a system which may be used to implement the described technology. This system is an end-to-end framework which uses target gain as an input and outputs a generative circuit with an optimal power consumption. Aspects of the elemental circuit library 310 have been described above. Data in library 310 is used by weight resonant policy network 320 which produces sample generated circuits 325. The weight resonant policy network 320 generates several distributions that are used to decide how to select subgraphs, sets and stages. A stage contains several sets which are differentiated based on the input / output signals of each amplifier stage. When a stage is selected, one of its sets is selected subject to the predefined constraints that combinations of some sets across stages are invalid. In the weight resonant network, an anomaly reward is also used to penalize invalid combinations.
[0038] Two feedback loops are provided to evaluate generated circuits 325. The circuits are provided to a circuit evaluator 330 to ensure a generative circuit is valid. A first, fast loop uses a feedback agent 340 and updates the weight resonant network, while a second slower loop uses information from circuit simulator 350 which provides the power, bandwidth and gain of each sample configuration to the weight resonant network 320.FTRW-01421WO0 6000659PCT01 - 12 -
[0039] FIG.4 illustrates a multistage transimpedance amplifier, specifically a three-stage transimpedance amplifier. FIG. 5 illustrates several single stage voltage amplifiers which result from decomposition of multistage amplifier of FIG.4. As shown in FIG.5, these include, by way of example, a diode-connected load (p / n) 410, a current source load 420, an active load (inverter) 430, a current source load, (p / n source follower) 440 and a cascode / triple cascode stage 450. As indicated herein, the stages shown in FIG.5 are exemplary only and any number of single stage devices may be utilized in accordance with the described technology. Moreover, although MOSFET devices are illustrated in FIGs. 4 and 5, it should be understood that the described technology is not limited to transistors or particular analog device technologies, nor limited to analog circuits alone.
[0040] FIG.6 illustrates a portion of an exemplary lookup table for a single stage current source load amplifier 500. Each row in the lookup table is based on a subgraph and consists of different transistor sizing 501, gain 506 and power 511. In FIG.6, W and L are the width and length of the transistor gate, and M is the multiplexer. W, L, M represent the properties of a transistor, while R is the resistance value for a resistor, C is the capacitance value for a capacitor. (It will be understood that the integers following the width, multiplexer, gain and power are meant to distinguish differences between the dimensions, rather than actual values.)
[0041] FIG.7 is a flowchart illustrating a process of creating a lookup table for a subgraph. At 605 for each subgraph, random transistor sizing (a Monte Carlo simulation) is input to a circuit simulator to obtain gain and power. For example, for a specific subgraph, a set W ranges from 120nm to 1000nm with sampling interval 10nm, L ranges from 45nm to 100nm with sampling interval 5 nm and M ranges from 1 to 5 with sampling interval 1. In this example, one generates 89*12*5=5340 rows for the subgraph. At 615, the gain, power and bandwidth are generated by a circuit simulator. At 620, each row associates a transistor size and the computed gain, power and bandwidth and the method continues to the next subgraph at 625. In the table, the nomenclature of W_AB, L_AB and M_AB represent the width (W), length (L) and multiplexer (M) of a transistor, A is the sum of the range (e.g., sum=3, when the range is from [100, 120] with sampling interval 10) and B represents the index of a transistor. For example, (W11, L11, M11), (W12, L12, M12), R, C are a string representing a configuration.FTRW-01421WO0 6000659PCT01 - 13 -
[0042] FIG. 8 is a block diagram which illustrates the relationship between subgraphs, lookup tables, sets and stages. As illustrated in FIG. 8, each subgraph and associated lookup table is configured as a member of a stage (of a multistage circuit) and a set (grouped based on input / output signals). For a given stage, there may be more than one set of elemental (single stage) circuits. FIG.8 illustrates three stages and a total of seven sets, two in stage 1, three in stage 1 and two in stage three. Any connection between adjacent stages should keep signal between the stages consistent. For example, if in stage N, a subgraph from a voltage amplifier set is selected, then in stage N+1, subgraphs from the transimpedance amplifier set and current amplifier set should be selected, since stage N+1 should take the voltage output of stage N as input. To determine if a generative circuit is valid, the predefined constraints restrict combinations of some sets across stages, and an anomaly reward in the weight resonant network may be constructed to penalize invalid combinations. For example, with reference to FIG.8, one can have predefined constraints that include set 1, set 4 and set 7. Once these 3 sets are selected, the constraints may consider the connections among the sets invalid and assign an anomaly reward to the invalid circuit based on an anomaly reward function. Library 310 stores the constraints along with the subgraphs, lookup tables, sets and single stages, and they can be used in the weight resonant policy network with single step RL to create multistage circuits.
[0043] During the process of generating circuits, feedback (rewards) are not available with an incomplete circuit because one cannot know the performance of incomplete circuits and how the reward relates to the performance of circuit. Thus, a single-step (compound-action) Markov Decision Process (SS-MDP) reinforcement-learning model for design space exploration is used. FIG. 9 illustrates a single-step (compound-action) Markov Decision process (MDP) reinforcement-learning model for exploration of the circuit design space: s0→ X → sD where ^^^^is the initial state, ^^^^is the final state (the generative circuit topology), X is a compound action < x1, x2,・・・ , xD> and where the cost (penalty or reward) signal has all that is required to learn about compound-action inter-dependencies. Because the design space episode is of a fixed horizon (e.g., the number of the dimensions, or the number of the configuration parameters, is fixed), and because the reward is only collected at the end, the application scheme of RL can be considered as a single-step compound step action. For this embodiment, different permutations of configuration options for different multistage circuits may be evaluated to determine which produces the best reward (in this case, optimal gain andFTRW-01421WO0 6000659PCT01 - 14 - power). As shown in FIG. 9, the scheme renders the RL system to a single-step stateless episode. The single-step compound action 804 in FIG.9 is the combination of configuring all dimensions (e.g., the combination of “Configure C1 for dimension 1, Configure C2 for dimension 2, Configure C3 for dimension 3, Configure C4 for dimension 4, ..., Configure CT-1 for dimension T-1, Configure CTfor dimension T). With the single-step compound step action 804, the application scheme is “stateless” in that there are no intermediate states. There are only two states in the improved scheme shown in FIG.9: a blank state 802 with no dimension configured and a fully configured state 806 with all dimensions configured. At the blank state 802, the single-step compound action 804 is performed. Then, the state transitions to the fully configured state 806, and reward RT is collected.
[0044] Embodiments herein use simplified policy-gradient algorithms, in order to allow for “weight” (θ) resonance, a single-step, compound-action RL approach -- a single-step Markov decision process. The weight resonant neural network parameter ^^ comprises the weight (or theta) resonance for the network to generate a sampling policy ^^^^ൌ ^^^ ^^^^… ^^^^| ^^, ^^^ , where ^^ is a constant input that can be an initial state ^^^^. The policy^^^^^ ^^ … ^^ ^^|^^, ^^^is generated as a set of conditional probabilities capturing and learning theinter-dependencies through online improvement cycles, which reward feedback from batches of samples is used to update network weights ^^.
[0045] FIG. 10 illustrates one architecture for implementing a design exploration system (i.e. a DSE system). An RL agent 1015 (including a neural network 1010) is used for generating sample configurations. The RL agent 1015 includes a policy gradient algorithm (proximal policy optimization (PPO)) 1007. The RL agent 1015 produces single step, completed circuit designs. Sampled configurations each comprise one multistage configuration of a circuit, and a potential circuit design choice in the design space. Each sample configuration 1040 is sent to a circuit simulator 1055 and a reward calculator 1065. The calculator 1065 and simulator may run in parallel with the RL agent 1015 (e.g., when the RL agent 1015 generates a new sample configuration, the simulator and reward calculator may evaluate a previously generated sample configuration), and multiple instances of the simulator 1060 and calculator 1065 may be configured to analyze design samples individually or in batches. After evaluating the sample configurations, the calculator 1065 generates the rewardsFTRW-01421WO0 6000659PCT01 - 15 - 1070 for the sample configurations. The policy-gradient RL algorithm 1007 may use the reward 1070 to update the neural network 1010 of the RL agent 1015.
[0046] The weight (θ) resonant neural network 1010 generates the sampling policy ^^^^. The system samples based on each choice dimension through the conditional PDFs from a policy network 1007. Since the weight resonant policy network 1010 produces ^^^^as a collection of these conditional probabilities for each dimension, it is desirable to have a policy network with good capacity for internal resonance particularly among the dimensions, such that inter-dependencies can be learned through online exploration. In embodiments, a Multilayer Perceptron (MLP) or Transformer as the policy network are used. The policy has parameters θ: πθ= π(x1...xD|θ, I). A constant input I 1005 is the initial state of the design s0. Input 1005 may remain the same and unchanged throughout the search for an optimal design space configuration. In some embodiments, the input 1005 may be a single constant value (e.g., a non-zero number). In some embodiments, the constant input 1005 may be the tensor of 1s or hot- 1s (e.g., a group of bits among which the allowable combinations of values are only those with a single high (1) bit and all the others low (0). The terminal state, sT= sD, is accomplished in a single step that involves making all the choices X at once in accord with the current policy π(x1...xD|θ, I) where X1 = x1 ∧ X2 = x2 ∧ ... ∧ XD = xD with random variable Xi representing the i-th design action.
[0047] The output of the network 1010 is a compound-action probability density function 1015 (PDF), or parameters of the PDF. These distributions can represent either discrete or continuous dimensions. For dimensions representing discrete dimensions such as circuit design, discrete probabilities required to establish the categorical distribution are produced by the resonant policy network. The probability distribution gives the possibility of each outcome of a random event (e.g., a possible option is configured for a dimension). The compound-action PDF is a function used to define the probabilities of different possible occurrences (e.g., the probabilities of different options configured for each of the different dimensions) (represented at 1020, 1025, 1030, 1035). A PDF sampler 1040 generates sample design configurations.
[0048] The policy network 1010 decodes the constant input into the joint “action” distribution π(x1...xD|θ, I), expressed in its conditional form:FTRW-01421WO0 6000659PCT01 - 16 -Equation 1
[0049] Rewards 1070 comprise a numerical value that provides feedback to an agent based on its actions and the current state of the environment. A reward can be positive or negative where positive rewards indicate beneficial actions that the model should try to repeat, while negative rewards indicate actions that should be avoided in the future. Each simulation engine acts as an evaluator on ones of the fully configured designs of sample configurations. Reward calculator 1065 extracts objective metrics (power, gain and bandwidth) achieved by a given design sample, to compute a single weighted-sum, real number reward Rb for each sample. The reward feedback 1070 from batches of samples is used to update the weights of network 1005 though the policy gradient RL algorithms (PPO 410). Essentially, if an action led to a positive reward, the network is updated to make that action more likely in the future, and if an action led to a negative reward, the network is updated to make that action less likely. By repeatedly interacting with the environment and updating the neural network weights based on the rewards received, the policy is improved and drives the system toward an optimal design.
[0050] In embodiments where the weight resonant network and learning agent are on a different processing device or devices than the circuit simulator 1055 and reward calculator 1065, communication 1075 of the samples or batches of samples between the PDF sampler 1040 and the simulation engines 1055, and communication of the generated rewards 1070 to the network 1010, may occur in one embodiment using the techniques discussed in PCT / US2021 / 064634 entitled PARALLEL PROCESSING USING A MEMORY-BASED COMMUNICATION MECHANISM.
[0051] The sampler 1040 conditionally samples each choice dimension through the neurally predicted conditional PDFs. The policy network 1007 produces and continually updates sampling policy πθas a collection of the conditional probabilities for each dimension by resonating on the constant tensor I, with the policy network designed with a sufficient capacity for internal resonance particularly among the dimensions so that inter-dependencies are learned through online exploration. The internal resonance causes the network to produce a joint distribution for an optimal design in the design space (or to approximate the optimalFTRW-01421WO0 6000659PCT01 - 17 - design) tending toward the multi-dimensional delta function ^^^ ^^∗^^, ^^∗^^, ... , ^^∗^^^ concentrated on an optimal point.
[0052] FIG.11 illustrates an example about how to generate a combination of sets using weight resonant network 1010 with single step RL.
[0053] For a given multistage circuit, there may S single stages, P sets in a single stage, N subgraphs in a set, and K configurations in a subgraph. One configuration corresponds to one row in a lookup table of a subgraph. States comprise a combination of selected subgraphs with their corresponding configurations. For example, a generative two-stage amplifier from subgraph A with configuration 2 in set 1 and subgraph B with configuration 5 set 3 would have a configuration as follows:where ^^ is the number of stages, P is the number of sets in a stage, N is the number of subgraphs in a set and K is the number of configurations in a subgraph. For a given configuration, The total number of parameters is given by: ^^ െ ^^ ^ ^^ ∗ ^^ ^ ^^ ∗ ^^ ∗ ^^ ^ ^^ ∗ ^^ ∗ ^^ ∗ ^^ ൌ ^^ ∗^^^ ^^^^ ^^^^ ^ ^^^∗ ^^^∗ ^^^െ 1 which represents the joint conditional distributions: ^^ ^^ ൌ^^^^^ ^^ … ^^ ^^|^^, ^^^. Actions are derived from generative distributions and the total number ofconditionally generated distributions is ^^ െ ^^ ^ ^^ ^ ^^ ∗ ^^ ^ ^^ ∗ ^^ ∗ ^^ ൌ^^^ ^^^^ ^ ^^^∗^^^∗ ^^ െ ^^.
[0054] For a given set of samples 1110, a number of distributions 1115 are calculated. At 1120 a decision is made as to whether a given stage can be selected (with 1 indicating selection and 0 indicating non-selection). At 1120, the four parameters “11 1 0” refer to the stage selection, which set can be selected in a stage, which subgraph can be selected in a set and which configuration can be selected in a subgraph. Stage 1 results in the combinations shown at 1125. The selected set, stage, subgraph and configuration are added to the multistage combination 1130. A checking mechanism 1140 determines whether any invalid combinations have been made based on the pre-defined constraints and if so, the sample configuration is discarded.
[0055] When computing the reward for a combination of single stages, feedback from a simulator (i.e. simulator 1055) is not used because the simulator is used to obtain the gain andFTRW-01421WO0 6000659PCT01 - 18 - power for each single stage during the decomposition. With the information from lookup tables, the reward with the gain and power of the combination of selected single stages can be computed at 1150 (by, for example, the reward calculator 1060). The loss is then optimized and the weights updated at 1160.
[0056] In a combination of single stages, power can be represented as ^^ ൌ ^^^^^ ^^^^^⋯^ ^^^^and gain can be computed as ^^ ൌ ^^^^∗ ^^^^∗ … ∗ ^^^^, where ^^^^and ^^^^are from the sampled configurations based on the conditional distribution ^^^^. The reward of a combination of single stages can be computed asEquation 2 where ^^^^ ^^ ^^ ^^ ^^ ^^is the desired gain.
[0057] FIG.12 illustrates a method in accordance with this disclosure. In embodiments, the policy network 1010 is updated based on a running reward which guides exploration of the design space. At 1210, the DSE system is configured with certain initial parameters including the number of stages S, the number of sets in a stage P, the number of subgraphs in a set N, the number of configurations in a subgraph K, a number of iterations k and a mapping function T. The DSE system is initialized at line 1 with hyperparameters including the input I, the network (Netθ) input size, a target reward Rτ, and design weights W. In addition, the policy network type (Transformer, multi-layer perceptron, etc.), is configured.
[0058] At line 1, the neural network is initialized based on the constant input I and an initial set of network weights θ0. At line 2 in FIG.12, F = Net(θ ) represents the action distributions produced by the network (saved at line 22 of FIG.12).
[0059] The design sample generation and policy improvement cycle begin at line 3 of FIG. 12 with a first loop which runs for k iterations, taking n samples based on the conditional PDFs, generating n samples (e.g. sample 1130) based on the conditional distributions, and generating a new action distribution F’ that is different than F.FTRW-01421WO0 6000659PCT01 - 19 -
[0060] At line 6 a second loop begins such that for each of the n samples, candidate configurations ^^^^ൌ ^^^ ^^^^ ^^) are combined (line 7) from the number of stages S, the number of sets in a stage P, the number of subgraphs in a set N, the number of configurations in a subgraph K (K x N x S x P) based on S stages with S x P sets, the sets including N x S x P subgraphs.
[0061] Each candidate configuration is checked for validity against pre-defined constraints at line 8, and if valid, then the reward Rj for the candidate configuration is calculated (line 9), where the reward is the power as a sum from the collected configurations (e.g. sample 1130). The individual configuration reward Rj is added to a total reward R (line 10) and the best combination (sample) is updated to that combination with the best reward Rj.
[0062] After n samples are evaluated, an estimation of the mean of the reward is calculatedat line 14. The running reward ^^^^ is then updated based on the current running reward ^^^ andestimated mean Rb.
[0063] Next for each sample j, a surrogate advantage Ajis calculated (line 17) from the running reward which provides a measure of the quality of the sample: ^^^ ൌ ^^^ െ ^^^^Equation 3
[0064] This surrogate advantage ^^^is a departure from conventional RL algorithms which use a critic. In RL, a critic is a component of an agent's architecture which estimates the value or quality (the reward) of a given state. The primary function of the critic is to approximate the expected return or future cumulative reward that the agent can achieve starting from a particular state. In embodiments herein, the running reward is the exponential decay to the surrogate advantage ^^^which itself scales adjustments to the probability of a sampled design ξbthat led to the batch reward ^^^. This running reward, and the use of the surrogate advantage, eliminates the need for a value estimation network, and allows the network 1010 to resonate to an optimal state. When sampling a batch of possible combinations ^^ based on a set of conditional PDFs^^, which is the joint PDF ^^ ^^ generated by our policy network, we can have the reward set^^^^ .In order to update a running reward ^^^^ and compute the surrogate advantage ^^ for each member^^ of the batch ^^, we have the following evaluation of reward based on batch level,FTRW-01421WO0 6000659PCT01 - 20 -Equation 4
[0065] where ^^ and ^^ ^^൫^^^^ ൯ means the renew rate and the expectation of^^^^ in a batch ^^ ofsample. Finally, the surrogate advantage ^^ can be ^^ ൌ ^^ െ ^^^^, which ^^^^ is from the final step ^^equal to ^^^^ ^^. The surrogate advantage ^^ scales the adjustments to the probability of a sampledcombination ^^ that led to reward ^^.
[0066] Some combinations of single stages can be physically impossible. To discourage the generation of invalid combinations, the weight resonant network can recognize these “anomalous” cases by assigning an appropriate reward ^^^^. When the generative circuit is invalid, we assign an anomaly reward ^^^^, which can be written aswhere ^^^^is the rate for the batch average reward.
[0067] Power pjand p′jare computed for each combination (line 18) from sample Sj, distribution F and Fj), and the loss Lj calculated using the PPO given by equation 9 below.
[0068] The policy network Netθ is then updated (Netθ+1) (line 22, 660e) based on a policy gradient statistical risk Ltotal( ^^t) using an optimization algorithm (such as Adam, an algorithm for first-order gradient-based optimization of stochastic objective functions based on adaptive estimates of lower-order moments (D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” in 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, Y. Bengio and Y. LeCun, Eds., 2015.)) and an auto-differentiation tool supporting back-propagation such as TensorFlow, PyTorch, MxNet, JAX, etc. to produce πθ.
[0069] The policy gradient update algorithm thus uses the running reward ^^^ to reshape πθtoward the optimal sampling policy π*= πθ*=δ^ ^^^∗,The statistical risk Ltotal( ^^) isFTRW-01421WO0 6000659PCT01 - 21 - comprised of a conditional update loss, a surrogate conditional entropy loss and a Kullback- Leibler (KL) divergence KL, rev-divergence. The conditional loss is given by:Equation 6
[0070] The KL reverse —divergence regulates how rapidly a policy is allowed to change and uses the sum of all conditional probability’s KL, rev-divergence loss as a surrogate KL – regularizer which can regulate how rapidly the policy is allowed to change:Equation 7 In embodiments, the sum of all conditional probability’s KL is a rough estimate of the joint KL distribution and serves as a “surrogate” regularizer so that estimated conditional distributions do not change too quickly from one learning iteration to the next. We control exploration witha surrogate conditional entropyloss ^^ ^^^^^^. We can set ^^ ^^ ൌ ^^ ^^ ^^^^^ / ^^ ^^ ^^ ^^^ / ^^ ^^ ^^^^^ / ^^ ^^^tonormalize relative contributions of conditional entropies, where ^^^^is the cardinality of the ^^-th design choice dimension Finally, the surrogate conditional entropy loss is given by:Equation 8 Where ^^^ൌ ^^ ^^ ^^^^ௗ^ೌ^^ൗ ^^ ^^ ^^^^ௗ^^ and normalizes relative contributions of conditional entropy and di represents the cardinality of the i-th categorical design choice dimension. The entropy is a “surrogate” as it comprises a rough estimate of the joint entropy which may be as difficult to compute as enumerating all the possible combinations. Hence, this provides a minimal regularizer for some control over the extent of exploration. And thus, the final loss of our policy framework can be assembled as follows. We can minimize the final loss to update the parameter ^^ in our Theta-Resonance policy network.FTRW-01421WO0 6000659PCT01 - 22 - ^^^^^^ൌ ^^ ^^^^^^^ ^^ ^^ ^^^^^^^ ^^ ^^^^^^Equation 9
[0071] As the policy network produces sample configurations that approach optimal configurations, too great an entropy may adversely affect the policy into creating less optimal designs. Thus, in embodiments herein, an entropy penalty is designed to maintain entropy in the system high during the initial runs of the system and is adjusted to control the degree of exploration from an initial value to a minimum final value: ^^^,௧= max( ^^^^^, ^^^,௧ି^^ ^^ௗ^^^௬^ Equation 10 βe,0, βmin and rdecayare used as hyper-parameters used to adjust entropy penalty ^^^,௧and control the degree of exploration, starting from an initial value and decaying to a minimum final value.
[0072] Once an optimal generated circuit is created, it would be desirable to transfer the design knowledge from one circuit to another to reduce re-design overhead. One prior art technique uses a graph convolutional neural network (GCN) to learn based on circuit topology which has been designed. In this approach, transistors are used as vertices (or nodes) with associated features or attributes. Connections between the transistors are represented as edges - the connections or relationships between the vertices in the graph.
[0073] In embodiments, a two-level GCN-RL may be used to generate actions to transfer circuit design information across topologies and technologies. Unlike the prior art, the sub- graphed single stage circuits are evaluated by the GCN-RL. In embodiments, the aforementioned DSE system need not have generated the multistage circuit, and the two-level GCN-RL finds applications where any type of circuit information is to be transferred.
[0074] FIG.13 illustrates the use of a two-level, GCN-RL to generate actions for updating the width (W), length (L) and multiplexer (M) of the transistor, the resistance value (R) and the capacitance value (C). This allows for the transfer of information both to new circuit topologies as well as circuit (device) technologies. For example, where a suitable two-stage transimpedance amplifier is created using 180 nm transistor technology, a two level GCN-RLFTRW-01421WO0 6000659PCT01 - 23 - agent 1350 generates actions which can produce a two-stage transimpedance amplifier using 65 nm technology and / or a three-stage transimpedance amplifier with 180 nm technology. The GCN of a GCN-RL circuit designer 1310 aggregates the features of transistors from different single stages (subgraphs), which are combined as a circuit. FIG. 13 illustrates that for any given circuit, a simulator 1340 output allows creation of a state vector 1320 and action vector 1330. Bandwidth, gain and noise are provided for the circuit by the circuit simulator 1340 for the circuit. These are provided to the two level GCN-RL including a two-level actor and two- level critic, which generate actions used to transfer the configuration knowledge to different technologies and different topologies.
[0075] FIG.14 illustrates a method for transferring circuit design knowledge. At 1410, an embedding graph is generated of the existing circuit. At 1420, the circuit is analyzed using the two level GCN agent (described further with respect to FIG.15). At 1430 the circuit is updated by the two level agent, as described below, and at 1440 an embedding graph of the updated circuit is generated. At 1450, the embedding graph is converted to a net graph for consumption by a circuit simulator. At 1460, the circuit is analyzed by a circuit simulator to provide the bandwidth, gain and power of the updated circuit. A reward is generated at 1470 and the GCN critic is updated at 1495.
[0076] FIG.15 is a graphical depiction of the operation of the two-level GCN agent 1350. For each node (transistor) in two-level GCN module, the two-level GCN aggerates its neighbors within its subgraph. The two-level GCN then aggerates the node’s neighbors with embedding of aggregation across subgraphs. The two aggregations within subgraphs restrict the range of aggregation of nodes and consider the relationship of nodes within and across subgraphs. Finally, the two-level GCN-RL transfers knowledge between different technologies and different topologies.
[0077] Figure 15 illustrates a graph 1502 of a multistage circuit which includes two single stage subgraphs 1512 and 1514. The GCN agent 1350 evaluates each subgraph both internally and externally with respect to a subgraph of an adjacent single stage circuit.
[0078] FIG. 15 illustrates four types of nodes designated P, N. R and C. Each node is illustrated by type based on node fill or boarder thickness: P nodes – thin walled, N nodes— thick walled; R nodes – cross hatched fill; and C nodes – diagonal fill. All nodes in the graphFTRW-01421WO0 6000659PCT01 - 24 - can be encoded by actor 1515 and critic 1510. Node 4 (C node) is used as an example. To obtain the structure information into the embedding of each node, the features of the neighbors of each node are aggregated in two ways: an “inner” view and an “outer” view. The “inner” level of the subgraph considers all the nodes neighbors in subgraph 1514. For node 4, aggregation of one hop neighbors based on the inner level of subgraph is equal to sum of the embeddings of the node 1 (R), node 2 (N) and itself. For aggregation at the outer level of subgraph, (i.e. with respect to subgraph 1512,) node 4 only aggregates the embeddings of node 3 (N) and itself. During the aggregation phase, each node collects feature vectors from its neighbor nodes (inner or outer, as outlined above) which are then combined to form a new feature representation for the node. This aggregation process enables the GCN to capture the topological structure of the graph and to leverage the local neighborhood information. Based on the principle, when doing k-hop neighbors’ aggregation of a node, the node can aggregate its k-hop neighbors’ features within an inner subgraph and only aggregates its one-hop neighbors’ features across the subgraphs. Finally, with the restriction of the aggregations based on the views of inner subgraphs and outer subgraphs, we not only learn the relationship of transistors (nodes) inside and across single stages, but also alleviate over smoothing problem.
[0079] At 1515, encoding of the state by the actor, and at 1510 encoding of and generation of an action by the critic, are illustrated. At 1520, aggregation of the inner level of the subgraph for node 4 is illustrated, combining features of node 1 at 1530 and node 3 at 1532. At 1525, aggregation of the inner level of the subgraph for node 3 combining the features of node 5 at 1534 and node 6 at 1536 is illustrated.
[0080] Next, the outer level aggregation occurs between nodes 4 and node 3, at 1535, at different levels in the subgraph. Finally, the actor and critic calculate and action and a value for the action, respectively at 1540, which after calculating each node in this manner, creates a set of actions 1560 to be applied as a multistage circuit subgraph.
[0081] As such, the two-level GCN aggerates the node’s neighbors with embedding of aggregation across subgraphs. The two aggregations within subgraphs restrict the range of aggregation of nodes and consider the relationship of nodes within and across subgraphs.
[0082] As noted above, when transferring the knowledge between different technology using GCN-RL circuit designer, the GCN inside GCN-RL Circuit Designer aggregates theFTRW-01421WO0 6000659PCT01 - 25 - features of transistors from different single stages (subgraphs), which are combined as a circuit. However, the properties of transistors from different single stages should be different and simple aggregations of the features of transistors cannot reflect the inner and outer relationship of node (transistors) inside and between subgraphs (single stage circuits). Also, stacking several layers of GCN can cause over smoothing problem, which makes the features of all transistors become very similar, while some of them may in fact be very different. Finally, with the restriction of the aggregations based on the views of inner subgraphs and outer subgraphs, the system learns the relationship of transistors (nodes) inside and across single stages, and also alleviates the over smoothing problem.
[0083] Other GCN applications use the transistor as the basic elementary block to generate the circuit topology, which is evaluated by a spice-like circuit simulator. With the existing circuit topology, GCN-RL circuit designer leverages reinforcement learning (RL) to transfer the knowledge between different technologies and different topologies. Embedding of the generative circuit topology from two-level GCN can better represent the relationship between subgraphs and the features of subgraphs. Meanwhile, the two-level GCN alleviates the over smoothing problem. This is because embedding of transistors is restricted within each subgraph and the feature of transistors across subgraphs can be distinguished.
[0084] FIG.16 illustrates a network processing device 1600 which may comprise a server, or one of a number of networked processing devices for implementing the technology discussed herein. In embodiments, network processing device 1600 may contain multiple instances of a component, such as multiple processing units, processors, memories, interfaces, etc.
[0085] Device 1600 may comprise a central processing unit (CPU) 1610, a graphics processing unit (GPU) 1620, a memory 1625, a mass storage device 1630, a network interface 1635, and an I / O interface 1615 connected to a bus 1670. The I / O interface 1615 may be connected to any of a number of input / output components such as mice, keyboards, monitors and other audio and visual input / outputs. The bus 1670 may be one or more of any type of several bus architectures including a memory bus or memory controller, a peripheral bus, or the like. Network interface 1635 enables the network processing device to communicate over a network 1000 with other processing devices such as those described herein.FTRW-01421WO0 6000659PCT01 - 26 -
[0086] The mass storage device 1630 may comprise any type of storage device configured to store data, programs, and other information and to make the data, programs, and other information accessible via the bus 1670. The mass storage device 1630 may comprise, for example, one or more of a solid-state drive, hard disk drive, a magnetic disk drive, an optical disk drive, drive array or the like. The mass storage device 1630 includes instructions 1800 which when executed by the CPU (or processor) cause the processor to perform the methods described herein. The mass storage 1630 may include code in the form of application modules 1800 stored thereon, comprising instructions for causing the CPU to implement the components of the circuit design technology which are illustrated as present in memory 1625 in FIG.16.
[0087] The CPU 1610 may comprise any type of electronic data processor. Memory 1625 may comprise any type of system memory such as static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous DRAM (SDRAM), read-only memory (ROM), a combination thereof, or the like. In an embodiment, memory 1625 may include ROM for use at boot-up, and DRAM for program and data storage for use while executing programs. In embodiments, the memory 1625 is non-transitory. In one embodiment, the memory 1625 includes computer-readable instructions that are executed by the processor(s) 1610 and 1620 to implement embodiments of the disclosed technology.
[0088] In one embodiment, the memory 1625 includes instances of a weight resonant (theta) network 1645, a reward calculator 1650, a circuit evaluator 1655, a circuit simulator 1660 and a two-level GCN 1665. As noted above, stored versions of each of these components may be provided in mass storage 1630 in application modules 1800, although not illustrated in FIG.16. Storage 1630 includes the elemental circuit library 1640 described herein.
[0089] The data acquisition engine weight resonant network comprises code that when executed on the processors implement the weight resonant networks (320,1010) described herein. The reward calculator 1650 comprises code that when executed on the processors implement feedback agent 340, 1070 and 1150. The circuit evaluator 1655 comprises code that when executed on the processors implement steps 330, 1140 and 1210 for example. Circuit Simulator 1660 comprises code that when executed on the processors implement simulator 350. Two Level GCN 1665 comprises code that when executed on the processors implement the two level GCN of FIG.13.FTRW-01421WO0 6000659PCT01 - 27 -
[0090] For purposes of this document, reference in the specification to “an embodiment,” “one embodiment,” “some embodiments,” or “another embodiment” may be used to describe different embodiments or the same embodiment.
[0091] For the purposes of this document, a connection may be a direct connection or an indirect connection (e.g., via one or more other parts). In some cases, when an element is referred to as being connected or coupled to another element, the element may be directly connected to the other element or indirectly connected to the other element via intervening elements. When an element is referred to as being directly connected to another element, then there are no intervening elements between the element and the other element. Two devices are “in communication” if they are directly or indirectly connected so that they can communicate electronic signals between them.
[0092] Although the present disclosure has been described with reference to specific features and embodiments thereof, it is evident that various modifications and combinations can be made thereto without departing from the scope of the disclosure. The specification and drawings are, accordingly, to be regarded simply as an illustration of the disclosure as defined by the appended claims, and are contemplated to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the present disclosure.
[0093] The technology described herein can be implemented using hardware, software, or a combination of both hardware and software. The software used is stored on one or more of the processor readable storage devices described above to program one or more of the processors to perform the functions described herein. The processor readable storage devices can include computer readable media such as volatile and non-volatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer readable storage media and communication media. Computer readable storage media may be implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer readable storage media include 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 whichFTRW-01421WO0 6000659PCT01 - 28 - can be accessed by a computer. A computer readable medium or media does (do) not include propagated, modulated, or transitory signals.
[0094] Communication media typically embodies computer readable instructions, data structures, program modules or other data in a propagated, modulated, or transitory data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as RF and other wireless media. Combinations of any of the above are also included within the scope of computer readable media.
[0095] In alternative embodiments, some or all of the software can be replaced by dedicated hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), special purpose computers, etc. In one embodiment, software (stored on a storage device) implementing one or more embodiments is used to program one or more processors. The one or more processors can be in communication with one or more computer readable media / storage devices, peripherals and / or communication interfaces.
[0096] It is understood that the present subject matter may be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this subject matter will be thorough and complete and will fully convey the disclosure to those skilled in the art. Indeed, the subject matter is intended to cover alternatives, modifications, and equivalents of these embodiments, which are included within the scope and spirit of the subject matter as defined by the appended claims. Furthermore, in the following detailed description of the present subject matter, numerous specific details are set forth in order to provide a thorough understanding of the present subject matter. However, it will be clear to those of ordinary skill in the art that the present subject matter may be practiced without such specific details.FTRW-01421WO0 6000659PCT01 - 29 -
[0097] Aspects of the present disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable instruction execution apparatus, create a mechanism for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0098] The description of the present disclosure has been presented for purposes of illustration and description but is not intended to be exhaustive or limited to the disclosure in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. The aspects of the disclosure herein were chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure with various modifications as are suited to the particular use contemplated.
[0099] For purposes of this document, each process associated with the disclosed technology may be performed continuously and by one or more computing devices. Each step in a process may be performed by the same or different computing devices as those used in other steps, and each step need not necessarily be performed by a single computing device.
[0100] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
FTRW-01421WO0 6000659PCT01 - 30 - CLAIMS What is claimed is:
1. A computer implemented method, comprising: creating a library of single stage circuits, the library including a subgraph of each single stage circuit; classifying, in the library, each of the single stage circuits into at least one set, the classifying based on input and output connections of each single stage circuit; defining a number of stages for a multistage circuit; providing a target reward for the multistage circuit; generating sample configurations for the multistage circuit based on probability distributions created by a single stage, weight resonant network, wherein each sample configuration corresponds to a different configuration of single stage circuits comprising the number of stages in the multistage circuit; updating parameters of the weight resonant network based on feedback from a multistage circuit evaluator and circuit simulator; and generating a final multistage circuit based on the feedback using the weight resonant network.
2. The computer implemented method of claim 1 wherein the creating the library comprising: storing a lookup table recording one or more configurations of elemental devices of each single stage circuit; storing, for each configuration, at least a power and a gain for the configuration.
3. The computer implemented method of any of claims 1 through 2 wherein the method further includes outputting the sample configurations to the circuit evaluator and a circuit simulator, and wherein the circuit evaluator provides the feedback as a loss function to the weight resonant network.FTRW-01421WO0 6000659PCT01 - 31 - 4. The computer implemented method of claim 3 wherein the circuit simulator calculates a power and a gain for the sample configuration of the multistage circuit.
5. The computer implemented method of any of claims 1through 4 wherein the multistage circuit includes two or more stages, each stage selected from a different set.
6. The computer implemented method of any of claims 1 through 4 wherein each set includes a plurality of subgraphs.
7. The computer implemented method of any of claims 1 through 6 wherein each of the single stage circuits are amplifiers.
8. The computer implemented method of any of claims 1 through 7 wherein each lookup table includes a width, and length of a transistor.
9. The computer implemented method of any of claims 1 through 8 wherein each multistage circuit comprises at least two elemental devices.
10. The computer implemented method of claim 1 wherein the method further includes encoding the final multistage circuit as a graph for a graph convolutional network; and for each subgraph of a single stage circuit in the graph of the multistage circuit, aggregating features of all n-hop neighbor nodes and aggregating features of at least one node of a neighbor subgraph; generating actions based on both the aggregating and applying the actions to a different topology or elemental device technology.
11. The computer implemented method of claim 10 wherein each node comprises an elemental device of the multistage circuit.
15. An apparatus, comprising: a storage medium comprising computer instructions;FTRW-01421WO0 6000659PCT01 - 32 - one or more processors coupled to communicate with the storage medium, wherein the one or more processors execute the instructions to cause the apparatus to: create a library of single stage circuits, the library including a subgraph of each single stage circuit; classify, in the library, each of the single stage circuits into at least one set, the classifying based on input and output connections of each single stage circuit; define a number of stages for a multistage circuit; provide a target reward for the multistage circuit; generate sample configurations for the multistage circuit based on probability distributions created by a single stage, weight resonant network, wherein each sample configuration corresponds to a different configuration of single stage circuits comprising the number of stages in the multistage circuit; update parameters of the weight resonant network based on feedback from a multistage circuit evaluator and circuit simulator; and generate a final multistage circuit based on the feedback using the weight resonant network.
16. The apparatus of claim 15 wherein the one or more processors execute the instructions to create the library by: storing a lookup table recording one or more configurations of elemental devices of each single stage circuit; storing, for each configuration, at least a power and a gain for the configuration.
17. The apparatus of any of claims 15 through 16 wherein the wherein the one or more processors execute the instructions to output the sample configurations to the circuit evaluator and a circuit simulator, and wherein the circuit evaluator provides the feedback as a loss function to the weight resonant network.
18. The apparatus of claim 17 wherein the circuit simulator calculates a power and a gain for the sample configuration of the multistage circuit.FTRW-01421WO0 6000659PCT01 - 33 - 19. The apparatus of any of claims 15 through 18 wherein each multistage circuit includes two or more stages, each stage selected from a different set.
20. The apparatus of any of claims 15 through 19 wherein each set includes a plurality of subgraphs.
21. The apparatus of any of claims 15 through 20 wherein each of the single stage circuits are amplifiers.
22. The apparatus of any of claims 16 through 21 wherein each lookup table includes a width, and length of a transistor.
23. The apparatus of any of claims 15 through 22 wherein each multistage circuit comprises at least two elemental devices.
24. The apparatus of claim 15 wherein the one or more processors execute the instructions to encode the final multistage circuit as a graph for a graph convolutional network; and for each subgraph of a single stage circuit in the graph of the multistage circuit, aggregate features of all n-hop neighbor nodes and aggregating features of at least one node of a neighbor subgraph; generate actions based on both the aggregating and apply the actions to a different topology or elemental device technology.
25. The apparatus of claim 24 wherein each node comprises an elemental device of the multistage circuit.
26. A non-transitory computer-readable medium storing computer instructions generating circuits, that when executed by one or more processors, cause the one or more processors to perform the steps of: creating a library of single stage circuits, the library including a subgraph of each single stage circuit;FTRW-01421WO0 6000659PCT01 - 34 - classifying, in the library, each of the single stage circuits into at least one set, the classifying based on input and output connections of each single stage circuit; defining a number of stages for a multistage circuit; providing a target reward for the multistage circuit; generating sample configurations for the multistage circuit based on probability distributions created by a single stage, weight resonant network, wherein each sample configuration corresponds to a different configuration of single stage circuits comprising the number of stages in the multistage circuit; updating parameters of the weight resonant network based on feedback from a multistage circuit evaluator and circuit simulator; and generating a final multistage circuit based on the feedback using the weight resonant network.
27. The non-transitory computer-readable medium of claim 26 wherein wherein the creating the library comprising: storing a lookup table recording one or more configurations of elemental devices of each single stage circuit; storing, for each configuration, at least a power and a gain for the configuration.
28. The non-transitory computer-readable medium of any of claims 26 through 27 wherein the instructions cause the one or more processors to output the sample configurations to the circuit evaluator and a circuit simulator, and wherein the circuit evaluator provides the feedback as a loss function to the weight resonant network.
29. The non-transitory computer-readable medium of claim 28 wherein the circuit simulator calculates a power and a gain for the sample configuration of the multistage circuit.
30. The non-transitory computer-readable medium of any of claims 26 through 29 wherein multistage circuit includes two or more stages, each stage selected from a different set.
31. The non-transitory computer-readable medium of any of claims 26 through 30 wherein each set includes a plurality of subgraphs.FTRW-01421WO0 6000659PCT01 - 35 - 32. The non-transitory computer-readable medium of any of claims 26 through 31 wherein each of the single stage circuits are amplifiers.
33. The non-transitory computer-readable medium of any of claims 26 through 32 wherein each lookup table includes a width, and length of a transistor.
34. The non-transitory computer-readable medium of claims 26 through 33 wherein each multistage circuit comprises at least two elemental devices.
35. The non-transitory computer-readable medium of claim 26 further including encoding the final multistage circuit as a graph for a graph convolutional network; and for each subgraph of a single stage circuit in the graph of the multistage circuit, aggregating features of all n-hop neighbor nodes and aggregating features of at least one node of a neighbor subgraph; generating actions based on both the aggregating and applying the actions to a different topology or elemental device technology.
36. The non-transitory computer-readable medium of claim 35 wherein each node comprises an elemental device of the multistage circuit.
37. A computer implemented method, comprising: creating a library of single stage amplifier circuits, the library including, for each single stage circuit, a subgraph of the circuit and a lookup table recording one or more configurations of elemental devices of the circuit; classifying, in the library, each of the single stage circuits into at least one set, the classifying based on input and output connections of the single stage amplifier circuit; defining a number of stages for a multistage amplifier circuit; providing a target power and a target gain for a multistage amplifier circuit; generating sample configurations for the multistage amplifier circuit based on probability distributions created by a single stage, weight resonant network, wherein eachFTRW-01421WO0 6000659PCT01 - 36 - sample configuration corresponds to a different configuration of the number of stages in the single stage circuit; outputting the sample configurations to an evaluator and a simulator; updating parameters of the weight resonant network based on feedback from the evaluator and simulator; and generating a final multistage amplifier circuit.
38. The computer implemented method of claim 37 wherein the method further includes encoding the final multistage amplifier circuit as a graph for a graph convolutional network; for each subgraph of a single stage amplifier circuit in the graph of the final multistage amplifier circuit, aggregating features of all n-hop neighbor nodes and aggregating features of at least one node of a neighbor subgraph; generating actions based on both the aggregating and applying the actions to a different topology or elemental device technology.
Citation Information
Patent Citations
Parallel processing using a memory-based communication mechanism
WO2023121656A1
Single step design space exploration system
WO2023212751A2
Cited By
Vehicle transportation data acquisition method and system based on block chain
CN120547207A
Multi-parameter collaborative optimization method for MOSFET (Metal-Oxide-Semiconductor Field Effect Transistor) driving circuit based on deep reinforcement learning
CN121766241A
