add class containing all regfiles
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 3 Jun 2020 13:07:21 +0000 (14:07 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 3 Jun 2020 13:07:21 +0000 (14:07 +0100)
src/soc/regfile/regfiles.py

index d44242a5161946cd23e2c6a8448a6f05f273c1ca..dc92f0c4973d6ed758baf118acb5bb6b6ac52b48 100644 (file)
@@ -126,3 +126,13 @@ class SPRRegs(RegFile):
         super().__init__(64, n_sprs)
         self.w_ports = [self.write_port("dest")]
         self.r_ports = [self.read_port("src")]
+
+
+class RegFiles:
+    def __init__(self):
+        self.int = IntRegs()
+        self.cr = CRRegs()
+        self.xer = XERRegs()
+        self.fasr = FastRegs()
+        self.spr = SPRRegs()
+