data_size+tag_size = input_size, use it
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 22 Apr 2019 03:27:40 +0000 (04:27 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 22 Apr 2019 03:27:40 +0000 (04:27 +0100)
TLB/src/SetAssociativeCache.py

index 841468917467ce89db0458d20b2d5911d5e180a5..bd5026e612aeb4a8365834f797929686b5dbfe00 100644 (file)
@@ -76,7 +76,7 @@ class SetAssociativeCache():
         self.command = Signal(2)  # 00=None, 01=Read, 10=Write (see SA_XX)
         self.cset = Signal(max=set_count)          # The set to be checked
         self.tag = Signal(tag_size)                # The tag to find
-        self.data_i = Signal(data_size + tag_size) # The input data
+        self.data_i = Signal(input_size) # The input data
 
         # Output
         self.ready = Signal(1) # 0 => Processing 1 => Ready for commands