efinix: get_free_pll_resource needs to call get_pll_resource

This commit is contained in:
Franck Jullien 2022-04-14 09:48:26 +02:00
parent 9be3951be9
commit 5f9d943d36
1 changed files with 5 additions and 3 deletions

View File

@ -160,8 +160,10 @@ class EfinixPlatform(GenericPlatform):
def get_pll_resource(self, name):
self.pll_used.append(name)
self.pll_available.remove(name)
print('Pll used : ' + str(self.pll_used))
print('Pll pll_available: ' + str(self.pll_available))
print('PLL used : ' + str(self.pll_used))
print('PLL available: ' + str(self.pll_available))
def get_free_pll_resource(self):
return self.pll_available[0]
pll = self.pll_available[0]
self.get_pll_resource(pll)
return pll