intent

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package intent checks a loaded design against a DESIGN-INTENT declaration, an authored statement of what a design is SUPPOSED to contain. "All required modules present" and "voltage domains identified" compare the schematic against an architecture that lives OUTSIDE it, so the netlist alone cannot decide them.

The intent is declared INDEPENDENTLY of the netlist and never derived from it. Each rule iterates the DECLARATION and probes the netlist for each expectation, so a missing module or a rail on the wrong domain FAILS, where a rule enumerating its expectations from the design would always pass. So there is no built-in intent (unlike profiles, which ship generic SPI_NOR/CAN). Every intent is loaded via --intent-path, and a design run with no declaration leaves these items not-automated.

Anything a reviewer signs off separately gets its own rule (WS3-058). Which forms compile one rule per entry, one per kind, or to fixed names is in docsite/content/guide/design-intent.md#one-rule-per-declared-thing.

The mechanism is engine code, and a specific design's declaration is private data authored in the extension (the C16 datasheet posture). Compile turns a Declaration into check rules the way profiles.Compile turns a Profile into rules, and the CLI splices them in via check.CatalogWith.

Index

Constants

View Source
const (
	RuleModuleMissing = "module-missing"
	RuleModuleCount   = "module-count"
	RuleVoltageDomain = "voltage-domain-mismatch"
	// RuleRailCurrentCapacity and RuleRailCurrentMargin are the two rail-sizing rules (WS3-095), one
	// mechanism at two thresholds split into two names so the ratings item and the margins item get
	// separate verdicts.
	RuleRailCurrentCapacity = "rail-current-capacity"
	RuleRailCurrentMargin   = "rail-current-margin"
	// RuleLoadSwitchTripBelowBudget is the LOWER bound of load-switch sizing (WS3-085), checking the
	// switch's current limit against the rail's declared draw. It reads the same declared peaks as the
	// two rules above, but judges a different part (the switch rather than the supply), so it is its own rule.
	RuleLoadSwitchTripBelowBudget = "load-switch-trip-below-budget"
	// The three IO-map rules (agni issue 517). Fixed names rather than one per declared row, because a
	// real map is hundreds of rows and a reviewer signs off "the netlist matches the IO map", not each
	// row (docsite/content/guide/design-intent.md#one-rule-per-declared-thing). Three names because each
	// answer is acted on differently, and the last two are opposite defects that get confused when they
	// share a verdict.
	RuleIOMapPin       = "io-map-pin-mismatch"
	RuleIOMapNetAbsent = "io-map-net-absent"
	RuleIOMapFarEnd    = "io-map-far-end"
	// RuleIOMapCoverage reports the parts of the design the map never mentions. Its considered set is
	// the NETLIST, not the declaration; see ioMapCoverageRule.
	RuleIOMapCoverage = "io-map-coverage"
	// RuleExposureDeclared confirms each component a declaration gives an exposure is a connector the
	// design has (agni issue 831). Without it a misspelled ref-des would change nothing and read as a
	// declaration that took effect.
	RuleExposureDeclared = "exposure-declared"
	// SourceName is the namespace Source uses; the composed catalog names are SourceName + "/" + the
	// bare rule name.
	SourceName = "intent"
)

