mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
build/sim/config: add default_clk/default_clk_freq parameters for retro-compatibility with previous API.
This commit is contained in:
parent
696ea468b8
commit
0ca99b798f
1 changed files with 3 additions and 1 deletions
|
@ -6,8 +6,10 @@ import json
|
|||
import math
|
||||
|
||||
class SimConfig():
|
||||
def __init__(self):
|
||||
def __init__(self, default_clk=None, default_clk_freq=int(1e6)):
|
||||
self.modules = []
|
||||
if default_clk is not None:
|
||||
self.add_clocker(default_clk, default_clk_freq)
|
||||
|
||||
def _format_interfaces(self, interfaces):
|
||||
if not isinstance(interfaces, list):
|
||||
|
|
Loading…
Reference in a new issue