mibuild/lattice: adapt diamond to last Migen changes
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 19:40:58 +0000 (21:40 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 19:40:58 +0000 (21:40 +0200)
mibuild/lattice/diamond.py

index 2571f59d69f9115883ec75fbb563d2623c5378ba..a8a30556ce79104a53b4238d858401f7925df51e 100644 (file)
@@ -87,7 +87,7 @@ class LatticeDiamondToolchain:
         named_sc, named_pc = platform.resolve_signals(v_output.ns)
         v_file = build_name + ".v"
         v_output.write(v_file)
-        sources = platform.sources + [(v_file, "verilog")]
+        sources = platform.sources | {(v_file, "verilog")}
         _build_files(platform.device, sources, platform.verilog_include_paths, build_name)
 
         tools.write_to_file(build_name + ".lpf", _build_lpf(named_sc, named_pc))