Documentation
¶
Index ¶
Constants ¶
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" )
const ( ConfidenceHigh = "HIGH" ConfidenceMedium = "MEDIUM" ConfidenceLow = "LOW" ConfidenceUnknown = "UNKNOWN" )
Variables ¶
This section is empty.
Functions ¶
func IsGroundNetName ¶ added in v0.3.0
Types ¶
type InferredVoltage ¶
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.
type UnknownVoltage ¶
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.