aboutsummaryrefslogtreecommitdiff
path: root/amaranth_boards/ice40_hx8k_b_evn.py
diff options
context:
space:
mode:
authorCatherine <whitequark@whitequark.org>2024-02-28 13:03:05 +0000
committerCatherine <whitequark@whitequark.org>2024-02-28 14:59:20 +0000
commitb67996c48f1bc91412605acd7012f242514d3927 (patch)
tree849868278ce43c5f26ba370c685c40b2d2e8ff96 /amaranth_boards/ice40_hx8k_b_evn.py
parent5b2cb8e38ebc57b322a56e802df04d0c14a4e083 (diff)
Add smoke tests for a selection of iCE40, ECP5, Xilinx, Intel boards.
The purpose of these tests is just to ensure that Amaranth changes do not blatantly break the boards repository. They are not intended to exhaustively test even a single board. Everything Gowin-related is removed due to Apicula's problematic use of numpy.
Diffstat (limited to 'amaranth_boards/ice40_hx8k_b_evn.py')
-rw-r--r--amaranth_boards/ice40_hx8k_b_evn.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/amaranth_boards/ice40_hx8k_b_evn.py b/amaranth_boards/ice40_hx8k_b_evn.py
index fa40c31..fae3e7c 100644
--- a/amaranth_boards/ice40_hx8k_b_evn.py
+++ b/amaranth_boards/ice40_hx8k_b_evn.py
@@ -1,5 +1,6 @@
import os
import subprocess
+import unittest
from amaranth.build import *
from amaranth.vendor import LatticeICE40Platform
@@ -63,6 +64,12 @@ class ICE40HX8KBEVNPlatform(LatticeICE40Platform):
subprocess.check_call([iceprog, "-S", bitstream_filename])
+class TestCase(unittest.TestCase):
+ def test_smoke(self):
+ from .test.blinky import Blinky
+ ICE40HX8KBEVNPlatform().build(Blinky(), do_build=False)
+
+
if __name__ == "__main__":
- from .test.blinky import *
+ from .test.blinky import Blinky
ICE40HX8KBEVNPlatform().build(Blinky(), do_program=True)