efinix: pll: allow output name to be changed
This commit is contained in:
parent
7a5f5a3682
commit
b765bdf34e
|
@ -79,9 +79,12 @@ class TRIONPLL(Module):
|
||||||
self.logger.info("Using {}".format(pll_res))
|
self.logger.info("Using {}".format(pll_res))
|
||||||
self.logger.info("Clock source: {}, using EXT_CLK{}".format(block['input_clock'], clock_no))
|
self.logger.info("Clock source: {}, using EXT_CLK{}".format(block['input_clock'], clock_no))
|
||||||
|
|
||||||
def create_clkout(self, cd, freq, phase=0, margin=1e-2, with_reset=False, user_clk=True):
|
def create_clkout(self, cd, freq, phase=0, margin=1e-2, name='', with_reset=False, user_clk=True):
|
||||||
assert self.nclkouts < self.nclkouts_max
|
assert self.nclkouts < self.nclkouts_max
|
||||||
|
|
||||||
|
if name != '':
|
||||||
|
clk_out_name = name
|
||||||
|
else:
|
||||||
clk_out_name = '{}_CLKOUT{}'.format(self.pll_name, self.nclkouts)
|
clk_out_name = '{}_CLKOUT{}'.format(self.pll_name, self.nclkouts)
|
||||||
|
|
||||||
if user_clk == True:
|
if user_clk == True:
|
||||||
|
|
Loading…
Reference in New Issue