US8302054B2 - Retiming of multirate system - Google Patents

Retiming of multirate system Download PDF

Info

Publication number
US8302054B2
US8302054B2 US13/235,333 US201113235333A US8302054B2 US 8302054 B2 US8302054 B2 US 8302054B2 US 201113235333 A US201113235333 A US 201113235333A US 8302054 B2 US8302054 B2 US 8302054B2
Authority
US
United States
Prior art keywords
multirate
node
normalized
retimed
solutions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
US13/235,333
Other versions
US20120005642A1 (en
Inventor
Mustafa ispir
Levent Oktem
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Synopsys Inc
Original Assignee
Synopsys Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Synopsys Inc filed Critical Synopsys Inc
Priority to US13/235,333 priority Critical patent/US8302054B2/en
Publication of US20120005642A1 publication Critical patent/US20120005642A1/en
Application granted granted Critical
Publication of US8302054B2 publication Critical patent/US8302054B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design

Definitions

  • the invention relates to circuit design, and more particularly to retiming of multirate systems.
  • a data flow graph representation is a popular hardware and software methodology where algorithms are described as directed graphs with nodes representing computations (or functions or subtasks) and edges representing data paths (communications between nodes).
  • a data flow algorithm is mainly concerned with the flow of data and not with the actual computation process, and is a natural paradigm for describing digital signal processing applications for concurrent implementation on parallel hardware. For concurrent implementations, a task is broken into subtasks that are then scheduled onto parallel processors.
  • the block diagram shows a delay block D, which can be a delay register, to store the previous value of the output y.
  • a multiplication block X is provided to multiply the delay output y[n ⁇ 1] and a constant a.
  • An addition block + is provided to add the input x[n] with the multiplied delay output ay[n ⁇ 1].
  • FIG. 1B illustrates a data flow graph of this block diagram with node A representing the addition block and node B representing the multiplication block.
  • the edge from B to A (B ⁇ A) represents the data path from the multiplication block to the addition block
  • the edge from A to B (A ⁇ B) represents the data path from the addition block to the multiplication block.
  • the delay D is inserted to the data path from A to B to show that the edge from A to B (A ⁇ B) contains one delay (e.g., 1 clock cycle delay).
  • the input branch x[n] and the output branch y[n] are shown in dotted lines, mainly for an illustration of the correlation with the block diagram of FIG. 1A .
  • the input and output branches are typically not shown in a data flow graph (e.g., FIG. 1C ).
  • the delay D can be shown in the vicinity of the edge ( FIG. 1C ).
  • Other information can be included in the data flow graph, for example, information related to synchronous data flow graph to show that execution of nodes A and B consumes one data sample and produces output. This is illustrated by a number 1 from the edge coming to node A/B and a number 1 from the edge coming out of node A/B.
  • Each node can have an execution time associated with it, for example, the amount of time required to execute node A (addition computation) is 2 time units (e.g., 2 clock cycles), and the amount of time required to execute node B (multiplication computation) is 4 time units. This is illustrated by a number in parentheses (2) and (4) in the vicinity of nodes A and node B, respectively.
  • operations of a data flow graph at a data flow level are operations related only to the data flow without regard to functional or computational operations.
  • the critical path of a data flow graph is defined to be the path with the longest computation time among all paths that contain zero delay.
  • the critical path in the data flow graph shown in FIG. 1B is the path B ⁇ A, which requires 6 time units.
  • Optimizing the critical path is an example of optimizing a data flow graph at a data flow level.
  • the illustrated data flow graph describes a single rate system where all nodes consume one data sample and produce one output relative to a clock cycle.
  • the number of data samples consumed and produced can be different than 1, such as in a system where the nodes operate at different frequencies or a decimator or an interpolator.
  • a ⁇ 2 decimator rejects every other data sample, thus producing one data output for every 2 data samples consumed.
  • a ⁇ 2 interpolator introduces an addition data output for every data sample, thus producing 2 data outputs for every 1 data sample consumed.
  • a data flow graph representation has another advantage of generating the same results for any implementations of the data flow description, as long as the integrity of the flow of data is preserved.
  • data flow graph representations can be an indispensable tool in scheduling and mapping circuit design representation onto hardware.
  • the current data flow graph representations employ nodes and edges, together with using linear programming to optimize the flow of data to achieve a desired clock.
  • the present invention relates to methods and apparatuses to design a circuit, and particularly to retiming of multirate systems.
  • the methods can be used to optimize a design for a circuit to achieve an improved design, which can then be used to build the circuit.
  • the optimized design can be used to create a net list of other data structure, which is then used to program or create a circuit in an integrated circuit.
  • the present invention discloses normalizing the retimed solutions for the nodes of a multirate data flow graph.
  • the present invention discloses a normalization factor vector for a multirate data flow graph.
  • the normalized formulation of the multirate retiming problem e.g., normalization factor vector and/or the normalized retimed solutions
  • Single rate retiming is a more extensive studied topic and there exist more efficient optimization algorithms than multirate retiming. With the present formulation in the form of single rate constraints, it can leverage these efficient algorithms and thus can find a better retiming.
  • a retiming may be derived for a single rate system by solving a linear programming problem.
  • Conventional multirate system has different rates on the edges and potentially changes this to a more complicated integer linear programming problem.
  • the present invention formulates the retiming problem of a multirate system to enable linear programming solutions and/or shortest path finding solutions though normalizing the different rates on the edges of the multirate system.
  • the present invention discloses an algorithm for retiming of multirate DSP system for clock period minimization, which in many cases, can be solved with polynomial time and without any sub-optimality.
  • the present multirate retiming methodology that can be solved with shortest path algorithm, eliminating integer linear programming which is computational more complex, and can be easier to implement and less error prone.
  • practical solvable multirate system size e.g., DSP system
  • the present method also does not suffer from the issue of graph size increase and additional complexity associated with system unfolding.
  • the present method introduces a normalization factor for each node or edge of the multirate data flow graph.
  • the normalized factor serves to normalize the various frequencies within the multirate system.
  • an upsampler node or a downsampler node can be treated as a single rate node, enabling the utilization of single rate formulation on the setting the retiming constraints for a multirate system without unfolding.
  • the normalization factor can be an integerized relative period vector T n , proportional to the least common multiple of the frequencies of the outgoing edges of each node.
  • a multirate consistency constraint can be introduced to impose consistent rate changes within the multirate system.
  • the retimed solution for a node can be normalized with the up rate and/or down rate of the node.
  • the edge delay for an edge is normalized by the normalization factor for the source node of this edge.
  • the target clock period is normalized to a plurality of target clock periods, each for a path, which can be calculated by the normalization factor for the end node of the path.
  • the retiming constraints for feasibility for the present multirate system are then constructed from the normalized retimed solutions using the normalized edge delays.
  • the retiming constraints to achieve the target clock period can be constructed using the normalized target clock period, together with the retiming constraints to obey the multirate consistency.
  • Other alternatives to the above implementation of normalized parameters of the multirate system can be considered.
  • the present retiming algorithm for multirate system can have simplicity advantages, does not increase the graph size since there is no unfolding transformation, solves multirate constraints using multirate graph, does not require integer linear programming methodology, eliminates superfluous constraints, does not have any sub-optimality, and provide optimal on clock period setting.
  • the present invention includes methods and apparatuses, which perform these methods, including data processing systems that perform these methods, and computer readable media which when executed on data processing systems cause the systems to perform these methods.
  • FIGS. 1A-1C illustrate exemplary representations of a design with circuit schematic and data flow graph.
  • FIG. 2 shows a block diagram example of a data processing system which may be used with the present invention.
  • FIG. 3 illustrates an exemplary folding transformation
  • FIGS. 4A-4B illustrate an exemplary unfolding transformation.
  • FIGS. 5A-5C illustrate another exemplary unfolding transformation.
  • FIGS. 6A-6C illustrate an exemplary downsampler.
  • FIGS. 7A-7C illustrate an exemplary upsampler.
  • FIGS. 8A-8B illustrate an exemplary pipelining optimization for data flow representation.
  • FIGS. 9A-9C illustrate a prior art method to construct a data flow graph for retiming.
  • FIGS. 10A-10C illustrate an exemplary un-optimized system.
  • FIGS. 11A-11C illustrate an exemplary optimized system using parallel processors.
  • FIG. 12 shows a method for retiming a multirate system according to an embodiment of the present invention.
  • FIG. 13 shows a method for retiming a multirate system according to another embodiment of the present invention.
  • FIG. 14 shows a preferred method for retiming a multirate system according to an embodiment of the present invention.
  • At least one embodiment of the present invention seeks to formulate a retiming problem of a multirate digital signal processing system to a form similar to a single rate retiming problem, which a computational shortest path algorithm can be used to solve it.
  • Single rate retiming problem formulation is much simpler, can be solved by shortest path algorithm instead of integer linear programming, and possesses many useful results regarding delay counts of paths and cycles.
  • the present invention formulates the multirate system directly without unfolding transformations, thus retain multirate system architecture and avoiding the difficult re-transformations from single rate back to multirate.
  • the present invention introduces normalized parameters, for example, normalized retimed solutions, for the multirate system.
  • the present invention introduces normalization factors for the nodes of a multirate system and normalizes the parameters of the multirate system to the normalization factors.
  • the normalization parameters allow the setting of constraint inequalities for the retiming problems of the multirate system with unit coefficients (i.e., 1) for the retimed solutions, thus enabling the solving of the normalized constraint inequalities of the multirate system using linear programming/shortest path algorithm, instead of integer linear programming. Linear programming solution is much simpler, with optimizable shortest path algorithm.
  • a digital processing system such as a conventional, general-purpose computer system.
  • Special purpose computers which are designed or programmed to perform only one function, may also be used.
  • FIG. 2 shows one example of a typical computer system which may be used with the present invention. Note that while FIG. 2 illustrates various components of a computer system, it is not intended to represent any particular architecture or manner of interconnecting the components as such details are not germane to the present invention. It will also be appreciated that network computers and other data processing systems which have fewer components or perhaps more components may also be used with the present invention.
  • the computer system of FIG. 2 may, for example, be a Sun workstation, or a personal computer (PC) running a Windows operating system, or an Apple Macintosh computer.
  • the computer system 101 which is a form of a data processing system, includes a bus 102 which is coupled to a microprocessor 103 and a ROM 107 and volatile RAM 105 and a non-volatile memory 106 .
  • the microprocessor 103 is coupled to cache memory 104 as shown in the example of FIG. 2 .
  • the bus 102 interconnects these various components together and also interconnects these components 103 , 107 , 105 , and 106 to a display controller and display device 108 and to peripheral devices such as input/output (I/O) devices which may be mice, keyboards, modems, network interfaces, printers, scanners, video cameras and other devices which are well known in the art.
  • I/O input/output
  • the input/output devices 110 are coupled to the system through input/output controllers 109 .
  • the volatile RAM 105 is typically implemented as dynamic RAM (DRAM) which requires power continually in order to refresh or maintain the data in the memory.
  • the non-volatile memory 106 is typically a magnetic hard drive or a magnetic optical drive or an optical drive or a DVD RAM or other type of memory systems which maintain data even after power is removed from the system.
  • the non-volatile memory will also be a random access memory although this is not required. While FIG.
  • the non-volatile memory is a local device coupled directly to the rest of the components in the data processing system
  • the present invention may utilize a non-volatile memory which is remote from the system, such as a network storage device which is coupled to the data processing system through a network interface such as a modem or Ethernet interface.
  • the bus 102 may include one or more buses connected to each other through various bridges, controllers and/or adapters as is well known in the art.
  • the I/O controller 109 includes a USB (Universal Serial Bus) adapter for controlling USB peripherals, and/or an IEEE-1394 bus adapter for controlling IEEE-1394 peripherals.
  • USB Universal Serial Bus
  • aspects of the present invention may be embodied, at least in part, in software. That is, the techniques may be carried out in a computer system or other data processing system in response to its processor, such as a microprocessor, executing sequences of instructions contained in a memory, such as ROM 107 , volatile RAM 105 , non-volatile memory 106 , cache 104 or a remote storage device.
  • a processor such as a microprocessor
  • a memory such as ROM 107 , volatile RAM 105 , non-volatile memory 106 , cache 104 or a remote storage device.
  • hardwired circuitry may be used in combination with software instructions to implement the present invention.
  • the techniques are not limited to any specific combination of hardware circuitry and software nor to any particular source for the instructions executed by the data processing system.
  • various functions and operations are described as being performed by or caused by software code to simplify description. However, those skilled in the art will recognize what is meant by such expressions is that the functions result from execution of the code by a processor,
  • a machine readable medium can be used to store software and data which when executed by a data processing system causes the system to perform various methods of the present invention.
  • This executable software and data may be stored in various places including for example ROM 107 , volatile RAM 105 , non-volatile memory 106 and/or cache 104 as shown in FIG. 2 . Portions of this software and/or data may be stored in any one of these storage devices.
  • a machine readable medium includes any mechanism that provides (i.e., stores) information in a form accessible by a machine (e.g., a computer, network device, personal digital assistant, manufacturing tool, any device with a set of one or more processors, etc.).
  • a machine readable medium includes recordable/non-recordable media (e.g., read only memory (ROM); random access memory (RAM); magnetic disk storage media; optical storage media; flash memory devices; etc.).
  • Data flow graph is a technique for programming signal processors based on data flow, and which should ease the programming tasks by enhancing the modularity of code and permit algorithms to be describe more naturally.
  • data flow processing provides concurrent implementation of DSP applications on parallel hardware.
  • Typical data flow optimizations to be summarized below include pipelining, retiming, unfolding and folding. Detailed descriptions of data flow graph techniques can be found in “ VLSI Digital Signal Processing Systems: Design and Implementation ” by Keshab K. Parhi, Wiley-Interscience, 1999.
  • a transformation of data flow graph is folding where multiple operations are time multiplexed to a single functional unit. By executing multiple operations in only one functional unit, the number of functional units can be reduced, resulting in a reduction in chip area.
  • the tradeoff of chip area reduction is the increase in frequency where the time multiplexed functional units have to run at multiple clock frequency values.
  • Folding algorithm can be implemented for single or multiple clocks. Since folding changes clock frequency of the functional units, multirate system can be used to further reduce the chip area than the single rate system.
  • FIG. 3 illustrates the folding transformation concept, where three identical functional units (representing by same node Z) run on different inputs and generate different outputs.
  • the folding transformation reduces the number of functional units to one, and introduces a number of multiplexers for the inputs and outputs for the remaining functional unit.
  • the folding factor is 3, meaning three functional units are folded into one.
  • the clock frequency for the remaining functional unit is likewise increase by the same folding factor, with the inputs and outputs are time multiplexed by the control signals of the multiplexers.
  • Unfolding Another optimization transformation of data flow graph is unfolding, where new programs are created to describe more than one iteration of the original program. For example, unfolding a data graph by a factor of 2 describes 2 consecutive iterations of the data graph. Unfolding can reveal hidden concurrencies so that the design can be scheduled to a smaller iteration period, thus increasing the throughput of the implementation. Unfolding can also used to design parallel processing architectures from serial processing architectures.
  • y[n] ay[n ⁇ 2]+x[n] whose data flow graph is shown in FIG. 4A .
  • the samples are considered to be running indefinitely, thus n can go from zero to infinity.
  • FIG. 5A illustrates a data flow graph representation of a multirate system, comprising nodes A and B.
  • the numbers associated with a node represent the input and output samples of that node. For example, node A takes one input data and generates two output data, and node B takes three input data and generates two output data, as shown in FIG. 5B .
  • FIG. 5C illustrates an unfolding transformation to convert the multirate data graph of FIG. 5A to a single rate data graph where the nodes are duplicated and the outputs of node A are matched with the inputs of node B.
  • FIG. 6A illustrates an exemplary sample sine wave input sequence with time index n.
  • FIG. 6B illustrates a downsampler by 3 where two samples are terminated for every three sample inputs. The sine frequency of the output downsampler is reduced by a factor of 3.
  • FIG. 6C illustrates a representation of the downsampler by 3. The index n is replaced by indexes 3k, 3k+1 and 3k+2. Only the output y[3k] corresponded to the input x[3k] is carried to the next stage, while the other two inputs x[3k+1] and x[3k+2] are terminated and not used at all. Since the terminated inputs x[3k+1] and x[3k+2] are not used, they can be optimized away according to embodiments of the present invention.
  • FIG. 7A illustrates an exemplary sample sine wave input sequence with time index n.
  • FIG. 7B illustrates an upsampler by 3 where two samples are added for every sample input. The sine frequency of the output upsampler is thus increased by a factor of 3.
  • FIG. 7C illustrates a representation of the upsampler by 3.
  • the index n is replaced by indexes 3k, 3k+1 and 3k+2.
  • the output y[3k] is corresponded to the input x[3k], and the other two outputs y[3k+1] and y[3k+2] are generated from zero inputs x[3k+1] and x[3k+2]. Since the inputs x[3k+1] and x[3k+2] are zero inputs, they can be optimized according to embodiments of the present invention.
  • Downsampler can suffer from aliasing since any frequencies present in the original signal will be mapped somewhere in the decimated signal's spectrum. Upsamplers can introduce high frequency images, resulted from rapid variations between successive samples. Thus downsamplers are often preceded by an anti-aliasing filter and upsamplers are often followed by an anti-imaging filter. Other techniques can include polyphase algorithms.
  • Pipelining is an operation at a data flow level, with the pipelining concept originated from water pipe where water is continued sent to the pipe without waiting for the water in the pipe to be out. Pipelining can lead to a reduction in critical data path, which can provide either clock speed increase or power consumption reduction. Pipelining can also be used in parallel processing where multiple outputs are computed in parallel in a clock period.
  • the next signal x[n+1] has to wait until signal y[n] appears before reaching node A.
  • signal z[n] is the input to node B, and thus cannot be changed until node B completes processing.
  • the earliest that signal x[n+1] can be sent to node A is when node B completes processing, e.g., when the output signal y[n] appears.
  • the cycle time of the data flow graph is 2, meaning that each input signal x requires the processing times of both nodes A and B.
  • FIG. 8B illustrates the concept of pipelining as applied to the data flow graph of FIG. 8A .
  • a delay D is introduced to the data path between node A and node B.
  • the delay D can be sequential element such as a register, a memory cell, a flip-flop, or others.
  • a register samples and holds (stores) the input signal so that it can be output in synchronization with the clock of the circuit.
  • one delay on an edge of a data flow graph represents a unit of latency typically introduced by the presence of a register on the corresponding path.
  • the unit of latency can also be implemented through other means, such as different control signals for reading a memory cell.
  • signal x[n] passes through node A after a processing time of node A to become signal z 1 [n].
  • Signal z 1 [n] is delayed by the delay element D before outputting as signal z 2 [n].
  • signal z 2 [n] becomes output signal y[n].
  • the time between the input signal x[n] and the output y[n] is longer by the delay time.
  • the next signal x[n+1] can be sent immediately, without waiting for it to propagate through node B.
  • the input for node B is z 2 [n] which is not affected by the operation of node A, and only controlled by the clock to move signals through the delay element D.
  • the cycle time for the pipelining circuit of FIG. 8B is 1, meaning that each input signal x requires the processing time of either node A or node B, which ever is longer.
  • the tradeoff of the pipelining optimization is the delay time of the initial output, meaning with the delay element D, the first output signal y would be delayed an extra delay time by the delay element D.
  • pipelining concept can be implemented with parallel processing since both techniques exploit concurrency available in the computation in different ways.
  • Pipelining system processes the design in an interleave manner and parallel system processes the design in using duplicate hardware.
  • the pipelining concept can be generalized to a data flow graph.
  • the technique is called retiming, which is also an operation at a data flow level, and includes a transformation to change the locations of delay elements in a design without affecting its input and output characteristics.
  • Retiming algorithms have been used to optimize a design of a circuit.
  • a synchronous circuit works properly only when a signal propagates from one register to another along a combinational path, a path that does not include a register, such as a memory cell, a flip-flop, a delay element, etc., within a specified number of clock cycles (e.g., in one clock period).
  • the maximum signal delay on the paths between the registers determines the minimum clock period in which the circuit can work properly.
  • Registers may be placed or repositioned on a path of the circuit to reduce the maximum signal delay on the path and to reduce the clock period of the circuit.
  • a general retiming algorithm may be used to redistribute some of the registers in the circuit, based on a timing model of the circuit to minimize the clock period.
  • the timing model of a circuit is obtained by putting together the timing models of the combinational computation units, delays (e.g., due to the registers), and interconnections that make up the circuit. Interconnect delays are hard to model and thus often ignored.
  • a typical timing model for a circuit system that includes one or more circuit modules is generated from aggregating the timing models of the combinational computation units of the modules.
  • retiming algorithms include cutset retiming and pipelining.
  • retiming algorithms for clock period minimization or register minimization using the data flow graph are composed of nodes that represent the combinational computation units and edges interconnecting them. Delays (e.g. registers) are represented as weights on the edges. Each node can have an execution time associated with it.
  • FIGS. 9A-9C illustrate a method to construct a data flow graph for retiming.
  • FIG. 9B illustrates an equivalent data flow graph.
  • the multipliers 203 and 207 have a multiplication factor a ( 213 ) and b ( 217 ), respectively.
  • the combinational computation units (e.g., adders 201 , 202 , multipliers 203 and 207 ) in FIG. 9A are represented as nodes (e.g., nodes 221 , 222 , 223 and 227 in FIG. 5B ). Execution time at the combinational computation units is represented by the computation time of the nodes.
  • nodes 221 and 222 each has a computation time of 1 ns, which is required by adders 201 and 202 ; and each of nodes 223 and 227 has a computation time of 2 ns, which is required by a multiplier (e.g., 203 or 207 ).
  • Edge 231 represents the connection between adder 201 (represented by node 221 ) and adder 202 (represented by node 222 ).
  • Edge 231 has a weight (or delay) of 1D, representing register 205 (or the one clock cycle latency due to register 205 ).
  • edge 233 has one delay D representing register 215 , representing the connection between adder 202 (represented by node 222 ) and multiplier 203 (represented by node 223 ).
  • Edge 235 represents the connection between adder 202 (represented by node 222 ) and multiplier 207 (represented by node 227 ) with 2 delay unit D.
  • Edge 237 represents the connection between multiplier 207 (represented by node 227 ) and adder 201 (represented by node 221 ) with no delay.
  • Edge 239 represents the connection between multiplier 203 (represented by node 223 ) and adder 201 (represented by node 221 ) with no delay.
  • a critical path in a data flow graph is the path with the longest computation time among all paths that contain zero delay edges (combinatorial paths). For example, in FIG. 9B , the paths from node 227 to node 221 containing edge 237 and from node 223 to node 221 containing edge 239 have zero delay. The computation time of these paths is 3 ns (of which 2 ns are for node 223 / 227 and 1 ns for node 221 ). Thus, the minimum clock period for the circuit in FIG. 9A is 3 ns.
  • a retiming process would include changing the locations of the delay elements (e.g., delay D in edge 231 in data flow graph 9 B).
  • FIG. 9C illustrates a retimed data flow graph, where the delay on edge 231 can be moved to edges 237 and 239 .
  • the critical path becomes the path between nodes 221 and 222 , which takes only 2 ns of computation time.
  • moving the delay from edge 233 to edges 237 and 239 allows the modified (retimed) data flow graph to be operated at a reduced clock period of 2 ns.
  • the modified data flow graph after the retiming process optimization at a data flow level can be implemented to hardware by removing register 255 and adding a register between multiplier 203 and adder 201 , and a register between multiplier 207 and adder 201 .
  • the clock speed of the output design can be maximized, e.g. by applying a known retiming algorithm for clock period minimization.
  • retiming algorithms are formulated on data flow graphs.
  • Hardware modules often containing registers and memories, do not directly fit in as single nodes.
  • the circuit diagram is translated into data flow graph with a combination of nodes and edges in order to sufficiently represent their timing behavior.
  • the circuit design is broken down into the actual registers and combinational computing elements that make up the module and assigning one node to each combinational computing element.
  • circuit modules in a design are translated into a set of nodes and edges that correspond to the combinational units in the modules and the nets connecting them.
  • the timing model of each hardware module is typically constructed by putting together the timing models of the combinational computation units, delays, and interconnections that make up the hardware module.
  • the aggregation of the set of nodes and edges used in the translation of a particular hardware module is effectively the timing model (data flow graph) of that hardware module.
  • a timing model of a hardware module can be constructed using data from a detailed implementation of the data flow graph model. This data is obtained by feeding an increasing number of registers into the module; retiming (and optimizing) the hardware module; and detecting the critical path within the module as new registers are added to determine the minimum clock period of the module.
  • Retiming algorithm can be used to improve timing on parallel hardware, for example, to increase the clock rate of a circuit by reducing the computation time of the critical path.
  • Retiming can also be used to decrease the number of registers in a circuit. Since retiming can affect the clock period and the number of registers, it can be used for optimize both of these parameters.
  • Retiming can also be used to reduce the power consumption of a circuit by reducing switching, for example, by placing registers at the inputs of nodes with large capacitances can reduce the switching activities at these nodes.
  • FIG. 10A illustrates a data flow graph for a second order recursive digital filter.
  • Nodes F and G represents adders
  • nodes A, B, C, and E represent multipliers
  • block D represents delay on the edges. From the data flow graph, the nodes cannot run in an arbitrary order.
  • the precedence between the nodes is illustrated in FIG. 6B , which shows that nodes A and B have to be completed before node F, and nodes C, E and F have to be completed before node G.
  • nodes A and B run first
  • node F runs second
  • node G runs third.
  • Nodes C and E can be distributed either in first or second.
  • the cycle time is 3.
  • FIG. 11A illustrates the same data flow graph after calculating and implementing a retiming algorithm where three delays are added to the edges to node G.
  • the precedence between the node changes as shown in FIG. 11B .
  • the cycle time is improved to 2 as shown in FIG. 11C .
  • a retiming solution is characterized be a value r(V) for each node V in the graph.
  • a retiming solution is characterized by the values of r(1), r(2), r(3) and r(4).
  • the values of r(V) is called retimed solutions in the following description.
  • the retiming delay between edges in the graph can be calculated.
  • the computation time for the critical path has to be equal or less than c. Since the critical path has zero delay, this requirement can be reformulated so that all paths with a computation time greater than c cannot be the critical path, meaning a path with a computation time greater than c will have at least a delay. This is called the critical path constraint, or the clock period constraint, or the retiming constraint to achieve a target clock period.
  • d ( p ) d ( e 1 )+ d ( e 2 )+ . . . (4)
  • path p comprises edges e 1 , e 2 , . . . .
  • the critical path constraint requires that the retimed delay dr(p) for this path is greater or equal to 1: d r ( p ) ⁇ 1, thus (6) r ( U ) ⁇ r ( V ) ⁇ d ( p ) ⁇ 1 (7)
  • the set of inequality constraint equations can be solved by linear programming algorithm or shortest path algorithm, for example, by Bellman-Ford or Floyd-Warshall algorithm.
  • the general approach to finding a retiming solution with the minimum clock period is to compute the value of W(U,V) and D(U,V), then sort the values of D(U,V) and perform a binary search on these values to find the retiming solution with the minimum clock period.
  • the retiming solution r(V) for a single rate system is an integer, and thus strictly speaking, the constraint inequalities should be solved by integer linear programming.
  • this set of constraint inequalities can be solved by shortest path algorithm.
  • the specific form of constraints makes it possible to solve the problem in polynomial time. The incident matrix is totally unimodular and the solution r(V) is guaranteed to be an all integer solution even without the additional integer constraints.
  • the solution r(V) has to be additional constrained to an all integer vector, resulting in a more complex integer programming problem.
  • node V is an upsampler
  • the feasibility constraint of the multirate retiming problem for an edge e from node U to node V is defined as followed: r ( U ) ⁇ r ( V )/(up rate of V ) ⁇ d ( e ) (9)
  • the multirate system can be unfolded to a single rate before constructing the inequality constraints.
  • the retimed single rate system can be folded back to a retimed multirate system.
  • this algorithm can increase the problem size since an unfolded single rate system is much larger than the corresponding multirate system.
  • the re-transformation of the retimed single rate is not always feasible. The consistency of r vector to make the re-transformation successful is not currently available. Therefore this algorithm is not complete and not totally succeeded in eliminate integer linear programming usage.
  • the present invention discloses a methodology for using the characteristics of the multirate system without transforming the graph, and for solving the multirate problem by multirate constraints.
  • the present methodology discloses formulate the inequality constraints of a multirate system in a form similar to a single rate system while using the multirate constraints.
  • the present methodology can employ shortest path finding algorithm instead of the more complex integer linear programming algorithm in finding normalized retimed solutions.
  • the coefficients of the retimed solution r(V) are all formulated to be unity, thus the multirate feasibility constraints and the multirate minimum clock period constraints are formulated in the form of r(U) ⁇ r(V).
  • This unity coefficient formulation of a multirate system can enable the use of shortest path finding solutions, instead of integer linear programming solutions.
  • operation 1000 introduces a normalized factor for each node of the multirate system with the normalized factor related to the multiple frequencies of the multirate system.
  • the normalized factors are proportional to a least common multiple f 1 cm of the multiple frequencies of the multirate system.
  • the normalized factor for a node u can also be inversely proportional to the frequency f(u) of an outgoing edge of node u.
  • the normalized factor T n representing a relative period for a node u is calculated as followed: T n ( u ) ⁇ f 1 cm /f ( u ) (11)
  • the normalized factor T n is preferably an integer, or can be integerized. Other implementations for the normalized factor T n can also be used, for example, the normalized factor can be proportional to a relative frequency for a node u, the frequency can be related to an incoming edge of node u, or can be multiplied with another factor.
  • the normalized factors are utilized to simplify the constraint inequalities of the multirate system.
  • Operation 1002 normalizes a plurality of retimed solutions of the multirate system according to the normalized factors.
  • the retimed solution vector r(u) can be normalized to r n (u).
  • Operation 1004 formulates the multirate retiming problem using the retimed solutions.
  • the inequality constraints can be formulated in a linear programming form of r n (u) ⁇ r n (v), and which can be solved by shortest path algorithm instead of integer linear programming.
  • the normalized retimed solution r n (u) is designed to allow the formulation of the multirate constraints in a form similar to the single rate retiming problem using the multirate data flow graph. This will prevent an increase of problem size related to unfolding the multirate system to a single rate system.
  • a single rate node i.e., a node with the same incoming frequency and outgoing frequency
  • the retimed solution r(u) is normalized with the normalized factor for a source node for an edge e.
  • the feasibility constraint for a multirate system with normalized retimed solution vector r n can be formulated after multiplying both sides of the above inequality with the normalized factor T n (u): r n ( u ) ⁇ r n ( v ) ⁇ d ( e )* T n ( u ) (14)
  • the normalized retimed solution r n (u) has been formulated to a form similar to the single rate system, or to a form with unity coefficient.
  • This formulation can enable a solution based on shortest path solutions instead of integer linear programming.
  • the normalized retimed solution r n (u) can be formulated as: r n ( u ) ⁇ r n ( v ) ⁇ d n ( e ) (16)
  • a modified single rate formulation can be achieved for a multirate system. Further, a modified single rate algorithm can be used to solve the multirate system using the normalized retimed solutions r n (u).
  • the above example uses the normalized factor of a source node T n (u) in normalizing the retimed solution vector r and the edge vector d.
  • the normalization is not limited to the source node u, and other implementations for the normalizing factor can be used, for example, the normalized factor of the destination node v.
  • the normalized factor can be proportional to the frequency of the node, for example, the up rate or the down rate of a rate change node.
  • the normalized factor can be proportional to the up rate of an upsampler node, or inversely proportional to the down rate of a down sampler node.
  • the present methodology discloses a multirate consistency for a multirate node (i.e., node with different incoming frequency and outgoing frequency) where the retimed solution for the multirate node is proportional to the outgoing frequency and inversely proportional to the incoming frequency: r n ( u ) ⁇ outgoing frequency( u )/incoming frequency( u )
  • the normalized factor for an upsampler node is r n ( u ) ⁇ up rate
  • both normalized factors T n and outgoing/incoming frequencies can be employed.
  • the present methodology normalizes a plurality of parameters of a multirate system and then reformulates the multirate retiming problem to a form similar to the single rate retiming problem, e.g., enabling shortest path finding solutions or unity coefficient for the retimed solutions.
  • FIG. 13 shows a method to retime a multirate system according to an embodiment of the present invention.
  • operation 1010 introduces a normalized factor for each node of the multirate system with the normalized factor related to the multiple frequencies of the multirate system.
  • Operation 1012 then normalizes a plurality of parameters of the multirate system according to the normalized factors.
  • the normalized parameters include edge delay, target clock period and retimed solutions.
  • a parameter can be normalized to one or a plurality of normalized values.
  • an edge delay can be normalized to a normalized edge delay with the normalized factor of a source node.
  • the normalized target clock periods can be utilized in formulating the retiming constraints to achieve the target clock period.
  • a path p(v 0 , v 1 , . . . , v k ) which starts with node v 0 , continues to node v 1 , etc., and ends at node v k
  • the total processing time t(p) for the path p is the sum of the execution time t(v) for all the nodes in the path:
  • t ( p ) ⁇ v is a node of p t ( V ) (17)
  • a modified retiming constraints to achieve the target clock period according to an aspect of the present invention is that a path p with the total execution time t(p) greater than the normalized target clock period for the end node v k , the path is not a critical path.
  • Operation 1014 defines retiming constraints for the nodes of the multirate system to obey a multirate consistency. For example, in a multirate system where the clock frequency is only changed through the upsamplers or downsamplers, the frequency increases through an upsampler, and decreases through a downsampler.
  • the normalized retimed solution r n (u) for a node that is not an upsampler or a downsampler is a product of the retimed solution r(u) and the normalized factor for that node.
  • the normalized retimed solution r n (u) for that node is a product of the retimed solution r(u), the up rate of the upsampler, and the normalized factor for that node.
  • the normalized retimed solution r n (u) for that node is a product of the retimed solution r(u) and the normalized factor for that node, and divided by the down rate of the downsampler.
  • multirate consistency constraints provide the consistency for the change in frequencies of a node through an upsampler or a downsampler.
  • the multirate consistency constraint further provides the feasibility constraint for a multirate system in a form similar to the single rate system.
  • the multirate feasibility constraint for an edge e having a normal node u and an upsampler node v is r ( u ) ⁇ r ( v )/(up rate of v ) ⁇ d ( e ) (9)
  • the rate change node can be modeled by using downsamplers and upsamplers, and the above multirate consistency constraints can be utilized.
  • any multirate node can be modeled with upsamplers and downsamplers, thus the above multirate consistency constraint is not a limitation to a generic multirate system.
  • other forms of multirate consistency can be used.
  • Operation 1016 then formulates the multirate retiming problem to a form similar to the single rate retiming problem, using the normalized single rate retiming constraints and the multirate consistency constraints.
  • the normalized single rate retiming constraints include the retiming constraints for feasibility (r n (u) ⁇ r n (v) ⁇ d n (e)), which is formulated with normalized factors in a form similar to the single rate system.
  • the retiming constraints to achieve a target clock period in the form of single rate system for the normalized parameters can be formulated similar to the formulation of the inequality constraints of the single rate.
  • the present methodology solves the retiming problem of a multirate system such as a DSP system, to achieve a given clock period in a computationally efficient way, and with a computational complexity comparable to that of a single rate system.
  • FIG. 14 shows a method to retime a multirate system according to a preferred embodiment of the present invention.
  • the multirate system is represented by a multirate directed graph G(V, E, d, t, f), with V representing the nodes, E representing the edges between the nodes, d showing the delays on each edge, t representing the processing or execution time on each node, and f representing the clock frequency of outgoing edges of each node.
  • Operation 1020 introduces a normalized factor for each node of the multirate system with the normalized factor related to the multiple frequencies of the multirate system.
  • Operation 1021 then normalizes a plurality of edge delays, retimed solutions, and target clock period of the multirate system according to the normalized factors. For example, an edge delay can be normalized to a normalized edge delay with the normalized factor of a source node.
  • an edge delay is normalized to the incoming edge of a node
  • the target clock period is normalized according to a source node of a path
  • the retimed solution is normalized according to the frequency at an incoming edge.
  • Operation 2022 defines retiming constraints for feasibility using normalized edge delays d n (e) and normalized retimed solution r n (v).
  • the feasibility constraints can be put in a form similar to that of a single rate system using the normalized parameters to eliminate integer linear programming usage. r n ( u ) ⁇ r n ( v ) ⁇ d n ( e ) (23)
  • This feasibility constraint is derived from the desire to simplify the retiming problem of multirate system. This is the present innovative variation of the feasibility constraint for an upsampler or a downsampler, which are r ( u ) ⁇ r ( v )/(up rate of v ) ⁇ d ( e ) and (9) r ( u ) ⁇ r ( v )*(down rate of v ) ⁇ d ( e ) (10)
  • Operation 1023 defines retiming constraints to achieve a target clock period. Similar to the feasibility constraints, the critical constraints can be put in a form similar to that of a single rate system using the normalized parameters to eliminate integer linear programming usage.
  • the present invention discloses a simple but not sub-optimal method to define the clock constraints.
  • the constraints are defined according to the destination clock period, or the destination node of the path p.
  • the normalized clock period constraint is derived from the clock period constraint (7) for single rate system, by multiplying with the normalized factor vector, where W(p) is the minimum delay for path p ( r ( v 0 ) ⁇ r ( v k ) ⁇ W ( p ) ⁇ 1)* T n r n ( v 0 ) ⁇ r n ( v k ) ⁇ W n ( p ) ⁇ T n (24)
  • a minimum normalized factor T min (p) can be used r n ( v 0 ) ⁇ r n ( v k ) ⁇ W n ( p ) ⁇ T min ( p )
  • any other normalized factor can be used, for example, a maximum normalized factor for the path p, T max (p), or any normalized factor for a node x in the path p, T n (x), and a maximum value for the total normalized weight (or delay) of the path p, W nmax (p).
  • the maximum value of W n and the minimum value of T n can remove superfluous constraints for the constraints of (24).
  • a graph search algorithm can be applied to solve the single source shortest path problem. Because a feasible system should not have any algebraic loop, and there is not any negative cycle in the graph, thus in an aspect, Dijkstra's algorithm can be used.
  • the present constraint setting can prevent superfluous constraint generation. For example, consider the path p(v 0 , v 1 , . . . , v k ). If the total processing time t(p) of the path p exceeds the normalized clock period (target clock period*T n (v k )), then the clock period constraint between v 0 and v k should be defined. But if the path p 2 (v 0 , v 1 , . . .
  • v k-1 which is a sub path of p, also exceeds the timing constraint, i.e., t(p 2 )>(target clock period*T n (v k-1 )), then there should also be a timing constraint between v 0 and v k-1 .
  • the constraint of p 2 makes the constraint of p unnecessary, meaning the constraint of p becomes superfluous.
  • the present algorithm prevents this superfluous constraint, limiting the number of constraints in the order of O(E). If the superfluous constraints are defined, then the number of constraints is limited by O(V 2 ).
  • Dist is a vector of lexicographically ordered triplet (W, tNeg, T min ) where tNeg is the negative of t(p). It is negated to use lexicographical comparison.
  • Q is a min-priority queue, supporting operations INSERT, IsEMPTY, EXTRACT-MIN, DELETE. The following is an exemplary code:
  • Dist(u).W INF 2.
  • Dist(u). tNeg INF 3.
  • u owner node of the minDist 3. if (minDist.
  • Dist(v) newDistOfV ⁇
  • worst case run time complexity of the above clock period constraint definition algorithm is O(V ⁇ E ⁇ log(V)), which is polynomial.
  • the memory requirement of this algorithm is O(V+E).
  • Operation 1024 defines retiming constraints for the nodes of the multirate system to obey a multirate consistency.
  • the multirate consistency constraints apply to upsamplers, downsamplers, or both samplers.
  • the multirate consistency for upsamplers constrains the normalized retime solution r n (u) for node u to be a multiple of the up rate of the upsampler and the normalized factor of node u.
  • other multirate nodes can be converted to upsamplers and downsamplers, before using the consistency constraints of upsamplers and downsamplers.
  • the set of retiming constraints containing feasibility constraints, clock period constraints, and multirate consistency constraints, can be solved to get the normalized retimed solution r n (u).
  • Operation 1025 finds the normalized retimed solutions satisfied the retiming constraints for the multirate system.
  • a modified algorithm is used to solve the above constraints.
  • the modified algorithm introduces a dummy source node to the directed graph G to form the directed graph G t , and calculates the distance vector for the edges. If G t contains a negative cycle, the algorithm exits with an infeasibility sign. Then the algorithm searches for the shortest path from the dummy source node to all other nodes to find the normalized retimed solution r n satisfying the formulated constraints.
  • V t V t , E t , d t
  • V t V t is the nodes of the G t . it is equal the original V and a dummy source node.
  • E t is the edges of the G t .
  • d t is the distance vector of the edges ( i.e. d t (e) shows the distance on e).
  • the worst case run time complexity of above algorithm to find feasible r n vector is O(V ⁇ E ⁇ log(V)) which is polynomial.
  • the memory requirement is O(V+E). If the superfluous constraint generation is not prevented, the timing complexity of the algorithm would increase significantly to O(V 3 ⁇ log(V)) and the memory requirement to O(V 2 ).
  • operation 1026 sets retimed edge delays according to the normalized retimed solutions.
  • the present invention discloses reformulation of the multirate retiming problem and the simplifications within the solution of the reformulated problem.
  • the present constraint inequalities can be solved by shortest path algorithm without unfolding the multirate system to single rate system.
  • the multirate problem is solved in the present algorithm by multirate constraints.
  • the present algorithm can eliminate integer linear programming usage without any sub optimality with the present innovative clock period setting definition.
  • the present algorithm also consider the critical path break capability of registers on a faster clock domain, for example, in a multirate path having a faster clock in the middle (i.e. there is a faster clock on the path more then source and end of the path).
  • the present clock period setting definition can provide optimal constraint formulation, taking advantage of slower clock domain.
  • the present algorithm also discloses a way to eliminate superfluous constraints, providing more efficient algorithm in terms of computational time and memory usage.
  • the present algorithm can increase the practically solvable multirate DSP system size by at least an order of magnitude. It is also easier to implement and less error prone than prior algorithms, eliminating integer linear programming usage which is computationally more complex. Further, to find the clock period constraints, unfolding of multirate system is not needed, which reduces additional complexity and graph size. As a result, the present algorithm can solve larger multirate retiming problems in shorter time without any optimality tradeoff.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Advance Control (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

Methods and apparatuses for retiming of multirate system for clock period minimization with a polynomial time without sub-optimality. In an embodiment, a normalized factor vector for the nodes of multirate graph is introduced, allowing the formulation of the multirate graph retiming constraints to a form similar to a single rate graph. In an aspect, the retiming constraints are formulated to allowed the usage of linear programming methodology instead of integer linear programming, thus significantly reducing the complexity of the solving algorithm. The present methodology also uses multirate constraints, avoiding unfolding to single rate equivalent, thus avoiding graph size increase. In a preferred embodiment, the parameters of the multirate system are normalized to the normalized factor vector, providing efficient algorithm in term of computational time and memory usage, without any sub-optimality.

Description

RELATED APPLICATIONS
The present application is a divisional of U.S. application Ser. No. 12/323,326, filed on Nov. 25, 2008, now U.S. Pat. No. 8,024,686, to issue on Sep. 20, 2011.
FIELD OF THE INVENTION
The invention relates to circuit design, and more particularly to retiming of multirate systems.
BACKGROUND
Advances in data flow programs for digital signal processing has provided significant progress in circuit optimization using data flow graphs, especially for parallel computers. A data flow graph representation is a popular hardware and software methodology where algorithms are described as directed graphs with nodes representing computations (or functions or subtasks) and edges representing data paths (communications between nodes). A data flow algorithm is mainly concerned with the flow of data and not with the actual computation process, and is a natural paradigm for describing digital signal processing applications for concurrent implementation on parallel hardware. For concurrent implementations, a task is broken into subtasks that are then scheduled onto parallel processors.
For example, FIG. 1A illustrates a circuit block diagram describing the computation y[n]=ay[n−1]+x[n]. This is a feedback function where the computational output y[n] depends on the value of its previous output y[n−1]. The block diagram shows a delay block D, which can be a delay register, to store the previous value of the output y. A multiplication block X is provided to multiply the delay output y[n−1] and a constant a. An addition block + is provided to add the input x[n] with the multiplied delay output ay[n−1]. A key feature of a circuit block diagram is that the functionality of the circuit can be understood and derived from the circuit block diagram. For example, the computation y[n]=ay[n−1]+x[n] can be calculated from the circuit block diagram of FIG. 1A at a circuit operation level.
FIG. 1B illustrates a data flow graph of this block diagram with node A representing the addition block and node B representing the multiplication block. The edge from B to A (B→A) represents the data path from the multiplication block to the addition block, and the edge from A to B (A→B) represents the data path from the addition block to the multiplication block. The delay D is inserted to the data path from A to B to show that the edge from A to B (A→B) contains one delay (e.g., 1 clock cycle delay). The input branch x[n] and the output branch y[n] are shown in dotted lines, mainly for an illustration of the correlation with the block diagram of FIG. 1A. In practice, the input and output branches are typically not shown in a data flow graph (e.g., FIG. 1C). Alternatively, the delay D can be shown in the vicinity of the edge (FIG. 1C).
Other information can be included in the data flow graph, for example, information related to synchronous data flow graph to show that execution of nodes A and B consumes one data sample and produces output. This is illustrated by a number 1 from the edge coming to node A/B and a number 1 from the edge coming out of node A/B. Each node can have an execution time associated with it, for example, the amount of time required to execute node A (addition computation) is 2 time units (e.g., 2 clock cycles), and the amount of time required to execute node B (multiplication computation) is 4 time units. This is illustrated by a number in parentheses (2) and (4) in the vicinity of nodes A and node B, respectively.
Typically, operations of a data flow graph at a data flow level are operations related only to the data flow without regard to functional or computational operations. For example, the critical path of a data flow graph is defined to be the path with the longest computation time among all paths that contain zero delay. Thus the critical path in the data flow graph shown in FIG. 1B is the path B→A, which requires 6 time units. Optimizing the critical path is an example of optimizing a data flow graph at a data flow level.
The illustrated data flow graph describes a single rate system where all nodes consume one data sample and produce one output relative to a clock cycle. In multirate systems, the number of data samples consumed and produced can be different than 1, such as in a system where the nodes operate at different frequencies or a decimator or an interpolator. For example, a ↓2 decimator rejects every other data sample, thus producing one data output for every 2 data samples consumed. A ↑2 interpolator introduces an addition data output for every data sample, thus producing 2 data outputs for every 1 data sample consumed.
In addition to being natural to digital signal processing, a data flow graph representation has another advantage of generating the same results for any implementations of the data flow description, as long as the integrity of the flow of data is preserved. Thus, data flow graph representations can be an indispensable tool in scheduling and mapping circuit design representation onto hardware.
The current data flow graph representations employ nodes and edges, together with using linear programming to optimize the flow of data to achieve a desired clock.
SUMMARY OF THE DESCRIPTION
The present invention relates to methods and apparatuses to design a circuit, and particularly to retiming of multirate systems. The methods can be used to optimize a design for a circuit to achieve an improved design, which can then be used to build the circuit. The optimized design can be used to create a net list of other data structure, which is then used to program or create a circuit in an integrated circuit.
In an embodiment, the present invention discloses normalizing the retimed solutions for the nodes of a multirate data flow graph. In an aspect, the present invention discloses a normalization factor vector for a multirate data flow graph. The normalized formulation of the multirate retiming problem (e.g., normalization factor vector and/or the normalized retimed solutions) can enable shortest path finding solutions instead of the more complex integer linear programming solutions, and can enable a formulation of the retiming problem of a multirate system in the form of a single rate system.
Single rate retiming is a more extensive studied topic and there exist more efficient optimization algorithms than multirate retiming. With the present formulation in the form of single rate constraints, it can leverage these efficient algorithms and thus can find a better retiming. For example, a retiming may be derived for a single rate system by solving a linear programming problem. Conventional multirate system has different rates on the edges and potentially changes this to a more complicated integer linear programming problem. In an embodiment, the present invention formulates the retiming problem of a multirate system to enable linear programming solutions and/or shortest path finding solutions though normalizing the different rates on the edges of the multirate system.
In an embodiment, the present invention discloses an algorithm for retiming of multirate DSP system for clock period minimization, which in many cases, can be solved with polynomial time and without any sub-optimality. The present multirate retiming methodology that can be solved with shortest path algorithm, eliminating integer linear programming which is computational more complex, and can be easier to implement and less error prone. With the present method, practical solvable multirate system size, e.g., DSP system, increases significantly, estimated to be at least an order of magnitude. By working directly with the multirate system, the present method also does not suffer from the issue of graph size increase and additional complexity associated with system unfolding.
In an embodiment, the present method introduces a normalization factor for each node or edge of the multirate data flow graph. In an aspect, the normalized factor serves to normalize the various frequencies within the multirate system. With the normalized factor, an upsampler node or a downsampler node can be treated as a single rate node, enabling the utilization of single rate formulation on the setting the retiming constraints for a multirate system without unfolding. For example, the normalization factor can be an integerized relative period vector Tn, proportional to the least common multiple of the frequencies of the outgoing edges of each node. The parameters of the multirate system are then normalized using the normalization factors, and the normalized parameters establish a system of inequality constraints for the retiming solutions. A multirate consistency constraint can be introduced to impose consistent rate changes within the multirate system. For example, the retimed solution for a node can be normalized with the up rate and/or down rate of the node. In an aspect, the edge delay for an edge is normalized by the normalization factor for the source node of this edge. The target clock period is normalized to a plurality of target clock periods, each for a path, which can be calculated by the normalization factor for the end node of the path. The retiming constraints for feasibility for the present multirate system are then constructed from the normalized retimed solutions using the normalized edge delays. The retiming constraints to achieve the target clock period can be constructed using the normalized target clock period, together with the retiming constraints to obey the multirate consistency. Other alternatives to the above implementation of normalized parameters of the multirate system can be considered.
The present retiming algorithm for multirate system can have simplicity advantages, does not increase the graph size since there is no unfolding transformation, solves multirate constraints using multirate graph, does not require integer linear programming methodology, eliminates superfluous constraints, does not have any sub-optimality, and provide optimal on clock period setting.
The present invention includes methods and apparatuses, which perform these methods, including data processing systems that perform these methods, and computer readable media which when executed on data processing systems cause the systems to perform these methods.
Other features of the present invention will be apparent from the accompanying drawings and from the detailed description that follows.
BRIEF DESCRIPTION OF THE DRAWINGS
The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings in which like references indicate similar elements.
FIGS. 1A-1C illustrate exemplary representations of a design with circuit schematic and data flow graph.
FIG. 2 shows a block diagram example of a data processing system which may be used with the present invention.
FIG. 3 illustrates an exemplary folding transformation.
FIGS. 4A-4B illustrate an exemplary unfolding transformation.
FIGS. 5A-5C illustrate another exemplary unfolding transformation.
FIGS. 6A-6C illustrate an exemplary downsampler.
FIGS. 7A-7C illustrate an exemplary upsampler.
FIGS. 8A-8B illustrate an exemplary pipelining optimization for data flow representation.
FIGS. 9A-9C illustrate a prior art method to construct a data flow graph for retiming.
FIGS. 10A-10C illustrate an exemplary un-optimized system.
FIGS. 11A-11C illustrate an exemplary optimized system using parallel processors.
FIG. 12 shows a method for retiming a multirate system according to an embodiment of the present invention.
FIG. 13 shows a method for retiming a multirate system according to another embodiment of the present invention.
FIG. 14 shows a preferred method for retiming a multirate system according to an embodiment of the present invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
The following description and drawings are illustrative of the invention and are not to be construed as limiting the invention. Numerous specific details are described to provide a thorough understanding of the present invention. However, in certain instances, well known or conventional details are not described in order to avoid obscuring the description of the present invention. References to “an” or “one embodiment” in the present disclosure are not necessary to the same embodiment; and, such references mean at least one.
At least one embodiment of the present invention seeks to formulate a retiming problem of a multirate digital signal processing system to a form similar to a single rate retiming problem, which a computational shortest path algorithm can be used to solve it. Single rate retiming problem formulation is much simpler, can be solved by shortest path algorithm instead of integer linear programming, and possesses many useful results regarding delay counts of paths and cycles. In an aspect, the present invention formulates the multirate system directly without unfolding transformations, thus retain multirate system architecture and avoiding the difficult re-transformations from single rate back to multirate.
In an embodiment, the present invention introduces normalized parameters, for example, normalized retimed solutions, for the multirate system. In an aspect, the present invention introduces normalization factors for the nodes of a multirate system and normalizes the parameters of the multirate system to the normalization factors. The normalization parameters allow the setting of constraint inequalities for the retiming problems of the multirate system with unit coefficients (i.e., 1) for the retimed solutions, thus enabling the solving of the normalized constraint inequalities of the multirate system using linear programming/shortest path algorithm, instead of integer linear programming. Linear programming solution is much simpler, with optimizable shortest path algorithm.
Many of the methods of the present invention may be performed with a digital processing system, such as a conventional, general-purpose computer system. Special purpose computers, which are designed or programmed to perform only one function, may also be used.
FIG. 2 shows one example of a typical computer system which may be used with the present invention. Note that while FIG. 2 illustrates various components of a computer system, it is not intended to represent any particular architecture or manner of interconnecting the components as such details are not germane to the present invention. It will also be appreciated that network computers and other data processing systems which have fewer components or perhaps more components may also be used with the present invention. The computer system of FIG. 2 may, for example, be a Sun workstation, or a personal computer (PC) running a Windows operating system, or an Apple Macintosh computer.
As shown in FIG. 2, the computer system 101, which is a form of a data processing system, includes a bus 102 which is coupled to a microprocessor 103 and a ROM 107 and volatile RAM 105 and a non-volatile memory 106. The microprocessor 103 is coupled to cache memory 104 as shown in the example of FIG. 2. The bus 102 interconnects these various components together and also interconnects these components 103, 107, 105, and 106 to a display controller and display device 108 and to peripheral devices such as input/output (I/O) devices which may be mice, keyboards, modems, network interfaces, printers, scanners, video cameras and other devices which are well known in the art. Typically, the input/output devices 110 are coupled to the system through input/output controllers 109. The volatile RAM 105 is typically implemented as dynamic RAM (DRAM) which requires power continually in order to refresh or maintain the data in the memory. The non-volatile memory 106 is typically a magnetic hard drive or a magnetic optical drive or an optical drive or a DVD RAM or other type of memory systems which maintain data even after power is removed from the system. Typically, the non-volatile memory will also be a random access memory although this is not required. While FIG. 2 shows that the non-volatile memory is a local device coupled directly to the rest of the components in the data processing system, it will be appreciated that the present invention may utilize a non-volatile memory which is remote from the system, such as a network storage device which is coupled to the data processing system through a network interface such as a modem or Ethernet interface. The bus 102 may include one or more buses connected to each other through various bridges, controllers and/or adapters as is well known in the art. In one embodiment, the I/O controller 109 includes a USB (Universal Serial Bus) adapter for controlling USB peripherals, and/or an IEEE-1394 bus adapter for controlling IEEE-1394 peripherals.
It will be apparent from this description that aspects of the present invention may be embodied, at least in part, in software. That is, the techniques may be carried out in a computer system or other data processing system in response to its processor, such as a microprocessor, executing sequences of instructions contained in a memory, such as ROM 107, volatile RAM 105, non-volatile memory 106, cache 104 or a remote storage device. In various embodiments, hardwired circuitry may be used in combination with software instructions to implement the present invention. Thus, the techniques are not limited to any specific combination of hardware circuitry and software nor to any particular source for the instructions executed by the data processing system. In addition, throughout this description, various functions and operations are described as being performed by or caused by software code to simplify description. However, those skilled in the art will recognize what is meant by such expressions is that the functions result from execution of the code by a processor, such as the microprocessor 103.
A machine readable medium can be used to store software and data which when executed by a data processing system causes the system to perform various methods of the present invention. This executable software and data may be stored in various places including for example ROM 107, volatile RAM 105, non-volatile memory 106 and/or cache 104 as shown in FIG. 2. Portions of this software and/or data may be stored in any one of these storage devices.
Thus, a machine readable medium includes any mechanism that provides (i.e., stores) information in a form accessible by a machine (e.g., a computer, network device, personal digital assistant, manufacturing tool, any device with a set of one or more processors, etc.). For example, a machine readable medium includes recordable/non-recordable media (e.g., read only memory (ROM); random access memory (RAM); magnetic disk storage media; optical storage media; flash memory devices; etc.).
Data flow graph is a technique for programming signal processors based on data flow, and which should ease the programming tasks by enhancing the modularity of code and permit algorithms to be describe more naturally. In addition, data flow processing provides concurrent implementation of DSP applications on parallel hardware. Typical data flow optimizations to be summarized below include pipelining, retiming, unfolding and folding. Detailed descriptions of data flow graph techniques can be found in “VLSI Digital Signal Processing Systems: Design and Implementation” by Keshab K. Parhi, Wiley-Interscience, 1999.
A transformation of data flow graph is folding where multiple operations are time multiplexed to a single functional unit. By executing multiple operations in only one functional unit, the number of functional units can be reduced, resulting in a reduction in chip area. The tradeoff of chip area reduction is the increase in frequency where the time multiplexed functional units have to run at multiple clock frequency values. Folding algorithm can be implemented for single or multiple clocks. Since folding changes clock frequency of the functional units, multirate system can be used to further reduce the chip area than the single rate system.
FIG. 3 illustrates the folding transformation concept, where three identical functional units (representing by same node Z) run on different inputs and generate different outputs. The folding transformation reduces the number of functional units to one, and introduces a number of multiplexers for the inputs and outputs for the remaining functional unit. The folding factor is 3, meaning three functional units are folded into one. The clock frequency for the remaining functional unit is likewise increase by the same folding factor, with the inputs and outputs are time multiplexed by the control signals of the multiplexers.
Another optimization transformation of data flow graph is unfolding, where new programs are created to describe more than one iteration of the original program. For example, unfolding a data graph by a factor of 2 describes 2 consecutive iterations of the data graph. Unfolding can reveal hidden concurrencies so that the design can be scheduled to a smaller iteration period, thus increasing the throughput of the implementation. Unfolding can also used to design parallel processing architectures from serial processing architectures.
For example, consider a DSP program y[n]=ay[n−2]+x[n] whose data flow graph is shown in FIG. 4A. The samples are considered to be running indefinitely, thus n can go from zero to infinity. If the index n is replaced with 2k and 2k+1, the above program can be represented by 2 following programs which describe 2 consecutive iterations:
y[2k]=ay[2k−2]+x[2k]
y[2k+1]=ay[2k−1]+x[2k+1]
For example, for k=3, the 2 equations are y[6]=ay[4]+x[6] and y[7]=ay[5]+x[7], which are the same for the original program with n=6 and n=7. The data flow graph representation for the unfolding transformation is shown in FIG. 4B.
Unfolding transformation can be used to unfold multirate system to single rate system. FIG. 5A illustrates a data flow graph representation of a multirate system, comprising nodes A and B. The numbers associated with a node represent the input and output samples of that node. For example, node A takes one input data and generates two output data, and node B takes three input data and generates two output data, as shown in FIG. 5B. FIG. 5C illustrates an unfolding transformation to convert the multirate data graph of FIG. 5A to a single rate data graph where the nodes are duplicated and the outputs of node A are matched with the inputs of node B.
Multirate transformations include upsamplers and downsamplers. FIG. 6A illustrates an exemplary sample sine wave input sequence with time index n. FIG. 6B illustrates a downsampler by 3 where two samples are terminated for every three sample inputs. The sine frequency of the output downsampler is reduced by a factor of 3. In terms of data flow graph representation, FIG. 6C illustrates a representation of the downsampler by 3. The index n is replaced by indexes 3k, 3k+1 and 3k+2. Only the output y[3k] corresponded to the input x[3k] is carried to the next stage, while the other two inputs x[3k+1] and x[3k+2] are terminated and not used at all. Since the terminated inputs x[3k+1] and x[3k+2] are not used, they can be optimized away according to embodiments of the present invention.
FIG. 7A illustrates an exemplary sample sine wave input sequence with time index n. FIG. 7B illustrates an upsampler by 3 where two samples are added for every sample input. The sine frequency of the output upsampler is thus increased by a factor of 3. In terms of data flow graph representation, FIG. 7C illustrates a representation of the upsampler by 3. The index n is replaced by indexes 3k, 3k+1 and 3k+2. The output y[3k] is corresponded to the input x[3k], and the other two outputs y[3k+1] and y[3k+2] are generated from zero inputs x[3k+1] and x[3k+2]. Since the inputs x[3k+1] and x[3k+2] are zero inputs, they can be optimized according to embodiments of the present invention.
Downsampler can suffer from aliasing since any frequencies present in the original signal will be mapped somewhere in the decimated signal's spectrum. Upsamplers can introduce high frequency images, resulted from rapid variations between successive samples. Thus downsamplers are often preceded by an anti-aliasing filter and upsamplers are often followed by an anti-imaging filter. Other techniques can include polyphase algorithms.
Another transformation is pipelining. Pipelining is an operation at a data flow level, with the pipelining concept originated from water pipe where water is continued sent to the pipe without waiting for the water in the pipe to be out. Pipelining can lead to a reduction in critical data path, which can provide either clock speed increase or power consumption reduction. Pipelining can also be used in parallel processing where multiple outputs are computed in parallel in a clock period.
Consider a data flow graph shown in FIG. 8A including node A and node B. Signal x[n] is provided to node A, generating output z[n], which is then provided to node B, generating output y[n]. Without pipelining, the signal x[n] has to propagate all the way to y[n], processed by both nodes A and B before the next signal x[n+1] can be sent. As shown in FIG. 8A, the delay between input signal x[n] and intermediate signal z[n] is the processing time of node A. Assuming that there is no delay in the signal path from node A to node B, signal z[n] appears immediately at input of node B after coming out of node A. And similarly, the delay time between signal z[n] and output signal y[n] is the processing time of node B. Thus output signal y[n] appears after the processing times of nodes A and B.
Without pipelining, the next signal x[n+1] has to wait until signal y[n] appears before reaching node A. In other words, signal z[n] is the input to node B, and thus cannot be changed until node B completes processing. The earliest that signal x[n+1] can be sent to node A is when node B completes processing, e.g., when the output signal y[n] appears. As can be seen in FIG. 8A, the cycle time of the data flow graph is 2, meaning that each input signal x requires the processing times of both nodes A and B.
FIG. 8B illustrates the concept of pipelining as applied to the data flow graph of FIG. 8A. A delay D is introduced to the data path between node A and node B. The delay D can be sequential element such as a register, a memory cell, a flip-flop, or others. For example, a register samples and holds (stores) the input signal so that it can be output in synchronization with the clock of the circuit. Further, it is understood that one delay on an edge of a data flow graph represents a unit of latency typically introduced by the presence of a register on the corresponding path. However, the unit of latency can also be implemented through other means, such as different control signals for reading a memory cell.
With the addition of the delay D, signal x[n] passes through node A after a processing time of node A to become signal z1[n]. Signal z1[n] is delayed by the delay element D before outputting as signal z2[n]. After processed through node B, signal z2[n] becomes output signal y[n]. As shown in FIG. 8B, the time between the input signal x[n] and the output y[n] is longer by the delay time. However, as long as node A finishes processing, the next signal x[n+1] can be sent immediately, without waiting for it to propagate through node B. The input for node B is z2[n] which is not affected by the operation of node A, and only controlled by the clock to move signals through the delay element D. Thus the cycle time for the pipelining circuit of FIG. 8B is 1, meaning that each input signal x requires the processing time of either node A or node B, which ever is longer. The tradeoff of the pipelining optimization is the delay time of the initial output, meaning with the delay element D, the first output signal y would be delayed an extra delay time by the delay element D.
Alternatively, pipelining concept can be implemented with parallel processing since both techniques exploit concurrency available in the computation in different ways. Pipelining system processes the design in an interleave manner and parallel system processes the design in using duplicate hardware.
The pipelining concept can be generalized to a data flow graph. The technique is called retiming, which is also an operation at a data flow level, and includes a transformation to change the locations of delay elements in a design without affecting its input and output characteristics.
Retiming algorithms have been used to optimize a design of a circuit. Typically, a synchronous circuit works properly only when a signal propagates from one register to another along a combinational path, a path that does not include a register, such as a memory cell, a flip-flop, a delay element, etc., within a specified number of clock cycles (e.g., in one clock period). Thus, the maximum signal delay on the paths between the registers (e.g., due to the computation time of the combinational computing elements on a path and the wire delays) determines the minimum clock period in which the circuit can work properly. Registers may be placed or repositioned on a path of the circuit to reduce the maximum signal delay on the path and to reduce the clock period of the circuit. A general retiming algorithm may be used to redistribute some of the registers in the circuit, based on a timing model of the circuit to minimize the clock period.
Typically, the timing model of a circuit is obtained by putting together the timing models of the combinational computation units, delays (e.g., due to the registers), and interconnections that make up the circuit. Interconnect delays are hard to model and thus often ignored. A typical timing model for a circuit system that includes one or more circuit modules is generated from aggregating the timing models of the combinational computation units of the modules.
Algorithms for single rate retiming have been studied and formulated based on data flow graphs, for example, in “VLSI Digital Signal Processing Systems: Design and Implementation” by Keshab K. Parhi, pp. 91-118, Wiley-Interscience, 1999. For example, retiming algorithms include cutset retiming and pipelining. Further, there exist retiming algorithms for clock period minimization or register minimization using the data flow graph. Data flow graphs are composed of nodes that represent the combinational computation units and edges interconnecting them. Delays (e.g. registers) are represented as weights on the edges. Each node can have an execution time associated with it.
For example, FIGS. 9A-9C illustrate a method to construct a data flow graph for retiming. FIG. 9A illustrates a circuit block diagram of an IIR filter
y[n]=ay[n−2]+by[n−3]+x[n],
and FIG. 9B illustrates an equivalent data flow graph. There are two adders 201 and 202, two multipliers 203 and 207, and delay registers 205, 211 and 215. The multipliers 203 and 207 have a multiplication factor a (213) and b (217), respectively. The combinational computation units (e.g., adders 201, 202, multipliers 203 and 207) in FIG. 9A are represented as nodes (e.g., nodes 221, 222, 223 and 227 in FIG. 5B). Execution time at the combinational computation units is represented by the computation time of the nodes. For example, nodes 221 and 222 each has a computation time of 1 ns, which is required by adders 201 and 202; and each of nodes 223 and 227 has a computation time of 2 ns, which is required by a multiplier (e.g., 203 or 207). Edge 231 represents the connection between adder 201 (represented by node 221) and adder 202 (represented by node 222). Edge 231 has a weight (or delay) of 1D, representing register 205 (or the one clock cycle latency due to register 205). Similarly, edge 233 has one delay D representing register 215, representing the connection between adder 202 (represented by node 222) and multiplier 203 (represented by node 223). Edge 235 represents the connection between adder 202 (represented by node 222) and multiplier 207 (represented by node 227) with 2 delay unit D. Edge 237 represents the connection between multiplier 207 (represented by node 227) and adder 201 (represented by node 221) with no delay. Edge 239 represents the connection between multiplier 203 (represented by node 223) and adder 201 (represented by node 221) with no delay.
A critical path in a data flow graph is the path with the longest computation time among all paths that contain zero delay edges (combinatorial paths). For example, in FIG. 9B, the paths from node 227 to node 221 containing edge 237 and from node 223 to node 221 containing edge 239 have zero delay. The computation time of these paths is 3 ns (of which 2 ns are for node 223/227 and 1 ns for node 221). Thus, the minimum clock period for the circuit in FIG. 9A is 3 ns.
A retiming process would include changing the locations of the delay elements (e.g., delay D in edge 231 in data flow graph 9B). FIG. 9C illustrates a retimed data flow graph, where the delay on edge 231 can be moved to edges 237 and 239. The critical path becomes the path between nodes 221 and 222, which takes only 2 ns of computation time. Thus, moving the delay from edge 233 to edges 237 and 239 allows the modified (retimed) data flow graph to be operated at a reduced clock period of 2 ns. The modified data flow graph after the retiming process optimization at a data flow level can be implemented to hardware by removing register 255 and adding a register between multiplier 203 and adder 201, and a register between multiplier 207 and adder 201.
The clock speed of the output design can be maximized, e.g. by applying a known retiming algorithm for clock period minimization. These retiming algorithms are formulated on data flow graphs. Hardware modules, often containing registers and memories, do not directly fit in as single nodes. Thus, the circuit diagram is translated into data flow graph with a combination of nodes and edges in order to sufficiently represent their timing behavior. For example, the circuit design is broken down into the actual registers and combinational computing elements that make up the module and assigning one node to each combinational computing element. Typically, circuit modules in a design are translated into a set of nodes and edges that correspond to the combinational units in the modules and the nets connecting them. In other words, the timing model of each hardware module is typically constructed by putting together the timing models of the combinational computation units, delays, and interconnections that make up the hardware module. The aggregation of the set of nodes and edges used in the translation of a particular hardware module is effectively the timing model (data flow graph) of that hardware module.
A timing model of a hardware module can be constructed using data from a detailed implementation of the data flow graph model. This data is obtained by feeding an increasing number of registers into the module; retiming (and optimizing) the hardware module; and detecting the critical path within the module as new registers are added to determine the minimum clock period of the module.
Retiming algorithm can be used to improve timing on parallel hardware, for example, to increase the clock rate of a circuit by reducing the computation time of the critical path. Retiming can also be used to decrease the number of registers in a circuit. Since retiming can affect the clock period and the number of registers, it can be used for optimize both of these parameters. Retiming can also be used to reduce the power consumption of a circuit by reducing switching, for example, by placing registers at the inputs of nodes with large capacitances can reduce the switching activities at these nodes.
FIG. 10A illustrates a data flow graph for a second order recursive digital filter. Nodes F and G represents adders, nodes A, B, C, and E represent multipliers, and block D represents delay on the edges. From the data flow graph, the nodes cannot run in an arbitrary order. The precedence between the nodes is illustrated in FIG. 6B, which shows that nodes A and B have to be completed before node F, and nodes C, E and F have to be completed before node G. Thus, nodes A and B run first, node F runs second, and node G runs third. Nodes C and E can be distributed either in first or second. For a 3-processor scheduling as shown in FIG. 6C, the cycle time is 3.
FIG. 11A illustrates the same data flow graph after calculating and implementing a retiming algorithm where three delays are added to the edges to node G. With the retimed graph, the precedence between the node changes as shown in FIG. 11B. There are only two orders with nodes A, B, C, E, and F in one and node G in another. For scheduling and mapping to a 3-processor hardware, the cycle time is improved to 2 as shown in FIG. 11C.
Mathematical description of retiming has been studied, and algorithms for retiming a circuit to achieve certain objectives have been described. Returning to the circuit and graph of FIGS. 9A and 9B, algorithm to achieve the retimed graph of FIG. 9C is described below. In the context of retiming, the term circuit, graph and data flow graph are often used interchangeably, since the computation detail of a node is not needed for retiming.
Starting with graph of FIG. 9B, a retiming solution is characterized be a value r(V) for each node V in the graph. There are 4 nodes 1-4, and thus a retiming solution is characterized by the values of r(1), r(2), r(3) and r(4). The values of r(V) is called retimed solutions in the following description.
A characteristic of the retimed solution r(V) is that the retimed delay dr of an edge e between two nodes U and V is computed from the original delay d as followed:
d r(e)=d(e)+r(V)−r(U)  (1)
Thus finding the retimed solution vector r allows the retiming of the graph. For example, a retimed solution vector for the graph in FIG. 9B is r=(0, 1, 0, 0). With this retimed solution r, the retiming delay between edges in the graph can be calculated. For example, the retiming delay of the edge between node 3 and node 2 is
d r(e)=d(e)+r(2)−r(3)=0+1−0=1
which is represented by a delay D value shown in FIG. 9C.
A retiming solution r(V) is feasible if the retimed delay dr(e) is non negative for all edges. This is called the feasibility constraint, or the retiming constraint for feasibility, for the data flow graph:
d r(e)=d(e)+r(V)−r(U)≧0 or  (2)
r(U)−r(V)≦d(e) for all edges of the graph.  (3)
To achieve a minimum clock period, for example, a clock period c, for the data flow graph, the computation time for the critical path has to be equal or less than c. Since the critical path has zero delay, this requirement can be reformulated so that all paths with a computation time greater than c cannot be the critical path, meaning a path with a computation time greater than c will have at least a delay. This is called the critical path constraint, or the clock period constraint, or the retiming constraint to achieve a target clock period.
For a path p from a starting node U to an end node V that has a computation time greater than c, the number of delay in this path p needs to be greater or equal to 1. The original number of delay register in path p is
d(p)=d(e 1)+d(e 2)+ . . .  (4)
where path p comprises edges e1, e2, . . . . And the retiming number of delay register in path p is
d r(p)=d r(e 1)+d r(e 2)+ . . .
d r(p)=d(e 1)+r(V)−r(A)+d(e 2)+r(A)−r(B)+ . . . +d(e n)+r(Z)−r(U)
d r(p)=d(p)+r(V)−r(U)  (5)
The critical path constraint requires that the retimed delay dr(p) for this path is greater or equal to 1:
d r(p)≧1, thus  (6)
r(U)−r(V)≦d(p)−1  (7)
for all paths of the graph has computation time greater than c.
There are many paths for with the same starting and end nodes, and thus to remove superfluous constraints, the above constraint for all the paths with the same starting node U and end node V is reduced to a constraint with
d min(p)=W(U,V).  (8)
If the constraint is satisfied with dmin, any larger number of delay register d will automatically be satisfied.
Thus the set of inequality equations for a retiming graph is:
For all edges e from a node U to a node V of a graph G:
r(U)−r(V)≦d(e) feasibility constraints  (3)
For all path p having a starting node U to an end node V that has a maximum computation time D(U,V) greater than the clock period c:
r(U)−r(V)≦W(U,V)−1 clock period constraints  (7)
The set of inequality constraint equations (feasibility and clock period constraints) can be solved by linear programming algorithm or shortest path algorithm, for example, by Bellman-Ford or Floyd-Warshall algorithm. The general approach to finding a retiming solution with the minimum clock period is to compute the value of W(U,V) and D(U,V), then sort the values of D(U,V) and perform a binary search on these values to find the retiming solution with the minimum clock period.
Generally speaking, the retiming solution r(V) for a single rate system is an integer, and thus strictly speaking, the constraint inequalities should be solved by integer linear programming. However, due to the special forms of the constraint inequalities (e.g., all r(V) have a coefficient of 1), this set of constraint inequalities can be solved by shortest path algorithm. The specific form of constraints makes it possible to solve the problem in polynomial time. The incident matrix is totally unimodular and the solution r(V) is guaranteed to be an all integer solution even without the additional integer constraints.
In the multirate system, the solution r(V) has to be additional constrained to an all integer vector, resulting in a more complex integer programming problem. For example, if node V is an upsampler, the feasibility constraint of the multirate retiming problem for an edge e from node U to node V is defined as followed:
r(U)−r(V)/(up rate of V)≦d(e)  (9)
Similarly, if V is a downsampler, the feasibility constraint is defined as followed:
r(U)−r(V)*(down rate of V)≦d(e)  (10)
The change in coefficients of the retimed solution r(V) causes the inequality constraints to be solved by integer linear programming instead of linear programming.
To bring back linear programming algorithm, the multirate system can be unfolded to a single rate before constructing the inequality constraints. After solving the retiming problem in linear programming for the unfolded single rate, the retimed single rate system can be folded back to a retimed multirate system. However, this algorithm can increase the problem size since an unfolded single rate system is much larger than the corresponding multirate system. Further, the re-transformation of the retimed single rate is not always feasible. The consistency of r vector to make the re-transformation successful is not currently available. Therefore this algorithm is not complete and not totally succeeded in eliminate integer linear programming usage.
In an embodiment, the present invention discloses a methodology for using the characteristics of the multirate system without transforming the graph, and for solving the multirate problem by multirate constraints. In an aspect, the present methodology discloses formulate the inequality constraints of a multirate system in a form similar to a single rate system while using the multirate constraints. The present methodology can employ shortest path finding algorithm instead of the more complex integer linear programming algorithm in finding normalized retimed solutions. For example, the coefficients of the retimed solution r(V) are all formulated to be unity, thus the multirate feasibility constraints and the multirate minimum clock period constraints are formulated in the form of r(U)−r(V). This unity coefficient formulation of a multirate system can enable the use of shortest path finding solutions, instead of integer linear programming solutions.
In an embodiment, the present methodology introduces a normalization factor vector, such as a normalized factor for each node of the multirate system, related to the multiple frequencies of the nodes of the multirate system. Alternatively, the normalized factor vector can be related to each edge of the multirate system. FIG. 12 shows a method to retime a multirate system according to an embodiment of the present invention. The multirate system can be represented by a circuit module or a data flow graph representation, for example, by representing a functional unit with a node, and by representing a data path between function units with an edge. Alternatively, a functional unit can sometimes be represented within the data flow graph representation. For the multirate system to be retimed, operation 1000 introduces a normalized factor for each node of the multirate system with the normalized factor related to the multiple frequencies of the multirate system. For example, the normalized factors are proportional to a least common multiple f1 cm of the multiple frequencies of the multirate system. The normalized factor for a node u can also be inversely proportional to the frequency f(u) of an outgoing edge of node u. Thus in an aspect, the normalized factor Tn representing a relative period for a node u is calculated as followed:
T n(u)∝f 1 cm /f(u)  (11)
The normalized factor Tn is preferably an integer, or can be integerized. Other implementations for the normalized factor Tn can also be used, for example, the normalized factor can be proportional to a relative frequency for a node u, the frequency can be related to an incoming edge of node u, or can be multiplied with another factor.
In an embodiment, the normalized factors are utilized to simplify the constraint inequalities of the multirate system. Operation 1002 normalizes a plurality of retimed solutions of the multirate system according to the normalized factors. For example, the retimed solution vector r(u) can be normalized to rn(u). Operation 1004 formulates the multirate retiming problem using the retimed solutions. For example, the inequality constraints can be formulated in a linear programming form of rn(u)−rn(v), and which can be solved by shortest path algorithm instead of integer linear programming. In an aspect, the normalized retimed solution rn(u) is designed to allow the formulation of the multirate constraints in a form similar to the single rate retiming problem using the multirate data flow graph. This will prevent an increase of problem size related to unfolding the multirate system to a single rate system.
In an embodiment, a single rate node (i.e., a node with the same incoming frequency and outgoing frequency) is normalized with the normalized factor. For example, the retimed solution r(u) is normalized with the normalized factor for a source node for an edge e. For example, given an edge e from a source node u to a destination node v, the normalized retimed solution vector rn is:
r n(u)=r(u)*T n(u)  (12)
r n(v)=r(v)*T n(u)  (13)
From the feasibility constraint of r(u)−r(v)≦d(e) of a single rate system, the feasibility constraint for a multirate system with normalized retimed solution vector rn can be formulated after multiplying both sides of the above inequality with the normalized factor Tn(u):
r n(u)−r n(v)≦d(e)*T n(u)  (14)
Thus the normalized retimed solution rn(u) has been formulated to a form similar to the single rate system, or to a form with unity coefficient. This formulation can enable a solution based on shortest path solutions instead of integer linear programming.
In an embodiment, the delay vector d(e) of an edge is normalized with the normalized factor of either the source node or the destination node. For example, for an edge e from node u to node v where u is the source node and v is the destination node, the delay d(e) is normalized to the normalized delay dn(e) by multiplying with the normalized factor Tn of the source node u.
d n(e)=d(e)*T n(u)  (15)
From the normalized delay dn, the normalized retimed solution rn(u) can be formulated as:
r n(u)−r n(v)≦d n(e)  (16)
With the normalized retimed solutions rn(u) and the modified inequality constraints, a modified single rate formulation can be achieved for a multirate system. Further, a modified single rate algorithm can be used to solve the multirate system using the normalized retimed solutions rn(u).
The above example uses the normalized factor of a source node Tn(u) in normalizing the retimed solution vector r and the edge vector d. However, the normalization is not limited to the source node u, and other implementations for the normalizing factor can be used, for example, the normalized factor of the destination node v.
The normalized factor can be proportional to the frequency of the node, for example, the up rate or the down rate of a rate change node. For example, the normalized factor can be proportional to the up rate of an upsampler node, or inversely proportional to the down rate of a down sampler node. In an aspect, the present methodology discloses a multirate consistency for a multirate node (i.e., node with different incoming frequency and outgoing frequency) where the retimed solution for the multirate node is proportional to the outgoing frequency and inversely proportional to the incoming frequency:
r n(u)∝outgoing frequency(u)/incoming frequency(u)
The normalized factor for an upsampler node is
r n(u)∝up rate
and the normalized factor for a downsampler node is
r n(u)∝1/down rate
In an embodiment, both normalized factors Tn and outgoing/incoming frequencies can be employed. For example, the multirate consistency for a multirate node can be formulated as
r n(u)=T n(u)*outgoing frequency(u)/incoming frequency(u)
In an embodiment, the present methodology normalizes a plurality of parameters of a multirate system and then reformulates the multirate retiming problem to a form similar to the single rate retiming problem, e.g., enabling shortest path finding solutions or unity coefficient for the retimed solutions. FIG. 13 shows a method to retime a multirate system according to an embodiment of the present invention. For the multirate system to be retimed, operation 1010 introduces a normalized factor for each node of the multirate system with the normalized factor related to the multiple frequencies of the multirate system. Operation 1012 then normalizes a plurality of parameters of the multirate system according to the normalized factors. In an aspect, the normalized parameters include edge delay, target clock period and retimed solutions. A parameter can be normalized to one or a plurality of normalized values. For example, an edge delay can be normalized to a normalized edge delay with the normalized factor of a source node. The target clock period c can be normalized to a plurality of normalized target clock periods cn(v)=c*Tn(v), one for each node, such as the target clock period for a destination node in a path.
The normalized target clock periods can be utilized in formulating the retiming constraints to achieve the target clock period. In a path p(v0, v1, . . . , vk) which starts with node v0, continues to node v1, etc., and ends at node vk, the total processing time t(p) for the path p is the sum of the execution time t(v) for all the nodes in the path:
t(p)=Σv is a node of p t(V)  (17)
In an aspect, the normalized target clock period cn(v) is defined to be the product of the target clock period with the normalized factor for the end node vk of a path p:
c n(v k)=c*T n(v k)  (18)
A modified retiming constraints to achieve the target clock period according to an aspect of the present invention is that a path p with the total execution time t(p) greater than the normalized target clock period for the end node vk, the path is not a critical path. Thus the condition for critical path constraint is
t(p)>c n(v k)=target clock period*T n(v k)  (19)
Operation 1014 defines retiming constraints for the nodes of the multirate system to obey a multirate consistency. For example, in a multirate system where the clock frequency is only changed through the upsamplers or downsamplers, the frequency increases through an upsampler, and decreases through a downsampler. The normalized retimed solution rn(u) for a node that is not an upsampler or a downsampler is a product of the retimed solution r(u) and the normalized factor for that node. In other words, the remainder of the normalized retimed solution rn(u) divided by the normalized factor is zero:
r n(u)=r(u)*T n(u), or  (20a)
r n(u) % Tn(u)=0  (20b)
If the node is an upsampler, the normalized retimed solution rn(u) for that node is a product of the retimed solution r(u), the up rate of the upsampler, and the normalized factor for that node. In other words, the remainder of the normalized retimed solution rn(u) divided by the product of the normalized factor and the up rate of the upsampler is zero:
r n(u)=r(u)*T n(u)*(up rate of upsampler)  (21a)
r n(u) % (T n(u)*(up rate of upsampler))=0  (21b)
If the node is a downsampler, the normalized retimed solution rn(u) for that node is a product of the retimed solution r(u) and the normalized factor for that node, and divided by the down rate of the downsampler. In other words, the remainder of the normalized retimed solution rn(u) divided by the division of the normalized factor and the down rate of the downsampler is zero:
r n(u)=r(u)*T n(u)/(down rate of downsampler)  (22a)
r n(u) % (T n(u)/(down rate of downsampler))=0  (22b)
These multirate consistency constraints provide the consistency for the change in frequencies of a node through an upsampler or a downsampler. The multirate consistency constraint further provides the feasibility constraint for a multirate system in a form similar to the single rate system. For example, the multirate feasibility constraint for an edge e having a normal node u and an upsampler node v is
r(u)−r(v)/(up rate of v)≦d(e)  (9)
Using the present normalized retimed solution for an upsampler, the above multirate feasibility constraint is converted to:
r n(u)−r n(v)≦d n(e)  (23)
which is the same as (16).
For system having rate change nodes where the frequency changed by another operation function, the rate change node can be modeled by using downsamplers and upsamplers, and the above multirate consistency constraints can be utilized. In general, any multirate node can be modeled with upsamplers and downsamplers, thus the above multirate consistency constraint is not a limitation to a generic multirate system. In addition, other forms of multirate consistency can be used.
Operation 1016 then formulates the multirate retiming problem to a form similar to the single rate retiming problem, using the normalized single rate retiming constraints and the multirate consistency constraints. For example, the normalized single rate retiming constraints include the retiming constraints for feasibility (rn(u)−rn(v)≦dn(e)), which is formulated with normalized factors in a form similar to the single rate system.
The retiming constraints to achieve a target clock period in the form of single rate system for the normalized parameters can be formulated similar to the formulation of the inequality constraints of the single rate.
In a preferred embodiment, the present methodology solves the retiming problem of a multirate system such as a DSP system, to achieve a given clock period in a computationally efficient way, and with a computational complexity comparable to that of a single rate system. FIG. 14 shows a method to retime a multirate system according to a preferred embodiment of the present invention. The multirate system is represented by a multirate directed graph G(V, E, d, t, f), with V representing the nodes, E representing the edges between the nodes, d showing the delays on each edge, t representing the processing or execution time on each node, and f representing the clock frequency of outgoing edges of each node. Operation 1020 introduces a normalized factor for each node of the multirate system with the normalized factor related to the multiple frequencies of the multirate system. An exemplary normalized factor is Tn(v)=f1 cm/f(v), which is a relative period vector, proportional to the least common multiple f1 cm of the frequencies of the nodes in the graph G, and inversely proportional to the frequency of node v. Operation 1021 then normalizes a plurality of edge delays, retimed solutions, and target clock period of the multirate system according to the normalized factors. For example, an edge delay can be normalized to a normalized edge delay with the normalized factor of a source node. The target clock period c can be normalized to a plurality of normalized target clock periods according to a destination node in a path, cn(v) with v being the destination node in a path p. The retimed solution r(v) can be normalized to rn(v) according to the frequency at an outgoing edge of the node v. In an aspect, for multirate consistency, the normalized retimed solution rn(v) for an upsampler is further proportional to the up rate of the upsampler, and the normalized retimed solution rn(v) for a downsampler is inversely proportional to the down rate of the downsampler. Further, alternatives to the normalized parameters can also be implemented, for example, an edge delay is normalized to the incoming edge of a node, the target clock period is normalized according to a source node of a path, and the retimed solution is normalized according to the frequency at an incoming edge.
Operation 2022 defines retiming constraints for feasibility using normalized edge delays dn(e) and normalized retimed solution rn(v). The feasibility constraints can be put in a form similar to that of a single rate system using the normalized parameters to eliminate integer linear programming usage.
r n(u)−r n(v)≦d n(e)  (23)
This feasibility constraint is derived from the desire to simplify the retiming problem of multirate system. This is the present innovative variation of the feasibility constraint for an upsampler or a downsampler, which are
r(u)−r(v)/(up rate of v)≦d(e) and  (9)
r(u)−r(v)*(down rate of v)≦d(e)  (10)
The utilization of normalized factors for the retimed solution causes the coefficients of the normalized retimed solution rn(v) all becoming unity, and thus can be solved by shortest path algorithm, instead of integer linear programming as in prior art.
Operation 1023 defines retiming constraints to achieve a target clock period. Similar to the feasibility constraints, the critical constraints can be put in a form similar to that of a single rate system using the normalized parameters to eliminate integer linear programming usage.
In an embodiment, the present invention discloses a simple but not sub-optimal method to define the clock constraints. In an aspect, the constraints are defined according to the destination clock period, or the destination node of the path p. Thus a normalized target clock period can be defined as cn(vk)=(target clock period)*Tn(vk).
Consider a path p(v0, v1, . . . , vk) started with node v0 and ended with node vk, and consisted of edges (v0→v1, v1→v2, . . . , vk-1→vk). Thus for each path p, the critical constraint is applied if the total processing time t(p) (17) for the path p is greater than the normalized target clock period cn(vk):
t(p)≧(target clock period)*T n(v k)
In an aspect, the normalized clock period constraint is derived from the clock period constraint (7) for single rate system, by multiplying with the normalized factor vector, where W(p) is the minimum delay for path p
(r(v 0)−r(v k)≦W(p)−1)*T n
r n(v 0)−r n(v k)≦W n(p)−T n  (24)
In an aspect, a minimum normalized factor Tmin(p) can be used
r n(v 0)−r n(v k)≦W n(p)−T min(p)
Tmin(p) is the minimum of the normalized factors within the path p:
T min(p)=min{T n(v 0), T n(v 1), . . . , T n(v k)}
In an aspect, Wn(p) is the total normalized weight (or delay) of the path, which can be calculated as:
W n(p)=Σe is an edge of p d n(e)
Any other normalized factor can be used, for example, a maximum normalized factor for the path p, Tmax(p), or any normalized factor for a node x in the path p, Tn(x), and a maximum value for the total normalized weight (or delay) of the path p, Wnmax(p). The maximum value of Wn and the minimum value of Tn can remove superfluous constraints for the constraints of (24).
The number of paths in a graph is non polynomial according to the graph size, therefore it would not be efficient to perform the above clock period constraint setting directly. In an aspect, a graph search algorithm can be applied to solve the single source shortest path problem. Because a feasible system should not have any algebraic loop, and there is not any negative cycle in the graph, thus in an aspect, Dijkstra's algorithm can be used.
In an embodiment, the present constraint setting can prevent superfluous constraint generation. For example, consider the path p(v0, v1, . . . , vk). If the total processing time t(p) of the path p exceeds the normalized clock period (target clock period*Tn(vk)), then the clock period constraint between v0 and vk should be defined. But if the path p2(v0, v1, . . . , vk-1), which is a sub path of p, also exceeds the timing constraint, i.e., t(p2)>(target clock period*Tn(vk-1)), then there should also be a timing constraint between v0 and vk-1. The constraint of p2 makes the constraint of p unnecessary, meaning the constraint of p becomes superfluous. In an aspect, the present algorithm prevents this superfluous constraint, limiting the number of constraints in the order of O(E). If the superfluous constraints are defined, then the number of constraints is limited by O(V2).
Dijkstra's algorithm is well known, searching for the vertex u in the set V that has the least dist(u) value. Dist is a vector of lexicographically ordered triplet (W, tNeg, Tmin) where tNeg is the negative of t(p). It is negated to use lexicographical comparison. The algorithm uses Q, which is a min-priority queue, supporting operations INSERT, IsEMPTY, EXTRACT-MIN, DELETE. The following is an exemplary code:
For each node src
{
 i. For each node u
 ii. {
  1. Dist(u).W = INF
  2. Dist(u). tNeg = INF
  3. Dist(u).Tmin = INF
 iii. }
 iv. Dist(src).W = 0
 v. Dist(src).tNeg = −t(src);
 vi. INSERT(Q, Dist(src))
 vii. While !IsEmpty(Q)
 viii. {
  1. minDist = EXTRACT-MIN(Q)
  2. u = owner node of the minDist
  3. if (minDist. tNeg + target_clk * Tn(u) < 0)
  4. {
   a. if ( minDist. tNeg + target_clk * Tn(u) + t(src) >= 0)
    i. define rn(src) − rn(u) <=minDist.W −
     minDist.Tmin;
  5. }
  6. else //else is used to prevent superfluous constraints
  7. {
   a. for each outgoing edge of u : e (u −> v)
   b. {
    i. REMOVE(Q, Dist(v))
    ii. RELAX(e, u, v, Dist)
    iii. INSERT(Q, Dist(v))
   c. }
  8. }
 ix. }
}
The function RELAX is defined as follows:
RELAX(e, u, v, Dist)
{
 x. newDistOfV.W = Dist(u).W + dn(e)
 xi. newDistOfV.tNeg = Dist(u).tNeg − t(v)
 xii. newDistOfV.Tmin = MIN(Dist(u).Tmin, Tn(u))
 xiii. if( Dist(v) < newDistOfV)
  1. Dist(v) = newDistOfV
}
If a proper Q data structure is used, worst case run time complexity of the above clock period constraint definition algorithm is O(V·E·log(V)), which is polynomial. The memory requirement of this algorithm is O(V+E).
Operation 1024 defines retiming constraints for the nodes of the multirate system to obey a multirate consistency. In an aspect, the multirate consistency constraints apply to upsamplers, downsamplers, or both samplers. In an embodiment, the multirate consistency for upsamplers constrains the normalized retime solution rn(u) for node u to be a multiple of the up rate of the upsampler and the normalized factor of node u.
In an embodiment, other multirate nodes can be converted to upsamplers and downsamplers, before using the consistency constraints of upsamplers and downsamplers.
The set of retiming constraints, containing feasibility constraints, clock period constraints, and multirate consistency constraints, can be solved to get the normalized retimed solution rn(u). Operation 1025 finds the normalized retimed solutions satisfied the retiming constraints for the multirate system. A modified algorithm is used to solve the above constraints. In an aspect, the modified algorithm introduces a dummy source node to the directed graph G to form the directed graph Gt, and calculates the distance vector for the edges. If Gt contains a negative cycle, the algorithm exits with an infeasibility sign. Then the algorithm searches for the shortest path from the dummy source node to all other nodes to find the normalized retimed solution rn satisfying the formulated constraints. The following is an exemplary algorithm:
 Create a directed graph Gt(Vt, Et, dt)
 {
 Vt is the nodes of the Gt. it is equal the original V and a dummy source node.
 Et is the edges of the Gt. dt is the distance vector of the edges ( i.e. dt(e) shows the
distance on e). Et and dt are built as following:
   i. For each node u in Vt except dummy source node
   ii. {
    1. Put a connection (e) from dummy source node to u.
    2. Define dt(e) = 0
   iii. }
   iv. For each feasibility or clock period constraint (rn(u) − rn(v) <= c)
   v. {
    1. Put a connection (e) from node u to node v.
    2. Define dt(e) = c.
   vi. }
 }
 If Gt contains a negative cycle
  b. return sign of infeasible retiming
 else
 {
 For each node u
   i. rn(u) = 0
 noOfRateChangers = total number of upsamplers or downsamplers in G.
 passCnt = 0
 do
 {
   ii. IsRetimingFeasible = 1;
   iii. passCnt ++
   iv. For each node u except dummy source node
   v. {
    1. e = the edge from dummy source node to u
    2. dt(e) = rn(u) //(using the outgoing edge distance of dummy
     source node to set a lower limit to shortest path is a critical
     contribution of the invention. This lower limit setting is used to
     find an rn that does not contradict with the multirate constraints.)
   vi. }
   vii. Find shortest paths from dummy source node to all other node.
   viii. For each node u except dummy source node
   ix. {
    1. rn(u) = shortest path distance from dummy source node to u
    2. if u is an upsampler
      a. baseValue = Tn(u) * (up-rate of upsample)
    3. else
      a. baseValue = Tn(u)
    4. if (rn(u) % baseValue != 0)
    5. {
      a. IsRetimingFeasible = 0
      b. rn(u) = floor(rn(u) / baseValue) * baseValue (floor is
       used because rn vector has non-positive values)
    6. }
   x. }
 } until (IsRetimingFeasible or passCnt > noOfRateChangers )
 If (! IsRetimingFeasible)
   xi. return sign of infeasible retiming
 else
   xii. return rn vector
 }
The worst case run time complexity of above algorithm to find feasible rn vector is O(V·E·log(V)) which is polynomial. The memory requirement is O(V+E). If the superfluous constraint generation is not prevented, the timing complexity of the algorithm would increase significantly to O(V3·log(V)) and the memory requirement to O(V2).
After finding the normalized retimed solution vector rn, operation 1026 sets retimed edge delays according to the normalized retimed solutions. In an aspect, the retimed edge delay vector dr(e) for an edge e between a source node u and a destination node v is calculated as followed:
d r =d+(r n(v)−r n(u))/T n(u)
The present invention discloses reformulation of the multirate retiming problem and the simplifications within the solution of the reformulated problem. The present constraint inequalities can be solved by shortest path algorithm without unfolding the multirate system to single rate system. The multirate problem is solved in the present algorithm by multirate constraints. The present algorithm can eliminate integer linear programming usage without any sub optimality with the present innovative clock period setting definition. The present algorithm also consider the critical path break capability of registers on a faster clock domain, for example, in a multirate path having a faster clock in the middle (i.e. there is a faster clock on the path more then source and end of the path). The present clock period setting definition can provide optimal constraint formulation, taking advantage of slower clock domain. The present algorithm also discloses a way to eliminate superfluous constraints, providing more efficient algorithm in terms of computational time and memory usage.
The present algorithm can increase the practically solvable multirate DSP system size by at least an order of magnitude. It is also easier to implement and less error prone than prior algorithms, eliminating integer linear programming usage which is computationally more complex. Further, to find the clock period constraints, unfolding of multirate system is not needed, which reduces additional complexity and graph size. As a result, the present algorithm can solve larger multirate retiming problems in shorter time without any optimality tradeoff.
In the foregoing specification, the invention has been described with reference to specific exemplary embodiments thereof. It will be evident that various modifications may be made thereto without departing from the broader spirit and scope of the invention as set forth in the following claims. The specification and drawings are, accordingly, to be regarded in an illustrative sense rather than a restrictive sense.

Claims (20)

1. A method to retime a multirate system, comprising:
introducing a normalized factor vector for the multirate system, the normalized factor vector related to the multiple frequencies of the multirate system;
normalizing a plurality of retimed solutions of the multirate system according to the normalized factor vector; and
formulating the multirate retiming problem using the plurality of normalized retimed solutions using a processor;
wherein formulating the multirate retiming problem using the plurality of normalized retimed solutions enables shortest path finding solutions and not integer linear programming solutions.
2. The method as in claim 1 wherein the normalized factor vector is one of: integerized or proportional to the least common multiple of the multiple frequencies of the multirate system.
3. The method as in claim 1, wherein the normalized vector comprises one of:
a normalized factor for each node of the multirate system, and is inversely proportional to the frequency of an outgoing edge of said node, or
a normalized factor for each node of the multirate system, and is proportional to the frequency of an outgoing edge of said node and inversely proportional to the frequency of an incoming edge of said node.
4. The method as in claim 1 wherein a modified single rate algorithm is used to solve the multirate problem using the normalized factor vector.
5. The method as in claim 1, further comprising:
normalizing a plurality of parameters of the multirate system according to the normalized factor vector; and
normalizing the plurality of retimed solutions for the nodes of the multirate system with a function of the frequencies of the outgoing edge and the incoming edge of said nodes.
6. The method as in claim 5 wherein formulating the multirate retiming problem comprises one of:
generating constraint inequalities in the forms of retimed solutions having unity coefficients, or
normalized timing constraints for feasibility and normalized timing constraints to achieve a target clock period.
7. The method as in claim 5 wherein the normalized parameters comprise edge delay, target clock period and retimed solutions.
8. The method as in claim 5 wherein normalizing a plurality of retimed solution for the nodes of the multirate system comprises one of:
defining a retimed solution for a node to be proportional to the frequency of an outgoing edge of said node and inversely proportional to the frequency of an incoming edge of said node;
defining a retimed solution for an upsampler node to be a function of a normalized factor and the up rate of the upsampler; or
defining a retimed solution for a downsampler node is a function of a normalized factor and the down rate of the downsampler.
9. The method as in claim 5 wherein a multirate node of the multirate system is converted to a plurality of upsamplers, downsamplers and single rate nodes.
10. A non-transitory machine readable medium containing executable computer program instructions which when executed by a digital processing system cause said system to perform a method to retime a multirate system, the method comprising:
introducing a normalized factor vector for the multirate system, the normalized factor vector related to the multiple frequencies of the multirate system;
normalizing a plurality of retimed solutions of the multirate system according to the normalized factor vector; and
formulating the multirate retiming problem using the plurality of normalized retimed solutions;
wherein formulating the multirate retiming problem using the plurality of normalized retimed solutions enables shortest path finding solutions and not integer linear programming solutions.
11. The medium as in claim 10 wherein the normalized factor vector is one of: integerized or proportional to the least common multiple of the multiple frequencies of the multirate system.
12. The medium as in claim 10 wherein a modified single rate algorithm is used to solve the multirate problem using the normalized factor vector.
13. The medium as in claim 10 wherein the normalized vector comprises one of:
a normalized factor for each node of the multirate system, and is inversely proportional to the frequency of an outgoing edge of said node, or
a normalized factor for each node of the multirate system, and is proportional to the frequency of an outgoing edge of said node and inversely proportional to the frequency of an incoming edge of said node.
14. The medium as in claim 10 further comprising:
normalizing a plurality of parameters of the multirate system according to the normalized factor vector; and
normalizing the plurality of retimed solutions for the nodes of the multirate system with a function of the frequencies of the outgoing edge and the incoming edge of said nodes.
15. The medium as in claim 10 wherein normalizing a plurality of retimed solution for the nodes of the multirate system comprises one of:
defining a retimed solution for a node to be proportional to the frequency of an outgoing edge of said node and inversely proportional to the frequency of an incoming edge of said node;
defining a retimed solution for an upsampler node to be a function of a normalized factor and the up rate of the upsampler; or
defining a retimed solution for a downsampler node is a function of a normalized factor and the down rate of the downsampler.
16. A data processing system to retime a multirate system, the data processing system comprising:
means for introducing a normalized factor vector for the multirate system, the normalized factor vector related to the multiple frequencies of the multirate system;
means for normalizing a plurality of retimed solutions of the multirate system according to the normalized factor vector; and
a processor means for formulating the multirate retiming problem using the plurality of normalized retimed solutions;
wherein formulating the multirate retiming problem using the plurality of normalized retimed solutions enables shortest path finding solutions and not integer linear programming solutions.
17. The system as in claim 16 wherein the normalized factor vector is one of: integerized or proportional to the least common multiple of the multiple frequencies of the multirate system.
18. The system as in claim 16 wherein the normalized factor vector comprises one of:
a normalized factor for each node of the multirate system, and is inversely proportional to the frequency of an outgoing edge of said node;
a normalized factor for each node of the multirate system, and is proportional to the frequency of an outgoing edge of said node and inversely proportional to the frequency of an incoming edge of said node.
19. The system as in claim 16, further comprising:
means for normalizing a plurality of parameters of the multirate system according to the normalized factor vector;
means for normalizing a plurality of retimed solutions for the nodes of the multirate system with a function of the frequencies of the outgoing edge and the incoming edge of said nodes; and
means for formulating the multirate retiming problem to a form that allows shortest path finding solutions and not integer linear programming solutions.
20. The system as in claim 19 wherein the normalized parameters comprise edge delay, target clock period and retimed solutions.
US13/235,333 2008-11-25 2011-09-16 Retiming of multirate system Expired - Fee Related US8302054B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/235,333 US8302054B2 (en) 2008-11-25 2011-09-16 Retiming of multirate system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US12/323,326 US8024686B2 (en) 2008-11-25 2008-11-25 Retiming of multirate system
US13/235,333 US8302054B2 (en) 2008-11-25 2011-09-16 Retiming of multirate system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US12/323,326 Division US8024686B2 (en) 2008-11-25 2008-11-25 Retiming of multirate system

Publications (2)

Publication Number Publication Date
US20120005642A1 US20120005642A1 (en) 2012-01-05
US8302054B2 true US8302054B2 (en) 2012-10-30

Family

ID=42197542

Family Applications (2)

Application Number Title Priority Date Filing Date
US12/323,326 Active 2030-03-17 US8024686B2 (en) 2008-11-25 2008-11-25 Retiming of multirate system
US13/235,333 Expired - Fee Related US8302054B2 (en) 2008-11-25 2011-09-16 Retiming of multirate system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US12/323,326 Active 2030-03-17 US8024686B2 (en) 2008-11-25 2008-11-25 Retiming of multirate system

Country Status (1)

Country Link
US (2) US8024686B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110134127A1 (en) * 2009-12-03 2011-06-09 Ravishankar Gundlapalli Global Career Graph
US9065743B2 (en) * 2009-12-24 2015-06-23 At&T Intellectual Property I, L.P. Determining connectivity in a failed network
US9058451B2 (en) * 2013-03-05 2015-06-16 Synopsys, Inc. Automatic synthesis of complex clock systems
US9740529B1 (en) 2013-12-05 2017-08-22 The Mathworks, Inc. High throughput synchronous resource-constrained scheduling for model-based design
US9305126B2 (en) * 2014-03-21 2016-04-05 Mentor Graphics Corporation Switching activity reduction through retiming
EP3012975B1 (en) * 2014-10-20 2019-07-03 IMEC vzw Error resilient digital signal processing device
US10810344B1 (en) * 2019-03-29 2020-10-20 Hongchang Liang Multi-instantiation time budgeting for integrated circuit design and manufacturing
US12093245B2 (en) * 2020-04-17 2024-09-17 International Business Machines Corporation Temporal directed cycle detection and pruning in transaction graphs

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6177893B1 (en) * 1998-09-15 2001-01-23 Scott R. Velazquez Parallel processing analog and digital converter
US6473013B1 (en) * 2001-06-20 2002-10-29 Scott R. Velazquez Parallel processing analog and digital converter
US7093204B2 (en) * 2003-04-04 2006-08-15 Synplicity, Inc. Method and apparatus for automated synthesis of multi-channel circuits
US7120883B1 (en) 2003-05-27 2006-10-10 Altera Corporation Register retiming technique
US7162704B2 (en) 2003-05-09 2007-01-09 Synplicity, Inc. Method and apparatus for circuit design and retiming
US7786913B2 (en) * 2007-06-22 2010-08-31 Texas Instruments Incorporated Digital phase locked loop with dithering

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6177893B1 (en) * 1998-09-15 2001-01-23 Scott R. Velazquez Parallel processing analog and digital converter
US6473013B1 (en) * 2001-06-20 2002-10-29 Scott R. Velazquez Parallel processing analog and digital converter
US7093204B2 (en) * 2003-04-04 2006-08-15 Synplicity, Inc. Method and apparatus for automated synthesis of multi-channel circuits
US7162704B2 (en) 2003-05-09 2007-01-09 Synplicity, Inc. Method and apparatus for circuit design and retiming
US7120883B1 (en) 2003-05-27 2006-10-10 Altera Corporation Register retiming technique
US7786913B2 (en) * 2007-06-22 2010-08-31 Texas Instruments Incorporated Digital phase locked loop with dithering
US7920081B2 (en) * 2007-06-22 2011-04-05 Texas Instruments Incorporated Digital phase locked loop with dithering

Non-Patent Citations (14)

* Cited by examiner, † Cited by third party
Title
"Dijkstra's Algorithm", Wikipedia, , Accessed Sep. 24, 2008, 5 pgs.
"Dijkstra's Algorithm", Wikipedia, <http://en.wikipedia.org/wiki/Dijkstra's—algorithm>, Accessed Sep. 24, 2008, 5 pgs.
{hacek over (Z)}ivojnovic, Vojin, et al, "High Performance DSP Software Using Data-Flow Graph Transformations", Proc of ASILOMAR 94, Pacific Grove, Nov. 1994, pp. 492-496.
{hacek over (Z)}ivojnović, Vojin, et al, "High Performance DSP Software Using Data-Flow Graph Transformations", Proc of ASILOMAR 94, Pacific Grove, Nov. 1994, pp. 492-496.
{hacek over (Z)}ivojnovic, Vojin, et al, "On Retiming of Multirate DSP Algorithms", IEEE International Conference Proceedings on Acoustics, Speech, and Signal Processing, vol. 6, May 1996, 5 pgs.
{hacek over (Z)}ivojnović, Vojin, et al, "On Retiming of Multirate DSP Algorithms", IEEE International Conference Proceedings on Acoustics, Speech, and Signal Processing, vol. 6, May 1996, 5 pgs.
{hacek over (Z)}ivojnovic, Vojin, et al, "Retiming of DSP Programs for Optimum Vectorization", IEEE, 1994, pp. 465-468.
{hacek over (Z)}ivojnović, Vojin, et al, "Retiming of DSP Programs for Optimum Vectorization", IEEE, 1994, pp. 465-468.
Cormen, Thomas H, et al, "Introduction to Algorithms", Second Edition, MIT Press, 2001, pp. 595-600.
Ghanekar et al., Signed-Digital-Based Multple-Free Realizations for Multirate Converter, IEEE, 1995, pp. 628-639. *
O'Neil, Timothy W, et al, "Retiming Synchronous Data-Flow Graphs to Reduce Execution Time", IEEE Transactions on Signal Processing, vol. 49, Oct. 2001, 27 pgs.
Parhi, Keshab K, "VLSI Digital Signal Processing Systems: Design and Implementation", John Wiley, 1999, pp. 91-118.
Peng, Dongming, "Exploiting Parallelism Within Multidimensional Multirate Digital Signal Processing Systems", Doctoral Dissertation, Texas A&M University, May 2003, 124 pgs.
Xia, An Efficient Frequency-Determination Algorithm from Multiple Undersampled Waveforms, IEEE, 2000, pp. 34-37. *

Also Published As

Publication number Publication date
US20100131912A1 (en) 2010-05-27
US20120005642A1 (en) 2012-01-05
US8024686B2 (en) 2011-09-20

Similar Documents

Publication Publication Date Title
US8302054B2 (en) Retiming of multirate system
US8136063B2 (en) Unfolding algorithm in multirate system folding
Chang et al. Energy minimization using multiple supply voltages
Raghunathan et al. SCALP: An iterative-improvement-based low-power data path synthesis system
Sun et al. FPGA pipeline synthesis design exploration using module selection and resource sharing
Bakshi et al. Partitioning and pipelining for performance-constrained hardware/software systems
JP2006502501A (en) How to use clock cycle time when determining loop schedule during circuit design
Prihozhy et al. Synthesis and optimization of pipelines for HW implementations of dataflow programs
Gelabert et al. Optimal automatic periodic multiprocessor scheduler for fully specified flow graphs
Chaudhuri et al. An exact methodology for scheduling in a 3d design space
Boyer et al. Optimal design of synchronous circuits using software pipelining techniques
Maheshwari et al. Optimizing large multiphase level-clocked circuits
Lyuh et al. Coupling-aware high-level interconnect synthesis [IC layout]
Yagain et al. Design optimization platform for synthesizable high speed digital filters using retiming technique
Groote Throughput analysis of dataflow graphs
Fiorentino et al. Introducing KeyRing self‐timed microarchitecture and timing‐driven design flow
Androutsopoulos et al. Protocol converter synthesis
Parhi et al. Signal flow graphs and data flow graphs
Vishwanath Time-frequency distributions: Complexity, algorithms and architectures
Qiu et al. Energy-aware loop scheduling and assignment for multi-core, multi-functional-unit architecture
Chandrachoodan et al. An efficient timing model for hardware implementation of multirate dataflow graphs
Wendt Inference and Training of a Multilayer Perceptron in a Deep Reinforcement Learning Context on a FPGA
Yi et al. Hierarchical synthesis of complex DSP functions on FPGAs
Yi et al. Hierarchical synthesis of complex DSP functions using IRIS
Duncan et al. Strategies for design automation of high speed digital filters

Legal Events

Date Code Title Description
REMI Maintenance fee reminder mailed
LAPS Lapse for failure to pay maintenance fees
STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20161030