generic_platform: use set for sources
This commit is contained in:
parent
665fff8390
commit
eed1d5cb2e
|
@ -261,7 +261,7 @@ class GenericPlatform:
|
||||||
if name is None:
|
if name is None:
|
||||||
name = self.__module__.split(".")[-1]
|
name = self.__module__.split(".")[-1]
|
||||||
self.name = name
|
self.name = name
|
||||||
self.sources = []
|
self.sources = set()
|
||||||
self.verilog_include_paths = set()
|
self.verilog_include_paths = set()
|
||||||
self.finalized = False
|
self.finalized = False
|
||||||
|
|
||||||
|
@ -323,7 +323,7 @@ class GenericPlatform:
|
||||||
if library is None:
|
if library is None:
|
||||||
library = "work"
|
library = "work"
|
||||||
|
|
||||||
self.sources.append((os.path.abspath(filename), language, library))
|
self.sources.add((os.path.abspath(filename), language, library))
|
||||||
|
|
||||||
def add_sources(self, path, *filenames, language=None, library=None):
|
def add_sources(self, path, *filenames, language=None, library=None):
|
||||||
for f in filenames:
|
for f in filenames:
|
||||||
|
|
Loading…
Reference in New Issue