diff --git a/litex/build/generic_platform.py b/litex/build/generic_platform.py index 3cd830f9a..0e6a38bc5 100644 --- a/litex/build/generic_platform.py +++ b/litex/build/generic_platform.py @@ -1,5 +1,5 @@ # This file is Copyright (c) 2013-2014 Sebastien Bourdeauducq -# This file is Copyright (c) 2014-2018 Florent Kermarrec +# This file is Copyright (c) 2014-2019 Florent Kermarrec # This file is Copyright (c) 2015 Yann Sionneau # License: BSD @@ -266,8 +266,8 @@ class GenericPlatform: if name is None: name = self.__module__.split(".")[-1] self.name = name - self.sources = set() - self.verilog_include_paths = set() + self.sources = [] + self.verilog_include_paths = [] self.finalized = False def request(self, *args, **kwargs): @@ -325,7 +325,7 @@ class GenericPlatform: if library is None: library = "work" - self.sources.add((os.path.abspath(filename), language, library)) + self.sources.append((os.path.abspath(filename), language, library)) def add_sources(self, path, *filenames, language=None, library=None): for f in filenames: @@ -349,7 +349,7 @@ class GenericPlatform: self.add_source(filename, _language, library) def add_verilog_include_path(self, path): - self.verilog_include_paths.add(os.path.abspath(path)) + self.verilog_include_paths.append(os.path.abspath(path)) def resolve_signals(self, vns): # resolve signal names in constraints