Skip to content

Commit 8341455

Browse files
committed
Load for chipflow platform keys
1 parent 28f0827 commit 8341455

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

chipflow_lib/platforms/silicon.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from amaranth.back import rtlil
1010
from amaranth.hdl import Fragment
1111
from amaranth.hdl._ir import PortDirection
12+
from dotenv import load_dotenv
1213

1314
from .. import ChipFlowError
1415

@@ -164,6 +165,7 @@ def __init__(self, pads):
164165
self._pads = pads
165166
self._ports = {}
166167
self._files = {}
168+
load_dotenv()
167169

168170
def request(self, name):
169171
if "$" in name:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dependencies = [
3030
"jsonschema>=4.17.3",
3131
"doit>=0.36.0",
3232
"requests>=2.30.0",
33+
"python-dotenv>=1.0.1",
3334
]
3435

3536
[project.scripts]

0 commit comments

Comments
 (0)