Rename DelayLine -> _DelayLine
authorJean THOMAS <git0@pub.jeanthomas.me>
Tue, 28 Jul 2020 13:35:33 +0000 (15:35 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Tue, 28 Jul 2020 13:35:33 +0000 (15:35 +0200)
gram/core/crossbar.py

index e7f127c9a053b80c4d51ed15d18f948ffe10f522..126a1338040a660fbf8529ab7dc265aff62e92a4 100644 (file)
@@ -13,7 +13,7 @@ import gram.stream as stream
 
 __ALL__ = ["gramCrossbar"]
 
-class DelayLine(Elaboratable):
+class _DelayLine(Elaboratable):
     def __init__(self, delay):
         if delay < 1:
             raise ValueError("delay value must be 1+")
@@ -159,13 +159,13 @@ class gramCrossbar(Elaboratable):
 
         # Delay write/read signals based on their latency
         for nm, master_wdata_ready in enumerate(master_wdata_readys):
-            delayline = DelayLine(self.write_latency)
+            delayline = _DelayLine(self.write_latency)
             m.submodules += delayline
             m.d.comb += delayline.i.eq(master_wdata_ready)
             master_wdata_readys[nm] = delayline.o
 
         for nm, master_rdata_valid in enumerate(master_rdata_valids):
-            delayline = DelayLine(self.read_latency)
+            delayline = _DelayLine(self.read_latency)
             m.submodules += delayline
             m.d.comb += delayline.i.eq(master_rdata_valid)
             master_rdata_valids[nm] = delayline.o