build.py: support single DVI sampler
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 5 May 2013 18:56:58 +0000 (20:56 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 5 May 2013 18:56:58 +0000 (20:56 +0200)
build.py

index a1d1d79165571b124f6786f8c52e6d440db2708e..73bd7720b6c6049922203a5eb3b2233882bf460c 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -50,6 +50,7 @@ NET "{dviclk0}" TNM_NET = "GRPdviclk0";
 NET "{dviclk0}" CLOCK_DEDICATED_ROUTE = FALSE;
 TIMESPEC "TSdviclk0" = PERIOD "GRPdviclk0" 26.7 ns HIGH 50%;
 """, dviclk0=platform.lookup_request("dvi_in", 0).clk)
+       if hasattr(soc, "dvisampler1"):
                platform.add_platform_command("""
 NET "{dviclk1}" TNM_NET = "GRPdviclk1";
 NET "{dviclk1}" CLOCK_DEDICATED_ROUTE = FALSE;