Commit 307e7522 authored by whitequark's avatar whitequark
Browse files

fhdl.specials: add reset_i argument to TSTriple.

Only useful in simulation to avoid junk transitions and their effect
without (slowly) simulating power-on-reset logic.
parent 18274c3c
......@@ -70,10 +70,10 @@ class Tristate(Special):
class TSTriple:
def __init__(self, bits_sign=None, min=None, max=None, reset_o=0, reset_oe=0):
def __init__(self, bits_sign=None, min=None, max=None, reset_o=0, reset_oe=0, reset_i=0):
self.o = Signal(bits_sign, min=min, max=max, reset=reset_o)
self.oe = Signal(reset=reset_oe)
self.i = Signal(bits_sign, min=min, max=max)
self.i = Signal(bits_sign, min=min, max=max, reset=reset_i)
def get_tristate(self, target):
return Tristate(target, self.o, self.oe, self.i)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment