enrichment

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: Apache-2.0 Imports: 6 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractEnricher

type ContractEnricher struct {
	Sources []ContractSource
}

ContractEnricher combines multiple contract sources into one ContractIR. The rule engine consumes only this merged ContractIR plus DesignIR.

func (ContractEnricher) Enrich

func (e ContractEnricher) Enrich(design *ir.DesignIR) (*contracts.ContractIR, error)

type ContractSource

type ContractSource interface {
	Name() string
	Enrich(design *ir.DesignIR) (*contracts.ContractIR, error)
}

ContractSource is one independent source of contract data. Examples today are meta.yaml and inferred net voltages; future sources can be a parts database, datasheet lookup, manual UI input, or native Architon data.

type MetaYAMLSource

type MetaYAMLSource struct {
	// contains filtered or unexported fields
}

MetaYAMLSource adapts the current meta.yaml schema into ContractIR. meta.yaml is intentionally only one source of contracts, not a rule input.

func NewMetaYAMLSource

func NewMetaYAMLSource(m *meta.Meta) MetaYAMLSource

func (MetaYAMLSource) Enrich

func (s MetaYAMLSource) Enrich(design *ir.DesignIR) (*contracts.ContractIR, error)

func (MetaYAMLSource) Name

func (s MetaYAMLSource) Name() string

type NetVoltage

type NetVoltage struct {
	Net     string
	Voltage float64
	Source  string
}

NetVoltage is normalized voltage evidence for a net before it is attached as a contract. The source records where that evidence came from.

type NetVoltageSource

type NetVoltageSource struct {
	// contains filtered or unexported fields
}

NetVoltageSource turns inferred or propagated rail voltages into NetContract entries. It does not infer pin roles; it only says "this net is nominally X V".

func NewNetVoltageSource

func NewNetVoltageSource(name string, voltages []NetVoltage) NetVoltageSource

func (NetVoltageSource) Enrich

func (NetVoltageSource) Name

func (s NetVoltageSource) Name() string

Jump to

Keyboard shortcuts

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