Reset Strategy Consistency
Section 5.5 explained the hardware differences between synchronous and asynchronous resets. While individual modules may function correctly in isolation, inconsistent reset strategies across subsystems create catastrophic chip-level integration failures. A project must establish and document a unified reset architecture.
Functional Risks of Mixed Reset Polarity
Consider an integration scenario where the top-level chip uses active-low reset (rst_n), but a submodule requires active-high reset (rst):
// Top-level integration boundary with mixed reset polarity
module soc_top (
input wire clk, rst_n,
...
);
// Module A expects active-low polarity: direct connection
module_a u_a (.clk(clk), .rst_n(rst_n), ...);
// Module B expects active-HIGH polarity: requires inversion
module_b u_b (.clk(clk), .rst(~rst_n), ...); // Integration defect risk
The inverter ~rst_n introduces risk.
If an integration engineer forgets the inverter, compilers generate no syntax errors or warnings.
In physical silicon, the submodule remains held in permanent reset or never initializes.
Engineering teams must mandate a single reset polarity across the entire repository.
Active-low (rst_n) is standard across CMOS standard cell libraries.
Architectural Justifications for Multiple Reset Domains
Certain chip subsystems require distinct, independently controlled reset domains:
- Asynchronous Clock Domains: Each clock domain requires an independent reset synchronizer (Section 5.5 and Section 7.5) to release reset synchronously to that domain’s clock tree.
- Power-Gated Partitions: Subsystems waking from sleep states must execute local reset sequences while the remainder of the SoC continues active processing.
- Third-Party Intellectual Property (IP): External memory controllers or high-speed PHY interfaces often specify proprietary reset sequences.
Distinguish between intentional architectural reset domains and accidental inconsistencies:
Architectural domains have documented physical boundaries. Accidental domains result from uncoordinated development and cause intermittent hardware lockups.
Documenting the Project Reset Architecture
Establish a central specification document defining reset rules:
Project Reset Specification (docs/reset_strategy.md):
1. Standard Polarity: Active-low reset (rst_n) for all internal modules.
2. Assertion Protocol: Asynchronous assertion to guarantee immediate state clearing.
3. Deassertion Protocol: Synchronous release via standard two-flop synchronizers.
4. Domain Boundaries: One dedicated synchronizer per asynchronous clock domain.
5. Power Management: Power-gated partitions assert local resets under FSM control.
Include references to this document in module header comments. If third-party IP requires alternate polarities, document the deviation explicitly at the instantiation boundary.
Verification Exercise
A project specification mandates active-low, asynchronous-assertion, synchronous-release resets. Review the following code block:
always @(posedge clk) begin
if (rst)
q <= 0;
else
q <= d;
end
Identify all deviations from the documented project specification.
View Solution
The implementation exhibits two critical deviations:
- Incorrect Polarity: The condition
if (rst)assumes active-high polarity. The specification mandates active-low (rst_n), evaluated asif (!rst_n). - Missing Asynchronous Sensitivity: The sensitivity list includes only
posedge clk. The reset operates purely synchronously. It cannot initialize flip-flops at power-on before clock generators stabilize.
The sensitivity list must include negedge rst_n to support asynchronous assertion.
Enforcing consistent reset conventions prevents subtle hardware lockups during chip integration. The next article identifies coding patterns that cause simulation-synthesis mismatches.