Skip to content

Commit c2001fe

Browse files
wanda-phiwhitequark
authored andcommitted
vendor: Rename IntelPlatform to AlteraPlatform.
Fixes #1179.
1 parent 127fe1f commit c2001fe

File tree

7 files changed

+18
-16
lines changed

7 files changed

+18
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Amaranth can be used to target any FPGA or ASIC process that accepts behavioral
4242
* AMD Spartan 6 (toolchains: ISE);
4343
* AMD 7-series (toolchains: Vivado, ISE);
4444
* AMD UltraScale, UltraScale+ (toolchains: Vivado);
45-
* Intel (toolchains: Quartus);
45+
* Altera (toolchains: Quartus);
4646
* Quicklogic EOS S3 (toolchains: **Yosys+VPR**).
4747

4848
FOSS toolchains are listed in **bold**.

amaranth/vendor/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
# Keep this list sorted alphabetically.
66
__all__ = [
7+
"AlteraPlatform",
78
"GowinPlatform",
89
"IntelPlatform",
910
"LatticeECP5Platform",
@@ -20,12 +21,12 @@ def __dir__():
2021

2122

2223
def __getattr__(name):
24+
if name in ("AlteraPlatform", "IntelPlatform"):
25+
from ._altera import AlteraPlatform
26+
return AlteraPlatform
2327
if name == "GowinPlatform":
2428
from ._gowin import GowinPlatform
2529
return GowinPlatform
26-
if name == "IntelPlatform":
27-
from ._intel import IntelPlatform
28-
return IntelPlatform
2930
if name == "LatticeECP5Platform":
3031
from ._lattice_ecp5 import LatticeECP5Platform
3132
return LatticeECP5Platform

amaranth/vendor/_intel.py renamed to amaranth/vendor/_altera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from ..build import *
55

66

7-
class IntelPlatform(TemplatedPlatform):
7+
class AlteraPlatform(TemplatedPlatform):
88
"""
99
.. rubric:: Quartus toolchain
1010

docs/changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ Platform integration changes
102102
* Added: :meth:`BuildPlan.execute_local_docker`.
103103
* Added: :meth:`BuildPlan.extract`.
104104
* Added: ``build.sh`` begins with ``#!/bin/sh``.
105+
* Changed: ``IntelPlatform`` renamed to ``AlteraPlatform``.
105106
* Deprecated: argument ``run_script=`` in :meth:`BuildPlan.execute_local`.
106107
* Removed: (deprecated in 0.4) :mod:`vendor.intel`, :mod:`vendor.lattice_ecp5`, :mod:`vendor.lattice_ice40`, :mod:`vendor.lattice_machxo2_3l`, :mod:`vendor.quicklogic`, :mod:`vendor.xilinx`. (`RFC 18`_)
107108

docs/platform.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Platform integration
1010
.. toctree::
1111
:maxdepth: 2
1212

13+
platform/altera
1314
platform/gowin
14-
platform/intel
1515
platform/lattice-ecp5
1616
platform/lattice-ice40
1717
platform/lattice-machxo-2-3l

docs/platform/altera.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Altera
2+
######
3+
4+
.. currentmodule:: amaranth.vendor
5+
6+
The :class:`AlteraPlatform` class provides a base platform to support Altera toolchains.
7+
8+
The Quartus and Mistral toolchains are supported.
9+
10+
.. autoclass:: AlteraPlatform

docs/platform/intel.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)