From 99990b9eae745ed246ac05e1cf8acf292d82130d Mon Sep 17 00:00:00 2001 From: Andrew Butt Date: Fri, 30 Apr 2021 11:48:16 -0400 Subject: [PATCH] Fix adapter reverse typo Signed-off-by: Andrew Butt --- litedram/frontend/adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litedram/frontend/adapter.py b/litedram/frontend/adapter.py index 1a887c0..d8d8fae 100644 --- a/litedram/frontend/adapter.py +++ b/litedram/frontend/adapter.py @@ -312,7 +312,7 @@ class LiteDRAMNativePortUpConverter(Module): if reverse: wdata_sel_parts = [ Replicate(cmd_buffer.source.sel[i], port_to.wdata.we.nbits // sel.nbits) - for i in reverse(range(ratio)) + for i in reversed(range(ratio)) ] else: wdata_sel_parts = [