Retiming

Retiming is the technique of moving the structural location of latches or registers in a digital circuit to improve its performance, area, and/or power characteristics in such a way that preserves its functional behavior at its outputs. Retiming was first described by Charles E. Leiserson and James B. Saxe in 1983.[1]

The technique uses a directed graph where the vertices represent asynchronous combinational blocks and the directed edges represent a series of registers or latches (the number of registers or latches can be zero). Each vertex has a value corresponding to the delay through the combinational circuit it represents. After doing this, one can attempt to optimize the circuit by pushing registers from output to input and vice versa - much like bubble pushing. Two operations can be used - deleting a register from each input of a vertex while adding a register to all outputs, and conversely adding a register to each input of vertex and deleting a register from all outputs. In all cases, if the rules are followed, the circuit will have the same functional behavior as it did before retiming.

## Contents

* 1 Formal description
* 1.1 Minimizing the clock period with network flow
* 1.2 Minimizing the clock period with MILP
* 1.3 Other formulations and extensions
* 2 Problems
* 3 Alternatives
* 4 See also
* 5 Notes
* 6 References
* 7 External links

## Formal description

The initial formulation of the retiming problem as described by Leiserson and Saxe is as follows. Given a directed graph G:=(V,E) whose vertices represent logic gates or combinational delay elements in a circuit, assume there is a directed edge e:=(u,v) between two elements that are connected directly or through one or more registers. Let the weight of each edge w(e) be the number of registers present along edge e in the initial circuit. Let d(v) be the propagation delay through vertex v. The goal in retiming is to compute an integer lag value r(v) for each vertex such that the retimed weight wr(e):=w(e)+r(v)−r(u) of every edge is non-negative. There is a proof that this preserves the output functionality.[2]

### Minimizing the clock period with network flow

The most common use of retiming is to minimize the clock period. A simple technique to optimize the clock period is to search for the minimum feasible period (e.g. using binary search).

The feasibility of a clock period T can be checked in one of several ways. The linear program below is feasible if and only if T is a feasible clock period. Let W(u,v) be the minimum number of registers along any path from u to v (if such a path exists), and D(u,v) is the maximum delay along any path from u to v with W(u,v) registers. The dual of this program is a minimum cost circulation problem, which can be solved efficiently as a network problem. The limitations of this approach arise from the enumeration and size of the W and D matrices.

Given  | w(e),W(u,v),D(u,v) and a target clock period T

|

Find  | r(v):V->ℤ
Such that
| r(u)−r(v) | ≤w(e)
| r(u)−r(v) | ≤W(u,v)−1 if D(u,v)>T

### Minimizing the clock period with MILP

Alternatively, feasibility of a clock period T can be expressed as a mixed-integer linear program (MILP). A solution will exist and a valid lag function r(v) will be returned if and only if the period is feasible.

Given  | w(e),d(v) and a target clock period T

|

Find  | r(v):V->ℤ and R(v):V->ℛ
Such that
| r(v)−R(V) | ≤−d(v)/T
| R(v)−r(v) | ≤1
| r(u)−r(v) | ≤w(e)
| R(u)−R(v) | ≤w(e)−d(v)/T

### Other formulations and extensions

Alternate formulations allow the minimization of the register count and the minimization of the register count under a delay constraint. The initial paper includes extensions that allow the consideration of fan-out sharing and a more general delay model. Subsequent work has addressed the inclusion of register delays,[3] load-dependent delay models,[3] and hold constraints.[4]

## Problems

Retiming has found industrial use, albeit sporadic. Its primary drawback is that the state encoding of the circuit is destroyed, making debugging, testing, and verification substantially more difficult. Some retimings may also require complicated initialization logic to have the circuit start in an identical initial state. Finally, the changes in the circuit's topology have consequences in other logical and physical synthesis steps that make design closure difficult.

## Alternatives

Clock skew scheduling is a related technique for optimizing sequential circuits. Whereas retiming relocates the structural position of the registers, clock skew scheduling moves their temporal position by scheduling the arrival time of the clock signals. The lower bound of the achievable minimum clock period of both techniques is the maximum mean cycle time (i.e. the total combinational delay along any path divided by the number of registers along it).

## See also

* Logic synthesis
* Electronic design automation

## Notes

1. ↑ Leiserson, Charles E.; Rose, Flavio M.; Saxe, James B. (1983). "Optimizing Synchronous Circuitry by Retiming (Preliminary Version)". Third Caltech Conference on Very Large Scale Integration. Springer. pp. 87–116. doi:10.1007/978-3-642-95432-0_7. ISBN 978-3-540-12369-9.
2. ↑ Leiserson, Charles E.; Saxe, James B. (June 1991). "Retiming synchronous circuitry". Algorithmica (Springer) 6 (1): 5–35. doi:10.1007/BF01759032.
3. ↑ 3.0 3.1 Lalgudi, K.N.; Papaefthymiou, M.C. (1997). "Retiming edge-triggered circuits under general delay models". IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 16 (12): 1393–1408. doi:10.1109/43.664222.
4. ↑ Papaefthymiou, Marios C. (1998). "Asymptotically efficient retiming under setup and hold constraints". Proceedings of the 1998 IEEE/ACM international conference on Computer-aided design - ICCAD '98. pp. 396–401. doi:10.1145/288548.289060. ISBN 1-58113-008-2.

## References

* Leiserson, Charles E.; Saxe, James B. (1981). "Optimizing synchronous systems". 22nd Annual Symposium on Foundations of Computer Science (SFCS 1981). pp. 23–36. doi:10.1109/SFCS.1981.34.
* Leiserson, Charles E.; Saxe, James B. (1983). "Optimizing synchronous systems". Journal of VLSI and Computer Systems 1 (1): 41–67.

## External links

* Presentation on retiming from MIT
* A Safe and Complete Gate-Level Register Retiming Algorithm

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Retiming. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Retiming&oldid=3989644"