From 160eebec63f9c05db1fc3624cdd43d5948bb3519 Mon Sep 17 00:00:00 2001 From: Staf Verhaegen Date: Fri, 6 Dec 2019 20:06:06 +0100 Subject: [PATCH] Use Elif for third m.next assignment. This way m.next assignments are done in one If/Elif statements for the "IDLE" state and not in two different If statements. --- c4m/nmigen/jtag/tap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/c4m/nmigen/jtag/tap.py b/c4m/nmigen/jtag/tap.py index f978254..333105d 100755 --- a/c4m/nmigen/jtag/tap.py +++ b/c4m/nmigen/jtag/tap.py @@ -321,8 +321,7 @@ class TAP(Elaboratable): # If data is m.d[domain] += wb.adr.eq(wb.adr + 1) m.next = "READ" - - with m.If(sr_data.oe[1]): # WBWRITE code + with m.Elif(sr_data.oe[1]): # WBWRITE code m.d[domain] += wb.dat_w.eq(sr_data.o) m.next = "WRITEREAD" with m.State("READ"): -- 2.30.2