KatInterview

RTL Lint Diagnostics: Black Boxes, Loops, and Width Mismatches

System DesignModel answer
MediumModel answerSystem DesignRTLVerilogSystemVerilog

Last updated

Explain the root cause, hardware risk, and fix strategy for three common RTL lint findings in Verilog/SystemVerilog static analysis.

RTL Lint Diagnostics

You are developing a block in Verilog or SystemVerilog. After running a lint tool, you see three categories of findings:

  • A module is flagged as an unresolved instance (sometimes called a black box)
  • A combinational feedback loop is reported
  • An assignment width mismatch is flagged (left-hand and right-hand sides have different bit widths)

For each finding, address the following:

  1. What coding or flow situation typically produces it?
  2. What is the actual hardware or verification risk if it goes unaddressed?
  3. How would you track it down and resolve it?

Close with a short explanation of why lint belongs in a digital design flow at all — not just as a nice-to-have, but as a practical engineering gate.

A strong answer gives concrete root causes (with short code examples where helpful), explains the real consequence in terms of simulation, synthesis, or silicon, and describes a systematic fix rather than just suppressing the warning.

Hints

Hint 1

For the unresolved instance, think about what the tool can and cannot check when it has no visibility into a module's internals — and consider both accidental and intentional causes.

Hint 2

For the combinational loop, think about what static timing analysis does when it encounters a cycle, and what the physical hardware actually does at runtime.

Hint 3

For width mismatches, Verilog has well-defined but silent rules for truncation and extension — ask yourself when those silent rules produce wrong behavior and what explicit constructs make the intent unambiguous.