From b9ceed0f744aeeb4ccf15193cab7d693a9b86fb9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 29 Oct 2020 10:50:10 +0100 Subject: [PATCH] integration/soc/sata: fix sys_clk_freq vs sata_freq_clk check. --- litex/soc/integration/soc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 7066c04a0..25329b7b4 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -1440,7 +1440,7 @@ class LiteXSoC(SoC): "gen3": 300e6, } sata_clk_freq = sata_clk_freqs[phy.gen] - assert self.clk_freq >= sata_clk_freq + assert self.clk_freq >= sata_clk_freq/2 # FIXME: /2 for 16-bit data-width, add support for 32-bit. # Core self.submodules.sata_core = LiteSATACore(phy)