Skip to content

Commit cc5e3f4

Browse files
committed
Fix lint issues from lint config changes
1 parent 5c67c72 commit cc5e3f4

File tree

10 files changed

+8
-20
lines changed

10 files changed

+8
-20
lines changed

mcu_soc/design/design.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from amaranth import Module
55
from amaranth.lib import wiring
6-
from amaranth.lib.wiring import In, Out, flipped, connect
6+
from amaranth.lib.wiring import Out, flipped, connect
77

88
from amaranth_soc import csr, wishbone
99
from amaranth_soc.csr.wishbone import WishboneCSRBridge

mcu_soc/design/ips/pdm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from amaranth import *
2-
from amaranth import Elaboratable, Module
3-
from amaranth.build import Platform
2+
from amaranth import Module
43

54
from amaranth.lib import wiring
65
from amaranth.lib.wiring import In, Out, flipped, connect

mcu_soc/design/ips/pwm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from amaranth import *
2-
from amaranth import Elaboratable, Module
3-
from amaranth.build import Platform
2+
from amaranth import Module
43

54
from amaranth.lib import wiring
65
from amaranth.lib.wiring import In, Out, flipped, connect

mcu_soc/design/sim/doit_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
RUNTIME_DIR = importlib.resources.files("yowasp_yosys") / "share/include/backends/cxxrtl/runtime"
1010

1111
ZIG_CXX = f"{sys.executable} -m ziglang c++"
12-
CXXFLAGS = f"-O3 -g -std=c++17 -Wno-array-bounds -Wno-shift-count-overflow -fbracket-depth=1024"
12+
CXXFLAGS = "-O3 -g -std=c++17 -Wno-array-bounds -Wno-shift-count-overflow -fbracket-depth=1024"
1313
INCLUDES = f"-I {OUTPUT_DIR} -I {COMMON_DIR} -I {COMMON_DIR}/vendor -I {RUNTIME_DIR}"
1414

1515

mcu_soc/design/software/doit_build.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import shutil
55

66
from doit import create_after
7-
from doit.action import CmdAction
87
import chipflow_lib.config
98

109

@@ -15,7 +14,7 @@
1514
CINCLUDES = f"-I. -I{BUILD_DIR} -I{DESIGN_DIR}/software"
1615
LINKER_SCR = f"{BUILD_DIR}/generated/sections.lds"
1716
SOFTWARE_START = f"{BUILD_DIR}/generated/start.S"
18-
CFLAGS = f"-g -mcpu=baseline_rv32-a-c-d -mabi=ilp32 -Wl,-Bstatic,-T,"
17+
CFLAGS = "-g -mcpu=baseline_rv32-a-c-d -mabi=ilp32 -Wl,-Bstatic,-T,"
1918
CFLAGS += f"{LINKER_SCR},--strip-debug -static -ffreestanding -nostdlib {CINCLUDES}"
2019

2120

mcu_soc/design/steps/sim.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from chipflow_lib.steps.sim import SimStep
22

33
from amaranth import *
4-
from amaranth.lib import wiring
5-
from amaranth.lib.wiring import connect, flipped
64
from amaranth.back import rtlil
75

86
from ..design import MySoC

minimal/design/design.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from chipflow_lib.platforms.sim import SimPlatform
21
from chipflow_lib.software.soft_gen import SoftwareGenerator
32

43
from amaranth import Module
54
from amaranth.lib import wiring
6-
from amaranth.lib.wiring import In, Out, flipped, connect
5+
from amaranth.lib.wiring import Out, flipped, connect
76

87
from amaranth_soc import csr, wishbone
98
from amaranth_soc.csr.wishbone import WishboneCSRBridge
@@ -13,12 +12,9 @@
1312
from amaranth_soc.wishbone.sram import WishboneSRAM
1413
from amaranth_orchard.io import GPIOPeripheral
1514
from amaranth_orchard.io import UARTPeripheral
16-
from amaranth_orchard.io import SPISignature, SPIPeripheral
17-
from amaranth_orchard.io import I2CSignature, I2CPeripheral
1815

1916
from minerva.core import Minerva
2017

21-
from chipflow_lib.platforms import InputPinSignature, OutputPinSignature
2218
# from .ips.pdm import PDMPeripheral
2319

2420
__all__ = ["MySoC"]

minimal/design/sim/doit_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
RUNTIME_DIR = importlib.resources.files("yowasp_yosys") / "share/include/backends/cxxrtl/runtime"
1010

1111
ZIG_CXX = f"{sys.executable} -m ziglang c++"
12-
CXXFLAGS = f"-O3 -g -std=c++17 -Wno-array-bounds -Wno-shift-count-overflow -fbracket-depth=1024"
12+
CXXFLAGS = "-O3 -g -std=c++17 -Wno-array-bounds -Wno-shift-count-overflow -fbracket-depth=1024"
1313
INCLUDES = f"-I {OUTPUT_DIR} -I {COMMON_DIR} -I {COMMON_DIR}/vendor -I {RUNTIME_DIR}"
1414

1515

minimal/design/software/doit_build.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import shutil
55

66
from doit import create_after
7-
from doit.action import CmdAction
87
import chipflow_lib.config
98

109

@@ -15,7 +14,7 @@
1514
CINCLUDES = f"-I. -I{BUILD_DIR} -I{DESIGN_DIR}/software"
1615
LINKER_SCR = f"{BUILD_DIR}/generated/sections.lds"
1716
SOFTWARE_START = f"{BUILD_DIR}/generated/start.S"
18-
CFLAGS = f"-g -mcpu=baseline_rv32-a-c-d -mabi=ilp32 -Wl,-Bstatic,-T,"
17+
CFLAGS = "-g -mcpu=baseline_rv32-a-c-d -mabi=ilp32 -Wl,-Bstatic,-T,"
1918
CFLAGS += f"{LINKER_SCR},--strip-debug -static -ffreestanding -nostdlib {CINCLUDES}"
2019

2120

minimal/design/steps/sim.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from chipflow_lib.steps.sim import SimStep
22

33
from amaranth import *
4-
from amaranth.lib import wiring
5-
from amaranth.lib.wiring import connect, flipped
64
from amaranth.back import rtlil
75

86
from ..design import MySoC

0 commit comments

Comments
 (0)