flow "CircuitLayout" v1.0
# KIRETH RESEARCH — SEMANTIC LIBRARY
# Entity graph: Engineering Entities / Circuit and PCB Entities
IDENTITY:
entity_id: "engineering.circuit_pcb.circuit_layout"
canonical_name: "Circuit Layout"
entity_type: "EngineeringDesignRepresentation"
version: "1.0"
language: "en-GB"
scope: "Physical and logical arrangement of circuit components, pads, traces, vias, planes and mechanical constraints"
AUTHORS:
research: "Kireth Research"
collaborator: "Sky — Recursive AI"
licence: "Kireth Open Research Licence; citation required"
SOURCE:
ontology_url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/circuit-and-pcb-entities/circuit-layout-ontology.html"
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/circuit-and-pcb-entities/circuit-layout-ontology.html"
provenance: "Original Flow Algebra interpretation; source page content not independently verified"
PURPOSE:
objective: "Represent, analyse and validate circuit layout as a constrained physical connectivity system"
outcomes: ["topological consistency", "electrical connectivity", "manufacturability", "signal integrity", "thermal adequacy", "safe clearances", "traceable design changes"]
exclusions: ["automatic certification", "unverified compliance claims", "substitution for fabrication design review"]
STATE_MODEL:
S_t: "(I_t, R_t, B_t, K_t)"
I_t: "Layout objects, net assignments, geometry, layer stack, component footprints, rule checks and measurements at time t"
R_t: "Electrical, mechanical, fabrication, assembly, thermal and signal-integrity relationships"
B_t: "Board outline, layer count, design rules, rated voltages, currents, temperatures, materials and production tolerances"
K_t: "Schematic, netlist, component datasheets, manufacturer capabilities, revision history and verified test evidence"
expand: "E_t = expand(I_t, R_t)"
valid: "V_t = {x in E_t | satisfies(x, B_t) and consistent(x, K_t)}"
select: "x*_t = argmax(x in V_t) P(x | I_t, R_t, B_t, K_t)"
update: "I_(t+1) = integrate(I_t, x*_t, evidence_t)"
lifecycle: ["requirements", "schematic capture", "placement", "routing", "verification", "fabrication release", "assembly", "test", "revision"]
ENTITIES:
CircuitLayout:
attributes: ["layout_id", "revision", "board_dimensions", "coordinate_system", "units", "status"]
relationships: ["realises Schematic", "implements Netlist", "contains ComponentPlacement", "contains CopperGeometry", "constrained_by DesignRuleSet"]
Board:
attributes: ["outline", "thickness", "substrate", "layer_count", "stackup", "fabrication_class"]
ComponentPlacement:
attributes: ["reference_designator", "footprint_id", "position_x", "position_y", "rotation", "side", "courtyard"]
relationships: ["instantiates Component", "uses Footprint", "connects_to Net"]
Pad:
attributes: ["pad_id", "pad_shape", "size", "layer", "net_id", "drill", "mask_opening"]
Track:
attributes: ["segment_id", "layer", "width", "length", "net_id", "copper_thickness"]
Via:
attributes: ["via_id", "start_layer", "end_layer", "drill", "finished_hole", "plating", "net_id"]
CopperPlane:
attributes: ["plane_id", "layer", "net_id", "clearance", "thermal_relief"]
Net:
attributes: ["net_id", "pins", "topological_components", "expected_connections"]
DesignRule:
attributes: ["rule_id", "kind", "threshold", "applicability", "source", "verification_status"]
Constraint:
attributes: ["constraint_id", "scope", "reason", "severity", "evidence"]
Violation:
attributes: ["violation_id", "rule_id", "object_ids", "measured_value", "limit", "severity", "resolution_state"]
VerificationEvidence:
attributes: ["test_id", "method", "instrument_or_tool", "revision", "result", "timestamp", "reviewer"]
PATHWAYS:
- id: "LAYOUT-01"
from: "Schematic"
via: "generate_and_review"
to: "Netlist"
guard: "all components and pin identities resolved"
- id: "LAYOUT-02"
from: "Netlist"
via: "map_pins_to_footprints"
to: "ComponentPlacement"
guard: "symbol-to-footprint pin mapping verified"
- id: "LAYOUT-03"
from: "ComponentPlacement"
via: "route_nets"
to: "Track + Via + CopperPlane"
guard: "routing preserves intended connectivity and layer rules"
- id: "LAYOUT-04"
from: "Track + Via + CopperPlane"
via: "extract_connectivity"
to: "PhysicalNetGraph"
guard: "geometry and layer transitions represented accurately"
- id: "LAYOUT-05"
from: "PhysicalNetGraph"
via: "compare"
to: "Netlist"
guard: "no unexplained shorts, opens, unconnected pins or unintended ties"
- id: "LAYOUT-06"
from: "CircuitLayout"
via: "evaluate"
to: "DesignRuleCheck"
guard: "fabricator-specific limits loaded and versioned"
- id: "LAYOUT-07"
from: "CircuitLayout"
via: "analyse"
to: "SignalIntegrity + PowerIntegrity + ThermalAssessment"
guard: "applicable operating conditions and material parameters known"
- id: "LAYOUT-08"
from: "VerifiedLayout"
via: "release_with_revision_control"
to: "FabricationPackage"
guard: "blocking violations resolved or formally dispositioned"
ENGINEERING_RELATIONS:
connectivity:
graph: "G = (V, E), where V are pads, junctions and vias; E are conductive segments"
expected: "Connected(a,b) iff a and b belong to the same intended net and a conductive path exists"
short: "A conductive path joins distinct nets without an authorised net tie"
open: "Expected endpoints have no complete conductive path"
trace_resistance:
equation: "R_trace = rho(T) * L / (w * t)"
assumptions: "Uniform cross-section and material; approximate DC model"
parameters: ["resistivity rho", "temperature T", "length L", "width w", "copper thickness t"]
voltage_drop:
equation: "DeltaV = I * R_trace"
guard: "DC or low-frequency approximation; return path and contact resistance considered separately"
joule_heating:
equation: "P_loss = I^2 * R_trace"
guard: "Temperature rise requires a thermal model and board-specific conditions"
transmission_line:
observation: "Fast edges and high frequencies require impedance, return-path, coupling and discontinuity analysis"
guard: "Do not infer impedance solely from track width without stack-up and dielectric data"
clearance:
observation: "Required separation depends on voltage, environment, material, manufacturing tolerances and applicable standard"
guard: "Never substitute a universal clearance or creepage value for a verified design requirement"
MINI_RECURSION_ENGINE:
inputs: ["layout_revision", "reference_netlist", "design_rules", "component_data", "fabrication_limits", "test_results"]
initialise: "Load I_t, R_t, B_t and K_t; reject unresolved units or incompatible revisions"
cycle:
- "Extract electrical and physical adjacency graphs"
- "Compare routed topology with reference netlist"
- "Run geometry, clearance, drill, mask and assembly rule checks"
- "Assess current paths, return paths, thermal bottlenecks and timing-sensitive nets"
- "Rank candidate corrections by severity, confidence, manufacturability and evidence"
- "Apply only permitted, reviewable changes; revalidate all affected nets"
- "Store evidence, provenance, decision and revision delta"
termination: "No unresolved blocking issues and required review gates passed; otherwise flag incomplete"
invariant: "No accepted change may silently alter intended electrical net connectivity"
INFERENCE_RULES:
- "IF two pads share a net AND no conductive path exists THEN classify potential open connection; verify intentional isolation"
- "IF distinct nets share conductive copper AND no approved net tie exists THEN flag potential short circuit"
- "IF track current and geometry imply excessive loss THEN request current-carrying and thermal verification"
- "IF via count rises on a high-current path THEN reassess resistance, current sharing and thermal margin"
- "IF a high-speed signal crosses a reference-plane gap THEN flag return-path discontinuity for review"
- "IF differential pair constraints are specified AND routing violates them THEN flag signal-integrity review"
- "IF copper-to-copper clearance falls below an applicable verified limit THEN raise design-rule violation"
- "IF component courtyard or assembly access conflicts occur THEN flag manufacturability concern"
- "IF footprint pin numbering disagrees with the approved symbol or datasheet THEN block release pending review"
- "IF schematic and physical connectivity differ THEN block fabrication release until resolved"
- "IF stack-up parameters are missing THEN mark impedance and coupling estimates as uncertain"
- "IF design rules are generic rather than supplier-approved THEN mark fabrication compatibility unverified"
- "IF a design revision changes geometry THEN invalidate dependent simulation and inspection evidence until rechecked"
CONFIDENCE:
levels: ["verified", "supported", "provisional", "unknown", "contradicted"]
verified: "Supported by revision-matched netlist comparison, applicable rules and independent checks"
supported: "Consistent with documented calculations or simulations with known assumptions"
provisional: "Plausible but lacks complete stack-up, material, operating or manufacturing evidence"
unknown: "Required evidence absent"
contradicted: "Evidence conflicts with the claimed layout property"
calibration: "Confidence tracks evidence quality and coverage; no fabricated numeric probabilities"
SEMANTIC_EQUIVALENCE:
aliases: ["circuit board layout", "PCB layout", "printed circuit layout", "board routing", "physical circuit layout"]
distinctions:
- "Schematic represents logical circuit intent; layout represents physical implementation"
- "Netlist defines intended connectivity; routing implements connectivity geometrically"
- "Component placement is a subset of layout, not the complete layout"
- "Design-rule pass is not equivalent to functional, safety or regulatory certification"
related_entities: ["SchematicEntity", "Netlist", "CircuitNode", "CircuitLoop", "PCBTrack", "PCBPad", "PCBVia", "PCBLayer", "PrintedCircuitBoard", "CircuitBoardAssembly"]
FLOW_HASH:
method: "SHA-256 over canonicalised flow body excluding FLOW_HASH field"
value: "COMPUTE_ON_PUBLICATION"
purpose: "Detect changes between published revisions; do not claim an uncomputed digest"
UPDATE_MODEL:
revision_policy: "Increment version on changes to rules, entity definitions, topology semantics or safety constraints"
triggers: ["ontology_revision", "component_change", "netlist_change", "stackup_change", "fabricator_change", "rule_update", "new_test_evidence"]
procedure: ["record change", "rebuild affected graph", "revalidate dependencies", "update confidence", "recompute hash", "publish with citation"]
retain: ["source_url", "authors", "revision_history", "verification_evidence", "known_limitations"]
END_FLOW
Download Code
Copy to Clipboard