X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fadd%2Fsinglepipe.py;h=68b62e432d4fc6022b99361c3358d01638414fce;hb=6bff1a997f3846872cf489c24b5c01426c4dc97c;hp=002b60157d9ebd41c48fed9f78d1031585236117;hpb=1c8ddee0bc6bd71a36a44aef5852c16a6de8ce84;p=ieee754fpu.git diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index 002b6015..68b62e43 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -778,12 +778,12 @@ class FIFOControl(ControlBase): m.d.comb += nmoperator.eq(result, self.process(data_i)) return nmoperator.cat(result) - ## prev: make the FIFO "look" like a PrevControl... + ## prev: make the FIFO (Queue object) "look" like a PrevControl... m.submodules.fp = fp = PrevControl() fp.valid_i, fp._ready_o, fp.data_i = fifo.we, fifo.writable, fifo.din m.d.comb += fp._connect_in(self.p, fn=processfn) - # next: make the FIFO "look" like a NextControl... + # next: make the FIFO (Queue object) "look" like a NextControl... m.submodules.fn = fn = NextControl() fn.valid_o, fn.ready_i, fn.data_o = fifo.readable, fifo.re, fifo.dout connections = fn._connect_out(self.n, fn=nmoperator.cat) @@ -793,8 +793,8 @@ class FIFOControl(ControlBase): if self.fwft: m.d.comb += connections[:2] # combinatorial on next ready/valid else: - m.d.sync += connections[:2] # unbuffered fwft mode needs sync - data_o = connections[2] + m.d.sync += connections[:2] # non-fwft mode needs sync + data_o = connections[2] # get the data data_o = self._postprocess(data_o) # XXX TBD, does nothing right now m.d.comb += data_o