tidyup PortInterface
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Jan 2022 14:03:02 +0000 (14:03 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Jan 2022 14:03:02 +0000 (14:03 +0000)
src/soc/experiment/pimem.py

index 22788af24c45222d68690cb8b5121f845ec1d642..6fe1e6817b20000697a419b762bbcddee58ff045 100644 (file)
@@ -97,9 +97,10 @@ class PortInterface(RecordObject):
 
         RecordObject.__init__(self, name=name)
 
-        # distinguish op type (ld/st)
+        # distinguish op type (ld/st/dcbz)
         self.is_ld_i    = Signal(reset_less=True)
         self.is_st_i    = Signal(reset_less=True)
+        self.is_dcbz_i     = Signal(reset_less=True) # cache-line zeroing
 
         # LD/ST data length (TODO: other things may be needed)
         self.data_len = Signal(4, reset_less=True)
@@ -125,8 +126,6 @@ class PortInterface(RecordObject):
         self.priv_mode  = Signal() # not ctrl.msr(MSR_PR);
         self.mode_32bit = Signal() # not ctrl.msr(MSR_SF);
 
-        self.is_dcbz_i     = Signal(reset_less=True)
-
         # mmu
         self.mmu_done          = Signal() # keep for now