This articleneeds additional citations forverification.(December 2009) |
Indigital circuit design,register-transfer level(RTL) is a design abstraction which models asynchronousdigital circuitin terms of the flow of digital signals (data) betweenhardware registers,and thelogical operationsperformed on those signals.
Register-transfer-level abstraction is used inhardware description languages(HDLs) likeVerilogandVHDLto create high-level representations of a circuit, from which lower-level representations and ultimately actual wiring can be derived. Design at the RTL level is typical practice in modern digital design.[1]
Unlike in software compiler design, where the register-transfer level is an intermediate representation and at the lowest level, the RTL level is the usual input that circuit designers operate on. In fact, in circuit synthesis, an intermediate language between the input register transfer level representation and the targetnetlistis sometimes used. Unlike in netlist, constructs such as cells, functions, and multi-bit registers are available.[2]Examples include FIRRTL and RTLIL.
Transaction-level modelingis a higher level ofelectronic system design.
RTL description
editA synchronous circuit consists of two kinds of elements: registers (sequential logic) andcombinational logic.Registers (usually implemented asD flip-flops) synchronize the circuit's operation to the edges of the clock signal, and are the only elements in the circuit that have memory properties. Combinational logic performs all the logical functions in the circuit and it typically consists oflogic gates.
For example, a very simple synchronous circuit is shown in the figure. Theinverteris connected from the output, Q, of a register to the register's input, D, to create a circuit that changes its state on each rising edge of the clock, clk. In this circuit, the combinational logic consists of the inverter.
When designing digital integrated circuits with ahardware description language(HDL), the designs are usually engineered at a higher level of abstraction than transistor level (logic families) or logic gate level. In HDLs the designer declares the registers (which roughly correspond to variables in computer programming languages), and describes the combinational logic by using constructs that are familiar from programming languages such as if-then-else and arithmetic operations. This level is calledregister-transfer level.The term refers to the fact that RTL focuses on describing the flow of signals between registers.
As an example, the circuit mentioned above can be described in VHDL as follows:
D<=notQ;
process(clk)
begin
ifrising_edge(clk)then
Q<=D;
endif;
endprocess;
Using anEDAtool for synthesis, this description can usually be directly translated to an equivalent hardware implementation file for anASICor anFPGA.Thesynthesistool also performslogic optimization.
At the register-transfer level, some types of circuits can be recognized. If there is a cyclic path of logic from a register's output to its input (or from a set of registers outputs to its inputs), the circuit is called astate machineor can be said to besequential logic.If there are logic paths from a register to another without a cycle, it is called apipeline.
RTL in the circuit design cycle
editRTL is used in thelogic designphase of theintegrated circuit designcycle.
An RTL description is usually converted to agate-level descriptionof the circuit by alogic synthesistool.The synthesis results are then used byplacementandroutingtools to create a physicallayout.
Logic simulationtools may use a design's RTL description to verify its correctness.
Power estimation techniques for RTL
editThe most accurate power analysis tools are available for the circuit level but unfortunately, even with switch- rather than device-level modelling, tools at the circuit level have disadvantages like they are either too slow or require too much memory thus inhibiting large chip handling. The majority of these are simulators likeSPICEand have been used by the designers for many years as performance analysis tools. Due to these disadvantages, gate-level power estimation tools have begun to gain some acceptance where faster, probabilistic techniques have begun to gain a foothold. But it also has its trade off as speedup is achieved on the cost of accuracy, especially in the presence of correlated signals. Over the years it has been realized that biggest wins in low power design cannot come from circuit- and gate-level optimizations whereas architecture, system, and algorithm optimizations tend to have the largest impact on power consumption. Therefore, there has been a shift in the incline of the tool developers towards high-level analysis and optimization tools for power.
Motivation
editIt is well known that more significant power reductions are possible if optimizations are made on levels of abstraction, like the architectural and algorithmic level, which are higher than the circuit or gate level[3]This provides the required motivation for the developers to focus on the development of new architectural level power analysis tools. This in no way implies that lower level tools are unimportant. Instead, each layer of tools provides a foundation upon which the next level can be built. The abstractions of the estimation techniques at a lower level can be used on a higher level with slight modifications.
Advantages of doing power estimation at RTL or architectural level
edit- Designers use a register-transfer level (RTL) description of the design to make optimizations and trade-offs very early in the design flow.
- The presence of functional blocks in an RTL description makes the complexity of architectural design much more manageable even for large chips because RTL has granularity sufficiently larger than gate- or circuit-level descriptions.
It is a technique based on the concept of gate equivalents. The complexity of a chip architecture can be described approximately in terms of gate equivalents wheregate equivalentcount specifies the average number of reference gates that are required to implement the particular function. The total power required for the particular function is estimated by multiplying the approximated number of gate equivalents with the average power consumed per gate. The reference gate can be any gate e.g. 2-input NAND gate.
Examples of gate equivalent technique
edit- Class-independent power modeling:It is a technique which tries to estimate chip area, speed, and power dissipation based on information about the complexity of the design in terms of gate equivalents. The functionality is divided among different blocks but no distinction is made about the functionality of the blocks i.e. it is basically class independent. This is the technique used by thechip estimation system(CES).
- Steps:
- Identify the functional blocks such as counters, decoders, multipliers, memories, etc.
- Assign a complexity in terms of gate equivalents. The number of GE’s for each unit type are either taken directly as an input from the user or are fed from a library.
- Steps:
- Where Etypis the assumed average dissipated energy by a gate equivalent, when active. The activity factor, Aint,denotes the average percentage of gates switching per clock cycle and is allowed to vary from function to function. The capacitive load, CL,is a combination of fan-out loading as well as wiring. An estimate of the average wire length can be used to calculate the wiring capacitance. This is provided by the user and cross-checked by using a derivative ofRent’s rule.
- Assumptions:
- A single reference gate is taken as the basis for all the power estimates not taking into consideration different circuit styles, clocking strategies, or layout techniques.
- The percentage of gates switching per clock cycle denoted by activity factors are assumed to be fixed regardless of the input patterns.
- Typical gate switching energy is characterized by completely random uniformwhite noise(UWN) distribution of the input data. This implies that the power estimation is same regardless of the circuit being idle or at maximum load as this UWN model ignores how different input distributions affect the power consumption of gates and modules.[5]
- Assumptions:
- Class-dependent power modeling:This approach is slightly better than the previous approach as it takes into account customized estimation techniques to the different types of functional blocks thus trying to increase the modelling accuracy which wasn’t the case in the previous technique such as logic, memory, interconnect, and clock hence the name. The power estimation is done in a very similar manner to the independent case. The basic switching energy is based on a three-input AND gate and is calculated from technology parameters e.g. gate width, tox, and metal width provided by the user.
- Where Cwiredenotes the bit line wiring capacitance per unit length and Ccelldenotes the loading due to a single cell hanging off the bit line. The clock capacitance is based on the assumption of anH-treedistribution network. Activity is modelled using a UWN model. As can be seen by the equation the power consumption of each components is related to the number of columns (Ncol) and rows (Nrow) in the memory array.
- Disadvantages:
- The circuit activities are not modeled accurately as an overall activity factor is assumed for the entire chip which is also not trustable as provided by the user. As a matter of fact activity factors will vary throughout the chip hence this is not very accurate and prone to error. This leads to the problem that even if the model gives a correct estimate for the total power consumption by the chip, the module wise power distribution is fairly inaccurate.
- The chosen activity factor gives the correct total power, but the breakdown of power into logic, clock, memory, etc. is less accurate. Therefore this tool is not much different or improved in comparison with CES.
- Disadvantages:
Precharacterized cell libraries
editThis technique further customizes the power estimation of various functional blocks by having separate power model for logic, memory, and interconnect suggesting apower factorapproximation (PFA) method for individually characterizing an entire library of functional blocks such as multipliers, adders, etc. instead of a single gate-equivalent model for “logic” blocks.
The power over the entire chip is approximated by the expression:
Where Kiis PFA proportionality constant that characterizes the ithfunctional elementis the measure of hardware complexity, anddenotes the activation frequency.
Example
editGidenoting the hardware complexity of the multiplier is related to the square of the input word length i.e. N2where N is the word length. The activation frequency is the rate at which multiplies are performed by the algorithm denoted byand the PFA constant,,is extracted empirically from past multiplier designs and shown to be about 15 fW/bit2-Hz for a 1.2 μm technology at 5V.
The resulting power model for the multiplier on the basis of the above assumptions is:
Advantages:
- Customization is possible in terms of whatever complexity parameters which are appropriate for that block. E.g. for a multiplier the square of the word length was appropriate. For memory, the storage capacity in bits is used and for the I/O drivers the word length alone is adequate.
Weakness:
- There is the implicit assumption that the inputs do not affect the multiplier activity which is contradictory to the fact that the PFA constantis intended to capture the intrinsic internal activity associated with the multiply operation as it is taken to be a constant.
The estimation error (relative to switch-level simulation) for a 16x16 multiplier is experimented and it is observed that when the dynamic range of the inputs does not fully occupy the word length of the multiplier, the UWN model becomes extremely inaccurate.[6]Granted, good designers attempt to maximize word length utilization. Still, errors in the range of 50-100% are not uncommon. The figure clearly suggests a flaw in the UWN model.
See also
edit- Datapath
- Electronic design automation(EDA)
- Electronic system-level
- Finite-state machine with datapath
- Integrated circuit design
- Synchronous circuit
- Algorithmic state machine
Power estimation
editReferences
edit- ^ Frank Vahid (2010).Digital Design with RTL Design, Verilog and VHDL(2nd ed.). John Wiley and Sons. p. 247.ISBN978-0-470-53108-2.
- ^Yosys Manual(RTLIL)
- ^"Power Estimation Techniques for Integrated Circuits"
- ^"Low-Power Architectural Design Methodologies"
- ^"Register-Transfer Level Estimation Techniques for Switching Activity and Power Consumption"
- ^"Power Macromodeling for High Level Power Estimationy"