fhdl: phase out pads
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 2 Apr 2012 17:21:43 +0000 (19:21 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 2 Apr 2012 17:21:43 +0000 (19:21 +0200)
doc/index.rst
migen/fhdl/structure.py
migen/fhdl/verilog.py

index 7b2060fa1ec63dc830aed2f9440eb3ae816cdb8b..b7a03d67724e1a403c9560ec58c7667ad131e271 100644 (file)
@@ -233,7 +233,6 @@ A "fragment" is a unit of logic, which is composed of:
 * a list of synchronous statements.
 * a list of instances.
 * a list of memories.
-* a set of pads, which are signals intended to be connected to off-chip devices.
 * a list of simulation functions (see :ref:`simulating`).
 
 Fragments can reference arbitrary signals, including signals that are referenced in other fragments. Fragments can be combined using the "+" operator, which returns a new fragment containing the concatenation of each pair of lists.
index 89545c7931341e68d8f3a7e7e48f6483dac8572b..c8517270eab1bf5cb422591d68e5d34181492715 100644 (file)
@@ -268,7 +268,7 @@ class Memory:
                self.init = init
 
 class Fragment:
-       def __init__(self, comb=None, sync=None, instances=None, memories=None, pads=set(), sim=None):
+       def __init__(self, comb=None, sync=None, instances=None, memories=None, sim=None):
                if comb is None: comb = []
                if sync is None: sync = []
                if instances is None: instances = []
@@ -278,7 +278,6 @@ class Fragment:
                self.sync = _sl(sync)
                self.instances = instances
                self.memories = memories
-               self.pads = pads
                self.sim = sim
        
        def __add__(self, other):
@@ -286,7 +285,6 @@ class Fragment:
                        self.sync.l + other.sync.l,
                        self.instances + other.instances,
                        self.memories + other.memories,
-                       self.pads | other.pads,
                        self.sim + other.sim)
 
        def call_sim(self, simulator):
index fa4c4ae4d49c241ca5edfdb8a033d5e44e07bc35..4552c0d30831bd2ef3718ed441420ae50da9a617 100644 (file)
@@ -244,7 +244,6 @@ def convert(f, ios=set(), name="top",
        if rst_signal is None:
                rst_signal = Signal(name_override="sys_rst")
                ios.add(rst_signal)
-       ios |= f.pads
 
        ns = build_namespace(list_signals(f) \
                | list_inst_ios(f, True, True, True) \