mirror of
https://github.com/diodeinc/pcb.git
synced 2026-09-14 20:17:19 +08:00
e852477546
* Initial release * cargo-dist * build and test CI * update ubuntu workflow * fmt * ubuntu: install deps * clippy: 0.1.88 fixes * format * install clippy * Update README.md * Don't run cargo-dist on PRs
24 lines
480 B
Python
24 lines
480 B
Python
# Load our module
|
|
Submodule = Module("Module.star")
|
|
|
|
# Create power net
|
|
power = Net("MAIN_POWER")
|
|
gnd = Net("MAIN_GND")
|
|
|
|
# Instantiate the module multiple times
|
|
# This demonstrates layout reuse - each instance should have the same relative layout
|
|
Submodule(
|
|
name = "MODULE1",
|
|
power = power,
|
|
gnd = gnd,
|
|
)
|
|
|
|
Submodule(
|
|
name = "MODULE2",
|
|
power = power,
|
|
gnd = gnd,
|
|
)
|
|
|
|
# Set the layout path for test expectations
|
|
add_property("layout_path", "build/main_layout")
|