Skip to content

Conversation

akhilles
Copy link
Contributor

@akhilles akhilles commented Oct 2, 2025

usage:

# child module
load("@stdlib/checks.zen", "voltage_within")
vbat = io("VBAT", Power, voltage_within("3.3–4.2V"))
# parent module
Child = Module("./child.zen")

VBAT = Power("VBAT", voltage="3.3–5V")
Child(name = "child", VBAT = VBAT)

^ example of what would cause an ERC check failure

Signed-off-by: akhilles <akhilvelagapudi@gmail.com>
Signed-off-by: akhilles <akhilvelagapudi@gmail.com>
Signed-off-by: akhilles <akhilvelagapudi@gmail.com>
@akhilles akhilles requested review from LK and hexdae October 2, 2025 21:14
@hexdae
Copy link
Contributor

hexdae commented Oct 5, 2025

This is going to be awesome to add to the modules

@akhilles akhilles merged commit ee591db into main Oct 5, 2025
5 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants