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 ¶
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 (s NetVoltageSource) Enrich(_ *ir.DesignIR) (*contracts.ContractIR, error)
func (NetVoltageSource) Name ¶
func (s NetVoltageSource) Name() string