diff options
| author | Daniel Maslowski <info@orangecms.org> | 2023-01-08 01:59:55 +0100 |
|---|---|---|
| committer | Catherine <whitequark@whitequark.org> | 2023-01-08 09:16:33 +0000 |
| commit | 8b751e33c12fa12c45447cb57916ac43bd305289 (patch) | |
| tree | 87628b763efaf238fa134f197308909a538b621b | |
| parent | 2d0a23b75ebb769874719297dec65ff07ca9e79f (diff) | |
orangecrab_r0_2: add 85F device variant
Signed-off-by: Daniel Maslowski <info@orangecms.org>
| -rw-r--r-- | amaranth_boards/orangecrab_r0_2.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/amaranth_boards/orangecrab_r0_2.py b/amaranth_boards/orangecrab_r0_2.py index 75bac4a..8e39dd2 100644 --- a/amaranth_boards/orangecrab_r0_2.py +++ b/amaranth_boards/orangecrab_r0_2.py @@ -6,12 +6,12 @@ from amaranth.build import * from amaranth.vendor.lattice_ecp5 import * from .resources import * +# NOTE: Keep OrangeCrabR0_2FPlatform for backwards compatibility +# Originally, there was only OrangeCrabR0_2FPlatform, but the 85F variant +# needs a different device. +__all__ = ["OrangeCrabR0_2FPlatform", "OrangeCrabR0_2_25FPlatform", "OrangeCrabR0_2_85FPlatform"] -__all__ = ["OrangeCrabR0_2Platform"] - - -class OrangeCrabR0_2Platform(LatticeECP5Platform): - device = "LFE5U-25F" +class _OrangeCrabR0_2Platform(LatticeECP5Platform): package = "MG285" speed = "8" default_clk = "clk" @@ -126,6 +126,14 @@ class OrangeCrabR0_2Platform(LatticeECP5Platform): with products.extract("{}.bit".format(name)) as bitstream_filename: subprocess.check_call([dfu_util, "-D", bitstream_filename]) +class OrangeCrabR0_2FPlatform(_OrangeCrabR0_2Platform): + device = "LFE5U-25F" + +class OrangeCrabR0_2_25FPlatform(_OrangeCrabR0_2Platform): + device = "LFE5U-25F" + +class OrangeCrabR0_2_85FPlatform(_OrangeCrabR0_2Platform): + device = "LFE5U-85F" if __name__ == "__main__": from .test.blinky import * |
