return Signal(WB_DATA_BITS, name="dat")
def WBSelType():
- return Signal(WB_SEL_BITS, name="sel")
+ return Signal(WB_SEL_BITS, name="sel", reset=0b11111111)
# type wishbone_master_out is record
# adr : wishbone_addr_type;
# stall : std_ulogic;
# end record;
class WBSlaveOut(RecordObject):
- def __init__(self):
- super().__init__()
+ def __init__(self, name=None):
+ super().__init__(name=name)
self.dat = WBDataType()
self.ack = Signal()
self.stall = Signal()
# end record;
# IO Bus to a device, 30-bit address, 32-bits data
class WBIOMasterOut(RecordObject):
- def __init__(self):
- super().__init__()
+ def __init__(self, name=None):
+ super().__init__(name=name)
self.adr = Signal(30)
self.dat = Signal(32)
self.sel = Signal(4)
# stall : std_ulogic;
# end record;
class WBIOSlaveOut(RecordObject):
- def __init__(self):
- super().__init__()
+ def __init__(self, name=None):
+ super().__init__(name=name)
self.data = Signal(32)
self.ack = Signal()
self.stall = Signal()