hdl.ast: deprecate Repl and remove from AST; add Value.replicate.
This commit is contained in:
parent
b1cce87630
commit
d218273b9b
13 changed files with 83 additions and 95 deletions
|
|
@ -375,7 +375,7 @@ class IntelPlatform(TemplatedPlatform):
|
|||
def _get_oereg(m, pin):
|
||||
# altiobuf_ requires an output enable signal for each pin, but pin.oe is 1 bit wide.
|
||||
if pin.xdr == 0:
|
||||
return Repl(pin.oe, pin.width)
|
||||
return pin.oe.replicate(pin.width)
|
||||
elif pin.xdr in (1, 2):
|
||||
oe_reg = Signal(pin.width, name="{}_oe_reg".format(pin.name))
|
||||
oe_reg.attrs["useioff"] = "1"
|
||||
|
|
|
|||
|
|
@ -528,7 +528,7 @@ class LatticeECP5Platform(TemplatedPlatform):
|
|||
if "o" in pin.dir:
|
||||
o = pin_o
|
||||
if pin.dir in ("oe", "io"):
|
||||
t = Repl(~pin.oe, pin.width)
|
||||
t = (~pin.oe).replicate(pin.width)
|
||||
elif pin.xdr == 1:
|
||||
if "i" in pin.dir:
|
||||
get_ireg(pin.i_clk, i, pin_i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue