Preservation and Restoration in Integrated Circuits

The SR technique in integrated circuits addresses power consumption and state loss by efficiently storing and restoring design block states using a modified scan chain mechanism, improving power efficiency and reducing device area and leakage.

JP7569322B2Active Publication Date: 2024-10-17TEXAS INSTRUMENTS INC +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2021537949
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-12-28
Filing Date
2019-12-19
Publication Date
2024-10-17
Estimated Expiration
2039-12-19

AI Technical Summary

Technical Problem

Integrated circuits face challenges in power savings due to active design blocks consuming power even when idle, leading to state loss upon power down and requiring reinitialization, which is costly in terms of power and time.

Method used

The implementation of a save-restore (SR) technique that stores the operational state of design blocks in on-die memory before power down and restores it efficiently, using a modified scan chain mechanism to align state data across varying scan chain lengths without additional flip-flops or memory relocation.

Benefits of technology

This approach reduces power consumption and minimizes the time required to restore the design block state, enhancing power efficiency and reducing device area usage and leakage current.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007569322000001
    Figure 0007569322000001
  • Figure 0007569322000002
    Figure 0007569322000002
  • Figure 0007569322000003
    Figure 0007569322000003
Patent Text Reader

Abstract

In the illustrated example, the circuit element for saving and restoring the state of the design block includes a first memory 102 and a second memory 112 coupled to the first memory 102, configured to receive different portions of first data and store them in a first order in different first memories. The first memory 102 with the most memory cells 106 has N memory cells 106. The first memory 102 with fewer memory cells 106 has M memory cells 106. When saving the state, the first data from the different first memories 102 is written as second data in a second order to different corresponding regions of the second memory 112. The second order is stored sequentially in the first N mod M cells 106, repeating the portions of the first data determined using the first order in the corresponding first memories 102 with fewer cells 106. When restoring the state, the second data is read from the second memories 112 and stored in the corresponding first memories 102 in the first order. The repeated portions are repeatedly stored in corresponding first memories 102 with fewer cells 106 .
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application relates generally to power conservation in electronic circuitry, and more particularly to save-and-restore functionality in integrated circuits. [Background technology]

[0002] An integrated circuit (IC) may include various functional blocks such as input / output, control, encoding, and decoding. The system delivers power to the IC, which delivers power to its constituent functional blocks to keep the IC and functional blocks (respectively) active and ready to perform their respective functions as required ("design block" refers to either the IC or the functional block). When the function performed by the design block is not used, the design block may be left idle. However, even while idle, an active design block continues to consume power to maintain a current state (also referred to as the context or configuration of the design block), including the contents of the design block's memory elements, such as flip-flops and registers. When an active design block is powered down to reduce power consumption, the current state may be lost, which may result in errors or require the design block to be reinitialized. Either case generally takes power and time to address.

[0003] Save-and-Restore (SR) is a technique for powering down a design block in a particular operating state and powering it back up later to return it to the same operating state at a lower power and time cost. To implement SR, the operating state of the design block is stored in on-die memory before the design block is powered down. When the design block is powered up again, the operating state information is retrieved from the on-die memory and used to recreate the operating state of the design block.

[0004] Scan chains may be used in design for testing. Scan chains generally include serially connected flip-flops that are clocked and connected to be loaded with data stored by memory elements in a design block when a scan enable signal is asserted. The length of the scan chains (the number of cells (e.g., flip-flops) in different scan chains) may vary due to, for example, clock domain mixing limitations, memory chains, physical design and floorplan requirements, and power domain merging. The scan elements (cells and control elements) are generally required to be in the same clock domain (clocked synchronously). Also, separate power domains generally have separate dedicated scan chains, which are active in the power modes provided by the respective power domains when the respective power domains are "on" (active).

[0005] FIG. 1A shows an example block diagram 100 of a prior art circuit for using scan chains 102 to save the state of a design block (for convenience, the scan chains 102 are numbered and referenced from CHAIN ​​1 for the top scan chain 102 to CHAIN ​​4 for the bottom scan chain 102). Bits 104 representing the state of a design block are first loaded into cells 106 of a number of scan chains 102 from memory elements of the design block (the design blocks and structures for loading state information from the design blocks into the scan chains 102 are not shown). Each individual bit 104 corresponds to the state of a respective memory element in the design block. The scan chains 102 are connected to output to an SR control block 108. The SR control block 108 is connected to output control signals, including a clock 130, to the scan chains 102. The SR control block 108 is also connected to store the bits 104 output from the end cells 110 of the respective scan chains 102 in a memory 112. In FIG. 1A (and subsequent figures), end cell 110 is intended to identify the right-most cell in each respective chain. For example, CHAIN1 includes five cells 106, and the fifth cell from left to right is also an end cell 110 in that it is connected to output its stored bit 104 to the SR control block 108. As another example, CHAIN3 (which includes fewer cells 106 than CHAIN1) includes three cells, and the third cell from left to right is also an end cell 110, and is connected to output its stored bit 104 to the SR control block 108. The memory 112 has multiple rows 114 and columns 116 of memory cells 118. The SR control block 108 generally stores the bits 104 in the rows 114 of memory cells 118 at a time by copying and then writing one bit 104 per scan chain 102 end cell 110 to each row 114. Thus, each column 116 of memory cells 118 corresponds to each respective scan chain 102. Bits 104 read from the scan chain 102 are stored in memory cells 118 in corresponding columns 116 .The rows 114 are numbered from 1 to 5 (5 being the length of the longest of the scan chains 102) and the columns 116 are numbered from 1 to 4 (4 being the number of scan chains 102). In Figures 1B-1F, the arrow from the SR control block 108 to the memory 112 indicates the row 114 of the memory 112 that has just been loaded with data from the scan chain 102.

[0006] 1B shows an example block diagram 120 of a prior art circuit for using scan chains 102 to save the state of a design block after one clock 130 cycles have passed since FIG. 1A. The scan chains 102 are clocked by a clock signal 130 received from a SR control block 108. The clock 130 causes the scan chains 102 to serially advance the bits 104 stored by the cells 106 of the scan chains 102 to the neighboring successor cells 106 of the respective scan chains 102 and toward the end cells 110 of the respective scan chains 102. The end cells 110 of the scan chains 102 output their stored bits 104 to the SR control block 108, which in turn stores the bits 104 in rows of memory cells 118. Thus, in Figure 1B, the end cell 110 bits 104 (i.e., 1100) from the previous Figure 1A are written to row 114 number (1) of memory 100. Also, the bits 104 in each scan chain 102 progress serially, one cell 106 per scan chain 102. The serial progression of bit 104 (also referred to herein as iterative progression of bit 104 or progressively moving bit 104) means that when bit 104 is stored in serially connected cells 106 of a scan chain, which for reference is from left to right when considered in the orientation of FIG. 1C, and for connections referenced as cells A, B, and C, since cells 106A, B, C are serially connected A→B→C, and C is the end cell 110, a single iterative progression will output the bit 104 stored in cell 106C, thereby causing the bit 104 stored in cell 106B to be stored in cell 106C, and the bit 104 stored in cell 106A to be stored in cell 106B (thus, clock 130 is used as a propagating signal to cause the serial progression of bit 104 through scan chain 102. In some embodiments, a propagating signal other than clock 130 may be used).

