Skip to content

Commit 92fdf9b

Browse files
authored
Merge branch 'amaranth-lang:main' into main
2 parents 46c076e + 5dd1223 commit 92fdf9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+4867
-3555
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- name: Set up PDM
7171
uses: pdm-project/setup-pdm@v3
7272
with:
73-
python-version: '3.11'
73+
python-version: '3.12'
7474
- name: Install dependencies
7575
run: |
7676
pdm install --dev

LICENSE.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Copyright (C) 2019-2023 Amaranth HDL contributors
2-
Copyright (C) 2011-2019 M-Labs Limited
32

43
Redistribution and use in source and binary forms, with or without modification,
54
are permitted provided that the following conditions are met:

amaranth/_unused.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __del__(self):
3434
if get_linter_option(self._MustUse__context["filename"],
3535
self._MustUse__warning.__name__, bool, True):
3636
warnings.warn_explicit(
37-
"{!r} created but never used".format(self), self._MustUse__warning,
37+
f"{self!r} created but never used", self._MustUse__warning,
3838
**self._MustUse__context)
3939

4040

amaranth/_utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
from collections import OrderedDict
77
from collections.abc import Iterable
88

9-
from .utils import *
109

11-
12-
__all__ = ["flatten", "union" , "log2_int", "bits_for", "memoize", "final", "deprecated",
13-
"get_linter_options", "get_linter_option"]
10+
__all__ = ["flatten", "union", "memoize", "final", "deprecated", "get_linter_options",
11+
"get_linter_option"]
1412

1513

1614
def flatten(i):

amaranth/asserts.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
from .hdl.ast import AnyConst, AnySeq, Assert, Assume, Cover
2-
from .hdl.ast import Past, Stable, Rose, Fell, Initial
1+
from .hdl._ast import AnyConst, AnySeq, Initial, Assert, Assume, Cover
2+
3+
4+
__all__ = ["AnyConst", "AnySeq", "Initial", "Assert", "Assume", "Cover"]

amaranth/back/cxxrtl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def _convert_rtlil_text(rtlil_text, black_boxes, *, src_loc_at=0):
2323
script = []
2424
if black_boxes is not None:
2525
for box_name, box_source in black_boxes.items():
26-
script.append("read_ilang <<rtlil\n{}\nrtlil".format(box_source))
27-
script.append("read_ilang <<rtlil\n{}\nrtlil".format(rtlil_text))
26+
script.append(f"read_ilang <<rtlil\n{box_source}\nrtlil")
27+
script.append(f"read_ilang <<rtlil\n{rtlil_text}\nrtlil")
2828
script.append("write_cxxrtl")
2929

3030
return yosys.run(["-q", "-"], "\n".join(script), src_loc_at=1 + src_loc_at)

0 commit comments

Comments
 (0)