Files
Akhil Velagapudi b9d101e129 Fix package resolution in pcb vendor/release (#80)
* Add [packages] to vendor/release test case

Signed-off-by: akhilles <akhilvelagapudi@gmail.com>

* Fix package resolution in pcb vendor/release

The TrackingLoadResolver middleware couldn't properly resolve packages.
To fix, eliminate the middleware entirely and enhance CoreLoadResolver
to handle all the necessary tracking. This is likely to reduce future
bugs as well.

Signed-off-by: akhilles <akhilvelagapudi@gmail.com>

* Use public kicad package

Signed-off-by: akhilles <akhilvelagapudi@gmail.com>

---------

Signed-off-by: akhilles <akhilvelagapudi@gmail.com>
2025-08-18 14:32:31 -07:00

51 lines
1.2 KiB
Plaintext

"""
Test board demonstrating workspace-relative paths (// syntax).
This board uses modules referenced via // paths to test that workspace
root detection works correctly with pcb.toml files.
"""
load("@stdlib:v0.2.2/interfaces.zen", "Ground", "Power", "Spi")
# Use workspace-relative paths for modules - this tests // path resolution
PowerSupplyModule = Module("//modules/PowerSupplyModule.zen")
LedIndicatorModule = Module("//modules/LedIndicatorModule.zen")
Flash = Module("@kicad/Memory_Flash/W25Q128JVE.zen")
add_property("layout_path", "build/WorkspaceTestBoard")
# Power rails
vcc_3v3 = Power("VCC_3V3")
gnd = Ground("GND")
# Internal power domains
filtered_vcc = Power("FILTERED_VCC")
# Power supply with filtering (uses // path)
PowerSupplyModule(
name="PS1",
filter_cap_value="100nF",
pullup_value="10kOhm",
VCC=vcc_3v3,
GND=gnd,
FILTERED_VCC=filtered_vcc.NET,
)
# Status indicator (also uses // path)
LedIndicatorModule(
name="STATUS1",
led_color="green",
current_limit_value="220Ohm",
VCC=filtered_vcc,
GND=gnd,
ENABLE=gnd.NET, # Always on
)
Flash(
name = "FLASH",
VCC = vcc_3v3.NET,
GND = gnd.NET,
HOLD = Net(),
spi = Spi(),
)