[0007] FIG. 1C shows an example block diagram 122 of a prior art circuit for using a scan chain 102 to save the state of a design block after two clock 130 cycles have passed since FIG. 1A. As shown in FIG. 1C, the clock 130 cycles output by the SR control block 108 cause the scan chain 102 to repeat the serial progression of the bits 104 stored by the scan chain 102 and sequentially output the contents of the scan chain 102 to the SR control block 108. Thus, in FIG. 1C, the end cell bit (i.e., 0001) from the previous FIG. 1B has been written to row number (2) of the memory 112. The bits 104 output from the end cell 110 of the scan chain 102 are stored in the subsequent row of the corresponding column 116 of memory cells, so that the contents of the scan chain 102 are progressively reconstructed and transposed from the scan chain 102 to the memory column 116 in the memory 112.

[0008] Figure 1D shows an example block diagram 124 of a prior art circuit for using scan chains 102 to save the state of a design block three clock 130 cycles after Figure 1A. As shown in Figure 1E, CHAIN3 has only three cells 106, so CHAIN3 has output all three of its stored bits 104 and is empty.

[0009] FIGURE 1E illustrates an example block diagram 126 of a prior art circuit for using scan chains 102 to save the state of a design block after four clock 130 cycles have passed since FIGURE 1A. As shown in FIGURE 1E, CHAIN2 has output all four of its stored bits 104 because there are only four cells 106 in CHAIN2. Also, after FIGURE 1D, CHAIN3 was empty, so there are no bits 104 for the SR control block 108 to store in the memory cell 118 located at row number (4), column (3) (conventionally referred to as (row, column) as in (4, 3)) of the memory 112.

[0010] FIG 1F shows an example block diagram 128 of a prior art circuit for using scan chains 102 to save the state of a design block after five clock 130 cycles have passed since FIG 1A. As shown in FIG 1F, all of the scan chains 102 have output all of their stored bits 104. Also, because CHAIN2 and 3 are empty after FIG 1D, there are no bits 104 for the SR control block 108 to store in memory cells 118 (5,2) and (5,3). Therefore, memory cells 118 (4,3), (5,2), and (5,3) were not allocated by the SR control block 108.

[0011] FIG. 1G shows a prior art example block diagram 132 of memory 112 used to save the state of a design block. Memory 112 may be treated as first-in, first-out (FIFO). This reflects the connections already used for the state save process. Also, as described with respect to the state save process, the scan chains 102 are clocked together. Thus, if the state of memory 112 as shown in FIG. 1F is used to reload the state data into the scan chains 102 by reading row by row from the top of memory 112, data from the shorter scan chains 102 (i.e., in columns (2) and (3)) will be repeatedly advanced through and out of each shorter scan chain 102, and unknown data (the contents of (4, 3), (5, 2), and (5, 3) in the example shown in FIG. 1F) will be written to and remain in the shorter scan chains 102, causing an inaccurate duplication of the data stored in the save portion of the save reset event. Thus, the memory 112 is rearranged in preparation for design block state restoration. FIG. 1G shows the memory 112 before 134 and after 136 rearrangement. The memory cells 118 are rearranged so that the last bit 104 written from the shorter scan chain 102 is aligned with the last row 114 of memory cells 118 written by the SR control block 108 (the fifth row 114, since the longest scan chain 102 in FIGS. 1A-1F is five cells 106 long). Also, the currently unallocated memory cells 118 in (1,2), (1,3) and (2,3) are filled with zeros. These filler zeros should be loaded into the corresponding scan chains 102 (CHAIN2 and 3, scan chains 102, since they are shorter than the longest scan chain 102) first during the state restoration process (see FIGS. 2A-2F), and are discarded by shifting them past the end cells 110 of the shorter chains 110 during the state restoration process. This results in proper alignment of the state restoration data within the cells 106 of the scan chain 102 upon completion of the restoration process.Implementing the memory 112 relocation shown in FIG. 1G may require software execution or specialized hardware, adding significant time to the SR process.

[0012] Alternatively, in some prior art embodiments, additional flip-flops may be used to increase the length of the shorter scan chains 102 to be the same length as the longest scan chain 102, so that each scan chain 102 has the same number of cells 106. This allows for proper alignment of the state restoration data within the cells 106 of the scan chains 102 when the restoration process is completed without rearrangement of the memory 112. However, the additional flip-flops may significantly increase device area usage and may increase leakage current when the design block is in functional mode.

[0013] FIG. 2A shows an example block diagram 200 of a prior art circuit for using scan chains 102 to restore a saved state of a design block. State restoration may begin when an inactive design block is powered up from a sleep state. As shown in FIG. 2A, at the start of the state restoration process, memory 112 contains the same data in the same configuration as at the end of the state save process as shown in FIG. 1G after the saved data has been rearranged 136. Memory 112 is connected to output data read from row 114 to SR control block 108. SR control block 108 is configured to output data received from memory 112 to a first cell 202 of each scan chain 102 and distribute clock 130 to scan chain 102 (in FIGS. 2A-2F, first cell 202 is intended to identify the left-most cell in each respective scan chain 102). A clock 130 causes data received by each of the scan chains 102 from the SR control block 108 to be stored in a corresponding cell 106 of each receiving scan chain 102, and iteratively advances bits 104 (not shown in FIG. 2A ) through the serially connected cells 106 of each scan chain 102. In FIGS. 2B-2F , an arrow from memory 112 to the SR control block 108 indicates the row 114 that was just unloaded from memory 112 in order to reload the respective cell 106 into each of the scan chains 102.

[0014] FIG. 2B illustrates an example block diagram 202 of a prior art circuit for using scan chains 102 to restore a saved state of a design block after one clock 130 cycle has elapsed from FIG. 2A. The clock 130 cycle causes the data stored in the first row 114 (ROW 1) of memory 112 to be read from memory 112 and stored in cells 106 in the corresponding ones of scan chains 102. Thus, columns 116 in memory 112 correspond to respective scan chains 102, and data read from memory cells 118 in column 1 is stored in CHAIN ​​1, data read from memory cells 118 in column 2 is stored in CHAIN ​​2, and so on. Thus, data is returned to the scan chains 102 from which it was previously read in the save process described with respect to FIGS. 1A-1G. Note that the zeros moved to the second and third scan chains 102 (CHAINs 2 and 3) are fillers added during the memory 112 rearrangement illustrated in and described with respect to FIG. 1G. These zeros are discarded (ie, shifted out of their respective scan chains 102) later in the reconstruction process, as will be explained hereinafter.

