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
    • Anatomy of a Prompt
      • Five Parts of a Prompt
      • Roles: System, User, and Assistant
      • Specific and Parseable
      • Weak Versus Strong Prompts
      • Prompt Template Builder
    • Examples and Reasoning
    • Prompt Debugging
  • Trust and Verification14
  • Using AI for Engineering Work17
  • 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

‹Prompting
  1. Topics
  2. AI Skills for VLSI Engineers
  3. Prompting
  4. Anatomy of a Prompt

Asking Clearly · Beginner to Intermediate

Anatomy of a Prompt

Five prompt parts, roles, specificity, weak-strong pairs, and a budget-checked builder.

  • 5topics
  • 5lessons

A prompt has five parts: task, context, constraints, output format, and examples. Roles label who wrote each part, and a template builder keeps the whole within a token budget.

Part

Carries

Example line

Task

Goal and scope in one verb phrase.

Explain what this FIFO does in two sentences.

Context

Facts that change the answer.

8-deep FIFO between UART RX and core, active-low reset.

Constraints

Limits that rule answers out.

Name signals. Stay under 120 words.

Output format

Shape the answer must take.

Return lines as KEY: VALUE.

Examples

Input-output pairs that show the shape.

Input full=1 gives FUNCTION: backpressure.

Prompt assembly flow.
Five sections assemble into one prompt, then face a budget check before sending.

Lesson

What it covers

Five parts of a prompt

Task, context, constraints, output format, and examples.

Prompt roles

System, user, and assistant roles as a labeling concept.

Specific and parseable

Specific wording and output formats that parse.

Weak versus strong prompts

Weak-strong pairs for RTL, testbench, and log tasks.

Prompt template builder

A builder that assembles sections and checks a token budget.

Check yourself A draft states the task but gives no context, constraints, format, or examples. Which parts are missing?

Context, constraints, output format, and examples are missing. The task alone leaves scope, limits, shape, and guidance open.

Interview

Carry one sentence per lesson: name the five parts, label roles without product terms, prefer specific parseable wording, rewrite weak prompts into strong ones, and assemble sections inside a token budget.

PreviousNext: Five Parts of a Prompt

Up next

Up nextFive Parts of a Prompt

Sign in to save progress

Practice this lessonReport an error

See also

  • Examples and Reasoning
  • Prompt Debugging