From 5f9d943d360b71c7f0c90e9cb8aa7f3bc1f1546a Mon Sep 17 00:00:00 2001 From: Franck Jullien Date: Thu, 14 Apr 2022 09:48:26 +0200 Subject: [PATCH] efinix: get_free_pll_resource needs to call get_pll_resource --- litex/build/efinix/platform.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/litex/build/efinix/platform.py b/litex/build/efinix/platform.py index 2ccad5ef5..35401e30e 100644 --- a/litex/build/efinix/platform.py +++ b/litex/build/efinix/platform.py @@ -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