[0015] 2C shows an example block diagram 204 of a prior art circuit for using scan chains 102 to restore the state of a design block after two clock 130 cycles from FIG. 2A. The clock 130 cycles move the bits 104 stored in each of the scan chains 102 through the serially connected cells 106 in the scan chains 102, causing the data stored in each column of the second row 114 of memory cells 118 to be read from the memory 112 and stored in the corresponding scan chain 102.

[0016] 2D shows an example block diagram 206 of a prior art circuit for using a scan chain 102 to restore a saved state of a design block after three clock 130 cycles have elapsed from FIG. 2A. The clock 130 cycles move the bits 104 stored in the scan chain 102 through the serially connected cells 106 in the scan chain 102, causing the data stored in the third row 114 of memory cells 118 to be read from the memory 112 and stored in the corresponding scan chain 102.

[0017] 2E shows an example block diagram 208 of a prior art circuit for using a scan chain 102 to restore a saved state of a design block after four clock 130 cycles have elapsed from FIG. 2A. The clock 130 cycles move the bits 104 stored in the scan chain 102 through the serially connected cells 106 in the scan chain 102, causing the data stored in the fourth row 114 of memory cells 118 to be read from the memory 112 and stored in the corresponding scan chain 102. Because the third scan chain 102 (CHAIN3) is only three cells 106 long, one of the filler zeros is clocked out of CHAIN3, thereby discarding it.

[0018] FIG. 2F illustrates an example block diagram 210 of a prior art circuit for using scan chains 102 to restore the saved state of a design block after the fifth clock 130 cycles from FIG. 2A have elapsed. The clock 130 cycles move the bits 104 stored in the scan chains 102 through the serially connected cells 106 in the scan chains 102, causing the data stored in the fifth row 114 of memory cells 118 to be read from the memory 112 and stored in the corresponding scan chains 102. Because the second and third scan chains 102 (CHAIN2 and 3) are less than five cells 106 long (the length of the longest scan chain 102, the first and fourth scan chains 102), filler zeros are clocked out of each of CHAIN2 and 3, thereby discarding them. As illustrated in FIG. 2F, the scan chains 102 contain the same bits 104 in the same configuration as at the start of the save process in FIG. 1A. The data contained in the scan chain 102 can then be used to restore the saved state of the design block, reversing the process used to initially load the design block state data into the scan chain 102. Summary of the Invention

[0019] In the illustrated example, the circuit element for saving and restoring the design block state includes a first memory configured to receive and store different portions of first data in different first memories in a first order, and a second memory coupled to the first memory. The first memory with the most memory cells has N memory cells. The first memory with fewer memory cells has M memory cells. When saving the state, the first data from the different first memory is written in a second order to different corresponding regions of the second memory as second data. The second order is stored sequentially in the first N mod M cells, repeating the portions of the first data determined using the first order in the corresponding first memory with fewer cells. When restoring the state, the second data is read from the second memory and stored in the corresponding first memory in the first order. The repeated portions are repeatedly stored in the corresponding first memory with fewer cells. [Brief description of the drawings]

[0020] [Figure 1A] 1 shows an example block diagram of a prior art circuit for using scan chains to preserve the state of design blocks.

[0021] [Figure 1B] Following FIG. 1A is an example block diagram of a prior art circuit for using scan chains to preserve the state of a design block after one clock cycle has passed.

[0022] [Figure 1C] Following FIG. 1A is an example block diagram of a prior art circuit for using scan chains to preserve the state of a design block after two clock cycles have passed.

[0023] [Figure 1D] Following FIG. 1A is an example block diagram of a prior art circuit for using scan chains to preserve the state of a design block after three clock cycles have passed.

[0024] [Figure 1E] Following FIG. 1A is an example block diagram of a prior art circuit for using scan chains to preserve the state of a design block after four clock cycles have passed.

[0025] [Figure 1F] Following FIG. 1A is an example block diagram of a prior art circuit for using scan chains to preserve the state of a design block after five clock cycles have passed.

[0026] [Figure 1G] FIG. 1 shows a prior art example block diagram of a memory used to store the state of a design block.

[0027] [Figure 2A] 1 shows an example block diagram of a prior art circuit for using scan chains to restore a saved state of a design block.

[0028] [Figure 2B] FIG. 2B shows an example block diagram of a prior art circuit for using scan chains to restore a saved state of a design block after one clock cycle has elapsed from FIG. 2A.

[0029] [Figure 2C] FIG. 2B shows an example block diagram of a prior art circuit for using scan chains to restore a saved state of a design block after two clock cycles have elapsed from FIG. 2A.

[0030] [Figure 2D] FIG. 2B shows an example block diagram of a prior art circuit for using scan chains to restore a saved state of a design block after three clock cycles have elapsed from FIG. 2A.

[0031] [Figure 2E] FIG. 2B shows an example block diagram of a prior art circuit for using scan chains to restore a saved state of a design block after the fourth clock cycle has elapsed from FIG. 2A.

[0032] [Figure 2F] FIG. 2B shows an example block diagram of a prior art circuit for using scan chains to restore a saved state of a design block after the fifth clock cycle has elapsed from FIG. 2A.

[0033] [Figure 3A] 1 shows an example block diagram of a circuit for using scan chains to preserve the state of a design block.

[0034] [Figure 3B] 3B illustrates an example block diagram of a circuit for using scan chains to preserve the state of a design block one clock cycle after FIG. 3A.

[0035] [Figure 3C] 3B illustrates an example block diagram of a circuit for using scan chains to preserve the state of a design block two clock cycles after FIG. 3A.

[0036] [Figure 3D] 3B illustrates an example block diagram of a circuit for using scan chains to preserve the state of design blocks after three clock cycles have elapsed from FIG. 3A.

[0037] [Figure 3E] 3B illustrates an example block diagram of a circuit for using scan chains to preserve the state of design blocks after four clock cycles have elapsed from FIG. 3A.

[0038] [Figure 3F]3B shows an example block diagram of a circuit for using scan chains to preserve the state of design blocks after five clock cycles have elapsed from FIG. 3A.

[0039] [Figure 4A] 1 shows an example block diagram of a circuit for using scan chains to preserve the state of a design block.

[0040] [Figure 4B] 4B illustrates an example block diagram of a circuit for using scan chains to restore a saved state of a design block one clock cycle after FIG. 4A.

[0041] [Figure 4C] 4B shows an example block diagram of a circuit for using scan chains to restore a saved state of a design block after two clock cycles have elapsed from FIG. 4A.

[0042] [Figure 4D] 4B shows an example block diagram of a circuit for using scan chains to restore a saved state of a design block after three clock cycles have elapsed from FIG. 4A.

[0043] [Figure 4E] 4B shows an example block diagram of a circuit for using scan chains to restore a saved state of a design block after four clock cycles have elapsed from FIG. 4A.

[0044] [Figure 4F] 4B shows an example block diagram of a circuit for using scan chains to restore a saved state of a design block after the fifth clock cycle has elapsed from FIG. 4A.

