Correct incorrect output bit size
authorDaniel Benusovich <flyingmonkeys1996@gmail.com>
Sat, 9 Mar 2019 03:09:43 +0000 (19:09 -0800)
committerDaniel Benusovich <flyingmonkeys1996@gmail.com>
Sat, 9 Mar 2019 03:09:43 +0000 (19:09 -0800)
TLB/src/AddressEncoder.py

index c6437fc8e92ca9601a0b2ff5bfd4ca3c4d4ed59f..53e2479e6655c5d33023b3c27076fc41e5840750 100644 (file)
@@ -13,7 +13,7 @@ class AddressEncoder():
         # Output
         self.single_match = Signal(1)
         self.multiple_match = Signal(1)
-        self.o = Signal(width)
+        self.o = Signal(max=width)
         
     def elaborate(self, platform=None):
         m = Module()