Hsb Ip Create Top
NVIDIAOfficialCreated by Holoscan TeamDistributed by NVIDIA
- Skill
- Workflow
- Software development
- Apache-2.0
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured workflow to generate an FPGA_top.sv scaffold, which serves as the top-level wrapper for HSB IP. It ensures that the generated code adheres to a fixed format, including necessary license headers, module shells, and signal declarations derived from a validated HOLOLINK_def.svh file. The skill is designed to work either as a standalone tool or as a follow-up to the hsb-ip-def skill, ensuring that integration scaffolds are consistent with the underlying IP configuration.
What it does
- Generates a fixed-format FPGA_top.sv scaffold.
- Instantiates the HOLOLINK_top module.
- Declares HSB-facing signals based on validated HOLOLINK_def.svh macros.
- Provides TODO comments for top-level integration points.
- Supports both live HSB IP source extraction and bundled known-revision references.
When to use it
- When you have a validated HOLOLINK_def.svh and need to create a top-level wrapper.
- When you need to ensure your FPGA top-level structure follows established HSB integration standards.
- When transitioning from IP definition to top-level system integration.
Advantages
- Ensures consistent top-level structure across different HSB IP configurations.
- Automates the tedious process of declaring complex HSB-facing signal groups.
- Maintains strict adherence to port shapes and interface requirements.
- Reduces integration errors by using validated defs as the source of truth.
Usage examples
- “Create an FPGA_top.sv scaffold using my validated HOLOLINK_def.svh.”
- The agent will verify the defs file, determine the appropriate port map source, and generate the fixed-format SystemVerilog scaffold.
- “I just finished generating my defs with hsb-ip-def, can you create the top-level wrapper now?”
- The agent will consume the existing context from the def-skill handoff and proceed directly to generating the FPGA_top.sv scaffold.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/hsb-ip-create-top/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip hsb-ip-create-top.zip -d .agents/skills
Documentation by Holoscan Team
HSB IP Create Top Skill
Purpose
Create a fixed-format SystemVerilog top-level scaffold that instantiates HOLOLINK_top and declares the HSB-facing signals required by a validated HOLOLINK_def.svh.
This skill owns only the top-level scaffold around the HSB IP:
SPDX/Apache license header
HOLOLINK_def.svhincludeFPGA_topmodule shellHSB-facing signal declarations
HOLOLINK_topinstantiationcomments/TODOs for top-level integration
Use hsb-ip-def for HOLOLINK_def.svh generation and validation. Do not create or validate the defs file here.
Prerequisites
A validated
HOLOLINK_def.svhpath or pasted file content is required before generatingFPGA_top.sv.Live
HOLOLINK_top.svsource is preferred when source-sensitive port extraction is needed; bundled references cover known rev16'h2604and compatible rev16'h2603.The user must provide or accept the output path when writing a scaffold file.
Instructions
Require a validated
HOLOLINK_def.svhbefore creatingFPGA_top.sv. If the user does not have one, invoke or direct them tohsb-ip-deffirst.Treat live
HOLOLINK_top.svas the source of truth for ports, directions, macro gates, and IP revision whenever it is available.First classify the request as Standalone Create Top, Def-Skill Handoff, or Explain. Load only the references required for that workflow and do not re-read the same reference just to reconfirm formatting.
Use
references/fixed-format.mdas the baked formatting and naming style. Do not inspect example top-level files just to confirm formatting during normal generation.Emit a fixed-format scaffold, not a complete project top. Because the surrounding design is unknown, the generated
FPGA_topmodule normally has no top-level ports.Derive active signal groups from the validated defs file. Do not connect ports that are absent from
HOLOLINK_topunder the active macro set.Preserve
HOLOLINK_topport shapes exactly: keep packed vector widths before the signal name and unpacked interface-array dimensions after the signal name.When using bundled known-rev references, still preserve the signal shapes in
references/fixed-format.md, including unpacked arrays for multi-interface*_tdata,*_tkeep, and*_tuserbuses and the APB shape documented there.Use sensor-agnostic language. Say "sensor data", "sensor interface", and "stream"; use camera-specific language only after the user says the design is camera-specific.
Ask one plain-language question per turn when information is missing. Keep source-selection questions as plain-language prompts rather than radio buttons, structured choices, or multi-question prompts.
Do not invent project-specific integration details. Leave concise TODO comments where the surrounding design must connect to HSB.
For packetizer comments in
FPGA_top.sv, use generic wording such as "data manipulation behavior".In final summaries, include the defs validation/source status, the port-map source used, and the emitted HSB signal groups. Do not enumerate what is outside the scaffold's scope. Use only this generic note: "This file is a reference/template for hooking up top-level signals and companion IP to the HSB IP."
Live HSB IP Source Policy
Prefer live HSB IP source over bundled 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:
Locate
<hsb-ip-root>/top/HOLOLINK_top.sv. Known roots includehw/nvcpu_dgx_fpga/vrtl/hololink/and public-releasefpga/nv_hsb_ip/.Read
HOLOLINK_REVandHOLOLINK_BACKWARD_COMPAT_REVfromHOLOLINK_top.sv.Read the
HOLOLINK_topmodule declaration to confirm port names, directions, widths, ordering, andifdef/ifndefgates.If the rev is newer, unknown, or the live source disagrees with this skill's references, state the mismatch. Trust the live source for IO extraction and warn that bundled references may need an update.
When no source is available, use the bundled references as known-revision guidance and say the scaffold is based on the skill's supported HSB IP rev. If the user already authorized using the bundled known-rev port reference when no checkout is obvious, do a brief search of obvious roots and then proceed with bundled references instead of asking the live-source question.
If the source root is not obvious, ask conversationally in one turn:
Do you have a current HSB IP `HOLOLINK_top.sv` source checkout you want me to use for port extraction, or should I use the skill's bundled known-rev port reference?Accept either a path or a "use bundled reference" answer.
Reference Loading
Load only the reference needed for the user's task:
| File | When to load |
|---|---|
references/source-policy.md | Finding live HSB IP source, handling unknown revisions, or deciding source/reference precedence |
references/fixed-format.md | Generating or explaining the fixed FPGA_top.sv scaffold format |
references/handoff-contract.md | Standalone prerequisite handling or def-skill handoff behavior |
Workflow Decision
If invoked by
hsb-ip-defafter a successful defs generation/validation, use Def-Skill Handoff.If the user directly asks to create
FPGA_top.sv, instantiateHOLOLINK_top, or make a top-level wrapper, use Standalone Create Top.If the user asks about version handling, port groups, or why a signal appears, use Explain.
Standalone Create Top
Use this when the user invokes this skill directly.
Steps:
Ask for the path to a validated
HOLOLINK_def.svh, or accept pasted content. If the user does not have a defs file, stop and direct them tohsb-ip-defto create and validate it first.If validation status is unknown, invoke or direct the user to
hsb-ip-defvalidation. Do not proceed from an unvalidated defs file.If the HSB IP source root is not obvious and source-sensitive output is needed, ask the live-source question from "Live HSB IP Source Policy" unless the user already authorized bundled known-rev fallback. Do not show path options as radio buttons. The known roots are search hints for the agent, not choices to force on the user.
Load
references/source-policy.mdandreferences/fixed-format.md.Derive the active macro set from the validated defs file.
Derive or verify
HOLOLINK_topport groups from live source when available.Produce
FPGA_top.svin the fixed format. If writing a file, default filename isFPGA_top.svunless the user provides a path.Explain that the result is an HSB integration scaffold. Use the generic reference/template note in
## Instructions; do not enumerate what is outside the scaffold's scope.
Def-Skill Handoff
Use this when hsb-ip-def has just completed a validated HOLOLINK_def.svh and the user chooses to create a matching top-level scaffold.
Steps:
Accept the validated defs file path/content and any known profile/source-root context from
hsb-ip-def.Do not re-ask for defs-file decisions already completed by the def skill.
Ask only for missing top-generation facts, such as output path or HSB IP source root when needed. If source root is missing, ask the live-source question from "Live HSB IP Source Policy" unless the user already authorized bundled known-rev fallback; do not use radio buttons or structured choices.
Load
references/handoff-contract.mdandreferences/fixed-format.md.Generate the fixed-format
FPGA_top.svscaffold from the active defs macros and liveHOLOLINK_top.svwhen available.Return a concise summary of which HSB signal groups were emitted, then use the generic reference/template note in
## Instructions. Do not enumerate what is outside the scaffold's scope.
Explain
Use this when the user asks why a port or signal group appears, how macro settings affect the top scaffold, or how the skill handles IP revisions.
Steps:
For port questions, prefer live
HOLOLINK_top.svwhen available. Otherwise loadreferences/fixed-format.md.For revision/source questions, load
references/source-policy.md.For defs-file macro meaning, defer to
hsb-ip-def.
Troubleshooting
Missing or unvalidated defs file: stop before generation and send the user to
hsb-ip-defvalidation.Unknown or newer HSB IP revision: prefer live source if available, state the mismatch, and warn that bundled references may need updates.
Port missing under the active macro set: omit that connection and explain which validated def macro disabled the signal group.
Examples
Use hsb-ip-create-top to create an FPGA_top.sv scaffold from my validated HOLOLINK_def.svh. Use the bundled known-rev port reference if no HSB IP source checkout is obvious.Treat as Standalone Create Top, require the validated defs file, loadreferences/source-policy.mdandreferences/fixed-format.md, use bundled known-rev ports after a brief source search, and report the defs status, port-map source, and emitted signal groups.Create a top-level FPGA_top.sv wrapper for HSB, but I do not have a HOLOLINK_def.svh yet.Stop before generation, direct the user tohsb-ip-def, and ask for a validated defs file path or content before proceeding.Why does the generated FPGA_top.sv include different HSB signal groups depending on my HOLOLINK_def.svh macros?Treat as Explain, say that validated defs macros gate the HSB-facing signal groups and that the liveHOLOLINK_top.svport map wins when available; defer detailed macro semantics tohsb-ip-def.
Limitations
Do not generate
HOLOLINK_def.svh.Do not validate full
HOLOLINK_def.svhfiles.Do not generate project-specific integration outside the HSB-facing scaffold.
Do not infer signal meanings, polarity, sources, or behavior outside the HSB port map.
Do not copy example project logic into the scaffold unless the user explicitly requests project-specific adaptation.
Files
- ATTRIBUTION.mdAdded by AutoGineer916 B
- BENCHMARK.md3.4 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md10.7 KiB
- evals/evals.json3.4 KiB
- references/fixed-format.md7.3 KiB
- references/handoff-contract.md1.6 KiB
- references/source-policy.md2.5 KiB
- skill-card.md3.8 KiB
- skill.oms.sig5.2 KiB
references/fixed-format.md
Fixed FPGA_top.sv Format
Use this reference when generating the top-level scaffold.
Output Intent
The generated file is an HSB integration scaffold, not a complete project top. It instantiates HOLOLINK_top and declares HSB-facing signals according to the active HOLOLINK_def.svh macros. This file is a reference/template for hooking up top-level signals and companion IP to the HSB IP.
Required Order
Emit sections in this order:
SPDX/Apache license header.
`include "HOLOLINK_def.svh".module FPGA_topdeclaration, normally with no top-level ports.HSB-facing declarations in fixed section order.
HOLOLINK_topinstantiation.endmodule.
Module Shell
Use this shape unless the user explicitly asks for board ports:
`include "HOLOLINK_def.svh"
module FPGA_top
import HOLOLINK_pkg::*;
import apb_pkg::*;
#(
// Build identifier reported by HSB status/version registers:
// BUILD_REV[47:16] = build date, BUILD_REV[15:0] = build revision.
parameter BUILD_REV = 48'h0
)();Comment Banner
Use this baked banner style:
//------------------------------------------------------------------------------
// Section Name
//------------------------------------------------------------------------------Inside the HOLOLINK_top port map, use the same banner style for major groups and concise single-line comments for subgroups.
Signal Shape Rules
Preserve the HOLOLINK_top.sv declaration shape. Keep packed vector widths before the signal name and keep unpacked interface-array dimensions after the signal name. Do not collapse these ports into packed two-dimensional vectors.
Use this shape for multi-interface data buses:
logic [`DATAPATH_WIDTH-1:0] sif_rx_axis_tdata [`SENSOR_RX_IF_INST-1:0];
logic [`DATAKEEP_WIDTH-1:0] sif_rx_axis_tkeep [`SENSOR_RX_IF_INST-1:0];
logic [`DATAUSER_WIDTH-1:0] sif_rx_axis_tuser [`SENSOR_RX_IF_INST-1:0];
logic [`DATAPATH_WIDTH-1:0] sif_tx_axis_tdata [`SENSOR_TX_IF_INST-1:0];
logic [`DATAKEEP_WIDTH-1:0] sif_tx_axis_tkeep [`SENSOR_TX_IF_INST-1:0];
logic [`DATAUSER_WIDTH-1:0] sif_tx_axis_tuser [`SENSOR_TX_IF_INST-1:0];
logic [`HOST_WIDTH-1:0] hif_rx_axis_tdata [`HOST_IF_INST-1:0];
logic [`HOSTKEEP_WIDTH-1:0] hif_rx_axis_tkeep [`HOST_IF_INST-1:0];
logic [`HOSTUSER_WIDTH-1:0] hif_rx_axis_tuser [`HOST_IF_INST-1:0];
logic [`HOST_WIDTH-1:0] hif_tx_axis_tdata [`HOST_IF_INST-1:0];
logic [`HOSTKEEP_WIDTH-1:0] hif_tx_axis_tkeep [`HOST_IF_INST-1:0];
logic [`HOSTUSER_WIDTH-1:0] hif_tx_axis_tuser [`HOST_IF_INST-1:0];Do not emit this packed 2-D form for those buses:
logic [`SENSOR_RX_IF_INST-1:0][`DATAPATH_WIDTH-1:0] sif_rx_axis_tdata;
logic [`HOST_IF_INST-1:0][`HOST_WIDTH-1:0] hif_rx_axis_tdata;Use packed vectors for one-bit-per-interface signals:
logic [`SENSOR_RX_IF_INST-1:0] sif_rx_clk;
logic [`SENSOR_RX_IF_INST-1:0] sif_rx_rst;
logic [`SENSOR_RX_IF_INST-1:0] sif_rx_axis_tvalid;
logic [`SENSOR_RX_IF_INST-1:0] sif_rx_axis_tlast;
logic [`SENSOR_RX_IF_INST-1:0] sif_rx_axis_tready;
logic [`HOST_IF_INST-1:0] hif_rx_axis_tvalid;
logic [`HOST_IF_INST-1:0] hif_rx_axis_tlast;
logic [`HOST_IF_INST-1:0] hif_rx_axis_tready;Use the APB register interface shape from HOLOLINK_top.sv; only psel, pready, and pserr are per-REG_INST vectors, and only prdata is a 32-bit unpacked array:
logic [`REG_INST-1:0] apb_psel;
logic apb_penable;
logic [31:0] apb_paddr;
logic [31:0] apb_pwdata;
logic apb_pwrite;
logic [`REG_INST-1:0] apb_pready;
logic [31:0] apb_prdata [`REG_INST-1:0];
logic [`REG_INST-1:0] apb_pserr;When ENUM_EEPROM is undefined, declare the host-indexed MAC array as:
logic [47:0] mac_addr [`HOST_IF_INST-1:0];Declaration Sections
Emit these sections in order, omitting groups that are absent under the active defs macro set:
Clock and Reset
sys_rstapb_clk,apb_rsthif_clk,hif_rstptp_clk,ptp_rstsif_rx_clk,sif_rx_rstonly whenSENSOR_RX_IF_INSTis definedsif_tx_clk,sif_tx_rstonly whenSENSOR_TX_IF_INSTis defined
Comment
sif_rx_rstandsif_tx_rstat the declaration site. They are HSB outputs generated byHOLOLINK_top/reset_genin the corresponding sensor interface clock domain.User APB Interface
apb_pselapb_penableapb_paddrapb_pwdataapb_pwriteapb_preadyapb_prdataapb_pserr
Board Enumeration
Only when
ENUM_EEPROMis undefined:mac_addr [HOST_IF_INST-1:0]board_snenum_vld
Initialization
init_done
Sensor RX Interface
Only when
SENSOR_RX_IF_INSTis defined:sif_rx_axis_tvalidsif_rx_axis_tlastsif_rx_axis_tdatasif_rx_axis_tkeepsif_rx_axis_tusersif_rx_axis_tready
Sensor TX Interface
Only when
SENSOR_TX_IF_INSTis defined:sif_tx_axis_tvalidsif_tx_axis_tlastsif_tx_axis_tdatasif_tx_axis_tkeepsif_tx_axis_tusersif_tx_axis_tready
Sensor Event
sif_event
Host Interface
hif_rx_axis_*for data entering HSB from the host sidehif_tx_axis_*for data leaving HSB toward the host side
Peripheral Interfaces
SPI only when
SPI_INSTis definedI2C only when
I2C_INSTis definedUART only when
UART_INSTis defined
GPIO
gpio_ingpio_outgpio_dir
Sensor Reset
sw_sys_rstsw_sen_rst
PTP
Always declare
ptp_clkandptp_rstin Clock and Reset.When
EXT_PTPis undefined, declareptp_sec,ptp_nanosec, andppsas outputs from HSB.When
EXT_PTPis defined, declare board-providedptp_secandptp_nanosecsignals and connect them to the live-sourcei_ptp_secandi_ptp_nanosecports.
Instantiation Rules
Instantiate
HOLOLINK_topasu_hololink_top.Pass
.BUILD_REV ( BUILD_REV ).Preserve the
HOLOLINK_topport order from live source when available.Include only ports present under the active macro set.
Avoid trailing comma on the final active port connection.
Use the same section order as the declarations.
Do not connect absent optional ports.
Placeholder Policy
Do not invent project-specific drivers. Prefer declarations plus TODO comments:
// TODO: Drive sys_rst from board reset and clock/reset logic.
logic sys_rst;Use tie-offs only for clearly inert placeholders when the scaffold would otherwise be misleading, and call them out as placeholders. Do not tie off active sensor, host, APB, or clock paths as if that were complete integration.
Packetizer Comment Language
When packetizer fields are enabled, summarize them in terms of data manipulation behavior:
// TODO: Connect sif_rx_axis_* to the sensor-side source. Packetizer enabled
// (SIF_RX_PACKETIZER_EN[0]=1) with VP_COUNT=4, VP_SIZE=128,
// SORT_RESOLUTION=16, NUM_CYCLES=1 -- runtime APB programming routes
// virtual ports and controls the data manipulation behavior.Generated comments should keep packetizer wording generic and describe the configured data manipulation behavior.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
The author says: Targets HSB IP rev 16'h2604; backward-compatible with 16'h2603. Prefer live HSB IP source when available; warn on unknown revisions. Designed to work standalone or as a companion to hsb-ip-def.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Holoscan Team
- Publisher
- NVIDIA (Official)
- Distributed by
- NVIDIA
- Source
- NVIDIA/skills · skills/hsb-ip-create-top · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Holoscan Team or NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download hsb-ip-create-top.zip