add extra "modes" to PortInterface
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 15 Sep 2020 08:46:00 +0000 (09:46 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 15 Sep 2020 08:46:00 +0000 (09:46 +0100)
src/soc/experiment/pimem.py

index 3fac8cb649354b110779a250ee71935106065240..89ba7714dc85a0d816d2e338a1cfffc18b4520ab 100644 (file)
@@ -113,6 +113,12 @@ class PortInterface(RecordObject):
         self.ld = Data(regwid, "ld_data_o")  # ok to be set by L0 Cache/Buf
         self.st = Data(regwid, "st_data_i")  # ok to be set by CompUnit
 
+        # additional "modes"
+        self.dcbz          = Signal()  # data cache block zero request
+        self.nc            = Signal()  # no cacheing
+        self.virt_mode     = Signal()  # virtual mode
+        self.priv_mode     = Signal()  # privileged mode
+
     def connect_port(self, inport):
         print("connect_port", self, inport)
         return [self.is_ld_i.eq(inport.is_ld_i),