[0045] [Figure 5A] 1 illustrates an example process for using scan chains to preserve the state of a design block.

[0046] [Figure 5B] 1 illustrates an example process for using scan chains to preserve the state of a design block.

[0047] [Figure 6A] FIG. 1 illustrates an example block diagram for a clock circuit used to provide clocks to scan chains used to save the state of design blocks.

[0048] [Figure 6B] 4 illustrates an example timing diagram for a clock circuit.

[0049] [Figure 6C] 1 illustrates an example block diagram of a clock circuit used to provide clocks to scan chains used to save the states of design blocks and configured to suppress spurious clock transitions during SR Mode transitions.

[0050] [Figure 6D] 4 illustrates an example timing diagram for a clock circuit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0051] FIGURE 3A illustrates an example block diagram 300 of a circuit for using scan chains 102 to preserve the state of a design block. The circuits 300, 312, 314, 316, 318, and 320 of FIGURES 3A-3F share various aspects with the circuits 100, 120, 122, 124, 126, and 128 of FIGURES 1A-1F, respectively. Accordingly, for those items, similar reference numbers from FIGURES 1A-1F are carried over to FIGURES 3A-3F. The shorter scan chain 102 in the circuits 300, 312, 314, 316, 318, 320 of Figures 3A-3F does not include a connection between the end cell 110 and the SR control block 108, while the longer scan chain 102 in the circuits 300, 312, 314, 316, 318, 320 of Figures 3A-3F includes a connection between the end cell 110 and the SR control block 108' (the SR control block 108' shown in Figures 3A-4F and described with respect to Figures 3A-4F has some similarities to the SR control block 108 of the prior art Figures 1A-1F and 2A-2F, but also introduces additional functionality as described with respect to the subject matter introduced herein).

[0052] The state save process may be performed when a design block receives a sleep command and prepares to power down. Design block state data is initially loaded from design block memory elements (not shown) into each scan chain 102 using state data input 302 (this process is not shown), resulting in a state data loaded scan chain 102 as shown in FIG. 3A. The longest scan chain 102 shown in FIG. 3A is five cells 106 long. In the longest scan chain 102, the state data input 302 connects directly to the first cell 304 of the scan chain 102 (the furthest from the SR control block 108′ in terms of the number of serially connected scan path cells 106). In shorter scan chains 102, the state data input 302 connects to a first input of a multiplexer 306. The multiplexer 306 also receives the output of the end cell 110 of the respective scan chain 102 as a second input. An SR mode selector 308 provides a control signal to each multiplexer 306 to control which of the multiplexer's respective inputs is output to the first cell 304 of each scan chain 102. As shown in Figures 3A-3F, the SR mode selector 308 selects the output of the end cell 110 when the scan chain 102 is performing a save process. As shown in Figures 4A-4F (and described below with respect to Figures 4A-4F), the SR mode selector 308 selects the data received from the state data input 302 when the scan chain 102 is performing a restore process.

[0053] Each scan chain 102 also includes an SR output 310, and the SR output 310 outputs data from the selected cell 106 of each scan chain 102 to the SR control block 108' for storage in the memory 112. In the longest scan chain 102, the selected cell 106 that provides the SR output 310 is the end cell 110. In a shorter scan chain 102, the selected cell 106 that provides the SR output 310 is a cell 106 other than the end cell 110 of each scan chain 102. For the longest scan chain 102 of length N and a shorter scan chain 102 of length M, the first cell 106 of the shorter scan chain 102 is numbered 1, and the subsequent cells 106 of the shorter scan chain 102 are serially numbered up to the end cell 110 numbered M. The SR output 310 is connected to (N - M) cells, so that when the progression of bit 104 is triggered by clock 130 through the serially connected cells 106 of the scan chain 102, the bit 104 in the (N - M) cells 106 is output to the SR control block 108' for storage in the memory 112 and is also advanced to the next cell 106 (numbered N - M + 1). (For convenience, the scan chains 102 are referenced with numbers from the top scan chain 102 CHAIN1 to the bottom scan chain 102 CHAIN4.) As shown in FIG. 3A, both CHAIN1 and 4 have a length of 5 cells 106, which is the same maximum number of cells, while CHAIN2 has a length of 4 cells 106 and CHAIN3 has a length of 3 cells 106. Accordingly, the SR output 310 of CHAIN2 is connected to the output of cell 106 1 (N - M = 5 - 4 = 1), and the SR output 310 of CHAIN3 is connected to the output of cell 106 2 (N - M = 5 - 3 = 2).

[0054] Considering the case where N - M ≥ M leads to the generalization of this design. Therefore, in order to produce the results described in this specification, the SR output 310 should be connected to cell 106 N mod M. Note that cell 106 N mod M is the same as cell 106 N - M when N - M < M.

[0055] 3A-3E, for clarity, the values ​​of bits 104 output from each scan chain 102 as a result of the next clock 130 cycle are shown, with each SR output 310 connected to an SR control block 108'. CHAIN1 outputs a 1 from its end cell 110. CHAIN2 outputs a 1 from its cell 106-1. CHAIN3 outputs a 0 from its cell 106-2. CHAIN4 outputs a 0 from its end cell 110.

[0056] FIG. 3B shows an example block diagram 312 of a circuit for using scan chains 102 to save the state of a design block after one clock 130 cycle has elapsed from FIG. 3A. In FIGS. 3B-3F, the arrows from the SR control block 108' to the memory 112 indicate in which row 114 of the memory 112 the SR control block 108' saved the data output from the scan chain 102 in the most recent clock 130 cycle. In FIG. 3B, the data output from the scan chain 102 as a result of the most recent clock 130 cycle is stored in row 1 of the memory 112. At the same time (preferably during the same clock 130 cycle), the SR control block 108' reads the value of bit 104 from each respective scan chain 102 as follows: CHAIN1 outputs a 0 from the end cell 110 of CHAIN1; CHAIN2 outputs a 1 from cell 106-1 of CHAIN2; and CHAIN3 outputs a 1 from cell 106-2 of CHAIN3. CHAIN4 outputs a 1 from the end cell 110 of CHAIN4.

[0057] 3B, the bits 104 progress serially through the cells 106 of each scan chain 102. As a result, the bits 104 previously stored in the end cells 110 of chains 1 and 4 (the longest scan chains 102) are not stored by the respective scan chains 102. However, in chains 2 and 3 (shorter scan chains 102), the bits 104 stored in the respective end cells 110 are looped back to the respective multiplexers 306 and passed by the multiplexers 306 (selected by the SR mode selector 308) to the respective first cells 304 and stored therein. Thus, data circulates through the shorter scan chains 102, such that some bits stored in the shorter scan chains 102 are output to the SR control block 108' and stored in the memory 112 multiple times during the multiple clock 130 cycles (i.e., N clock 130 cycles) required to completely output data from the longest chain 102.

