What Is RTL? Follow Register Transfers Through a Clock-Cycle Example
Register-transfer level (RTL) describes stored state, clocked data movement, and the operations between registers. Follow an 8-bit accumulator to see how reset and enable change q at each clock edge, then learn how RTL differs from HDL code and a gate implementation, and what to check during verification.
What Is RTL? Follow Register Transfers Through a Clock-Cycle Example
Register-transfer level (RTL) is a digital design abstraction for describing circuit state, data movement between registers, and the logic or arithmetic operations between them. A register is a storage element that preserves a value between clock edges. RTL uses a hardware description language (HDL) to state when and how that stored value changes. The 8-bit accumulator below shows how RTL describes stored state and operations together, one clock cycle at a time.
RTL, HDL, and the gate level
HDL is a language for describing hardware, such as Verilog/SystemVerilog or VHDL; RTL is a level of design that those languages can express. HDL can also describe other abstraction levels, from behavior to gates. In RTL, you focus on register values, clock-by-clock transfers, and operations instead of specifying individual transistors or physical coordinates.
| Design representation | What it mainly describes | What is still undecided |
|---|---|---|
| RTL | Register state, clock conditions, data operations and transfers | Actual gates, cell selection, placement and routing |
| Gate-level netlist | Flip-flop and logic-cell instances and their connections | Physical cell locations and routed wires |
| Physical layout | Cell coordinates, metal wires, and physical geometry | Manufacturing results and measured performance |
Read an 8-bit accumulator in code and a table
An accumulator adds an input value to the value it already stores. In the example, at each rising edge, a 1 on enable adds the 8-bit input d to the current q; a 0 keeps the value. When reset_n is 0 at a rising edge, q becomes 0.
The following Verilog is an explanatory example. It does not represent a synthesis result from a particular ASIC or FPGA tool; physical mapping depends on the target technology and tool settings.
module accumulator_8 (
input wire clk,
input wire reset_n,
input wire enable,
input wire [7:0] d,
output reg [7:0] q
);
always @(posedge clk) begin
if (!reset_n)
q <= 8'd0;
else if (enable)
q <= q + d;
end
endmoduleThe block runs on a rising edge of clk. The low-active name reset_n does not mean the reset is asynchronous. This code lists only clk in its event control, so it checks reset at a rising edge: this is a synchronous reset. An asynchronous reset also reacts to a change on the reset input; check that the target library or FPGA resource and timing requirements support it.
The next state at each rising edge follows this rule:
| reset_n at rising edge | enable at rising edge | input d | q before edge | q after edge |
|---|---|---|---|---|
| 0 | Irrelevant | Irrelevant | Any value | 0 |
| 1 | 1 | 3 | 0 | 3 |
| 1 | 1 | 5 | 3 | 8 |
| 1 | 0 | 9 | 8 | 8 |
In q <= q + d, the q on the right is the value from just before that edge. The <= operator is a nonblocking assignment commonly used in clocked logic: it schedules an update using values read in the current time step. If enable is 0, this sequential block does not assign a new value, so the register keeps its previous state. That differs from a latch inferred when a combinational logic block leaves some conditions without an assigned value.
Both q and d are 8 bits, so the stored sum is 8 bits. If the carry bit is not preserved separately, adding 10 to 250 produces 4 in an 8-bit result (the remainder after division by 256). If the design must retain values above 255, widen the result or store the carry separately.
The Verilog type name reg does not, by itself, decide whether hardware contains a flip-flop. In this example, the rising-edge event control and state-retention behavior describe sequential logic. Synthesis maps the addition and conditional selection to circuitry supported by the target; ASIC standard cells and FPGA-specific resources and routing can differ.
A practical RTL review sequence
**Define state and width.** Identify stored values, input bit widths, and signedness. Explicit widths such as 8 bits make truncation and overflow visible.
**Define clock and control behavior.** State which edge captures data, whether reset is synchronous or asynchronous, and what happens when enable is off.
**Write the next-state table before coding.** Include reset, disabled operation, and values near the maximum. In this example, decide whether a carry from 250 plus 10 is discarded or preserved.
**Check the table with RTL simulation.** Apply testbench inputs around clock edges and inspect whether q changes on the expected cycle. If it changes one cycle late or has the wrong value, first check the sampling edge, use of the previous state, reset timing, and testbench timing.
**Review synthesis warnings and results.** Check unsupported syntax, unintended latches, inferred registers and arithmetic, and area and timing reports. Incomplete if or case branches in a combinational block can infer a latch. In contrast, retaining a value when enable is off in a clocked block can be intended register behavior.
**Verify again after implementation.** Check that the synthesized netlist preserves RTL behavior, then reanalyze timing after placement and routing with the real constraints and routed parasitics. RTL alone does not determine a finished chip's speed or power.
RTL describes a circuit's function and clock-by-clock state changes. Running HDL code as an ordinary software program does not produce a physical chip. ASIC and FPGA flows need synthesis, verification, and physical implementation, with each stage checked against its target technology and design conditions.
Sources
[Synopsys: What Is Register-Transfer-Level (RTL) Design?](https://www.synopsys.com/glossary/what-is-register-transfer-level-design.html)
[AMD Vivado Design Suite User Guide: Synthesis (UG901), Register with Rising-Edge Coding Verilog Example, 2026.1](https://docs.amd.com/r/en-US/ug901-vivado-synthesis/Register-with-Rising-Edge-Coding-Verilog-Example)
[AMD Vivado Design Suite User Guide: Synthesis (UG901), Latches, 2024.1](https://docs.amd.com/r/2024.1-English/ug901-vivado-synthesis/Latches?contentId=9CXNyK7VxgQMPM3QJxPSvg)