test: update.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 2 Jun 2020 11:51:44 +0000 (13:51 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 2 Jun 2020 11:51:48 +0000 (13:51 +0200)
litex/boards/targets/arty.py
test/test_targets.py

index 1116fa2f4ee2713a0053f2a294c019e7fe6c64c3..62e2ad775a731691317ad0da542535766ebf90b7 100755 (executable)
@@ -68,7 +68,7 @@ class _CRG(Module):
 # BaseSoC ------------------------------------------------------------------------------------------
 
 class BaseSoC(SoCCore):
-    def __init__(self, toolchain, sys_clk_freq=int(100e6), with_ethernet=False, with_etherbone=False, **kwargs):
+    def __init__(self, toolchain="vivado", sys_clk_freq=int(100e6), with_ethernet=False, with_etherbone=False, **kwargs):
         platform = arty.Platform(toolchain=toolchain)
 
         # SoCCore ----------------------------------------------------------------------------------
index ddf2788bd0abb2505ba2dde6d3b4b88e3d8af765..ded185aa4c4869c72735c2aeb0adacdda7aa9a92 100644 (file)
@@ -74,9 +74,9 @@ class TestTargets(unittest.TestCase):
         self.assertEqual(errors, 0)
 
     def test_arty_symbiflow(self):
-        from litex.boards.targets.arty_symbiflow import BaseSoC
+        from litex.boards.targets.arty import BaseSoC
         errors = build_test([
-            BaseSoC(**test_kwargs)
+            BaseSoC(toolchain="symbiflow", **test_kwargs)
         ])
         self.assertEqual(errors, 0)