infer

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 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

Index

Constants

View Source
const (
	SourceNetName               = "net_name"
	SourceUserOverride          = "USER_OVERRIDE"
	SourceNetNameExact          = "NET_NAME_EXACT"
	SourceRegulatorOutput       = "REGULATOR_OUTPUT"
	SourceSemanticAlias         = "SEMANTIC_ALIAS"
	SourceWeakSemanticAlias     = "WEAK_SEMANTIC_ALIAS"
	SourceAmbiguousNumericToken = "AMBIGUOUS_NUMERIC_TOKEN"
	SourceUnknown               = "UNKNOWN"
)
View Source
const (
	ConfidenceHigh    = "HIGH"
	ConfidenceMedium  = "MEDIUM"
	ConfidenceLow     = "LOW"
	ConfidenceUnknown = "UNKNOWN"
)

Variables

This section is empty.

Functions

func IsGroundNetName added in v0.3.0

func IsGroundNetName(netName string) bool

Types

type InferredVoltage

type InferredVoltage struct {
	Net        string
	Voltage    float64
	Source     string
	Confidence string
	Reason     string
}

type Result

type Result struct {
	Voltages   map[string]InferredVoltage
	Unknowns   []UnknownVoltage
	Inferences []VoltageInference
}

func InferVoltages added in v0.2.7

func InferVoltages(design *ir.DesignIR, opts VoltageInferenceOptions) Result

InferVoltages produces both the legacy voltage maps used by rules and the richer confidence/provenance records used by reports and --explain-rails.

func InferVoltagesFromNetNames

func InferVoltagesFromNetNames(design *ir.DesignIR) Result

type UnknownVoltage

type UnknownVoltage struct {
	Net    string
	Reason string
}

type VoltageEvidence added in v0.2.7

type VoltageEvidence struct {
	NetName   string
	Voltage   float64
	Source    string
	BaseScore float64
	Evidence  string
}

VoltageEvidence carries non-name evidence into inference, such as explicit metadata overrides or regulator outputs discovered by propagation.

type VoltageInference added in v0.2.7

type VoltageInference struct {
	NetName         string   `json:"net_name"`
	Voltage         *float64 `json:"voltage"`
	Source          string   `json:"source"`
	ConfidenceScore float64  `json:"confidence_score"`
	ConfidenceLevel string   `json:"confidence_level"`
	Reason          string   `json:"reason"`
	Evidence        []string `json:"evidence"`
	Warnings        []string `json:"warnings"`
}

VoltageInference is the stable provenance record for a rail voltage decision. Voltage is nil when Architon found rail-like evidence but could not choose a deterministic single value.

func InferVoltageFromNetName added in v0.2.7

func InferVoltageFromNetName(netName string) VoltageInference

InferVoltageFromNetName is a small test/helper entry point for scoring a single net name without building a DesignIR.

type VoltageInferenceOptions added in v0.2.7

type VoltageInferenceOptions struct {
	Evidence  []VoltageEvidence
	Conflicts []string
}

VoltageInferenceOptions keeps name parsing deterministic while allowing scan to enrich the result with metadata/regulator evidence and propagation conflicts.

Jump to

Keyboard shortcuts

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