forked from M-Labs/artiq
1
0
Fork 0

Revert "dsp/Delay: reset_less"

for now

This reverts commit 98193d6fa1.
This commit is contained in:
Robert Jördens 2016-11-18 15:25:42 +01:00
parent d678bb3fb6
commit 14ddcd2e30
1 changed files with 2 additions and 2 deletions

View File

@ -7,13 +7,13 @@ from migen import *
class Delay(Module): class Delay(Module):
def __init__(self, i, delay, o=None): def __init__(self, i, delay, o=None):
if isinstance(i, (int, tuple)): if isinstance(i, (int, tuple)):
z = [Signal(i, reset_less=True) for j in range(delay + 1)] z = [Signal(i) for j in range(delay + 1)]
elif isinstance(i, list): elif isinstance(i, list):
z = [Record(i) for j in range(delay + 1)] z = [Record(i) for j in range(delay + 1)]
elif isinstance(i, Record): elif isinstance(i, Record):
z = [Record(i.layout) for j in range(delay + 1)] z = [Record(i.layout) for j in range(delay + 1)]
else: else:
z = [Signal.like(i, reset_less=True) for j in range(delay + 1)] z = [Signal.like(i) for j in range(delay + 1)]
self.i = z[0] self.i = z[0]
self.o = z[-1] self.o = z[-1]
if not isinstance(i, (int, list, tuple)): if not isinstance(i, (int, list, tuple)):