sdram/core/lasmicon: automatically insert bandwidth module when with_memtest is True
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 25 Mar 2015 16:22:26 +0000 (17:22 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 25 Mar 2015 16:22:26 +0000 (17:22 +0100)
misoclib/mem/sdram/core/lasmicon/__init__.py

index 568b8741202433263391272de935af68a30b5776..278ede613d4f972c3031923fe129d7ac806d0b2e 100644 (file)
@@ -17,7 +17,10 @@ class LASMIconSettings:
                self.write_time = write_time
                self.with_l2 = with_l2
                self.l2_size = l2_size
-               self.with_bandwidth = with_bandwidth
+               if with_memtest:
+                       self.with_bandwidth = True
+               else:
+                       self.with_bandwidth = with_bandwidth
                self.with_memtest = with_memtest
 
 class LASMIcon(Module):