Describe common RTL lint warnings and errors

Quick Overview

This question evaluates understanding of RTL static analysis and common lint warnings/errors in Verilog/SystemVerilog, testing competence in diagnosing issues such as modules treated as black boxes, combinational loops, and width mismatches.

Describe common RTL lint warnings and errors

Company: Apple

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Technical Screen

You are writing RTL (e.g., Verilog/SystemVerilog) and run a lint tool on your code. The tool reports items such as: - "Treat as black box" - Combinational loop - Left-hand side (LHS) / right-hand side (RHS) not equal length (width mismatch) Explain for each of these: 1. What situation usually causes the warning or error. 2. Why it can be dangerous if left unfixed. 3. Typical ways you would investigate and fix the issue in your RTL. Also briefly describe why running lint is important in a digital design flow.

Quick Answer: This question evaluates understanding of RTL static analysis and common lint warnings/errors in Verilog/SystemVerilog, testing competence in diagnosing issues such as modules treated as black boxes, combinational loops, and width mismatches.

|Home/Software Engineering Fundamentals/Apple
Apple logo
Apple
Dec 8, 2025, 7:36 PM
mediumSoftware EngineerTechnical ScreenSoftware Engineering Fundamentals
6
0

You are writing RTL (e.g., Verilog/SystemVerilog) and run a lint tool on your code.

The tool reports items such as:

  • "Treat as black box"
  • Combinational loop
  • Left-hand side (LHS) / right-hand side (RHS) not equal length (width mismatch)

Explain for each of these:

  1. What situation usually causes the warning or error.
  2. Why it can be dangerous if left unfixed.
  3. Typical ways you would investigate and fix the issue in your RTL.

Also briefly describe why running lint is important in a digital design flow.

Loading comments...