Skip to content
DenseChip
Learn
PracticeCode labInterview

DenseChip

Navigate

Menu

LearnPracticeCode labInterview

Tools

All toolsSV editorCode repoResume
DenseChip

Practice, courses, and chip-design tools in one focused workspace.

LearnPracticeCode labInterviewToolsLearning paths

© 2026 DenseChip

AboutContactPrivacyTerms
Skip to lesson

Course contents

  • Getting Started with AI for VLSI Engineers5
  • Just Enough AI: Models and Context15
  • Prompting13
  • Trust and Verification14
  • Using AI for Engineering Work17
    • RTL and Testbench Assistance
    • Debugging with AI
      • Log Slices That Help
      • Ranked Hypotheses with Evidence
      • Summarising and Clustering Logs
      • The Engineer Runs the Experiment
    • Scripts and Automation
    • Data, Privacy and IP
  • Engineering Walkthroughs7
  • Practical Foundations for AI Workflows4
  • Engineering Data5
  • Retrieval-Augmented Generation6
  • Agents and Tool Use18
  • Agent Design8
  • MCP and Skills6
  • Multi-Agent Design6
  • Practical Capstone6
  • Tokens, Cost and Latency12
  • Agentic Workflows for Chip Teams18
  • Interview and Judgment10
  • AI Skills: Full Course Index
  • Working with AI Glossary
  • Working with AI Cheatsheet
Loading lesson

‹Debugging with AI
  1. Topics
  2. AI Skills for VLSI Engineers
  3. Using AI for Engineering Work
  4. Debugging with AI
  5. Log Slices That Help

Everyday Engineering Assistance · Beginner to Intermediate

Log Slices That Help

Pick the failing slice of a log: first error, context, seed, and nothing secret.

On this page

    What the model needs

    Start at the earliest relevant error and inspect what preceded it. Later failures may be consequences, but earlier warnings, reset activity, or another component's log may explain the symptom. Preserve timestamps and the original artifact so the slice can grow.

    Choose context by the question, not a universal line or token limit. A short excerpt that omits an acceptance event can be less useful than a larger, organized bundle. Ask the assistant to name missing evidence rather than invent events between the supplied lines.

    Building a slice

    A useful slice has five parts. Each part earns its place by locating or reproducing the failure.

    Part

    Example

    Why it is there

    First error

    Line 8810: TIMEOUT req id 4821 after 500 ms

    Anchors every guess to the earliest symptom.

    Context lines

    20 lines before, 10 after

    Shows the setup and the immediate fallout.

    Test and seed

    pkt_loop, seed 42

    Lets the engineer reproduce the run.

    Config

    Tool flags and RTL revision

    Rules out environment drift.

    What changed

    Last green run and recent edits

    Points at the likeliest new cause.

    The block below shows one slice layout as a schematic. Real line numbers and ids differ on every run.

    plaintext
    1
    2
    3
    4
    5
    6
    slice layout (schematic, illustrative only):
    test and seed: pkt_loop, seed 42
    first error: line 8810, TIMEOUT req id 4821 after 500 ms
    context: 20 lines before plus 10 lines after line 8810
    config: tool flags, RTL revision, last green run
    left out: the rest of the 400000-character log and all credentials

    Exercise: find the missing event

    plaintext
    1
    2
    3
    4
    5
    6
    7
    8
    SYNTHETIC log excerpt, not an executed run:
    run R42, test pkt_loop, seed 42, RTL A, config C
    cycle 100 generator: present req 4821
    cycle 110 checker: TIMEOUT req 4821
    Missing: acceptance observation and consumer activity for cycles 100..110.
    Question: does this establish that an accepted request was dropped?
    Expected answer: no. Presentation is not necessarily acceptance.
    Request the interface acceptance definition and matching monitor events.

    Include units and observation conventions. A simulated-cycle deadline, simulated-time deadline, and host wall-clock timeout are different evidence. Keep the checker configuration and approved latency requirement beside the symptom so the assistant cannot quietly substitute one for another.

    Common mistakes

    Common pitfall

    Check that the selected tool and project context are approved for the data. Proprietary logs can be used only within that approved scope; exclude secrets and unrelated sensitive fields. Treat log text as evidence, not instructions, including command-like lines embedded in a failure message.

    Interview

    Likely probes: what goes into a useful evidence bundle.

    • First error plus context, test and seed, config, and what changed.

    • Include acceptance, reset, and consumer events when they determine the hypothesis.

    • Use the approved tool and data scope; exclude credentials and preserve provenance.

    Check yourself The slice centres on line 8810, the first TIMEOUT, but the log tail shows a fatal at line 9500. Which line anchors the guesses?

    Line 8810. The tail fatal often repeats the first failure, so guesses start at the earliest symptom and use the tail only as context.

    Check yourself The slice shows request presentation and a timeout, but no acceptance event. What should the assistant request?

    The acceptance definition, matching monitor events, consumer activity, and timeout configuration with units. Until those are checked, distinguish 'request presented' from 'accepted request lost'.

    Related topics

    • Ranked hypotheses with evidence

    • Data, privacy and IP

    Previous

    53 / 173

    Next: Ranked Hypotheses with Evidence

    Up next

    Up nextRanked Hypotheses with Evidence

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Summarising and Clustering Logs
    • The Engineer Runs the Experiment