[libre-riscv-dev] [Bug 321] BUG: Running ltp on a pipeline gives warnings about loops

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon May 18 16:57:37 BST 2020


--- Comment #1 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Michael Nolan from comment #0)
> Created attachment 55 [details]
> Photo of loop in yosys graph

> Warning: Detected loop at \stage_o$next [63] in pipe

ok yes this is fine.

look closely at the MUXes.  note that when the front mux is set, the register
is outputted (from the DFF, which is on a clock latch).

however if the MUX is not set, the input is sent through combinatorially.

so the "loop" is not a combinatoriak looo, it is a time synced loop that traps
the value of the input, endlessly replaying it until such time as soneone sets
the MUX to low.

there is probably a better way to do this  however it is not doing any harm.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-riscv-dev mailing list