[0058] FIG. 3C illustrates an example block diagram 314 of a circuit for using scan chains 102 to save the state of a design block after two clock 130 cycles from FIG. 3A. The data output from the scan chains 102 as a result of the most recent clock 130 cycle is stored in row 2 of the memory 112. Meanwhile, the values ​​of the bits 104 output by each scan chain 102 as a result of the next clock 130 cycle are as follows: CHAIN1 outputs a 1 from its end cell 110; CHAIN2 outputs a 0 from its cell 106 1; CHAIN3 outputs a 0 from its cell 106 2; CHAIN4 outputs a 1 from its end cell 110; and the 0 stored in the end cell 110 of CHAIN2 from the previous cycle has looped back to and is stored in the first cell 304 of CHAIN2. The 0 stored in the end cell 110 of CHAIN3 from the previous cycle is looped back (via respective multiplexers 306) to the first cell 304 of CHAIN3 and stored there.

[0059] FIG. 3D illustrates an example block diagram 316 of a circuit for using scan chains 102 to save the state of a design block after three clock 130 cycles from FIG. 3A. The data output from the scan chains 102 as a result of the most recent clock 130 cycle has been stored in row 3 of the memory 112. The values ​​of the bits 104 output by each scan chain 102 as a result of the next clock 130 cycle will be as follows: CHAIN1 outputs a 1 from its end cell 110; CHAIN2 outputs a 1 from its cell 106-1; CHAIN3 outputs a 0 from its cell 106-2; CHAIN4 outputs a 0 from its end cell 110; and the 1 stored in the end cell 110 of CHAIN2 from the previous cycle has looped back to and is stored therein. The 1 stored in the end cell 110 of CHAIN3 from the previous cycle loops back (via respective multiplexers 306) to the first cell 304 of CHAIN3 and is stored there. Note that three clock 130 cycles after FIG. 3D, CHAIN3 has reverted to the arrangement of bit 104 values ​​stored in cells 106 shown in FIG. 3A. This is because M (the length of the scan chain 102 in cells 106) is equal to three for CHAIN3 (three cells 106, three clock 130 cycles). Thus, the sequence of data output by CHAIN3 and stored by memory 112 begins to repeat for the remainder of the state saving process.

[0060] 3E illustrates an example block diagram 318 of a circuit for using scan chains 102 to save the state of a design block after four clock 130 cycles from FIG. 3A. The data output from the scan chains 102 as a result of the most recent clock 130 cycles is stored in row 4 of the memory 112. The values ​​of the bits 104 output by each scan chain 102 as a result of the next clock 130 cycle are as follows: CHAIN1 outputs a 0 from the end cell 110 of CHAIN1; CHAIN2 outputs a 1 from cell 106-1 of CHAIN2; CHAIN3 outputs a 1 from cell 106-2 of CHAIN3; and CHAIN4 outputs a 0 from the end cell 110 of CHAIN4. Also, the 1 stored in the end cell 110 of CHAIN2 from the previous cycle loops back to and is stored in the first cell 304 of CHAIN2, and the 0 stored in the end cell 110 of CHAIN3 from the previous cycle loops back (via respective multiplexers 306) to and is stored in the first cell 304 of CHAIN3. Note that four clock 130 cycles after FIG. 3D, CHAIN2 has reverted to the arrangement of bit 104 values ​​stored in cells 106 shown in FIG. 3A. This is because, for CHAIN2, M (the length in cells 106 of scan chain 102) is equal to four (four cells 106, four clock 130 cycles). Thus, the sequence of data output by CHAIN2 and stored by memory 112 begins to repeat for the remainder of the state save process.

[0061] 3F illustrates an example block diagram 320 of a circuit for using scan chains 102 to save the state of a design block after five clock 130 cycles have elapsed from FIG. 3A. The data output from scan chains 102 as a result of the most recent clock 130 cycles has been stored in row 5 of memory 112. The 1 stored in end cell 110 of CHAIN2 from the previous cycle has looped back to and stored therein the first cell 304 of CHAIN2, and the 0 stored in end cell 110 of CHAIN3 from the previous cycle has looped back (via respective multiplexers 306) to and stored therein the first cell 304 of CHAIN3.

[0062] 3A-3F, when memory cells 118 in column P (where P is a number from 1 to 4 corresponding to scan chain P) of memory 112 are read from row 5 to row 1, the bits 104 stored in memory cells 118 in column P will be the same bits, in left-to-right order, as the bits 104 stored in CHAIN ​​P (scan chain 102 labeled P) in FIG. 3A. For shorter scan chains 102, this is true with the following caveat: the bits 104 stored in memory cells 118 repeat after the Mth bit 104 (for a given M bits in the scan chain, read upwards in memory 112 and the repeat begins at (NM) row 114). This repeat may include one or more copies of the bits 104 initially stored in scan chain 102, or a partial copy of the bits 104 initially stored in scan chain 102. For example, as shown in Figure 3A, the initial contents of CHAIN3, which has M = 3 bits, read from the first cell 106 to the third cell 106 of CHAIN3, are (1, 0, 0). As shown in Figure 3F, the contents of row 3 of memory 112 read from row 5 to row 1 of memory 112 are (1, 0, 0, 1, 0). Thus, as shown in Figure 3F, when read from row 5 to row 1, column 3 of memory 112 contains the initial contents of CHAIN3, plus (NM = 5 - 3 = 2) additional bits of CHAIN3, as read from the first cell 304 to the third cell 106 (end cell 110) of CHAIN3. The shorter scan chains 102 loop from their respective end cells 110 to their respective first cells 304 as the bits 104 are advanced through the serially connected cells 106 for the clock 130 cycles.As a result, during the state restoration process when data is loaded back into each scan chain 102 from memory 112, repeated bit 104 values ​​(from the shorter scan chain 102) are written over the same, pre-written bit 104 values ​​as those pre-written bit values ​​are written from the end cell 110 of the scan chain 102 to the first cell 304 of the scan chain 102 (as further described with respect to Figures 4A-4F).

[0063] FIG. 4A shows an example block diagram 400 of a circuit for using scan chains 102 to restore states for scan chains and states for design blocks. The state restore process may be performed upon wake-up of an inactive design block (upon power-up of the design block). As shown in FIG. 4A, at the start of the state restore process, memories 112 contain the same data in the same configuration as at the end of the state save process, as shown in FIG. 3F. The memories 112 are connected to output data from their rows 114 to the SR control block 108′. The SR control block 108′ is configured to output data received from the memories 112 to the first cell 304 of each scan chain 102 and distribute the clock 130 to the scan chains 102. The clock 130 causes the data received by the scan chains 102 from the SR control block 108' to be stored in the corresponding cells 106, and iteratively advances the bits 104 (not shown in FIG. 4A) through the serially connected cells 106 of each scan chain 102. The shorter scan chains 102 (CHAINs 2 and 3, as shown in FIG. 4A) also loop back the bits 104 advanced from their respective end cells 110 to their respective multiplexers 306. Because the SR mode selector 308 is set to pass the newly received data rather than the looped data (meaning the data received from the memory 112 during the state restoration process), any data looped during the store operation is discarded during the restore operation, and the data received from the memory 112 via the SR control block 108' and the respective state data inputs 302 are passed by the respective multiplexers 306 and stored in the respective first cells 304 (of CHAINs 2 and 3). However, because the data stored in memory 112 repeats the data initially stored in the shorter scan chain 102, the repeated bits 104 match the looped (and discarded) bits 104. In effect, the state save process of Figures 3A-3F pads memory 112 with the state data stored in the shorter scan chain 102.This prevents zero padding, rearrangement of memory 112, or sacrificing device area to balance the length of scan chains 102 using additional cells 106 (as described above in connection with Figures 1A-2F).

