MEM: Removing the default port peer from Python ports
In preparation for the introduction of Master and Slave ports, this patch removes the default port parameter in the Python port and thus forces the argument list of the Port to contain only the description. The drawback at this point is that the config port and dma port of PCI and DMA devices have to be connected explicitly. This is key for future diversification as the pio and config port are slaves, but the dma port is a master.
This commit is contained in:
@@ -273,8 +273,6 @@ class MetaSimObject(type):
|
||||
assert(not hasattr(port, 'name'))
|
||||
port.name = name
|
||||
cls._ports[name] = port
|
||||
if hasattr(port, 'default'):
|
||||
cls._cls_get_port_ref(name).connect(port.default)
|
||||
|
||||
# same as _get_port_ref, effectively, but for classes
|
||||
def _cls_get_port_ref(cls, attr):
|
||||
|
||||
Reference in New Issue
Block a user