Hsb ip packetizer

From NVIDIA/skills · View interactive version

Hsb ip packetizer is an AI agent skill from the GitHub repository NVIDIA/skills. Choose or explain HSB Sensor RX packetizer fields for HOLOLINK_def.svh. Do not use for full defs, validation, or runtime APB programming.

How to use this skill

Skill file

HSB IP Packetizer Skill

Purpose

Choose packetizer-related HOLOLINK_def.svh fields for the NVIDIA Holoscan Sensor Bridge Sensor RX path.

This skill owns only the packetizer slice of HOLOLINK_def.svh:

Use hsb-ip-def for whole-file generation, validation, comparison, and non-packetizer macros.

Prerequisites

Instructions

Live HSB IP source policy

Prefer live HSB IP source over bundled packetizer references whenever the user's workspace provides it. The bundled references describe known rev 16'h2604 and backward-compatible rev 16'h2603; live source is the authority for the checked-out IP.

When source is available:

  1. Locate HOLOLINK_top.sv plus the packetizer RTL files:
  1. Read HOLOLINK_REV and HOLOLINK_BACKWARD_COMPAT_REV from HOLOLINK_top.sv when present.
  2. Verify that HOLOLINK_top still maps the five def fields into packetizer_top as documented before making source-sensitive claims.
  3. If the rev is newer, unknown, or live RTL disagrees with this skill's references, state the mismatch. Trust the live RTL for explanation, avoid unsupported assumptions, and do not emit an enabled packetizer overlay unless the field mapping and RTL constraints can be verified from the live source.

When no source is available, use the bundled references as known-revision guidance and say that the answer is based on the skill's supported HSB IP rev.

Reference Loading

Load only the reference needed for the user's task:

| File | When to load |

|---|---|

| references/packetizer-def-fields.md | Choosing or explaining HOLOLINK_def.svh packetizer fields, array length rules, bypass placeholders, RTL-derived constraints, or standalone SVH output formatting |

| references/packetizer-architecture.md | Explaining packetizer blocks, data flow, clocks, APB registers, runtime-vs-def split, or why a field exists |

| references/handoff-contract.md | Producing packetizer_profile_overlay YAML for hsb-ip-def or enforcing output-mode separation |

Workflow Decision

  1. If the user is working inside a HOLOLINK_def.svh generation flow, use Def-Skill Handoff.
  2. If the user asks for lines to add to an existing/new HOLOLINK_def.svh, use Standalone SVH.
  3. If the user asks what a field does, why a value matters, or whether a combination is safe, use Explain.
  4. If the user asks for APB pattern RAM programming, explain that it is runtime configuration and outside v1 generated output; load references/packetizer-architecture.md for the register context.

Requirement Discovery

Collect these facts in order, skipping facts the user already supplied. Stop asking as soon as the data manipulation description is specific enough to derive the profile.

  1. SENSOR_RX_IF_INST: number of Sensor RX interfaces. If undefined or zero, stop.
  2. SIF_RX_WIDTH[]: per-RX-interface input width. This is DIN_WIDTH for each packetizer instance.
  3. Packetizer intent per RX interface: pass-through, data rearrangement/manipulation, split into virtual ports, replicate/duplicate, or other manipulation.
  4. The data layout for enabled interfaces: lane/chunk width, number of output virtual streams, whether the manipulation stays within one input cycle or spans multiple cycles, and any exact ordering/replication requirement.

Skip per-macro confirmation prompts such as "Confirm SIF_RX_VP_COUNT?", "Confirm SIF_RX_SORT_RESOLUTION?", "Confirm SIF_RX_VP_SIZE?", or "Confirm SIF_RX_NUM_CYCLES?" Ask for missing data-shape facts, such as "How many virtual streams should RX0 split into?" or "What bit granularity is being rearranged?"

Deriving Fields

After the required facts are known, derive all packetizer arrays together:

If several profiles remain plausible after reading the data description, ask one clarifying question about the behavior or data shape that distinguishes them. Do not fall back to "typical" packetizer values.

For disabled entries in a mixed enabled/disabled design, fill the peer arrays with ignored placeholder values matching the RTL bypass constants:

Emitted Field Format

Standalone SVH

Use this when the user asks for packetizer lines to add to a HOLOLINK_def.svh.

Steps:

  1. Gather the required facts.
  2. Load references/packetizer-def-fields.md for choosing values, checking constraints, and using the canonical standalone output formatting.
  3. Emit a fenced systemverilog block containing only the packetizer localparams.
  4. Explain what the settings allow for the user's data manipulation: which RX interfaces use packetizer hardware, how many virtual streams they expose, the per-stream width, the data-rearrangement granularity, and whether the operation is single-cycle or multi-cycle.
  5. Add a short note that whole-file validation should be done with hsb-ip-def or its validate_def.py.

Def-Skill Handoff

Use this when invoked by hsb-ip-def while that skill is generating a full HOLOLINK_def.svh.

Steps:

  1. Gather only packetizer-specific requirements not already known from the def flow.
  2. Load references/handoff-contract.md.
  3. Emit one labeled YAML overlay first. Do not write an introductory sentence before the packetizer_profile_overlay label once requirements are known. The def skill consumes the flat keys directly.
  4. After the overlay, add a concise explanation of what the settings allow for the user's data description and manipulation needs.

Required label:

packetizer_profile_overlay

YAML keys:

Example shape:

packetizer_profile_overlay

sif_rx_packetizer_en: [1, 0]
sif_rx_vp_count: [4, 1]
sif_rx_sort_resolution: [16, 2]
sif_rx_vp_size: [128, 32]
sif_rx_num_cycles: [1, 1]

The def skill remains responsible for merging this overlay into its profile, generating the final SVH, and running full validation.

Explain

Use this when the user asks what a packetizer field does, why a value matters, or whether a packetizer combination is suitable.

Steps:

  1. Load references/packetizer-def-fields.md for field-level answers.
  2. Load references/packetizer-architecture.md for architecture, data flow, clock domains, or runtime APB behavior.
  3. Cite source locations in the form top/HOLOLINK_top.sv:1356-1362 or packetizer/packetizer.sv:69-85 when explaining RTL behavior.
  4. For legality questions that affect the whole HOLOLINK_def.svh, state the packetizer-local concern and tell the user to validate the full file with hsb-ip-def.

Troubleshooting

Examples

packetizer_profile_overlay

sif_rx_packetizer_en: [1, 0]
sif_rx_vp_count: [4, 1]
sif_rx_sort_resolution: [16, 2]
sif_rx_vp_size: [16, 32]
sif_rx_num_cycles: [1, 1]

Then state that hsb-ip-def remains responsible for merging this overlay, generating the full HOLOLINK_def.svh, and running full validation.

Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.