[0064] 4B-4F, an arrow from memory 112 to SR control block 108' indicates the row 114 that was just unloaded for reloading into the scan chain 102. In FIG.

[0065] 4B illustrates an example block diagram 402 of a circuit for using scan chains 102 to restore a saved state of a design block after one clock 130 cycle has elapsed from FIG. 4A. The clock 130 cycle causes the data stored in the first row 114 (row 1) of memory 112 to be read from memory 112 and stored in the cells 106 of the corresponding scan chain 102. Thus, columns 116 of memory 112 correspond to respective scan chains 102, and data read from memory cells 118 in column 1 is stored in CHAIN1, data read from memory cells 118 in column 2 is stored in CHAIN2, and so on. Thus, data previously read in the save process described with respect to FIGS. 3A-3F is returned to scan chain 102.

[0066] 4C shows an example block diagram 404 of a circuit for using the scan chain 102 to restore the state of a design block after two clock 130 cycles from FIG. 4A. The clock 130 cycles repeatedly move (progress) the bits 104 stored in the scan chain 102 through the serially connected cells 106 in the scan chain 102, causing the data stored in the second row 114 of memory cells 118 to be read from the memory 112 and stored in the corresponding scan chain 102.

[0067] 4D illustrates an example block diagram 406 of a circuit for using scan chains 102 to restore the saved state of a design block after three clock 130 cycles from FIG. 4A. The clock 130 cycles repeatedly move the bits 104 stored in the scan chains 102 through the serially connected cells 106 in the scan chains 102, causing the data stored in the third row 114 of memory cells 118 to be read from memory 112 and stored in the corresponding scan chains 102. At this point in the state restoration process, all of the cells 106 in CHAIN3 contain bits 104, but column 3 of memory 112 is not yet empty. The data remaining in column 3 of memory 112 is stored in cells 106 of CHAIN3 in place of the same data looped back from end cells 110 of CHAIN3 to multiplexer 306 of CHAIN3, as in the save operation. Because the SR mode selector 308 now selects to have the new data enter the shorter scan chain 106 , the multiplexer 306 does not pass the looped bit 104 .

[0068] 4E shows an example block diagram 408 of a circuit for using the scan chain 102 to restore the saved state of a design block after four clock 130 cycles have passed from FIG. 4A. The clock cycle 130 repeatedly moves the bits 104 stored in the scan chain 102 through the serially connected cells 106 in the scan chain 102, causing the data stored in the fourth row 114 of memory cells 118 to be read from the memory 112 and stored in the corresponding scan chain 102. Because the third scan chain 102 (CHAIN3) is only three cells 106 long, the zero stored in the end cell 110 of CHAIN3 in FIG. 4D is connected back to the input of the multiplexer 306 of CHAIN3, but it is effectively discarded because the SR mode selector 308 controls the multiplexer 306 to output the data from the SR control block 108′ instead of the looped back data. Thus, the CHAIN3 multiplexer 306 outputs the zero previously stored in column 3 (corresponding to CHAIN3), row 4 of memory 112 (read from CHAIN3 in the fourth clock 130 cycle of the state save process and read from column 3 of memory 112 in the fourth clock 130 cycle of the state restore process), which is therefore stored in the first cell 304 of CHAIN3.

[0069] In Figure 4E, all cells 106 of CHAIN2 contain bits 104 that were read from and stored in memory 112 during the state restoration process. As a result, the behavior of CHAIN2 in Figure 4F (discarding looped bits 104, preserving the same bits 104 read from memory 112) is similar to the behavior of CHAIN3 in Figure 4E.

[0070] 4F shows an example block diagram 410 of a circuit for using the scan chain 102 to restore the saved state of a design block after the fifth clock 130 cycle from FIG. 4A has elapsed. The clock 130 cycles repeatedly move the bits 104 stored in the scan chain 102 through the serially connected cells 106 in the scan chain 102, causing the data stored in the fifth row 114 of the memory cell 118 to be read from the memory 112 and stored in the first cell 304 of the corresponding scan chain 102. The data previously stored in the end cells 110 of CHAIN2 and CHAIN3 are looped back as inputs to the respective multiplexers 306 and discarded (due to the SR mode selector 308), and the same read from row 5, columns 2 and 3 of the memory 112 are stored in the first cells 304 of CHAIN2 and CHAIN3, respectively. As shown in Figure 4F, the scan chains 102 contain the same bits 104 in the same configuration as at the start of the save process in Figure 4A. The data contained in the scan chains 102 can then be used to restore the saved states of the design blocks by reversing the process used to initially load the states of the design blocks into the scan chains 102.

[0071] FIG. 5A illustrates an example process 500 for using scan chains to save the state of a design block. In step 502, a sleep command is received at the design block, which prepares the design block for power down and then powers down. Saving the state of the design block is part of the power down preparation. In step 504, different portions of the state data of the design block are loaded into different portions of multiple scan chains. The scan chains are composed of multiple memory cells connected in series. The longest scan chain has N cells and the shorter scan chains have M cells, where M can be different for different scan chains. In step 506, the state data stored in the scan chains is iteratively progressed through the scan chains. A bit is output from the end cell of the longest scan chain and a bit is output from the (NM)th cell of the shorter scan chain. A bit is looped from the Mth cell of the shorter scan chain to be stored in the first cell of each shorter scan chain. In step 508, the bits output from different ones of the scan chains are stored in different regions of memory in some order such that different ones of the scan chains correspond to different ones of the memory regions. In step 510, the iterative progression and storage of steps 506 and 508 are repeated until all of the state data stored in the longer scan chain in step 504 has been stored in memory. This results in multiple copies (e.g., a partial copy and a partial copy) of the state data stored in the shorter scan chain being stored in memory.

[0072] 5B illustrates an example process 500 for using scan chains to save the state of a design block. In step 514, bits are read sequentially from the memory regions corresponding to the scan chains (as described with respect to step 508), preferably one bit per region per iteration of step 514. In step 516, the bits read from memory are stored in the first cells of each of the scan chains. In step 518, if the longest scan chain has not yet been (re)filled with state data, the state data is iteratively advanced through the scan chains and steps 514 and 516 are repeated. In step 520, the state data is iteratively advanced through the scan chains and the state data output from the scan chains is restored to the respective memory elements of the design block.

