Skip to content

findGroundedClockSupplies

findGroundedClockSupplies(program): readonly CompileWarning[]

Defined in: packages/compiler/src/grounded-clock-supply.ts:13

Clock drivers whose vdd row is the ground row, and therefore render no clock at all.

Why this is a program-level check and not a netlist one. vdd is a row index into the block’s solution, not a source node id, so whether it is ground is only knowable after link has assigned rows and nodeIds maps them back. Reading stamp.vdd === 0 directly would happen to work while row 0 is conventionally ground and would break silently the day it is not.

See ClockDriverSupplyAtGroundWarning for why a correct transcription lands here.

Program

readonly CompileWarning[]