MyGit

v0.2.60

atopile/atopile

版本发布时间: 2024-07-23 09:03:28

atopile/atopile最新发布版本:v0.2.64(2024-09-11 04:35:53)

I think you can see where this is going:

interface Power:
    voltage: voltage
    current_budget: current
    assert current_budget >= 0mA


module SomeDevice:
    power_in = new Power
    power_in.voltage &= 3.3V +/- 15%
    power_in.current_budget -= 10uA to 100mA


module SomeSupply:
    power_out = new Power
    power_out.voltage |= 3V to 20V
    power_out.current_budget += 1A


module SomeModule:
    supply = new SomeSupply

    device_a = new SomeDevice
    supply.power_out ~ device_a.power_in

    device_b = new SomeDevice
    supply.power_out ~ device_b.power_in

What's Changed

Full Changelog: https://github.com/atopile/atopile/compare/v0.2.59...v0.2.60

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-07-23发行的版本