[0073] 6A shows an example block diagram for a clock circuit 600 used to provide clocks for the scan chains used to save the state of the design blocks. The clock circuit 600 receives as input a reference clock 602 and generates a divided clock signal CLK DIV It includes a clock divider 608 that is connected to output 604 as an input (feedback) to itself and as an input to a multiplexer 606. Multiplexer 606 also has as input a save-restore clock CLK SR 610. The SR Mode 612 selector determines whether the multiplexer 606 receives the CLK DIV Output 604 or CLK SR During normal functioning of the design block, multiplexer 606 selects which of the design blocks to output CLK 610 for use by the design block. DIV During a state save or restore process, multiplexer 606 outputs CLK 604 for use by the scan chains and associated circuitry. SR Outputs 610.

[0074] 6B illustrates an example timing diagram 611 for clock circuit 600. As illustrated in FIG. 6B, SR Mode 612 is initially set high, corresponding to a design block idle state (e.g., powered down) in which the SR (Save-Restore) function is triggered. SR Mode 612 later transitions to a low state, indicating the transition of the design block from an idle state to a functional (e.g., powered up) state, and the corresponding transition from the Save-Restore mode to a functional mode. CLK DIV 604 starts low and transitions high before SR Mode 612 transitions low (before the design block transitions from Save-Restore mode to Functional mode). During the time period shown in FIG. SR 610 is initially oscillating and stops oscillating once the state restore process is complete, before SR Mode 612 goes low. The multiplexer output 614 is initially CLK SR According to 610, when SR Mode 612 goes low (when SR Mode 612 changes, the selected multiplexer output 614 changes), CLK DIV 604 goes high. This transition by the multiplexer output 614 creates a rising clock edge 616 and occurs simultaneously with the transition of the SR Mode 612. This can be problematic because the rising clock edge 616 at the multiplexer output 614 represents a clock transition (a rising clock edge) where there is no clock transition, resulting in unintended (incorrect) behavior of the clock circuit.

[0075] 6C illustrates an example block diagram of a clock circuit 618 used to provide clocks for scan chains used to save the state of design blocks and configured to suppress spurious clock transitions upon transitions in and out of SR Mode 612. The clock circuit 618 includes a CLK SR 610 and a RESET signal 622 as inputs, and a transition clock CLK XN The control flip-flop 620 is connected to output 624 to an OR logic gate 626. The OR logic gate 626 also receives as input a CLKSR 610. OR logic gate 626 receives the gated stored-restored clock CLK SR_G 628 to the multiplexer 606. In SR Mode 620, the multiplexer 606 outputs CLK DIV Output 604 or CLK SRG During normal functioning of the design block, multiplexer 606 selects which of the design blocks to output CLK 628 for use by the design block. DIV During a state save or restore process, multiplexer 606 outputs CLK 604 for use by the scan chains and associated circuitry. SRG Outputs 628.

[0076] Figure 6D shows an example timing diagram 630 for the clock circuit 618. The signal timing shown in Figure 6D is the same as in Figure 6B, except for the addition of the RESET signal 622 and its effect on the multiplexer output 614. The RESET signal 622 starts low, goes high once the state restore process is complete before the SR Mode 612 goes high, and remains high until the transition from the idle state to the functional state is complete. The RESET signal 622 is connected to the CLK XN 624 (not shown) high, which causes the CLK SRG 628 (not shown) high, which causes the multiplexer output 614 to remain high. This prevents the multiplexer output 614 from showing a false rising edge transition.

[0077] Figures 6A, 6B, 6C, and 6D address transitions from an idle state to a functional state in a design block. The clock circuit 618 of Figure 6C can also be used to suppress spurious clock transitions during the transition from a functional state to a SR state in a design block by activating the RESET signal 622 before SR Mode 612 goes high, and remains high until the transition to the idle state is complete (e.g., when the state save process is ready to begin). As will be apparent to those skilled in the art of save and restore functions in integrated circuits, the clock circuit 618 can also be modified to prevent both spurious rising edge transitions and spurious falling edge transitions.

[0078] Modifications are possible in the described embodiments and other embodiments are possible within the scope of the claims.

[0079] In some embodiments, a memory cell may store multiple bits, hi some embodiments, different memory cells may store different numbers of bits.

[0080] In some embodiments, a different number of cells and different size memories than those described herein may be used.

[0081] In some embodiments, a different number of clock cycles may be used to progress the bits through the scan chain.

[0082] In some embodiments, a propagating signal other than a clock signal (a signal that causes the serial progression of bits through the scan chain) may be used.

[0083] In some embodiments, bits read from the scan chain are stored in memory non-contiguous. In some embodiments, bits are stored in memory in a different order (e.g., boustrophedonically). In some embodiments, bits from the scan chain are stored in the same column of memory rather than the same row. In some embodiments, bits from the scan chain are stored in memory from the bottom up.

[0084] In some embodiments, during the state save process, an additional copy of the state data may be stored in memory.

[0085] In some embodiments, the order in which the state data is stored in memory is not the same as the order in which the state data is stored in the scan chains.

[0086] In some embodiments, the memory into which state data is loaded from the scan chains is on the same die as the design blocks. In some embodiments, the memory into which state data is loaded from the scan chains is on a different die than the design blocks.

[0087] In some embodiments, during an initialization operation, data is initially loaded serially into the scan chain (such as via the first cell of the scan chain). In some embodiments, during an initialization operation, data is initially loaded in parallel into the scan chain, such as by loading all of the data into corresponding cells of the scan chain during the same clock cycle, or by loading multiple bits directly into corresponding cells of the scan chain during separate clock cycles.

[0088] In some embodiments, the circuit elements for saving and restoring the state of the design block include a plurality of first memories (such as scan chains 102) and a second memory (such as memory 112). The first memories are configured to receive first data (such as state data) from memory elements (such as registers and flip-flops) of the design block during an initialization operation. The first memories store different portions of the first data in different ones of the first memories (such as scan chains 102 that store the state data in a particular serial order as shown in FIG. 3A) in a first order. The different ones of the first memories have different numbers of memory cells (such as different scan chains 102 with different numbers of cells 106), with some of the first memories with many memory cells having N memory cells and some of the first memories with fewer memory cells having M memory cells. The second memory is coupled to the first memories. During a state save operation, first data (state data) is read from a first memory (scan chain 102) and stored in a second memory (memory 112), and portions of the first data stored in different ones of the first memories are written as second data to different corresponding regions of the second memory in a second order (e.g., state data in scan chain 102 is written to corresponding columns 116 of memory 112). The second order includes repeated portions of the first data stored sequentially in the first NM memory cells as determined using the first order of the corresponding ones of the first memory having fewer memory cells (e.g., the bits 104 stored in the first N minus M cells 106 of the shorter scan chain 102 are repeated in the memory 112 due to the looped input and position of the output 310 in the shorter scan chain 102 and because N clock cycles are used to output M separate bits 104 from the shorter scan chain 102, where N>M).During a state restore operation, different portions of the second data are read from the second memory and stored in different counterparts of the first memory in the first order (state data is output from memory 112 and returned to the corresponding scan chains 102, such that the state data is stored by the scan chains 102 in the same order as the state data was initially stored in the scan chains 102). The repeated portions are stored in the first order in counterparts of the first memory having fewer memory cells in which identical portions of the second data were already stored (the repeated bits 104 in memory 112 are stored in the scan chains 102 in the initial serial order, e.g., as shown in FIGS. 4E and 4F).

