From ff11cb97a91ac647ae7c109f2ac0e8c500af0e2a Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 25 Mar 2015 17:22:26 +0100 Subject: [PATCH] sdram/core/lasmicon: automatically insert bandwidth module when with_memtest is True --- misoclib/mem/sdram/core/lasmicon/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misoclib/mem/sdram/core/lasmicon/__init__.py b/misoclib/mem/sdram/core/lasmicon/__init__.py index 568b8741..278ede61 100644 --- a/misoclib/mem/sdram/core/lasmicon/__init__.py +++ b/misoclib/mem/sdram/core/lasmicon/__init__.py @@ -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): -- 2.30.2