Skip to content

Commit b9cda5e

Browse files
authored
Merge branch 'main' into cmod_a7_board
2 parents 7c3fd68 + e4fd613 commit b9cda5e

Some content is hidden

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

92 files changed

+119
-544
lines changed

.git_archival.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4+
ref-names: $Format:%D$

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

.github/workflows/main.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,34 @@ name: CI
33
jobs:
44
test:
55
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python-version:
9+
- '3.7'
10+
# this version range needs to be synchronized with the one in pyproject.toml
11+
amaranth-version:
12+
- '0.3'
13+
- 'git'
14+
fail-fast: false
615
steps:
716
- name: Check out source code
8-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
918
- name: Set up Python
10-
uses: actions/setup-python@v2
11-
- name: Install dependencies
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install Amaranth release
23+
if: ${{ matrix.amaranth-version != 'git' }}
1224
run: |
13-
pip install wheel
25+
pip install 'amaranth==${{ matrix.amaranth-version }}'
26+
- name: Downgrade MarkupSafe
27+
if: ${{ matrix.amaranth-version == '0.3' }}
28+
run: |
29+
pip install 'MarkupSafe==2.0.1'
30+
- name: Install Amaranth from git
31+
if: ${{ matrix.amaranth-version == 'git' }}
32+
run: |
33+
pip install git+https://github.com/amaranth-lang/amaranth.git
1434
- name: Test
1535
run: |
16-
python setup.py test
36+
python -m unittest discover -t . -s amaranth_boards -p '*.py'

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2019-2021 Amaranth HDL contributors
1+
Copyright (C) 2019-2023 Amaranth HDL contributors
22

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

amaranth_boards/alchitry_au.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import shutil
44

55
from amaranth.build import *
6-
from amaranth.vendor.xilinx_7series import *
6+
from amaranth.vendor.xilinx import *
77
from .resources import *
88

99

@@ -20,7 +20,7 @@ def find_loader():
2020
return (loader_prgm, bridge_bin)
2121

2222

23-
class AlchitryAuPlatform(Xilinx7SeriesPlatform):
23+
class AlchitryAuPlatform(XilinxPlatform):
2424
device = "XC7A35T" # Artix 7 33K LEs
2525
package = "FTG256"
2626
speed = "1"

amaranth_boards/arty_a7.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
import subprocess
33

44
from amaranth.build import *
5-
from amaranth.vendor.xilinx_7series import *
5+
from amaranth.vendor.xilinx import *
66
from .resources import *
77

88

99
__all__ = ["ArtyA7_35Platform", "ArtyA7_100Platform"]
1010

1111

12-
class _ArtyA7Platform(Xilinx7SeriesPlatform):
12+
class _ArtyA7Platform(XilinxPlatform):
1313
package = "csg324"
1414
speed = "1L"
1515
default_clk = "clk100"

amaranth_boards/arty_s7.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
import subprocess
44

55
from amaranth.build import *
6-
from amaranth.vendor.xilinx_7series import *
6+
from amaranth.vendor.xilinx import *
77
from .resources import *
88

99

1010
__all__ = ["ArtyS7_25Platform", "ArtyS7_50Platform"]
1111

1212

13-
class _ArtyS7Platform(Xilinx7SeriesPlatform):
13+
class _ArtyS7Platform(XilinxPlatform):
1414
package = "csga324"
1515
speed = "1"
1616
default_clk = "clk100"

amaranth_boards/arty_z7.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
import subprocess
33

44
from amaranth.build import *
5-
from amaranth.vendor.xilinx_7series import *
5+
from amaranth.vendor.xilinx import *
66
from .resources import *
77

88

99
__all__ = ["ArtyZ720Platform"]
1010

1111

12-
class ArtyZ720Platform(Xilinx7SeriesPlatform):
12+
class ArtyZ720Platform(XilinxPlatform):
1313
device = "xc7z020"
1414
package = "clg400"
1515
speed = "1"

amaranth_boards/atlys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
import textwrap
33

44
from amaranth.build import *
5-
from amaranth.vendor.xilinx_spartan_3_6 import *
5+
from amaranth.vendor.xilinx import *
66
from .resources import *
77

88

99
__all__ = ["AtlysPlatform"]
1010

1111

12-
class AtlysPlatform(XilinxSpartan6Platform):
12+
class AtlysPlatform(XilinxPlatform):
1313
"""Platform file for Digilent Atlys Spartan 6 board.
1414
https://reference.digilentinc.com/reference/programmable-logic/atlys/start"""
1515

amaranth_boards/ebaz4205.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
import subprocess
33

44
from amaranth.build import *
5-
from amaranth.vendor.xilinx_7series import *
5+
from amaranth.vendor.xilinx import *
66
from .resources import *
77

88

99
__all__ = ["EBAZ4205Platform"]
1010

1111

12-
class EBAZ4205Platform(Xilinx7SeriesPlatform):
12+
class EBAZ4205Platform(XilinxPlatform):
1313
device = "xc7z010"
1414
package = "clg400"
1515
speed = "1"

0 commit comments

Comments
 (0)