Rule names the intent rules emit under. These are the BARE names (Rule.Name may not contain the catalog's "/" namespace separator); Source("intent", ...) exposes them in the catalog as "intent/module-missing" and "intent/voltage-domain-mismatch", which is what a review manifest binds to (rule: intent/module-missing). They are stable so an item flips to pass/fail once a declaration is loaded.

View Source
const (
	// PropResetPolarity asserts a reset net's asserted level. Value is "low" or "high".
	PropResetPolarity = "reset-polarity"
	// PropACCoupled asserts a net is AC-coupled through a series capacitor.
	PropACCoupled = "ac-coupled"
	// PropStrap asserts the level a boot/config strap net is intended to latch at reset. Value is
	// "low" or "high".
	PropStrap = "strap"
)

Property kinds.

View Source
const (
	ExposureInternal = "internal"
	ExposureExternal = "external"
)

ExposureInternal and ExposureExternal are the two values a component's exposure takes. Internal is a connector joining this board to another inside the same product, which the exposure rules leave alone. External is the default and needs no declaration.

View Source
const (
	ProtectionOVP       = "ovp"       // a TVS or zener clamps the rail
	ProtectionDischarge = "discharge" // a resistor bridges the rail to ground (a bleeder)
)

Protection kinds.

View Source
const RuleStrapAddressCollision = "strap-address-collision"

RuleStrapAddressCollision is the cross-group collision rule's fixed name. Unlike the per-group rules it is not slugified from a declaration, because it is a property of the SET.

View Source
const SequenceEnableGated = "enable-gated"

SequenceEnableGated is the one sequence relation the netlist can evidence: each stage after the first is held off by the previous stage's power-good signal driving its enable. Parse rejects any other value rather than accepting a declaration nothing checks.

It is a named value rather than a flag because a second structure (a sequencer part stepping rails from its own configuration, an explicit delay element) is a different query, and naming the relation lets that kind be added.

Variables

This section is empty.

Functions

func Compile

func Compile(d Declaration) []*check.Rule

Compile turns a Declaration into the set of check rules that verify a design against it. Like profiles.Compile, the declaration is per-design config and the rules are code. Each sub-check is emitted only when the declaration carries the data it needs, so a declaration with modules but no voltage domains compiles to just the module rule (no empty rule that silently passes). The rules close over the declaration and read the design through check.Model (C19), so they are netlist-format-neutral.

func DecodeSection added in v0.2.2

func DecodeSection(n *yaml.Node) (*configpb.DesignIntent, error)

DecodeSection binds a descriptor's intent section to its proto. It checks SHAPE only (keys and types); FromProto is what validates the declarations, so a store can read a descriptor without compiling rules from it.

func DocRules

func DocRules() []*check.Rule

DocRules returns one representative rule per intent rule KIND (docKey) for the docsite catalog generator. Intent rules are generated per-declaration, so there is no static catalog to enumerate. Each documented kind becomes one page-worthy rule carrying its Detail card, its classification (intentTags), and a generic caption (docSummaries) in place of the design-specific runtime Summary. Each dynamically-named family is one page, named for its family key. Callers must not mutate the returned rules.

func Emits

func Emits(ruleName string) bool

Emits reports whether ruleName is a rule the intent compiler can produce from some declaration, either one of the fixed names listed in the switch or a member of the subsystem-, protection-, property- and sequence- families. It accepts a bare Rule.Name or the composed catalog name ("intent/module-missing").

A review runner uses it to tell a REAL-but-undeclared intent rule from a NOT-YET-SHIPPED name a manifest pre-bound (WS3-098). With no --intent-path both resolve to zero catalog rules, but the first reads needs-design-intent and the second not-automated, so pre-binding a future name never counts as covered. A new rule KIND added to Compile updates Emits beside it; the review package never imports intent and gets this as an injected RunParams closure. TestEmitsCoversCompiler holds Emits to Compile's actual output.

func LoadFileProto added in v0.2.2

func LoadFileProto(path string) (*configpb.DesignIntent, error)

LoadFileProto reads a single intent declaration from a YAML file as its proto, validated (see ParseProto). The CLI's --intent-path sends it on the request.

func ParseProto added in v0.2.2

func ParseProto(b []byte) (*configpb.DesignIntent, error)

ParseProto reads the same shape Parse does and returns the section as its proto, validated, for a caller that sends intent as a VALUE rather than compiling it: the CLI's --intent-path, which rides the request so the model sees the declaration as well as the catalog (agni issue 831).

func RuleDocImageHandler

func RuleDocImageHandler() http.Handler

RuleDocImageHandler serves the intent rule docs' embedded schematic-card images (the diagram a docs/<kind>.md references) as a read-only static route, so the web rules/checks panels resolve the relative image refs in an intent rule's Detail. The contract is builtin.RuleDocImageHandler's: .svg and .png only, 404 for anything else including the markdown, mounted under a prefix (e.g. "images/protection-ovp.svg"), and an explicit SVG content-type.

func Source

func Source(name string, d Declaration) check.RuleSource

Source compiles a declaration into a named check.RuleSource so the CLI can splice the intent rules into the catalog via check.CatalogWith, the same way --profile-path splices interface profiles. The name is the namespace prefix and must differ from every other source name (CatalogWith rejects a duplicate); the CLI uses "intent".

Types

type Declaration

type Declaration struct {
	// Name identifies the declaration in findings and reports (e.g. "Automotive design intent").
	Name string
	// Modules is the set of functional blocks the design is required to contain. moduleMissingRule
	// fails once per declared module absent from the design.
	Modules []Module
	// VoltageDomains is the set of power domains the design declares, each pinning named rails to a
	// nominal voltage. voltageDomainRule fails when a declared rail is absent, or present but its
	// name-derived nominal disagrees with the declared domain (a rail on the wrong domain).
	VoltageDomains []VoltageDomain
	// Subsystems is the set of named architectural subsystems the design must instantiate (a clock
	// tree, a reset scheme, the power tree). One rule each, intent/subsystem-<slug>. A subsystem fails
	// when its declared source component is absent or any of its declared nets is missing.
	Subsystems []Subsystem
	// Protections are the rails that must carry a protection device (OVP clamp, discharge path), keyed
	// on the declared NET NAME (see Protection). One rule per KIND, intent/protection-<kind>.
	Protections []Protection
	// NetProperties asserts what a named net IS (a reset is active-low, a link is AC-coupled) rather
	// than that it exists. One rule per KIND, intent/property-<kind>. A property fails when the
	// design's structure CONTRADICTS the declaration.
	NetProperties []NetProperty
	// RailBudgets is the declared CURRENT demand of named rails (WS3-095). It has to be declared
	// because a netlist carries connectivity and not current. Compiles to
	// intent/rail-current-capacity.
	RailBudgets []RailBudget
	// Sequences is the declared power-up ORDER of groups of rails (WS3-092), the third intent
	// mechanism after presence and property. One rule each, intent/sequence-<slug>. A sequence fails
	// when the gating chain it declares is not in the design, or runs the other way round.
	Sequences []Sequence
	// StrapGroups is the set of strap GROUPS, each several nets read as one binary number (WS3-120,
	// see StrapGroup). One rule per group, intent/strap-group-<slug>, plus one cross-group collision
	// rule for all of them.
	StrapGroups []StrapGroup
	// IOMap is the design's declared PIN ASSIGNMENT, which net lands on which pin of which device and
	// optionally what sits at its far end. The schematic is drawn FROM it, so it exists on any board
	// carrying a large MCU or SoC.
	//
	// It compiles to four fixed-name rules whatever the map's length (agni issue 517), the documented
	// exception to one rule per declared thing. Three ask whether the design kept the map's promises
	// (pin mismatch, net absent, far end wrong) and io-map-coverage reports the nets the map never
	// mentions. See compile.go.
	IOMap []IOAssignment
	// Exposures is what the declaration says about each named component's exposure, sorted by ref-des.
	// The model reads the same declaration to decide which connectors the exposure rules check (see
	// check.WithIntent), so the one rule compiled from it, intent/exposure-declared, only confirms that
	// each declaration names a connector the design has.
	Exposures []Exposure
	// MarginFactor is the house headroom policy, the multiple of a rail's peak budget its supply must
	// be rated for (1.2 means 20% headroom). It compiles intent/rail-current-margin and has NO DEFAULT,
	// because a default puts one company's policy in a rule literal (what WS3-069 moved naming
	// vocabularies out of) and lets a bound item PASS against a number nobody declared. Absent, the
	// margin rule is not compiled, so a bound item reads needs-design-intent.
	MarginFactor float64
	// PullUpReach is the pull-up reach each named net declares, sorted by net name (agni issue 820).
	// It compiles to no rule. The model reads the same declaration (see check.WithIntent), so the
	// pull-up walk from that net asks at the declared reach rather than check.PullUpReachHops.
	PullUpReach []PullUpReach
}

Declaration is one design's intended architecture: the expected modules, voltage domains, and subsystems (clock/reset/power tree). It is authored as YAML in the extension and parsed by Load/Parse; it is never derived from a netlist.

func FromProto added in v0.2.2

func FromProto(name string, in *configpb.DesignIntent) (Declaration, error)

FromProto validates a design's declared intent and compiles it into the Declaration the rules read, under the design's name. It is the whole of validation, so a DesignIntent that arrived on the wire is held to exactly what a file is. A declaration stating nothing is an error, because a design that declares intent and checks nothing would read as covered.

func Load

func Load(r io.Reader) (Declaration, error)

Load reads a YAML intent declaration from r and parses+validates it (Parse). It is the io.Reader entry point; LoadFile wraps it with the os file read for the --intent-path flag.

func LoadFile

func LoadFile(path string) (Declaration, error)

LoadFile reads a single intent declaration from a YAML file (the --intent-path flag). The os dependency lives here, isolated from the WASM-clean Parse/Load path. Unlike profiles' LoadDir, this reads one file rather than a directory to merge, because a design has ONE intended architecture.

func Parse

func Parse(b []byte) (Declaration, error)

Parse reads a design's intent from its descriptor (or a file of the same shape) into a Declaration and validates it. The declaration takes the design's name. A malformed declaration fails at load, where the error can teach, rather than at run. Parse is WASM-clean (yaml only, no os); LoadFile adds the file read.

Every form is checked for something it can evaluate: a module needs a class, an MPN or nets; a net needs at least one fact, and each fact a value its kind accepts; a sequence needs an order the netlist can be checked against; a strap group needs distinct nets that can encode its value; an io_map row needs a net, a device and a pin.

type Exposure added in v0.2.2

type Exposure struct {
	// Ref is the component's ref-des as the design spells it.
	Ref string
	// Exposure is ExposureInternal or ExposureExternal.
	Exposure string
}

Exposure is one component's declared exposure (agni issue 831). Whether a connector faces the field is a fact about one product rather than about the part, since the same mezzanine connector is the module socket on one carrier and the cable entry on another.

type IOAssignment added in v0.2.2

type IOAssignment struct {
	// Net is the net the map says lands here, named as the design names it.
	Net string
	// Device is the ref-des the pin belongs to.
	Device string
	// Pin is the pin, spelled as a package designator or as the part type's functional name.
	Pin string
	// Function is the peripheral function selected on this pin ("ADC0_S17"), and NOTHING READS IT
	// YET. Checking it needs the part's alternate-function table, agni issue 667 (issue 188, the pin
	// FUNCTION table, is done). It is carried so a map is authored once, and every verdict on a row
	// declaring one states that the function was not evaluated, so it never reads as a pass.
	Function string
	// To is the far end this net is declared to reach, or nil when the row does not say. Real maps
	// fill it sparsely (about a third of rows in the one we measured), so the far-end rule reports its
	// denominator; see docsite/content/guide/design-intent.md#the-nine-forms.
	To *IOEndpoint
}

IOAssignment is one row of a declared pin map: this net lands on this pin of this device.

Pin may be spelled either way. A map uses the functional NAME a datasheet and a firmware header use ("PTC11"), a netlist answers in the package DESIGNATOR ("41"), and both resolve through core/ident so the two spellings of one pin agree.

type IOEndpoint added in v0.2.2

type IOEndpoint struct {
	Device string
	Pin    string
}

IOEndpoint names one end of a declared connection.

type Module

type Module struct {
	// Name is the human label shown in a "declared module <Name> not present" finding.
	Name string
	// Class is a device-class value (soc, can_transceiver, regulator, ...); matched with
	// Model.HasClass, so a family tag (diode) matches its specific classes (tvs, led) too. Empty to
	// match by MPN only.
	Class string
	// MPN is an exact manufacturer part number; matched case-sensitively against Model.ComponentMPN.
	// Empty to match by Class only.
	MPN string
	// Count is the EXACT number of components expected to match this module's criterion (e.g. 2 CAN
	// transceivers). 0 means unspecified, and moduleCountRule skips it. When > 0, moduleCountRule
	// fails if the matching count differs (too few OR too many), where module-missing asks only "at
	// least one".
	Count int
}

Module is one required functional block, matched to a design component by device CLASS or by exact MPN. Both match on any netlist with no --params: device_classes are stamped at ingestion, and every model joins the MPNs the design carries (agni issue 748). At least one of Class/MPN is set (Load validates this). A module matches when ANY design component satisfies its criterion.

type NetProperty

type NetProperty struct {
	// Net is the exact net name the property is declared on.
	Net string
	// Property is the kind (PropResetPolarity, PropACCoupled, PropStrap).
	Property string
	// Value qualifies the kind: "low"/"high" for reset-polarity and strap, empty for ac-coupled.
	Value string
	// MinOhms / MaxOhms bound the acceptable resistance of a STRAP's pull resistor, in ohms. Both
	// optional and independent: declare one to bound that side only, neither to check direction alone.
	// Ignored by every other property kind.
	//
	// DECLARED, NOT BUILT IN. A strap resistor must be strong enough to hold against leakage and weak
	// enough not to fight an active driver, and both ends depend on the part. A CMOS input with
	// nanoamp leakage is happy past 100k, while a strap a driver has to override wants a few hundred
	// ohms. Any universal band the engine invented would fire on correct boards, which the
	// review-integrity rule forbids.
	MinOhms float64
	MaxOhms float64
}

NetProperty is one declared property of one net (WS3-088). Kinds (validated at load): "reset-polarity" with Value "low" or "high"; "ac-coupled", which takes no Value; "strap" with Value "low" or "high".

WHAT THESE RULES CAN CONCLUDE differs by kind, and decides what a passing item means.

  • ac-coupled is DECIDABLE from the netlist. A series capacitor is on the net or it is not, so absent means the declaration is unmet and the rule fails.
  • reset-polarity is only PARTLY decidable. A netlist states polarity nowhere, the evidence is a bias resistor, and a reset driven by a supervisor with an internal pull carries none. So the rule fires on a CONTRADICTION (declared low, biased low) and reports INCONCLUSIVE where the design shows nothing either way (agni issue 74).
  • strap (WS3-086) reads the SAME evidence as reset-polarity and asks the INVERTED question. reset-polarity's Value is the level that ASSERTS reset, so bias toward it is the defect and the rule catches only that one of a reset line's two failures. strap's Value is the level the pin should LATCH, so bias away from it is the defect, in EITHER direction. Absent bias is silent, because strap pins carry internal pulls and the datasheet asks for an external resistor only in the non-default state. Firing there would flag the majority of real straps.

type Protection

type Protection struct {
	// Rail is the exact net name that must be protected.
	Rail string
	// Kind is the protection type: "ovp" or "discharge".
	Kind string
}

Protection requires the named rail net to carry a protection device of the given kind, and fails when no matching device is on the rail. Kinds (validated at load): "ovp", a TVS or zener clamps the rail; "discharge", a resistor bridges the rail to a ground net (a bleeder). It is keyed on the exact Rail net name, so an input rail named with no voltage token (VIN_MAIN, VSYS_AO) is checkable even though the rail-role heuristic does not recognize it.

type PullUpReach added in v0.3.8

type PullUpReach struct {
	// Net is the exact net name the reach is declared on.
	Net string
	// Hops is the declared reach, always positive (Load refuses anything else).
	Hops int
}

PullUpReach is one net's declared pull-up reach, the number of series resistors the walk from it may cross to reach the rail its pull-up returns it to. It is the designer saying the bus's series network (an isolation resistor, a level-shifting network) is sized for that reach, which the default of 3 assumes it is not.

type RailBudget

type RailBudget struct {
	// Rail is the exact net name the budget is declared on, matched literally (like Protection.Rail)
	// so a rail the rail-role heuristic does not recognize is still checkable.
	Rail string
	// Peak is the maximum current in amps the rail is expected to draw. Load requires it to be > 0,
	// since a zero budget is satisfied by everything and would pass silently.
	Peak float64
}

RailBudget is one rail's declared peak current demand (WS3-095), in amps.

It has no typical-draw field because no rule reads one, and an author who filled it in would believe the engine checked it. Add one when a rule consumes it.

type Sequence

type Sequence struct {
	// Name is the sequence label ("SoC power tree", "modem rails"); it slugifies into the rule name
	// (intent/sequence-<slug>) a review item binds to, and appears in findings. Names must slugify
	// uniquely within a declaration (Load validates this).
	Name string
	// Relation is how the order is claimed to be enforced. SequenceEnableGated is the only value
	// today; Load rejects the rest.
	Relation string
	// Order is the stages, earliest first. At least two, and at least one adjacent pair must carry
	// the handles the relation reads (Load validates both).
	Order []SequenceStage
}

Sequence is one declared power-up ordering: the stages in the order they must come up, plus the relation that says how the design is claimed to enforce it.

WHAT A PASS MEANS HERE is narrower than "sequencing correct". A netlist holds no order, and the only trace an order leaves in connectivity is the declared gating chain. So a silent rule means every declared link was found in the design, not that the board powers up in that sequence. The rule doc repeats this for the reviewer.

A board that sequences inside a PMIC or in firmware has no chain to name, so it declares no sequence and its review items read needs-design-intent. Parse rejects a sequence with no gating handle (see load.go), since its rule could only ever pass.

type SequenceStage

type SequenceStage struct {
	// Rail is the stage's rail net name. It identifies the stage in findings and in the declaration.
	// A rail the design does not carry is NOT a finding here. That is a presence question the
	// voltage-domain and subsystem forms own, and reporting it twice would put one defect under two
	// review items.
	Rail string
	// Good is the net that signals this stage is up (a regulator's power-good output, a supervisor's
	// output). Empty when the stage gates nothing after it.
	//
	// Unlike Rail, a declared Good the design does not carry IS a finding, because it is the evidence
	// the declaration rests on and without it the chain enforces nothing.
	Good string
	// Enable is the net that holds this stage off until it is driven (a regulator's EN pin net, a
	// load switch's control, a peripheral's reset-release line). Empty for the first stage, or for
	// any stage nothing gates. A declared Enable the design does not carry is a finding, for Good's
	// reason.
	Enable string
}

SequenceStage is one step of a declared power-up order: a rail, plus the nets that signal it is up and hold it off. The two handles are what the check reads; the rail names the stage.

type StrapGroup

type StrapGroup struct {
	// Name labels the group ("PHYAD", "boot mode") and slugifies into the rule name
	// (intent/strap-group-<slug>) a review item binds to. Must slugify uniquely (Load validates).
	Name string
	// Device is the ref-des the group configures (U12). It is not matched against the design (the nets
	// carry the evidence) and only names the part in findings, so a reviewer knows which page to open.
	Device string
	// Nets are the group's strap nets in MSB-FIRST bit order. The declaration owns the order because a
	// netlist never states which pin is the high bit, and inferring it from names like PHYAD2 would put
	// a naming heuristic back in a rule literal.
	Nets []string
	// Value is the number the group is meant to encode, decoded MSB-first from Nets.
	Value int
	// Bus scopes collision detection: two groups sharing a Bus must not encode the same Value. Empty
	// opts the group out, which suits a mode select that is not an address on any shared bus.
	Bus string
	// Default is the level an UNBIASED pin in this group takes from the part's internal pull, one of
	// "low", "high", or empty for "the netlist cannot tell, so do not guess". See the type doc.
	Default string
}

StrapGroup is several strap nets read together as one binary number, such as a device's address or mode select spread across pins (WS3-120). A per-net declaration cannot say "these three nets are one number", so without it neither the encoded VALUE nor a collision between two devices is expressible.

PARTIAL EVIDENCE is the hard case. A strap pin usually carries an internal pull and the datasheet asks for an external resistor only in the NON-DEFAULT state, so a 3-bit address commonly has resistors on one or two bits. Default supplies the level those pins sit at, which the netlist does not carry. With no Default an unbiased bit makes the value UNDECIDABLE and the group reports inconclusive, because assuming zero fabricates an address, and a fabricated address can fabricate a COLLISION between two parts that are fine.

type Subsystem

type Subsystem struct {
	// Name is the subsystem label (e.g. "main clock", "reset", "power tree"); it slugifies into the
	// rule name (intent/subsystem-<slug>) that a review item binds to, and appears in findings. Names
	// must slugify uniquely within a declaration (Load validates this).
	Name string
	// Source is an optional required component for the subsystem (the clock's crystal, the reset
	// supervisor), matched exactly like a Module (by class or MPN). nil to check nets only.
	Source *Module
	// Nets are net names the subsystem requires; each must exist on the design or the subsystem fails.
	// Empty to check the source only.
	Nets []string
}

Subsystem is one named architectural block the design must instantiate, evidenced by a source component and/or a set of nets that must all exist, such as the clock tree, the reset scheme, or the power tree. At least one of Source/Nets is set (Load validates this).

type VoltageDomain

type VoltageDomain struct {
	// Name is the human label for the domain (e.g. "io_3v3", "core"), shown in findings.
	Name string
	// Nominal is the domain's nominal voltage in volts (e.g. 3.3). A declared rail whose
	// name-derived nominal differs from this is flagged.
	Nominal float64
	// Rails are the net names the design is expected to carry for this domain (e.g. ["3V3",
	// "VDD_IO"]). Each is probed independently: absent -> finding; present but off-nominal -> finding.
	Rails []string
}

VoltageDomain is one declared power domain: a nominal voltage and the rail net names that must sit on it. The check flags a declared rail that is absent or whose name declares a different voltage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL