Only hold the decoder signals for one cycle, along with issue_i
[soc.git] / src / soc / experiment / wb_types.py
index 81c4c19890ba529ac45c76f89654798d19290887..bcf64b4215cbe4ae044debbb6f7fe4c0ec35cd79 100644 (file)
@@ -32,13 +32,13 @@ WB_SEL_BITS  = WB_DATA_BITS // 8
 #  std_ulogic_vector(wishbone_sel_bits-1  downto 0);
 
 def WBAddrType():
-    return Signal(WB_ADDR_BITS)
+    return Signal(WB_ADDR_BITS, name="adr")
 
 def WBDataType():
-    return Signal(WB_DATA_BITS)
+    return Signal(WB_DATA_BITS, name="dat")
 
 def WBSelType():
-    return Signal(WB_SEL_BITS)
+    return Signal(WB_SEL_BITS, name="sel", reset=0b11111111)
 
 # type wishbone_master_out is record
 #     adr : wishbone_addr_type;
@@ -49,8 +49,8 @@ def WBSelType():
 #     we  : std_ulogic;
 # end record;
 class WBMasterOut(RecordObject):
-    def __init__(self):
-        super().__init__()
+    def __init__(self, name=None):
+        super().__init__(name=name)
         self.adr = WBAddrType()
         self.dat = WBDataType()
         self.cyc = Signal()
@@ -71,8 +71,8 @@ def WBMasterOutInit():
 #     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()
@@ -104,8 +104,8 @@ def WBSlaveOutVector():
 # 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)
@@ -119,8 +119,8 @@ class WBIOMasterOut(RecordObject):
 #     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()