Restrict exposed classes
authorJean THOMAS <git0@pub.jeanthomas.me>
Thu, 11 Jun 2020 09:54:07 +0000 (11:54 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Thu, 11 Jun 2020 09:54:07 +0000 (11:54 +0200)
gram/core/__init__.py
gram/core/bankmachine.py
gram/core/controller.py
gram/core/multiplexer.py

index 16b022ef530c125ef1a094810308510d3c1ffd51..f45a89adb5b2bd171838cc256da0e8fc7f553e5f 100644 (file)
@@ -7,8 +7,7 @@ from gram.compat import CSRPrefixProxy
 from gram.core.controller import ControllerSettings, gramController
 from gram.core.crossbar import gramCrossbar
 
-# Core ---------------------------------------------------------------------------------------------
-
+__ALL__ = ["gramCore"]
 
 class gramCore(Peripheral, Elaboratable):
     def __init__(self, phy, geom_settings, timing_settings, clk_freq, **kwargs):
index 8cb74c548af30519e047bf87a80a369206457eee..787bf83610c45112f3947f426e2d4ca88a6248ef 100644 (file)
@@ -14,6 +14,8 @@ from gram.core.multiplexer import *
 from gram.compat import delayed_enter
 import gram.stream as stream
 
+__ALL__ = ["BankMachine"]
+
 # AddressSlicer ------------------------------------------------------------------------------------
 
 
@@ -115,7 +117,6 @@ class BankMachine(Elaboratable):
         cmd_buffer = stream.Buffer(cmd_buffer_layout)
         m.submodules += cmd_buffer_lookahead, cmd_buffer
         m.d.comb += [
-            #self.req.connect(cmd_buffer_lookahead.sink, include={"valid", "ready", "payload.we", "payload.addr"}),
             cmd_buffer_lookahead.sink.valid.eq(self.req.valid),
             self.req.ready.eq(cmd_buffer_lookahead.sink.ready),
             cmd_buffer_lookahead.sink.payload.we.eq(self.req.we),
index 612afcd29de9a2df9f031b6c4434858a5f06b19d..a7e376e7f3b70ff9ea380240dc954dede24e1c9b 100644 (file)
@@ -15,7 +15,7 @@ from gram.core.bankmachine import BankMachine
 from gram.core.multiplexer import Multiplexer
 
 # Settings -----------------------------------------------------------------------------------------
-
+__ALL__ = ["gramController"]
 
 class ControllerSettings(Settings):
     def __init__(self,
index 6e3584a53b5ff4f66921df532f7ab8f059b504d1..d53177aac40de8c77625182fde4ca78c4027fd1c 100644 (file)
@@ -16,8 +16,7 @@ from gram.common import *
 import gram.stream as stream
 from gram.compat import RoundRobin, delayed_enter
 
-# _CommandChooser ----------------------------------------------------------------------------------
-
+__ALL__ = ["Multiplexer"]
 
 class _CommandChooser(Elaboratable):
     """Arbitrates between requests, filtering them based on their type