Claims

1. 1. A method comprising: Receiving instructions to perform a state restore process; generating a gated clock signal; generating a reset signal upon completion of the state restoration process such that the gated clock signal ceases oscillation after receiving the indication; Restoring a state of the design block from a memory in response to the instruction; reading, by a control block, bits from a first region of the memory corresponding to a first scan chain based on the gated clock signal; reading, by the control block, bits from a second region of the memory corresponding to a second scan chain based on the gated clock signal; storing, by the control block, the bits from a first region of the memory in cells of a first scan chain of the design block; receiving the bits from a second region of the memory at a first input of a multiplexer, the multiplexer having a second input coupled to a last cell of the second scan chain and an output coupled to the second scan chain; receiving the bits from a second region of the memory in response to a multiplexer mode selector receiving the indication by the second scan chain; storing, by the control block, the bits from a second region of the memory in cells of a second scan chain of the design block; said restoring comprising: A method comprising:

2. 2. The method of claim 1 , The method, wherein the first scan chain has a first number of cells and the second scan chain has a second number of cells, the second number of cells being less than the first number of cells.

3. 3. The method of claim 2, reading, by the control block, bits from a third region of the memory corresponding to a third scan chain; storing, by the control block, the bits from a third region of the memory in a third scan chain of the design block; Further comprising: The method, wherein the third scan chain has a third number of cells, the third number of cells being less than the first number of cells and the third number of cells being different than the second number of cells.

4. 4. The method of claim 3, The method, wherein the first number of cells are connected in series, the second number of cells are connected in series, and the third number of cells are connected in series.

5. 4. The method of claim 3, The method further comprising iteratively repeating the reading and the storing a number of times equal to the first number of cells based on the gated clock signal.

6. 4. The method of claim 3, the control block reading the bits from the first region of the memory successively, one bit per iteration; the control block sequentially reads the bits from the second region of the memory, one bit per iteration; The control block reads the bits from a third region of the memory successively, one bit per iteration.

7. 2. The method of claim 1 , The instruction powers on an inactive design block.

8. 1. A circuit for performing a state restoration process, comprising: a first set of memory cells coupled in a first scan chain, the first set of memory cells having a first number of cells; a second set of memory cells coupled in a second scan chain, the second set of memory cells having a second number of cells that is less than the first number of cells; Memory, a clock circuit configured to generate a gated clock signal and to generate a reset signal when the state restoration process ends such that the gated clock signal ceases oscillation; a memory controller configured to cause the memory to output a set of data during the state restore process based on the gated clock signal, and to cause the first and second sets of memory cells to store the set of data output from the memory during the state restore process based on the gated clock signal; The circuit includes:

9. 9. The circuit of claim 8, The clock circuit comprises: a flip-flop having a first input and an output configured to receive the reset signal; a logic gate having a first input coupled to an output of the flip-flop and an output, the logic gate being configured to generate the gated clock signal at an output of the logic gate; The circuit includes:

10. 10. The circuit of claim 9, The circuit, wherein the clock circuit further includes a multiplexer, the multiplexer having a first input coupled to an output of the logic gate and an output coupled to the first and second sets of memory cells.

11. 10. The circuit of claim 9, the flip-flop further having a second input configured to receive a saved and restored clock signal; The circuit, wherein the logic gate further comprises a second input configured to receive the saved-and-restored clock signal.

12. 9. The circuit of claim 8, The clock circuit comprises: a clock divider circuit having an output; a multiplexer having a first input configured to receive the gated clock signal and a second input coupled to an output of the clock divider circuit; The circuit includes:

13. 13. The circuit of claim 12, The multiplexer, outputting the gated clock signal to the first and second sets of memory cells during the state restore process; receiving a divided clock signal from the clock divider circuit; outputting the divided clock signal to the first and second sets of memory cells during a functional mode after the state restore process is completed. The circuit is configured as follows.

14. 9. The circuit of claim 8, the memory controller is further configured to receive a mode selector signal and initiate the state restore process based on the mode selector signal; The circuit, wherein the clock circuit includes a multiplexer, the multiplexer having a first data input configured to receive the gated clock signal and a select input configured to receive the mode selector signal.

15. 1. A circuit comprising: a controller including a first input, a second input, a first output, and a second output; a first scan chain including a first number of memory cells coupled in series, the first scan chain including a first cell coupled to a first output of the controller and a second cell coupled to a first input of the controller; a second scan chain including a second number of serially coupled memory cells less than the first number of cells, the second scan chain including a third cell coupled to a second output of the controller, a fourth cell coupled to the third cell, and a fifth cell, an intermediate cell in the second scan chain, coupled to a second input of the controller; a clock circuit comprising: a flip-flop having an output; a logic gate having an input coupled to the output of the flip-flop and an output; and a multiplexer having a first input coupled to the output of the logic gate and an output coupled to the first, second, third, fourth and fifth cells; The circuit includes:

16. 16. The circuit of claim 15, the clock circuit includes a clock divider having an input and an output coupled to the input of the clock divider; The circuit wherein the multiplexer further has a second input coupled to an input of the clock divider.

17. 16. The circuit of claim 15, the flip-flop is configured to receive a save-restore clock signal, receive a reset signal, and generate a transition clock signal based on the save-restore clock signal and the reset signal; the logic gate is configured to receive the save-restore clock signal, receive the transition clock signal, and generate a gated clock signal based on the save-restore clock signal and the transition clock signal; a multiplexer configured to receive the gated clock signal and generate and distribute a composite signal to the first, second, third, fourth and fifth cells;

18. 16. The circuit of claim 15, The circuit, wherein the flip-flop further has a first input configured to receive a saved-and-restored clock signal and a second input configured to receive a reset signal.

19. 16. The circuit of claim 15, 11. The circuit of claim 10, wherein the logic gate comprises an OR gate having a first input coupled to an output of the flip-flop, a second input configured to receive a save-restore clock signal, and an output coupled to a first input of the multiplexer.

20. 16. The circuit of claim 15, the multiplexer further comprising a select input configured to receive a mode signal; the controller is configured to receive a state restoration instruction and to perform a state restoration process in response to receiving the instruction; The circuit is configured to: generate a reset signal when the state restoration process ends such that a gated clock signal ceases to transmit; and deliver the reset signal to the flip-flop.

Citation Information

Patent Citations

  • Semiconductor integrated circuit and control method thereof

    JP2008117372A

  • Electronic device and method for state retention

    US20150346277A1