Abstract:
An innovative realization of computer hardware, software and firmware comprising a multiprocessor system wherein at least one processor can be configured to have a fixed instruction set and one or more processors can be statically or dynamically configured to implement a plurality of processor states in a plurality of technologies. The processor states may be instructions sets for the processors. The technologies may include programmable logic arrays.

Description:
CROSS REFERENCE TO RELATED APPLICATION 
       [0001]    The present application is a divisional of U.S. patent application Ser. No. 12/860,829 filed 20 Aug. 2010 which is a continuation of U.S. patent application Ser. No. 11/865,596 filed 1 Oct. 2007, which is a divisional of U.S. Pat. No. 7,278,122, U.S. patent application Ser. No. 11/159,762 filed 23 Jun. 2005, which claims the benefits of U.S. provisional application No. 60/582,590 filed 24 Jun. 2004, the contents of all of the above are hereby incorporated by reference in their entirety. 
     
    
     FIELD OF INVENTION 
       [0002]    The present invention relates to the field of hardware, software and integrated hardware/software languages and tools that support the translation from design intent to realized hardware, software or integrated hardware/software products. 
       BACKGROUND OF THE INVENTION 
       [0003]    Prior art for tools used in the design of hardware, software or combined hardware/software systems embed specific logic and physical technology directly in the tool or in designs using the tool. This increases the human effort required to translate a design into a optimized realization in hardware and/or software. The present invention teaches related mechanisms for augmenting hardware description languages or programming languages so that logic and physical technology may be added without intrinsic changes to the base tool. The added technologies may be used to manually or automatically create more optimal realization in hardware and/or software. 
         [0004]    Subsequent discussion will distinguish specifics by which the present invention improves on prior art. 
       BRIEF SUMMARY OF THE INVENTION 
       [0005]    The invention disclosed herein provides for the use of technology specifications defined external to the hardware/software tool (hereafter tool) in the translation of a design into a pre-synthesis behavioral analysis, compilation of a design partition into executables for embedded processors, synthesis into net-lists (comprising cell instances and connecting nets), and post compilation analysis/optimization using simulation and formal methods. 
         [0006]    This invention consists of two inter-related parts. First, several innovative augmentations to conventional hardware description languages or programming languages distinctly specify design intent, logic technology and physical technology (hereafter simple referred to as technology). These language augmentations serve to externally extend a tool to innovatively utilize and optimize using technologies which are not embedded within the design tool. Second, an innovative tool provides for incorporation of externally defined logic and physical technology specifications during four inter-related modes of operation: (1) behavioral analysis, (2) processor compilation (3) logic synthesis and (4) verification postsynthesis. This process yields a potentially optimized realization of the design intent using a combination of processor executables (configuration of one or more memory cells). reconfigurable logic arrays (configuration embodied in dynamic or static configuration memory cell values), manufactured metalization layers within an Application Specific Integrated Circuit (ASIC) or unconstrained configuration of a custom integrated circuit via well-known semiconductor fabrication processes. 
       Language Augmentation 
       [0007]    Conventional hardware description languages (HDL) or programming languages may be augmented in several innovative ways. These innovations improve on prior art by (1) more compactly and thus efficiently representing design intent (2) more explicitly separating design intent from specific logic and physical technologies which may be used to implement the design intent. Greater separation of design intent from the specification of logical or physical technology used to implement the intent improves on prior art by (1) requiring less textual description to represent design intent (less to be written and maintained), (2) by avoiding over-constraining specifications of the design intent (such as by embedding specifics of particular logic or physical technology) and (3) by enabling a hardware/software design tool to (3a) analyze and either manually or automatically (3b) select and (3c) implement particular logic or physical technology so as to more optimally express the design intent. 
       Relationship Between a Design and Implementation Technologies 
       [0008]    To better enable the tool to select and configure specific logic and physical technologies to a design, the design intent must express (1) the desired algorithmic state (2) algorithmic operations on the state (3) optimization objectives expressed in terms of state and transformations. For example a data compression design make be described in terms of the state required to represent the incoming data stream, the mapping between prior segments of the input stream and the token designed to designate the segment, the output data stream, operations such as compress and decompress and optimization and optimization objectives such as the required time latency bounds between input and output streams, the number of tokens which must be processed per unit time or the allowed probability of decompression error. 
         [0009]    A design intent&#39;s state, operations and objectives need not be discrete. For example the state may include quantities which are continuous in value, time and even frequency. Operations on such state may be described as relationships, such as the voltage across a (resistive) element must always be the current through the element multiplied by the resistance. 
         [0010]    Logic and physical technologies describe known techniques for expressing the intent, generally in progressively more concrete terms. For example, a logical technology may describe a means for embodying state using a traditional clocked logic technology, as an asynchronous micro-pipeline technology or using various kinds of spatial or temporal redundancy. Examples of physical technology include a specific set of cell designs and routing options which may be provided by a specific FPGA or ASIC technology. 
         [0011]    The distinction between logic and physical technologies is primarily for clarity of presentation and is not intrinsic to what is taught herein; henceforth we will refer to simply to technologies when referring to characteristics applicable to either logical or physical technologies. Technologies may be used constructively. For example, a (logic) technology embodying parity encoding may in turn be implemented using an asynchronous micropipeline (logic) technology which in turn utilizes a specific (physical) ASIC library. These constructive technology layers generally provide a multitude of alternatives for the expression of design intent. A design may be realized through some combinations of manual and automatic selection of technologies to optimally express design objectives. 
       Technology Representation Using Type Systems 
       [0012]    The present invention uses type systems, well-known in the computer science and mathematical literature, to correctly organize technologies and their complex interrelationships. Type systems consist of a domain of values representing state and operators representing operations on the state. For example, a type might represent the domain of integer (discrete) values from 0 to 7. Operators may then be defined to initialize, add, subtract and multiply values of the type. Conversion operators may convert from other types into this type or from this type into other types. 
         [0013]    In type systems, subtypes specialize a type. For example, a subtype of the integer type used in the example above may be restricted to the domain from 0 to 3 but may acquire additional operators (such as division) and redefine operators (such as redefining the addition of 3 and 1 to denote an error condition for values of the subtype). 
         [0014]    Both design intent and definitions of a type system (representing a technology) may be enclosed within blocks containing parameters. These parameters may be of fixed value (generic values), locally static value (definite at the time the blocks are expanded), dynamic value (definite only during evaluation, changing over time), fixed type (generic types), locally static types or dynamic types. For example, a block defining a fault tolerant adder implementation may be defined in terms of a parametric type. This enables the fault tolerant adder implementation to be applied to the addition of many different argument types and subtypes. For example, such an adder block with locally static types might utilize the C++ template construct or Ada&#39;s type generics. 
         [0015]    Conversely, types and subtypes may be declared or defined within a block containing parameters. For example, parameter values may define the limits of an integer (discrete) domain. Parametric types, for example, may define the element type or index domain of an array. Use of parametric values and types in the definition of a type which represents a technology facilitates development of constructive systems in which one logic may be defined in terms of other logic. For example a particular technology for asynchronous logic may thus be employed using a variety of fault tolerant logic and physical technologies (such as specific ASIC families). Such parametric, constructive type systems representing logic greatly increase the range of implementation and realization options available to address design objectives given a fixed level of effort specifying technologies. 
         [0016]    When encountering an operator or function within a design there may be multiple possible interpretations of the operator. Within type system theory, such operators or functions are said to be overloaded. The hardware/software tool must disambiguate among overloading alternatives to ultimately select a unique operator implementation using an overload resolution. Overload resolution conventionally considers the set of visible operators, the types of all operands, and the return type. As operators may appear with arbitrarily nested expressions, complex statements and design blocks using parameterized types, conventional overload resolution algorithms can be complex but are well-known in the compiler literature. Herein we teach the additional constraint on overload resolution using comparative optimality among otherwise visible operators based on objectives specified in the design intent. For example, two different implementations of an addition operator may be visible and satisfy the argument and return types. One has a high probability of producing a correct result but results in a large area and time penalty. The other operator has a lower probability of producing a correct result but is smaller and faster. Based on the governing objectives for reliability, area and latency the designer or hardware/software design tool must disambiguate between the candidate operators at a particular point of use. 
         [0017]    Attributes may be associated with types, values, state and operators. Attributes evaluate to values used to configure and select among overloadings. For example, an addition operator may have attributes specifying the area, latency, reliability or other properties of the operator. These attributes may trivially be literals (such as 5 nanoseconds). More commonly they are complex expressions taking into account the actual types and subtypes used to construct the type(s) associated with the operator. Ideally the attributes are independent of the actual values used within the type&#39;s domain (simplifying compilation or synthesis), however with somewhat greater complexity in the hardware/software tool and resulting hardware realization the attribute values may be dynamic. The resulting hardware may resolve to more than one operator overloading depending on the time-varying value. Division by an integer divisor is a common example; if the divisor is a power of the representation base then the division operator can use a fast shift implementation otherwise it may use a more complex reciprocation implementation. Such optimization techniques are well known to logic and physical technology designers; the innovation taught here is a means to capture these alternatives within a design-independent representation and corresponding hardware/software tool. 
         [0018]    Type (and subtype) definitions may usefully be embodied in the package or library mechanisms frequently supplied by HDL or programming languages to structure visibility. Language-specific visibility mechanisms may globally or locally make declarations denoting a type or subtype (by name) visible inside a specific region of a design. If the visibility rules and design make only one type or subtype visible fitting all of the overloading criteria, the particular technology used to embody the local design intent is manually bound by the designer; the designer will get exactly what is denoted by visibility. Alternatively the hardware/software design tool may either bring types into visibility (automatic binding of technology to design) or may disambiguate between various overloading alternatives to optimize a design around implicit or explicit design objectives. 
         [0019]    With the above, design-independent representation of logic and physical technology in mind, we will teach a variety of specific, novel language mechanisms (invention) providing for:
       Technology-specific representation of implied state   Referencing of implied objects   Assignment overloading   Sub-Reference overloading   Other operator overloading   Literal overloading   Convergence   Persistence   Type and structural binding   Specifying multiple and general purpose processors       
 
         [0030]    The next major section will explain how these language mechanisms may be used by a tool (also part of the invention) to efficiently translate design intent into an optimized realization. 
       Technology-Specific Representation of Implied State 
       [0031]    Many useful technologies augment the behavioral data type representation with implicit, technology-specific data. Examples include the addition of a separable error detection and correction code (such as ECC), handshake signals used in many forms of asynchronous logic design and signals used for debug or performance profiling but not intended to be part of the realized end product. 
         [0032]    In the prior art, such signals are either implicitly incorporated by a design tool customized for specific logic technologies (perhaps as a preprocessing step) or are explicitly denoted in the design. Implicit incorporation within a tool greatly limits the ability of third parties to add new and valuable technologies to the range of techniques the tool supports. Explicit denotation, such as additional signal declarations, increases the design and life-cycle support cost based on the additional code volume and makes it difficult and expensive to consider the local and global advantages of applying specific technologies not initially contemplated by the designer or to insert state solely during a debug or performance analysis phase. Such constraints are undesirable. 
         [0033]    In the present invention, one or more implied identifier, implied subtype and optional implied initializes may be associated with a type or subtype definition. When an object of such type or subtype is created, implied objects declared within a limited visibility scope, of the implied identifier, implied subtype and implied initializes are also created. 
       Referencing of Implied Objects 
       [0034]    Implied objects are defined within a name space unique to each explicitly declared object having a subtype with implied identifier, subtype and optional initialize tuples. Such implied objects may be referenced by some means that designates both the explicitly declared object and one or more implied tuples (in hierarchical order). 
         [0035]    In general the full range of operators defined for a given type must be overloaded to handle implied objects appropriately. In addition, indexing, assignment and other capabilities must often be overloaded, even if the base language does not provide for their overloading. 
       Assignment Overloading 
       [0036]    The behavior of signal and variable assignment operators or statements (depending on the base language) must generally be capable of being overloaded based on the base type being assigned and the kind of the target and value. The overloaded signal assignment is executed after evaluating the value in the waveform element and before scheduling defined by the assignment target&#39;s implied semantics. 
       Sub-Reference Overloading 
       [0037]    Most HDL and programming languages provide for reference to zero or more components within an object of aggregate type. For example a program or design may refer to the first element or elements two through five of an array. Such subreferences may appear on either the left (lvaI) or right (rval) of a statement. Such subreferences often must be overloaded by some means to achieve the intended technology specification objectives. In the absence of overloading the normal subreference rules apply as defined by the base language. Other Operator Overloading 
         [0038]    In order to fully define a technology&#39;s semantics through a new type, generally all other operators which may be used in a design must be overloaded for the technology&#39;s type. When an operator is referenced in a design but not overloaded either an error may be reported or the default behavior defined by the base language may be used. 
       Literal Overloading 
       [0039]    Some technologies must overload the means by which literal values are introduced into a design. For example, using clocked logic a suitable encoding of a literal value may either be applied directly to the inputs of an adder whereas an adder defined using an asynchronous protocol will often require an implicit handshake to avoid deadlock. 
       Convergence 
       [0040]    Processes, process equivalents and threads of control generally begin at a well-defined statement (entry or resume point) and execute until suspended, joined or complete. Typically such well-defined statements are the first statement in a body or the statement immediately after suspending on time or a condition. Some technologies require that a process or thread execute from the same or distinct entry points more than once until a convergence criteria is met. 
         [0041]    Examples of such convergence requirements include “pass-gates” and “zero-delay” handshaking within an asynchronous logic technology. When the control terminal of a passgate is enabled, the left and right sides of the gate are “short circuited” and must reach a convergent state. In an asynchronous logic technology signals may flow forward and handshakes backward within a logic cone until either the circuit reaches a steady state or the output is sampled. 
         [0042]    Some means may be provided for iterating under program control between entry/resume points and suspend points within a process, process-equivalent or thread. After resuming, if a process executes a sequential specific postponed statement before executing a wait statement, the enclosing process, process-equivalent or thread is “marked”. Subsequently, when reaching the next explicit or implied wait statement, the process immediately continues, without waiting, by executing beginning at the sequential statement at which it previously entered or resumed. 
         [0043]    Some means must be provided by which statements executed dynamically within a process, process equivalent or thread can determine if the execution is within an initial or a postponed re-iteration of the same statement. This mechanism must be accessible within subprograms (functions and procedures) called dynamically within the process, process equivalent or thread. 
       Persistence 
       [0044]    Persistent state retains information even when “input” changes state. Common structures implementing persistent state include edge-trigger registers, level sensitive latches, addressable register files, variables, static memory, dynamic (heap) memory and even sequential access storage (such as hard drive systems). In the prior art, such as IEEE Standard 1076.6 (IEEE Standard for VHDL Register Transfer Level (RTL) Synthesis), such persistent state is represented in a design specification by HDL specification code which defines specific behavior of the persistent state, such as the edge triggered latch. 
         [0000]    
       
         
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
           
               
                   
                   
               
             
             
               
                   
                 Process (clock) 
               
               
                   
                 Begin 
               
             
          
           
               
                   
                 If (reset = 1) then 
               
             
          
           
               
                   
                 Q &lt; = ‘1’ ; 
               
             
          
           
               
                   
                 End if; 
               
               
                   
                 If (clock’ event and clock = ‘l’ ) then 
               
             
          
           
               
                   
                 Q &lt; = D; 
               
             
          
           
               
                   
                 End if; 
               
             
          
           
               
                   
                 End; 
               
               
                   
                   
               
             
          
         
       
     
         [0045]    Defining the specific behavior of persistent state using such prior art has two significant disadvantages. First the specific behavior occupies significant code volume which must be generated, maintained and processed by each tool handling the design. More significantly, optimization of the persistent state requires the identification of each applicable instance and suitable modification. The fragility and effort associated makes it more difficult to retrofit and combine various technologies in order to optimize a design toward evolving design goals. 
         [0046]    Disadvantages of the prior art are remedied by the present invention in which a conceptual paradigm for the desired persistence is associated with a type or subtype. The conceptual paradigm may be interpreted differently based on the actual type definition visible when an object of the persistent type is declared. The conceptual persistence denoted in the type or subtype indication takes the form of a subprogram call. Parameters supplied within the call may override aspects of the persistence such as the timing domain, reset value or even passivation using a disk or other quasiperpetual storage. 
         [0047]    Third parties may provide various technologies, perhaps embodied in packages such as logic above. Examples of such logic technologies include persistent state with test or diagnostic scan chains (such as IEEE Standard 1149 JTAG), fault tolerance (such as parity, replication, modified Hamming (EGG) or more complex encodings), asynchronous logic (wherein the persistence subprogram explicitly or implicitly includes handshaking/acknowledgement or other protocols), hardware profiling information (wherein the persistence subprogram includes counters or connections to more global data gathering resources). By locally modifying object subtype or visibility, either a human or (more significantly) the tool may transiently analyze the behavior resulting from use of various bindings in order to most optimally satisfy specific goals set by an external agent (designer or tool). Examples of such goals include minimum power, minimum latency, maximum reliability or enhanced test observability. 
         [0048]    The latest programming and hardware description languages are adding powerful mechanisms for type generics or parameterization, such as ANSI C++ (templates), Accelera&#39;s System Verilog and IEEE&#39;s VHDL-200x effort. When combined with type generics or parameters, the innovative embodiment of persistence within subtypes taught above enables definition of structural components which can transparently be combined with many different kinds of persistence. For example, this allows definition of a Fourier transform class (0++ programming oriented example) or a specialized arithmetic logic module or entity/architecture (hardware-oriented example), then creating instances of such classes, modules or other structural units using forms of persistence which were completely unknown when the original class or module was designed. These combinations are particularly powerful when automatically permuted by a tool capable of experimental permutation and analysis searching to optimize for specific goals, such as the one taught here. 
       Type and Structural Binding 
       [0049]    To maximize design efficiency, behavioral design specifications often use types distinct from the types actually used in code compiled for a multi-purpose or general purpose processor or synthesized logic. More generally the data types used in a behavioral specification may map into many different implementation technology types depending on the particular logic technologies used by the hardware/software design tool in order to maximize goals. For example a behavioral integer ranging from −127 to +128 may be compiled into a larger, signed two&#39;s complement provided by a general purpose processor, into an eight bit signed two&#39;s complement for a multi-purpose processor, into nine bits of sign and magnitude or even into 256 distinct, mutually exclusive wires (such as used by some asynchronous logic technologies). 
         [0050]    In prior art, the mapping between types uses in the design and those used in compiled code or synthesis implementations are either determined for a fixed set of types when the tool was created or are configurable by annotating the source code (such as a C++ compiler&#39;s long int data type or System Verilog&#39;s shortint) with a predefined set of data types. Neither approach accommodates arbitrary mappings between user-defined data types. This limitation both constraints the designer&#39;s ability to choose arbitrary data types best suited for the design task and for logic and physical technology developers to choose unusual implementation data types conferring desirable optimization properties. 
         [0051]    The innovative step taught here augments a user-defined type or subtype by a clause explicitly denoting another, previously defined type used to implement the type being declared during the synthesis of objects having the specified base type or a derived subtype. 
         [0052]    User-defined data types may be recursively mapped to other user-defined data types, however before synthesis can complete the recursion of operator subprograms must terminate in an operator subprogram that contains a clause into a structural cell implementing the operator subprogram&#39;s functionality or parameters to a dynamic cell generator. 
       Specifying Multi-Purpose and General Purpose Processors 
       [0053]    In order to generate binary executables for multi-purpose or general purpose processors, specifications for the processor&#39;s instruction set architecture and optimization opportunities must be embodied within the code generator (tool&#39;s second operating mode) in sufficient detail and with sufficient accuracy to generate correct and ideally optimized executables. 
         [0054]    Prior art either directly embodies specifics of a particular instruction set architecture within the tool or relies on parsing and automated generation using a machine description file. In the first form, common with many production quality compilers, the processor specification must be altered by the compiler developers or maintainers to reflect new or even unanticipated processor modifications by the tool developers then recompiled; third party modifications are not feasible except through time consuming and impractical assembly code modification. In the second form, represented by the GNU compilers and their derivatives, a set of instruction set architecture specifications are processed to yield intermediate code (C), which is then compiled and linked to retarget a compiler. In the later case third parties can and often do modify the machine description, however the only means of debugging and testing the compiler is to compile and run source code in a regression mode; debug of the results is an expensive, manually intensive effort. This approach either requires availability of a suitable target processor or a separately developed simulation of the processor. Frequently this delays availability of a code generator. In the case of processor instruction set architectures which may be dynamically modified by adding or deleting unanticipated instructions, development of a code generator is difficult or infeasible. 
         [0055]    The innovative step taught in this patent application uses a stylized design for the target processor, specified using a standard or augmented hardware description language, to (1) simulate a processor, (2) generate an optimized code generator and (3) synthesize a processor implementation from the same development effort. Using a single specification for all three helps to insure that a rapidly evolving instruction set will have a consistent simulation, compiler and reference implementation from a single effort. Furthermore, since the machine description language, a hardware description language, is already familiar to the designers, the weeks or months of learning commonly experienced with compiler-specific machine descriptions in the prior art are avoided. When a reference processor implementation needs to be simplified to meet size, power or other requirements under the constraints of a limited usage, the customization process can be almost fully automated via an integrated process consisting of (1) code profiling on a full reference processor, (2) elimination of state and instructions in the target processor which remain unused or underutilized (3) generation of a new processor simulation, compiler and implementation. When a compiler is needed for an existing processor architecture, the HDL-based specification can be validated by executing known-good code on a simulation derived from the specification creating a code generator. When the simulation clears this regression, a compiler and implementation can be automatically generated with high probability of initial correctness. This feature is particularly important when creating a new model of an existing processor architecture (for which compatibility must be maintained). 
       Tool Operating Modes Using Language Augmentation 
       [0056]    Drawing 1 illustrates the overall flow diagram for four operating modes of the embodiments described herein. Critically, both designs ( 1 ) and technology specifications ( 2 ) can be supplied by end users or other third parties as HDL or programming language source code using augmentation of existing programming or hardware description languages taught above. An intermediate library system ( 4 ) may be used to retain technology information for reasons of performance or intellectual property protection. During any of the four operating modes the design is brought into a working database ( 5 ) containing an intermediate form of the design and available technologies. Any of the four operating modes ( 6 ,  7 ,  8  and  9 ) may be practiced on the database ( 5 ), yielding hardware configuration and software memory configuration data used to produce products meeting the design specification ( 1 ). 
       Model Verification &amp; Optimization Operating Mode 
       [0057]    The model verification and optimization operating mode enables behavioral analysis of a design using available logic technology specifications. Various logic technologies may be applied to a design by altering the types associated with objects and statements within the intermediate form. The resulting type hierarchies are then reevaluated, generally leading to new overload resolutions and thus operator implementations. The type hierarchy must always be resolved down to either a fully defined behavioral or structural view for simulation or analysis within a design partition. The new overload resolutions generally alter the evaluation of attributes within both the design objectives and the utilized technology, leading to an alteration of each analysis view (such as reliability, power, timing, etc). 
         [0058]    Alternatively the tool may conditionally alter bindings within the design using a search process to better meet the design objectives. Multivariate search algorithms are well known in the literature including hill climbing starting with the original bindings, genetic algorithms and other techniques. At each cycle of the automated optimization, a set of consistent type bindings must be achieved, then the resulting attribute values evaluated to achieve a measurement of the quality achieved by a given type binding. Some type bindings may not progress beyond initial type satisfaction requirements, for example a combination of type bindings for which no type conversion is defined. A collection of type bindings represents a particular application of available logic technologies to the original or derived design specification. Derived design specification result for a partial application of type bindings, such as the application of fault tolerance to a binding that already uses a type binding representing a particular asynchronous logic technology. 
       Embedded Executable Partitioning and Compilation Mode 
       [0059]    Partitions of a design may be bound to one or more embedded or general purpose processors. For simulation, the entire design must be bound to available, general purpose processors. For emulation, segments of the design may be bound. Even in the final hardware configuration and software memory configuration output (Drawing 1, 10) processor binaries must be compiled for use by processors embedded in the final design. 
         [0060]    Critically, the present invention uses an executable model of each target processor architecture (or parameterized for architecture variants) to formally specify the architecture. This allows end users and third parties to create models of new or variant architectures, then simultaneously generate an executable model (for simulation and formal methods analysis even if actual hardware does not exist), a complete code generator, a disassembler (used for debug) and a synthesizable processor implementation suitable for transformation using various logic and physical technologies to better optimize for design objectives. 
       Logic Partitioning, Synthesis &amp; Optimization Mode 
       [0061]    The logic partitioning, synthesis and optimization operating mode utilizes search mechanisms functionally identical to the model verification and optimization mode except that all type hierarchy bindings must be expressed in terms of terminal structural components such as a processor, FPGA logic element or ASIC element. Bindings which do not have such terminals are non-viable; no analysis of attributes is useful. It is important to note that such non-viable bindings may result from either a manual or automated search process. 
       Post-Synthesis Verification Mode 
       [0062]    Post-synthesis verification modes evaluate the behavior and attribute values taking into account both logic technology and (optionally) physical technology bindings, however the underlying mechanisms are identical to those used earlier. The attribute evaluations are qualitatively more complex as the type and thus operator overloading hierarchies are generally deeper. For further optimization at greater computational cost, multiple logic, synthesis and optimization partitions and bindings may be evaluated and used to prune and direct higher level search trees. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0063]      FIG. 1  illustrates an overall flow diagram for invention&#39;s four operating modes. Critically, both designs ( 1 ) and technology specifications ( 2 ) can be supplied by end users or other third parties as HDL or programming language source code. An intermediate library system may ( 4 ) may be used to retain technology information for reasons of performance or intellectual property protection. During any of the four operating modes the design is brought into a working database ( 5 ) containing an intermediate form of the design and available technologies. Any of the four operating modes ( 6 ,  7 ,  8  and  9 ) may be practiced on the database ( 5 ), yielding hardware configuration and software memory configuration data used to produce products meeting the design specification ( 1 ). 
           [0064]      FIG. 2  illustrates that the user interface consists of four collections of functionality, DesignViews ( 15 ), ModelViews ( 16 ), ImplementationViews ( 17 ) and PhysicalViews ( 18 ). DesignViews provides the graphical manifestation of 3, 4 and 5. ModelViews provides the graphical manifestation of 6. Implementation Views provides the graphical manifestation of 7 and 8. Physical Views provides the graphical manifestation of 9. Each of the four collections may have multiple instances. Tabs provide for actions and examination of distinct views such as the technology binding, simulation, power analysis, reliability analysis and other characteristics. 
           [0065]      FIG. 3  illustrates that the specification for a processor begins with a behavioral, HDL representation of the processor architecture ( 20 ). The HDL is analyzed ( 21 ) using ( 3 ) into an intermediate representation ( 22 ) contained in 4 or 5. A code generator ( 23 ) uses the model to create an intermediate representation (generally in a programming language) representing the compiler backend specific to the processor described in the HDL model. This backend must be compiled and linked (statically or dynamically) with the remainder of the design tool, yielding a complete design tool with the capability to generate code for the input processor specification. 
           [0066]      FIG. 4  illustrates that details of 23, shown as 30, extract the processor&#39;s intermediate representation ( 22 ) into a processor state such as the architected processor registers ( 31 ), the instruction decode ( 32 ) and the instruction execution ( 33 ). In the Code Generator and Optimizer ( 24 ), the processor state ( 31 ) is converted into types used by the resulting code generator, enumerations of the processor&#39;s state (such as an enumeration for each register) and appropriate type conversions (such as from a full integer to a limited range integer used in an instruction&#39;s immediate field). The instruction decode segment of the processor specification converts in an in line assembler ( 35 ) and disassembler by reversing the sense of nested case statements. The entity/architecture or subprograms defining algorithmically how to execute each instruction or instruction family ( 33 ) convert into operator templates and optimizations specific to particular processors using well-known template-based code generation algorithms and other context-specific code generation optimizations. 
           [0067]      FIG. 5  illustrates that based on the technologies specified in the database ( 5 ), ModelView presents a menu of available technologies (generally mapped one to one with library units in the database resulting from analysis of technology specifications). Consistently in this and subsequent views, the color of blocks ( 40 ), statements and objects ( 41 ) denotes the technologies to which the block, statement and objects are bound for behavioral analysis. The compiler initially assigns technology bindings so as to gradually optimize the objectives specified in the design specification ( 1 ) through transformations in the interpretation of types visible in each elaborated instance of the block, statement or object. Conventional type conversion functions provide for interfaces between distinct types (such as converting parity logic to nonparity logic. The user may over-ride the automatic bindings by dragging and dropping technologies (actually type systems) from the palette ( 42 ) to the blocks ( 40 ), statements or objects ( 41 ) so as to force specific bindings based on designer bias or results from model view analysis. More detailed popups containing localized results of analysis are available via a right click pull down menu, allowing for presentation of tab-specific analysis results beyond the immediate values shown in the value pane  41 . 
           [0068]      FIGS. 6-1  and  6 - 2  illustrate that right click menus associated with each object in the graphical interface provide analytic visibility into other aspects of the design, such as an interactive debugger view into a process, process equivalent or thread. The debugger provides for more detailed visibility and interaction (such as time, value or statement breakpoints). 
           [0069]      FIGS. 7-1  through  7 - 3  illustrate that blocks, statements (concurrent, sequential and simultaneous) may be selected via the hierarchical block pane ( 52 ), the object pane ( 53 ), containing objects in the block selected by  52  or a source code pane displaying source code for the elaborated block shown in pane  54  (within the Design View). For programming languages, blocks may take the form of subprogram calls, template instances or sequential control such as a loop. 
           [0070]      FIG. 8  illustrates that multivariate algorithms for incrementally solving constraints, such as are presented by the combination of evaluated attribute values, design objectives and actions via the graphical user interfaces ( 15 ,  16 ,  17  and  18 ) are well known to the designers of large scale analog simulators and are employed by the current invention with little change. Often the combined set of constraints can only be satisfied within a tolerance. To graphically depict the difference between objective and analysis result values, each icon is capable of split colors (such as  53 ). Both colors are drawn from the current tab&#39;s palette. One portion of the icon color represents the tab-specific objective, the other part of the icon represents the current result of analysis. This may be generalized to icons with more than two color bands. As objective and measured values converge using the internal (analog) solver, the icon will assume a continuous color. Icons associated with a block are banded to show the disparity of values associated with all blocks, statements and objects contained within the block (summary of disparity between objective and actual analysis). 
           [0071]      FIG. 9  illustrates that within the implementation view, another technology tab allows both observing and manually binding (constraining) blocks, statements and objects to particular physical technologies, again denoted by available (visible) types in the database, shown graphically on the physical technology palette ( 59 ). Analogous to the operation of binding in Drawing 5 of logical technology, physical technologies may be automatically selected based on evaluation of attribute values against objectives specified as (HDL) attributes within the design. 
           [0072]      FIG. 10  illustrates that analogous to the analysis of property-specific tabs in ModelView, the color of blocks, statements and icons in each of the analytic views of Implementation View denotes the objective and analyzed constraints (such as the reliability view shown in Drawing 10). The primary difference between tabs in ModelViews and Implementation Views is the additional incorporation of attribute values associated with specific physical technology bindings (type bindings internally). 
           [0073]      FIG. 11  illustrates that tabs within PhysicalViews operate analogously to tabs in ModelViews and Implementation Views except that the analysis takes into account physical design information such as actual estimated point-to-point transmission delay, power after physical design is taken into account (such as driver or transistor sizing), parasitic and radiated noise and comparable properties. 
       
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
       [0074]    The preferred embodiment of this invention consists of two inter-related parts. First, several innovative augmentations to conventional hardware description languages or programming languages distinctly specify design intent, logic technology and physical technology. These language augmentations serve to externally extend a tool to innovatively utilize and optimize using technologies which are not embedded within the tool. The preferred embodiment will utilize a common hardware description language, VHDL, however those familiar with other programming languages or hardware description languages will see equivalent constructs in many other languages. Second, an innovative design tool provides for incorporation of externally defined logic and physical technology specifications during four inter-related modes of operation: (1) behavioral analysis, (2) processor compilation (3) logic synthesis and (4) verification post-synthesis. The preferred embodiment refers to a particular implementation developed by the inventors using a specific GUI organization and C++ implementation, however those skilled in the art of tool design will readily see many other GUI organizations and implementations which practice the same invention. 
         [0075]    With the above invention in mind, we will describe a number of specific language mechanisms (preferred embodiment) providing for:
       Technology-specific representation of implied state   Referencing of implied state   Assignment overloading   Sub-Reference overloading   Other operator overloading   Literal overloading   Convergence   Persistence   Type and structural binding   Specifying multiple and general purpose processors.       
 
         [0086]    Examples below use the IEEE Standard 1076 language, VHDL for illustration, however those familiar with other languages will recognize that the same concepts can either be applied directly to such other languages or a language with appropriate base constructs may be used to extend the type system, then referenced from another HDL or programming language with less powerful base constructs (such as referencing a VHDL technology type system from IEEE Standard 1364 Verilog). 
         [0087]    The next major section will explain how these language mechanisms may be used by a preferred embodiment of the tool to efficiently translate design intent into an optimized realization. 
       Technology-Specific Representation of Implied State 
       [0088]    One embodiment of the present invention augments a user-defined type by zero or more WITH clauses. For each explicitly declared object of the explicitly-defined type, an implicit object with a name scope local to the explicit type and any child subtypes designated using the WITH clause is implicitly declared. For example, each WITH clause has one of the following syntactic forms (using VHDL syntax): 
         [0000]    
       
         
               
             
           
               
                   
               
             
             
               
                 WITH simple_identifier : subtype_indication optional_initializer 
               
               
                 WITH CONSTANT simple_identifier : subtype_indication 
               
               
                 optional_initializer 
               
               
                 WITH SIGNAL simple_identifier : subtype_indication 
               
               
                 optional_initializer 
               
               
                 WITH VARIABLE simple_identifier : subtype_indication 
               
               
                 optional_initializer 
               
               
                 WITH FILE simple_identifier : subtype_indication optional_initializer 
               
               
                 WITH QUANTITY simple_identifier : subtype_indication 
               
               
                 optional_initializer 
               
               
                   
               
             
          
         
       
     
         [0089]    where the subtype_indication must be a (locally or) globally static subtype. The optional_initializer assigns a default value to the implied state using the syntactic form: 
         [0090]    :=static expression; 
         [0091]    In the absence of an optional initializer, the initial value of implied state follows VHDL&#39;s recursive ‘left rules. 
         [0092]    An instance of an explicitly declared object initiates a traverse of the object&#39;s visible subtype hierarchy, beginning with the object&#39;s subtype indication and continuing through each parent type until (and including) the base type. Any WITH clauses encountered in this traversal create an instance of an implied constant, signal, variable, file or quantity. The first syntactic form above create implied state (respectively) as a constant, signal, variable, file or quantity matching the kind of explicitly declared object to which the type or subtype indication is applied. Subsequent forms (such as WITH CONSTANT) create implied state matching the specified kind (constant, signal, variable, file or quantity) of the explicitly declared object. The kind of object must otherwise be allowable in the declarative region in which the declaration occurs. For example, in VHDL a WITH SIGNAL clause may not occur within the declarative region of a subprogram. 
         [0093]    While traversing a single list of WITH clauses or the WITH clauses associated with a subtype hierarchy, multiple WITH clauses may be declared with the same simple_identifier. If the kind, simple_identifier, subtype_indication and optional_initializer match, such multiple clauses result in a single implied object. If the kind, subtype_indication and optional_initializer conflict, then an error must be reported. In particular, this allows a subtype_indication within an interface declaration to enforce a specific mode for an implied interface declaration. If the usage of such as interface declaration within the subprogram is incompatible with either the implied object or the interface declarations&#39; mode, an error must be reported. 
         [0094]    The above discussion of WITH clauses and implied objects may be generalized to implicit objects themselves having a subtype including WITH clauses such that multiple levels of implicit objects may be instantiated. This is important to enable constructive use of types denoting technologies in various combinations. Such as the transparent addition of a specific error correction technology to an asynchronous logic technology. 
         [0095]    Implied objects may retain all of the properties of explicitly declared objects of the same kind. For example, in VHDL, this allows implicitly declared objects to be resolved using VHDL&#39;s existing resolution function mechanism. For example, this has important application to the joining of two micro-pipelines within an asynchronous logic technology. The logic required to combine the two streams may be completely contained with the asynchronous logic type&#39;s resolution function and signal assignment operators (described below). 
         [0096]    The VHDL example for type pbit will be continued in subsequent sections: 
         [0097]    TYPE pbit is bit 
         [0098]    WITH VARIABLE count: integer: =0, 
         [0099]    WITH SIGNAL changed: boolean; 
       Referencing of Implied Objects 
       [0100]    In the preferred embodiment, implied objects are defined within a name space unique to each explicitly declared object having a subtype with one or more WITH clauses. This is the same name space used by user-defined attributes, leading to the potential for backward compatibility problems in cases where a subtype&#39;s WITH clause creates an implied object and an attribute specification creates an attribute of the same simple name (often such conflicts are significantly reduced using type-related overloading constraints). Implied objects may share the same reference mechanism as user-defined attributes: 
         [0101]    For example, again using VHDL syntax: 
         [0102]    VARIABLE b: pbit:=‘0’; —where pbit is defined above 
         [0103]    . . . 
         [0104]    pbit′count:=pbit′count+1; 
         [0105]    Within the body of subprogram declarations, it is sometimes useful to refer to implied objects, either via explicit interface declarations or via function return values. Both interface declarations and return values behave as though passed by reference (not value). Thus the implied objects associated with a caller&#39;s actuals or return value assignment are identical to the implied objects seen internal to the subprogram body. 
         [0106]    Implied objects scoped within a function&#39;s return value are brought into direct visibility within the body of a function, eliminating requirements for named return values (which are not present in many base languages). 
         [0107]    For example, the logical AND function may be defined for the pbit example using the VHDL function: 
         [0000]    
       
         
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
           
               
                   
                   
               
             
             
               
                   
                 FUNCTION “and” (1, r: pbit) RETURN pbit IS 
               
               
                   
                 BEGIN 
               
             
          
           
               
                   
                 count := 2; 
               
               
                   
                 - count is an implied object asrociated with the return 
               
               
                   
                 changed &lt; = true; 
               
               
                   
                 - changed is an implied object associated with the return 
               
               
                   
                 l’ changed &lt; = false; 
               
               
                   
                 r’ changed &lt; = false; 
               
               
                   
                 IF((a= ‘1′) and (b= ‘1′ )THEN 
               
             
          
           
               
                   
                 RETURN ′1′ ; 
               
             
          
           
               
                   
                 ELSE 
               
             
          
           
               
                   
                 RETURN ‘0′ ; 
               
             
          
           
               
                   
                 END IF; 
               
             
          
           
               
                   
                 END “and”; 
               
               
                   
                   
               
             
          
         
       
     
         [0108]    In general the full range of operators defined for a given type must be overloaded to handle implied objects appropriately. In addition, indexing, assignment and other capabilities must often be overloaded, even if the base language does not provide for their overloading. The next two sections will discuss these overloadings using VHDL as an example language. 
       Assignment Overloading 
       [0109]    The behavior of signal and variable assignment operators or statements (depending on the base language) must generally be capable of being overloaded based on the base type being assigned and the kind of the target and value. In the preferred embodiment, illustrated here with VHDL, the overloaded signal assignment is executed after evaluating the value in the waveform element and before scheduling a waveform transaction (or resolution in VHDL). Capability to resolve overloading based on the actual&#39;s kind and the interface declaration kind requires augmentation of most programming and hardware description languages. 
         [0110]    In the preferred embodiment, overloaded signal assignments may be represented as procedures taking either two or three parameters. The first parameter is the target of the signal assignment, which must be of kind SIGNAL mode OUT. The second parameter is the value being assigned. It must be of mode IN. The third, optional parameter is the delay, which must be of mode IN and type time. Overloaded variable assignments take two parameters. The first variable assignment parameter is the target of the variable assignment, which must be of kind VARIABLE, mode OUT. The second parameter is the value being assigned. It must be of mode IN. 
         [0111]    In an overloaded signal assignment the value may be a literal (denoting the semantics associated with assigning a literal value to a signal), a signal (explicit or implicit) using a SIGNAL kind, a variable or an expression of VARIABLE kind 
         [0112]    To minimize the opportunity for inadvertent recursion, within the body of an overloaded assignment operator, further application of the same type&#39;s overloading are excluded during overload resolution. This has the side effect that the body of signal assignment statements may not include recursion. Variable assignments may still be overloaded within the body of a signal assignment overloading. Conversely the body of a variable assignment excludes further application of the same type&#39;s overloading during overload resolution however signal assignments may still be overloaded within the body of a variable assignment overloading. 
         [0113]    Once assignments may be overloaded, it is useful to distinguish among more than one kind of assignment operation (where the associated body defines the appropriate assignment semantics). For example in VHDL, the assignment operators may use either the conventional “&lt;=”, “:=”, “==” or a new, “&lt;#” operator as in the signatures: 
         [0000]    
       
         
               
               
               
               
               
               
             
           
               
                   
               
             
             
               
                 PROCEDURE“ &lt; =” 
                 ( 
                 SIGNAL 
                 t: 
                 OUT 
                 integer; 
               
               
                   
                   
                 VARIABLE 
                 v: 
                 IN 
                 integer; 
               
               
                   
                   
                 CONSTANT 
                 d: 
                 IN 
                 time) ; 
               
               
                 PROCEDURE“ &lt; #” 
                 ( 
                 SIGNAL 
                 t: 
                 OUT 
                 integer; 
               
               
                   
                   
                 VARIABLE 
                 v: 
                 IN 
                 integer; 
               
               
                   
                   
                 CONSTANT 
                 d: 
                 IN 
                 time) ; 
               
               
                 PROCEDURE“ : =” 
                 ( 
                 VARIABLE 
                 t: 
                 OUT 
                 integer; 
               
               
                   
                   
                 VARIABLE 
                 v: 
                 IN 
                 integer) ; 
               
               
                 PROCEDURE“ = =” 
                 ( 
                 QUANTITY 
                 l: 
                   
                 integer; 
               
               
                   
                   
                 QUANTITY 
                 r: 
                   
                 integer); 
               
               
                   
               
             
          
         
       
     
         [0114]    Those familiar with other assignment paradigms will recognize that additional assignment operators may be defined, perhaps even extended to allow new, technologyspecific assignment operators. 
       Sub-Reference Overloading 
       [0115]    Most HDL and programming languages provide for reference to zero or more components within an object of aggregate type. For example a program or design may refer to the first element of an array (called an indexed_name in VHDL) or elements two through five of an array (called a slice_name in VHDL). Such subreferences may appear on either the left (lvaI) or right (rval) of a statement. Such sub-references often must be overloaded to achieve the intended technology objectives. In the absence of overloading the normal subreference rules apply as defined by the base language. 
         [0116]    Index and slice names on the left hand side of an assignment use a procedure for overloading. The first parameter is the prefix. The prefix is either a signal, variable or quantity (mixed signal current, voltage or other continuous object). Such a prefix must be of OUT mode and an array type. The left and right parameters (for a slice_name) or index (indexed_name) must be of the base type of the prefix&#39;s index. The value must be an IN mode with base type matching the element type of the prefix&#39;s array type. For example: 
         [0000]    
       
         
               
               
               
               
               
               
             
               
               
               
               
               
               
             
               
               
               
               
               
               
             
               
               
               
               
               
               
             
           
               
                   
               
             
             
               
                 PROCEDURE“ ( )” 
                 ( 
                 SIGNAL 
                 prefix: 
                 OUT 
                 bit_vector, 
               
             
          
           
               
                   
                 VARIABLE 
                 left: 
                   
                 IN 
                 integer, 
               
               
                   
                 VARIABLE 
                 right: 
                   
                 IN 
                 integer, 
               
               
                   
                 CONSTANT 
                 value: 
                   
                 IN 
                 bit) ; 
               
             
          
           
               
                 PROCEDURE“ ( )” 
                 ( 
                 SIGNAL 
                 prefix: 
                 OUT 
                 bit_vector, 
               
               
                   
                   
                 VARIABLE 
                 index: 
                 IN 
                 integer, 
               
             
          
           
               
                   
                 CONSTANT 
                 value: 
                   
                 IN 
                 bit) ; 
               
               
                   
                   
               
             
          
         
       
     
         [0117]    Index and slice names on the right hand side of an assignment use a function for overloading. The first parameter is the prefix. The prefix is a signal, constant, variable or quantity, which must be of IN mode for an array type. The left and right parameters (slice_name) or index (indexed_name) must be of the base type of the prefix&#39;s index. The return type must have a base type matching the element type of the prefix&#39;s array type. For example: 
         [0000]    
       
         
               
               
               
               
               
             
               
               
               
               
             
               
               
               
               
               
             
               
               
             
               
               
               
               
               
               
             
               
               
               
               
               
             
               
               
             
           
               
                   
               
             
             
               
                 FUNCTION“ ( )” ( 
                 SIGNAL 
                 prefix: 
                 IN 
                 bit_vector, 
               
             
          
           
               
                   
                 VARIABLE 
                 left: 
                 IN integer 
               
             
          
           
               
                   
                 VARIABLE 
                 right 
                 IN 
                 integer) 
               
             
          
           
               
                   
                 RETURN bit; 
               
             
          
           
               
                 FUNCTION“ ( )” ( 
                 SIGNAL 
                 prefix: 
                 IN 
                 bit_vector, 
                   
               
             
          
           
               
                   
                 VARIABLE 
                 index: 
                 IN 
                 integer) 
               
             
          
           
               
                   
                 RETURN bit; 
               
               
                   
                   
               
             
          
         
       
     
       Other Operator Overloading 
       [0118]    In order to full define a technology&#39;s semantics through a new type, generally all other operators which may be used in a design must be overloaded for the technology&#39;s type. For example, in VHDL, these can include:
       Logical operators: AND, OR, NAND, NOR, XOR, XNOR   Reduction operators: AND, OR, NAND, NOR, XOR, XNOR   Relational operators: =, /=, &lt;, &lt;=, &gt;, &gt;=   Shift &amp; rotate operators: SLL, SRL, SLA, SRA, ROL, ROR   Dyadic adding operators: +, −, &amp;   Monadic sign operators: +, −   Multiplying operators: *, I, MOD, REM   Other operators: **, ABS, NOT       
 
         [0127]    When an operator is referenced in a design but not overloaded either an error may be reported or the default behavior defined by the base language may be used. 
       Literal Overloading 
       [0128]    Overloading assignment provides one means of describing how a technology should insert literals into a design. Following the augmented VHDL constructs in the preferred embodiment introduced earlier, a literal insertion may take the forms (note variation in the interface declaration kind): 
         [0000]    
       
         
               
               
               
               
               
               
             
           
               
                   
               
             
             
               
                 PROCEDURE “ &lt; = ” 
                 ( 
                 SIGNAL 
                 t: 
                 OUT 
                 integer; 
               
               
                   
                   
                 CONSTANT 
                 v: 
                 IN 
                 integer; 
               
               
                   
                   
                 CONSTANT 
                 d: 
                 IN 
                 time) ; 
               
               
                 PROCEDURE “ #” 
                 ( 
                 SIGNAL 
                 t: 
                 OUT 
                 integer; 
               
               
                   
                   
                 CONSTANT 
                 v: 
                 IN 
                 integer; 
               
               
                   
                   
                 CONSTANT 
                 d: 
                 IN 
                 time) ; 
               
               
                 PROCEDURE “ : =” 
                 ( 
                 VARIABLE 
                 t: 
                 OUT 
                 integer; 
               
               
                   
                   
                 CONSTANT 
                 v: 
                 IN 
                 integer) ; 
               
               
                 PROCEDURE “ = = 
                 ( 
                 QUANTITY 
                 l: 
                   
                 integer; 
               
               
                   
                   
                 QUANTITY 
                 r: 
                   
                 integer) ; 
               
               
                 PROCEDURE “ = = 
                 ( 
                 CONSTANT 
                 l: 
                   
                 integer; 
               
               
                   
                   
                 CONSTANT 
                 r: 
                   
                 integer); 
               
               
                   
               
             
          
         
       
     
       Convergence 
       [0129]    Postponed wait statements provide one mechanism for convergent iterating between entry/resume points and suspend points within a process, process-equivalent or thread. After resuming, if a process executes a sequential POSTPONED WAIT statement before executing a wait statement, the enclosing process, process-equivalent or thread is “marked”. Subsequently, when reaching the next explicit or implied wait statement, the process immediately continues, without waiting, by executing beginning at the sequential statement at which it previously entered or resumed. 
         [0130]    Using VHDL syntax, postponed wait statements have the syntax: 
         [0131]    POSTPONED WAIT optional_on_clause; 
         [0132]    where the optional_on clause has the same form as the condition clause within a VHDL wait statement: 
         [0133]    UNTIL boolean_expression 
         [0134]    In the absence of an optional_on clause, a default clause must be inferred using the form: 
         [0135]    UNTIL true 
         [0136]    For example: 
         [0000]    
       
         
               
               
               
             
               
               
             
               
               
               
             
               
               
             
               
               
             
           
               
                   
                   
               
             
             
               
                   
                 P: 
                 PROCESS 
               
             
          
           
               
                   
                 BEGIN 
               
             
          
           
               
                   
                 S1: 
                 v: = v + 1; 
               
               
                   
                 S2: 
                 WAIT FOR 2 ns; 
               
               
                   
                 S3: 
                 v := v + 1; 
               
               
                   
                 S4: 
                 POSTPONED WAIT UNTIL v &lt; 4; 
               
               
                   
                 S5: 
                 v := v + 1; 
               
               
                   
                 S6: 
                 WAIT FOR 5 ns; 
               
               
                   
                 S7: 
                 v := 0; 
               
             
          
           
               
                   
                 -implied loop directly to S1 
               
             
          
           
               
                   
                 END; 
               
               
                   
                   
               
             
          
         
       
     
         [0137]    would execute a trace of the form:
       Initial resume (v initialized to 0 during elaboration of the process&#39; declarative region)   S 1 (v is 1 after execution)   S2 (process suspends until 2 ns)   S3 (v is 3 after execution)   S4 (postponed wait sets mark)   S5 (v is 4 after execution)   S6 (marking by previous postponed wait transfers control to S3 with no delay and clears mark)   S3 (v is 6 after execution)   S4 (condition fails, so process is not marked)   S5 (v is 7 after execution)   S6 (process suspends until 7 ns)   S7 (v is 0 after execution)   S 1 (v is 1 after execution)   S2 (process suspends until 9 ns)       
 
         [0152]    Postponed wait statements (sequential statements) are distinct from VHDL&#39;s postponed processes (concurrent statements). A postponed wait enables multiple iterations of one or more basic blocks within a process, process equivalent or thread. These iterations may occur on any delta cycle. In contrast a VHDL postponed process or process equivalent may only resume on the last of a sequence of delta cycles before time advances. Such concurrent postponed processes execute form the point at which they resume, until encountering the next wait statements (explicit or implied). When the wait statements&#39; condition, sensitivity list and timeout enable the postponed process to resume, execution begins with the next sequential statement, not the sequential statement at which the process previously suspended. 
         [0153]    When a wait has been postponed, the delta cycle remains unchanged (does not increment or reset to zero). The postponed function may be used to determine if the process, process-equivalent or thread is iterating as the result of a POSTPONED WAIT statement. The return value may then be used to selectively disable side effects, such as within variable or signal assignment. Availability of a conditional operator is useful but not essential in such application. 
         [0154]    The postpone function is scoped within a predefined library. It may be visible by default or by selection. For example: 
         [0155]    Library vhdlx; 
         [0156]    Use vhdlx.standard.all; 
         [0157]    Or more selectively as in the example: 
         [0158]    Library vhdlx; 
         [0159]    . . . 
         [0160]    if (vhdlx.standard.postpone( )=true) then 
         [0161]    Comparable use of other base languages and library organizations will be evident to those skilled in such languages. In VHDL, postponed is defined to be a pure function, analogous to NOW in IEEE&#39;s latest VHDL dialects. This allows references within other, pure functions (important within overloaded operators). 
         [0162]    Calls to the postponed function evaluate to true while executing statements as the result of a POSTPONED WAIT. During static elaboration and after resuming, until the first WAIT statement has been encountered (S6 in the example above), postponed evaluates to false. While iterating, after encountering the WAIT statement, postpone evaluates to TRUE. After passing the WAIT statement, postpone evaluates to FALSE again. 
       Persistence 
       [0163]    Persistent state retains information even when “input” changes state. Common structures implementing persistent state include edge-trigger registers, level-sensitive latches, addressable register files, variables, static memory, dynamic (heap) memory and even sequential access storage (such as hard drive systems). 
         [0164]    Disadvantages of the prior art are remedied by associating specific persistent state behavior with declared subtypes of a given logic system, as in the example package below (using the preferred embodiment in VHD L): 
         [0000]    
       
         
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
             
           
               
                   
               
             
             
               
                 package logic is 
               
             
          
           
               
                   
                 type elogic is (‘0’, ‘1’, ‘X’); 
               
               
                   
                 procedure reg1 (signal d: in elogic; 
               
             
          
           
               
                   
                 signal q: out elogic; 
               
               
                   
                 signal clk: in elogic; 
               
               
                   
                 signal reset: in elogic; 
               
               
                   
                 constant initial: in elogic); 
               
             
          
           
               
                   
                 signal global_reset, elock: elogic; 
               
               
                   
                 subtype reg_elogic is elogic register reg1 (clk = &gt; clock, 
               
             
          
           
               
                   
                 reset = &gt; global_reset, initial = &gt; ‘1’); 
               
               
                   
                 function rising_edge (clk: elogic) return boolean; 
               
             
          
           
               
                 end package logic; 
               
               
                   
               
             
          
         
       
     
         [0165]    The base type, elogic, denotes an enumerated type with three values (0, 1 and X). A subtype, declared as reg_elogic in this example, denotes a logic type with implied persistence specifically defined by the body of a registration subprogram, reg 1, which is defined in an associated package body (below). The registration subprogram must include at least an input and an output. Additional parameters can be included to address the behavioral specification needs. This example illustrates a clock, reset and initial value. 
         [0000]    
       
         
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
           
               
                   
                   
               
             
             
               
                   
                 package body logic is 
               
             
          
           
               
                   
                 function rising_edge (clk: elogic) return boolean is 
               
             
          
           
               
                   
                 begin 
               
             
          
           
               
                   
                 - Code omitted 
               
             
          
           
               
                   
                 end; 
               
             
          
           
               
                   
                 procedure reg1 (signal d: in elogic; 
               
             
          
           
               
                   
                 signal q: out elogic; 
               
               
                   
                 signal clk: in elogic; 
               
               
                   
                 signal reset: in elogic; 
               
               
                   
                 constant initial: in elogic) is 
               
               
                   
                 variable state: elogic : =‘ 1 ’ ; 
               
             
          
           
               
                   
                 begin 
               
             
          
           
               
                   
                 if (reset = ‘1’) then 
               
             
          
           
               
                   
                 state:= initial; 
               
             
          
           
               
                   
                 end if; 
               
               
                   
                 if (rising_edge(clk)) then 
               
             
          
           
               
                   
                 state:= d; 
               
             
          
           
               
                   
                 end if; 
               
               
                   
                 q &lt; = state; 
               
             
          
           
               
                   
                 end procedure reg 1 ; 
               
             
          
           
               
                   
                 end package body logic; 
               
               
                   
                   
               
             
          
         
       
     
         [0166]    A design may then use the base type to declare objects without persistence and the subtype to declare objects with persistence specified by the body of reg1. Subtypes of logic may be declared with an inline register clause, such as signal s2 below. Whereas signal s0 utilizes values of parameters globally specified when subtype reg_logic was defined in package logic above, signal s2 can specify more localized actuals, such as the local clock, reset and initial value shown below. Finally new persistence functionality may be defined locally, as with procedure reg2 below and signal s2 which uses reg2. 
         [0000]    
       
         
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
               
             
               
               
             
           
               
                   
                   
               
             
             
               
                   
                 use work.logic.all; 
               
               
                   
                 entity e is end entity e; 
               
               
                   
                 architecture a of e is 
               
             
          
           
               
                   
                 signal local_reset: elogic 
               
               
                   
                 signal s:0: elogic; 
               
               
                   
                 signal s1: reg_elogic; 
               
             
          
           
               
                   
                 signal s2: logic register reg 1 (clk = &gt; clock, reset = 
               
               
                   
                 local_reset, initial = &gt; ′1′); 
               
             
          
           
               
                   
                 procedure reg2(signal d: in elogic; 
               
             
          
           
               
                   
                 signal q: out elogic: 
               
               
                   
                 signal clk: in elogic; 
               
               
                   
                 signal reset: in elogic; 
               
               
                   
                 constant initial: in elogic; 
               
               
                   
                 signal added: in elogic) is 
               
             
          
           
               
                   
                 begin 
               
             
          
           
               
                   
                 - Behavior not shown 
               
             
          
           
               
                   
                 end; 
               
               
                   
                 signal s4: logic register reg2 
               
             
          
           
               
                   
                 (clk = &gt; clock, 
               
               
                   
                 reset = &gt; local reset, 
               
               
                   
                 initial = &gt; ′1 ′ , 
               
               
                   
                 added = &gt; ′0′); 
               
             
          
           
               
                   
                 begin 
               
             
          
           
               
                   
                 s0 &lt; = ‘1′ 
               
             
          
           
               
                   
                 s1 &lt; = s0; 
                 -- s1 is registered 
               
               
                   
                 s2 &lt; = s0 
                 -- s2 is registered 
               
             
          
           
               
                   
                 end architecture a; 
               
               
                   
                   
               
             
          
         
       
     
         [0167]    Commonly, signals are declared once and referenced multiple times. By specifying the registration functionality once, associating with a named or anonymous subtype and then declaring objects using the subtype once or many times, the design is both more compact and the design (such as in architecture a above) is textually and semantically separated from any specific technology (such as package logic above). At the designer&#39;s discretion, persistence functionality may still be included within the design (as illustrated in architecture a of e above), so no flexibility is lost. 
         [0168]    The latest programming and hardware description languages are adding powerful mechanisms for type generics or parameterization, such as ANSI C++ (templates), Accelera&#39;s System Verilog and IEEE&#39;s VHDL-200x effort. When combined with type generics or parameters, the innovative embodiment of persistence within subtypes taught above enables definition of structural components which can transparently be combined with many different kinds of persistence. For example, this allows definition of a Fourier transform class (C++ programming-oriented example) or a specialized arithmetic logic module or entity/architecture (hardware-oriented example), then creating instances of such classes, modules or other structural units using forms of persistence which were completely unknown when the original class or module was designed. These combinations are particularly powerful when automatically permuted by a tool capable of experimental permutation and analysis searching to optimize for specific goals, such as the one taught here. 
         [0169]    Significant bodies of existing code use standards, such as IEEE&#39;s 1076.6 Standard for Register Transfer Level Synthesis mentioned above. In order to transform such existing code into a form suitable for exploration of various visible persistence subtypes, the design tool embodies a three step process. The first step follows rules for recognizing objects with persistent state, such as those embodied in IEEE Standard 1076. The second step identifies visible subtypes having a base type which is the same as or equivalent to the base type of the persistent state. The third step selects and assigns one or more such subtypes for the persistent state. If no such subtype is found, an error may be reported, the original construct used or a suitable subtype brought into visibility. If a unique subtype is found, that subtype is assigned to the object with persistent subtype. If more than one subtype is found, an error may be reported or the subtype yielding analysis with the best satisfaction of applicable goals may be assigned. As a further enhancement, if a suitable persistent subtype is not found, one may be automatically created to match semantics of the original explicit persistence. 
         [0000]    
       
         
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
               
               
             
           
               
                   
                   
               
             
             
               
                   
                 package legacy-logic is 
               
             
          
           
               
                   
                 type logic is (′0′, ‘1′, ‘X’ ); 
               
               
                   
                 procedure reg1 (signal d: in logic; 
               
             
          
           
               
                   
                 signal q: out logic; 
               
               
                   
                 signal clk: in logic; 
               
               
                   
                 signal reset: in logic; 
               
               
                   
                 constant initial: in logic); 
               
             
          
           
               
                   
                 signal reset, clock: logic; 
               
             
          
           
               
                   
                 subtype reg_logic is register reg1 
               
             
          
           
               
                   
                 (reset = &gt; global_reset, initial = &gt; ′0′); 
               
             
          
           
               
                   
                 end package legacy-logic; 
               
               
                   
                 use work.logic.all; 
               
               
                   
                 entity e2 is end entity e2; 
               
               
                   
                 architecture a2 of e2 is 
               
             
          
           
               
                   
                 signal q: logic; 
                 - - implicitly converted to reg_logic 
               
             
          
           
               
                   
                 signal d: logic; 
               
             
          
           
               
                   
                 begin 
               
             
          
           
               
                   
                 p: process (clock, global reset) 
               
               
                   
                 begin 
               
             
          
           
               
                   
                 if (global_reset = ′0′ ) then 
               
             
          
           
               
                   
                 q &lt; = ′0′; 
               
             
          
           
               
                   
                 end if; 
               
               
                   
                 if (rising_edge(clock)) then 
               
             
          
           
               
                   
                 q &lt; = d; 
               
             
          
           
               
                   
                 end if; 
               
             
          
           
               
                   
                 end process; 
               
             
          
           
               
                   
                 end architecture a2; 
               
               
                   
                   
               
             
          
         
       
     
       Type and Structural Binding 
       [0170]    Embodiment of the innovative step taught here augments a user-defined type or subtype by a map clause explicitly denoting another, previously defined type used to implement the type being declared during the synthesis of objects having the specified base type or a derived subtype. In the example below, an enumerated value may be implemented by a “one-hot” encoding (or by an implementation data type with parity, integrated integrity encoding or other characteristics). 
         [0000]    
       
         
               
               
               
               
               
             
               
               
               
             
               
               
             
           
               
                   
                   
               
             
             
               
                   
                 TYPE logic IS 
                 ( 
                 ′U′, 
                 -- Uninitialized , 
               
             
          
           
               
                   
                 X′, 
                 -- Forcing Unknown 
               
               
                   
                 ′0′, 
                 -- Forcing 0 
               
               
                   
                 ‘I’, 
                 -- Forcing 1 
               
               
                   
                 ‘-‘, 
                 -- Don&#39;t care 
               
             
          
           
               
                   
                 ) MAP my_one_hot; 
               
               
                   
                   
               
             
          
         
       
     
         [0171]    Implicit or explicit type conversion functions must be defined going from the declared type (my_logic in the example) to the implementation type (my one_hot) in order to synthesize literals. Each of the operators defined and actually used in a design with the declared base type must be implicitly or explicitly defined in terms of either a behavioral subprogram (which can be in-lined with conventional hardware scheduling) or a structural implementation. 
         [0172]    User-defined data types may be recursively mapped to other user-defined data types, however before synthesis can complete the recursion of operator subprograms must terminate in an operator subprogram that contains a map clause into a structural cell implementing the operator subprogram&#39;s functionality or parameters to a dynamic cell generator. For example, multiplication of two logic_vector types to yield another logic_vector might map into a specific logic_technology_library, entity multiplier, architecture pipelined as in the operator function below. The operator function may still include a conventional body used using pre-synthesis simulation. 
         [0000]    
       
         
               
               
             
               
               
             
           
               
                   
                   
               
             
             
               
                   
                 FUNCTION “ *” (L:logic_vector; Rlogic_vector) RETURN 
               
               
                   
                 logic_vector 
               
             
          
           
               
                   
                 MAP logic_technology_library.multiplier(pipelined) 
               
               
                   
                   
               
             
          
         
       
     
         [0173]    The logic_technology_library must then include an entity such as the example below: 
         [0174]    ENTITY multiplier is
       PORT (l, r: in logic_vector, o: out logic_vector);       
 
         [0176]    where the function operands are mapped to l and r of the entity and the return is mapped to the o port. 
         [0177]    There must be at least one architecture in this example, called pipelined. More generally the architecture map be left out of the map clause, allowing the tool to choose among several architectures belonging to the multiplier entity based on analysis of the resulting properties relative to the set constraints and goals (optimization). The tool may choose based on pre-computed characterizations or each architecture (data-independent) or by substituting each architecture, running simulation, and comparing results against the active design constraints and goals. 
         [0178]    Those familiar with hardware and software design will realize that the VHDL functions shown in the illustration above can readily be replaced with C++ operators or the equivalents in other design languages. In the same fashion, the VHDL entity used in the illustrate may readily be replaced by a Verilog module, user-defined primitive with predefined synthesis mapping or even mixed-signal/analog/RF/MW cell models to support full analog synthesis and optimization. 
       Specifying Multi-Purpose and General Purpose Processors 
       [0179]    In the preferred embodiment taught here, a VHDL model of the target processor uses a canonical form to hierarchically designate:
       processor state,   initialization,   passivation,   instruction decode,   transformations on processor state implemented by each instruction reachable from instruction decode.       
 
         [0185]    All of these elements are located within a common library containing a package and one or more entity/architecture pairs or configurations thereof. The package contains types, subtypes, constants and attribute/attribute specifications used to describe the base architecture. Entity/architecture or configurations represent the instruction decode and other functional units within the processor. 
         [0186]    In the preferred embodiment, the processor state is located within the above library&#39;s package, represented as a composite type (generally a record). The record includes all of the state used by the processor implementation (such as general purpose registers, floating point registers and special purpose registers). Subprograms within the same package provide for copying the state into a file, reading the state back from a file and interactively accessing the state. 
         [0187]    An entity/architecture pair with fixed name represents the instruction fetch and decode. This entity/architecture pair also includes an object, perhaps of monitored (shared variable) or signal kind, used to store the processor&#39;s state. Internally the decode uses a multilevel case statement. This case statement decodes an instruction down to signals sent to other components representing functional units or calls to subprograms that implement instructions. The tool uses the case statement to model the instruction decode within the processor&#39;s simulation, to automatically generate an assembler/disassembler and to synthesize an optimized instruction prefetch and dispatch unit. 
         [0188]    Other entity/architecture pairs, instantiated as components within the instruction decode (above) represent functional units employed by the processor. Common examples include integer units, floating point units, and units which maintain the program counter. The units need not be explicitly pipelined. Compiler transformations can infer various levels of pipelining and concurrency based on compile-time data-flow analysis, allowing synthesis of many different processors based on actual usage, objectives and available resources. 
         [0189]    Use of a consistent naming convention facilitates tool use of the processor model and reduces the software engineering cost (initial and life-cycle). At significantly greater complexity, units can be identified by the tool (consistent naming is a convenience rather than a requirement to practice this invention). 
         [0190]    The processor model may use all of the language augmentation mechanisms previously taught, facilitating the automatic generation of optimized forms using a variety of accessible type systems denoting logic or physical technologies. For example, the types initially used in the human generated processor model may be transformed manually or automatically by the tool so as to use a variety of asynchronous, fault tolerant or physical technologies required to optimally satisfy the design&#39;s objectives. 
       Tool Operating Modes Using Language Augmentation 
       [0191]    Drawing 2 illustrates the graphical user interface. The user interface consists of four collections of functionality, Design Views ( 15 ), ModelViews ( 16 ), Implementation Views ( 17 ) and PhysicalViews ( 18 ). Design Views provides the graphical manifestation of 3, 4 and 5. ModelViews provides the graphical manifestation of 6. Implementation Views provides the graphical manifestation of 7 and 8. Physical Views provides the graphical manifestation of 9. Each of the four collections may have multiple instances. Tabs provide for actions and examination of distinct views such as the technology binding, simulation, power analysis, reliability analysis and other characteristics. 
       Model Verification &amp; Optimization Operating Mode 
       [0192]    In Drawing 5, based on the technologies specified in the database ( 5 ), ModelView presents a menu of available technologies (generally mapped one to one with library units in the database resulting from analysis of technology specifications). Consistently in this and subsequent views, the color of blocks ( 40 ), statements and objects ( 41 ) denotes the technologies to which the block, statement and objects are bound for behavioral analysis. The compiler initially assigns technology bindings so as to gradually optimize the objectives specified in the design specification ( 1 ) through transformations in the interpretation of types visible in each elaborated instance of the block, statement or object. Conventional type conversion functions provide for interfaces between distinct types (such as converting parity logic to non-parity logic. The user may over-ride the automatic bindings by dragging and dropping technologies (actually type systems) from the palette ( 42 ) to the blocks ( 40 ), statements or objects ( 41 ) so as to force specific bindings based on designer bias or results from model view analysis. More detailed pop-ups containing localized results of analysis are available via a right click pull-down menu, allowing for presentation of tab-specific analysis results beyond the immediate values shown in the value pane  41 . 
         [0193]    In Drawing 6, right click menus associated with each object in the graphical interface provide analytic visibility into other aspects of the design, such an interactive debugger view into a process. process equivalent or thread. The debugger provides for more detailed visibility and interaction (such as time, value or statement breakpoints). 
         [0194]    Blocks, statements (concurrent, sequential and simultaneous) may be selected via the hierarchical block pane ( 52 ), the object pane ( 53 ), containing objects in the block selected by  52  or a source code pane displaying source code for the elaborated block shown in pane  54  (within the Design View). For programming languages, blocks may take the form of subprogram calls, template instances or sequential control such as a loop. 
       Embedded Executable Partitioning and Compilation Mode 
       [0195]    In Drawing 3, specification for a processor begins with a behavioral, HDL representation of the processor architecture ( 20 ). The HDL is analyzed ( 21 ) using ( 3 ) into an intermediate representation ( 22 ) contained in 4 or 5. A code generator ( 23 ) uses the model to create an intermediate representation (generally in a programming language) representing the compiler backend specific to the processor described in the HDL model. This backend must be compiled and linked (statically or dynamically) with the remainder of the design tool, yielding a complete design tool with the capability to generate code for the input processor specification. 
         [0196]    In Drawing 4, details of 23, shown as 30, extract the processor&#39;s intermediate representation ( 22 ) into a processor state such as the architected processor registers ( 31 ), the instruction decode ( 32 ) and the instruction execution ( 33 ). In the Code Generator and Optimizer ( 24 ), the processor state ( 31 ) is converted into types used by the resulting code generator, enumerations of the processor&#39;s state (such as an enumeration for each register) and appropriate type conversions (such as from a full integer to a limited range integer used in an instruction&#39;s immediate field). The instruction decode segment of the processor specification converts in an inline assembler ( 35 ) and disassembler by reversing the sense of nested case statements. The entity/architecture or subprograms defining algorithmically how to execute each instruction or instruction family ( 33 ) convert into operator templates and optimizations specific to particular processors using well-known template-based code generation algorithms and other context-specific code generation optimizations. 
       Logic Partitioning, Synthesis &amp; Optimization Mode 
       [0197]    In Drawing 8, multivariate algorithms for incrementally solving constraints, such as are presented by the combination of evaluated attribute values, design objectives and actions via the graphical user interfaces ( 15 ,  16 ,  17  and  18 ) are well known to the designers of large scale analog simulators and are employed by the current invention with little or no change. For simplicity, since the preferred embodiment includes an analog simulation capability it is most practical to use the same constraint engine as is used to solve systems of constraint equations within an analog simulation block (and thus enjoy the same optimization efforts already invested). However a multitude of approaches are known in the analog simulation and production machine literature for the solution of such constraint systems. 
         [0198]    Often the combined set of constraints can only be satisfied within a tolerance (not identically). This is a well known problem in analog simulation or production machines. To graphically depict the difference between objective and analysis result values, each icon is capable of split colors (such as  53 ). Both colors are drawn from the current tab&#39;s palette. One portion of the icon color represents the tab-specific objective, the other part of the icon represents the current result of analysis. This may be generalized to icons with more than two color bands. As objective and measured values converge using the internal (analog) solver, the icon will assume a continuous color. Icons associated with a block are banded to show the disparity of values associated with all blocks, statements and objects contained within the block (summary of disparity between objective and actual analysis). Exactly the same mechanism may serve within analog simulation to help explain a failure of the analog solver to converge. 
         [0199]    In Drawing 9, within the implementation view, another technology tab allows both observing and manually binding (constraining) blocks, statements and objects to particular physical technologies, again denoted by available (visible) types in the database, shown graphically on the physical technology palette ( 59 ). Analogous to the operation of binding in Drawing 5 of logical technology, physical technologies may be automatically selected based on evaluation of attribute values against objectives specified as (HDL) attributes within the design. 
         [0200]    In Drawing 10, analogous to the analysis of property-specific tabs in ModelView, the color of blocks, statements and icons in each of the analytic views of Implementation View denotes the objective and analyzed constraints (such as the reliability view shown in Drawing 10). The primary difference between tabs in ModelViews and Implementation Views is the additional incorporation of attribute values associated with specific physical technology bindings (type bindings internally). Post-Synthesis Verification Mode 
         [0201]    In Drawing 11, tabs within PhysicalViews operate analogously to tabs in ModelViews and Implementation Views except that the analysis takes into account physical design information such as actual estimated point-to-point transmission delay, power after physical design is taken into account (such as driver or transistor sizing), parasitic and radiated noise and comparable properties. Techniques for deriving such information directly or via intermediate files are well known (such as trace files, standard delay format files, .lef, .def and .lib files).