Skip to content

Commit 91b05de

Browse files
committed
wip
1 parent fea6266 commit 91b05de

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

amaranth_orchard/base/gpio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from amaranth import *
1+
from amaranth import Module, unsigned
22
from amaranth.lib import wiring
33
from amaranth.lib.wiring import In, Out, flipped, connect
44

amaranth_orchard/io/uart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from amaranth import *
1+
from amaranth import Module, Signal, unsigned
22
from amaranth.lib import wiring
33
from amaranth.lib.wiring import In, Out, flipped, connect
44

55
from amaranth_soc import csr
66
from amaranth_stdio.serial import AsyncSerialRX, AsyncSerialTX
77

8-
from chipflow_lib.platforms import BidirPinSignature, OutputPinSignature, InputPinSignature
8+
from chipflow_lib.platforms import OutputPinSignature, InputPinSignature
99

1010

1111
__all__ = ["UARTPins", "UARTPeripheral"]

amaranth_orchard/memory/hyperram.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
from amaranth import *
99
from amaranth.lib import wiring
10-
from amaranth.lib.wiring import In, Out, connect, flipped
10+
from amaranth.lib.wiring import Out, connect, flipped
1111
from amaranth.utils import ceil_log2
1212

13-
from amaranth.sim import *
13+
from amaranth.sim import Simulator
1414

1515
from amaranth_soc import csr, wishbone
1616
from amaranth_soc.memory import MemoryMap
@@ -101,7 +101,6 @@ def elaborate(self, platform):
101101

102102
# Data shift register
103103
sr = Signal(48)
104-
sr_shift = Signal()
105104

106105
# Whether or not we need to apply x2 latency
107106
x2_lat = Signal()

amaranth_orchard/memory/spimemio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def elaborate(self, platform):
121121
m.d.sync += self.data_bus.ack.eq(0)
122122

123123
if platform is not None:
124-
path = Path(__file__).parent / f"verilog/spimemio.v"
124+
path = Path(__file__).parent / "verilog/spimemio.v"
125125
with open(path, 'r') as f:
126126
platform.add_file(path.name, f)
127127

pyproject.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors = [
1313
readme = {file = "README.md", content-type = "text/markdown"}
1414
license = {file = "LICENSE.txt"}
1515

16-
requires-python = "~=3.8"
16+
requires-python = ">=3.10"
1717
dependencies = [
1818
"amaranth>=0.5,<0.6",
1919
"chipflow-lib @ git+https://github.com/ChipFlow/chipflow-lib.git@replace-providers",
@@ -27,3 +27,13 @@ requires = ["pdm-backend"]
2727
build-backend = "pdm.backend"
2828

2929
# Development workflow configuration
30+
31+
[tool.pyright]
32+
diagnosticMode=false
33+
typeCheckingMode = "off"
34+
reportInvalidTypeForm = false
35+
reportMissingImports = false
36+
reportUnboundVariable = false
37+
38+
[tool.ruff.lint]
39+
ignore = ['F403', 'F405']

0 commit comments

Comments
 (0)