soc/integration/soc_sdram: add assertion on csr_data_width since BIOS only support...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 19 Jul 2018 10:51:16 +0000 (12:51 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 19 Jul 2018 10:51:16 +0000 (12:51 +0200)
litex/soc/integration/soc_sdram.py

index 1c9064c21f9a23e022ec6bb8b793aee3052aff75..218ac86b7e970d5b982e29001618fb5033eb3e35 100644 (file)
@@ -37,6 +37,8 @@ class SoCSDRAM(SoCCore):
 
     def __init__(self, platform, clk_freq, l2_size=8192, **kwargs):
         SoCCore.__init__(self, platform, clk_freq, **kwargs)
+        if self.cpu_type is not None and self.csr_data_width != 8:
+             raise NotImplementedError("BIOS supports SDRAM initialization only for csr_data_width=8")
         self.l2_size = l2_size
 
         self._sdram_phy = []