mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
build/generic_platform: Make sure default_clk_period constraint is only applied when default_clk_period exists.
In simulation, default_clk_period is not necessarily required.
This commit is contained in:
parent
ee2d373477
commit
9d08c65e8a
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ class GenericPlatform:
|
||||||
def do_finalize(self, fragment, *args, **kwargs):
|
def do_finalize(self, fragment, *args, **kwargs):
|
||||||
"""overload this and e.g. add_platform_command()'s after the modules
|
"""overload this and e.g. add_platform_command()'s after the modules
|
||||||
had their say"""
|
had their say"""
|
||||||
if self.use_default_clk:
|
if self.use_default_clk and hasattr(self, "default_clk_period"):
|
||||||
try:
|
try:
|
||||||
self.add_period_constraint(
|
self.add_period_constraint(
|
||||||
self.lookup_request(self.default_clk_name),
|
self.lookup_request(self.default_clk_name),
|
||||||
|
|
Loading…
Reference in a new issue