From 2acd98076eb5a69c72cfbf6d00975b92e00be83c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 22 Mar 2020 10:12:38 +0000 Subject: [PATCH] comment latchregister --- src/nmutil/latch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nmutil/latch.py b/src/nmutil/latch.py index 6bf6fd9..5f3a0c0 100644 --- a/src/nmutil/latch.py +++ b/src/nmutil/latch.py @@ -23,7 +23,7 @@ endmodule def latchregister(m, incoming, outgoing, settrue, name=None): reg = Signal.like(incoming, name=name) # make reg same as input. reset OK. - with m.If(settrue): + with m.If(settrue): # pass in some kind of expression/condition here m.d.sync += reg.eq(incoming) # latch input into register m.d.comb += outgoing.eq(incoming) # return input (combinatorial) with m.Else(): -- 2.30.2