From b6c975cdf2eb9f551bc89133d8dcbaa566c4c06b Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Tue, 9 Jun 2020 16:50:18 +0200 Subject: [PATCH] Fix nMigen migration bug, and rename from LiteDRAM to gram --- gram/frontend/adaptation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gram/frontend/adaptation.py b/gram/frontend/adaptation.py index 529bf65..80c4d9a 100644 --- a/gram/frontend/adaptation.py +++ b/gram/frontend/adaptation.py @@ -107,7 +107,7 @@ class gramNativePortDownConverter(Elaboratable): ratio = port_from.data_width//port_to.data_width mode = port_from.mode - counter = Signal(max=ratio) + counter = Signal(range(ratio)) counter_reset = Signal() counter_ce = Signal() @@ -345,7 +345,7 @@ class gramNativeReadPortUpConverter(Elaboratable): # LiteDRAMNativePortConverter ---------------------------------------------------------------------- -class LiteDRAMNativePortConverter(Elaboratable): +class gramNativePortConverter(Elaboratable): def __init__(self, port_from, port_to, reverse=False): assert port_from.clock_domain == port_to.clock_domain assert port_from.mode == port_to.mode -- 2.30.2