import sys
import unittest
from nmigen_boards.arty_a7 import ArtyA7_100Platform
+# TODO: remove the try..catch guards below when Nexys Video support is
+# merged into nmigen-boards
+try:
+ from nmigen_boards.nexys_video import NexysVideoPlatform
+except ImportError:
+ NexysVideoPlatform = None
from nmigen.hdl.dsl import Elaboratable, Module
from nmigen.hdl.ast import Signal, Array, Const
from nmigen.hdl.mem import Memory
"ArtyA7_100": ArtyA7_100Platform,
# TODO: add more
}
+# TODO: remove the guard below when Nexys Video support is
+# merged into nmigen-boards, and add it to the list above
+if NexysVideoPlatform is not None:
+ PLATFORMS["Nexys_Video"] = NexysVideoPlatform
DEFAULT_PLATFORM = next(iter(PLATFORMS.keys()))
DEFAULT_TOOLCHAIN = "yosys_nextpnr"