soc/cores/bitbang/i2c: Add connect_pads parameter.

This commit is contained in:
Florent Kermarrec 2024-12-17 14:39:12 +01:00
parent c455a002d0
commit fdd7c97ce5

View file

@ -27,7 +27,7 @@ class I2CMaster(LiteXModule):
"""
pads_layout = [("scl", 1), ("sda", 1)]
def __init__(self, pads=None, default_dev=False):
def __init__(self, pads=None, default_dev=False, connect_pads=True):
"""
Class constructor.
@ -50,7 +50,8 @@ class I2CMaster(LiteXModule):
self.default_dev = default_dev
self.connect(pads)
if connect_pads:
self.connect(pads)
def connect(self, pads):
"""