The present invention relates to timing adjustments in digital integrated circuits, and more specifically, to timing adjustments across transparent latches to facilitate power reduction.
Digital integrated circuits (ICs) or chips include many components to perform processing and storage. One of the primary considerations in the selection and placement of these components is the timing requirements of the chip. Among the chip components, two types of storage elements include non-transparent latches (e.g., flip-flops) and transparent latches. Unlike edge-triggered non-transparent latches, transparent latches are able to transmit data during the period when the clock is active. During static timing analysis, which is used to verify the timing correctness of digital integrated circuits, transparent latches are often analyzed by assuming a discrete cycle boundary within the active clock interval by which a stable value will propagate to the latch output.
Embodiments include a method, system, and computer program product to implement timing adjustments across a transparent latch of an integrated circuit. Aspects include obtaining, using a processor, initial input timing slack and input potential power savings at an input of the transparent latch; obtaining, using the processor, initial output timing slack and output potential power savings at an output of the transparent latch; and adjusting a cycle boundary of the transparent latch to obtain a new input timing slack at the input of the transparent latch and a new output timing slack at the output of the transparent latch, wherein the new input timing slack is greater than the initial input timing slack based on the input potential power savings being greater than the output potential power savings and the new output timing slack is greater than the initial output timing slack based on the output potential power savings being greater than the input potential power savings.
The subject matter which is regarded as the invention is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The forgoing and other features, and advantages of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
As noted above, during static timing analysis, the cycle boundary within the active clock interval, known as the transparent interval, of a transparent latch triggers data storage. The selection of this cycle boundary affects timing slack at both the input and output of the transparent latch. Previously, the cycle boundary has been selected to balance the positive timing slack at the input and output of the transparent latch. Embodiments of the systems and methods described herein relate to selecting the cycle boundary not only in consideration of timing slack but also in consideration of power reduction. As detailed below, power saving potential at both the input side and at the output side of a transparent latch are considered, and the cycle boundary is adjusted to increase timing slack at the side with the higher power saving potential according to the embodiments detailed below. This is because power reduction potential increases as positive timing slack increases. For example, as more positive timing slack becomes available, there exists a greater degree of freedom to power down circuits, use different threshold devices, eliminate buffers, etc.
As
Generally, the adjustment to the cycle boundary 220 follows:
(OSin−adjust)−(K*PPSin)==(OSout+adjust)−(K* PPSout) [EQ. 1]
In EQ. 1, OSin is the original slack on the input 230 side of the transparent latch 210 and OSout is the original slack on the output 240 side of the transparent latch 210. The adjust variable is the slack adjustment value, which may be a positive or negative value. The value of adjust may not exceed the width of the transparent interval 225 of the clock. That is, the adjusted cycle boundary 220 must stay within the transparent interval 225. K is a weighting factor in ps/mW that indicates a weighting on the power savings potential. K may be user-specified, and as K increases, the shift in timing slack from one side to the other increases. PPSin is the potential power savings on the input 230 side, and PPSout is the potential power savings on the output 240 side. According to some embodiments, a threshold may be set on (OSin−adjust), on (OSout+adjust), or both such that the resulting slack at the input 230 side, the output 240 side, or both does not fall too low. The thresholds for the input 230 and output 240 sides may be different. The slack values described above may be obtained from a deterministic (single corner) static timing analysis, or may be projected values obtained from a statistical timing run, or may be canonical slacks from a statistical static timing analysis, or may be obtained as a combination of slack values from multiple such analyses described above (e.g., slack values may be obtained from sampling multiple deterministic static timing analyses).
At block 340, checking thresholds includes ensuring that the adjusted cycle boundary 220 is still within the transparent interval 225. Thus, for example, the absolute value of adjust may not be greater than a width of the transparent interval 225. Additionally, thresholds may be set and checked for (OSin−adjust) and (OSout+adjust) in EQ. 1, for example. That is, minimum positive timing slack values may be ensured at the input 230 and output 240 sides. As noted above, these minimums may not be the same at the input 230 and output 240 sides. If any thresholds are violated, adjusting the cycle boundary 220, at block 330, is repeated with a different K. These processes (blocks 330 and 340) may be repeated, as needed. Once an adjusted cycle boundary 220 is obtained that passes all the thresholds at block 340, the power goals are checked at 350. That is, with the adjusted cycle boundary 220 and reduced power, it is determined if timing requirements are met. If they are not, then power must be increased and, thus, the power savings goal is not met. Again, the processes (330 through 350) may be repeated, as needed, to meet power savings goals without violating any thresholds. After the power goals are met for a given transparent latch, a check is done, at block 360, of whether all the transparent latches 210 have been addressed. If not, the processes are all repeated beginning at block 310 with the selection of a new transparent latch 210.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, element components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated
The flow diagrams depicted herein are just one example. There may be many variations to this diagram or the steps (or operations) described therein without departing from the spirit of the invention. For instance, the steps may be performed in a differing order or steps may be added, deleted or modified. All of these variations are considered a part of the claimed invention.
While the preferred embodiment to the invention had been described, it will be understood that those skilled in the art, both now and in the future, may make various improvements and enhancements which fall within the scope of the claims which follow. These claims should be construed to maintain the proper protection for the invention first described.
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
The present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, configuration data for integrated circuitry, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the Figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.