From: Luke Kenneth Casson Leighton Date: Sat, 31 Mar 2018 14:28:14 +0000 (+0100) Subject: selector test goes in opposite direction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=880a367e8da1adf45d9153f8a8c79bce17b105c9;p=pinmux.git selector test goes in opposite direction --- diff --git a/src/myhdl/mux.py b/src/myhdl/mux.py index 6eeba5c..06fa9af 100644 --- a/src/myhdl/mux.py +++ b/src/myhdl/mux.py @@ -75,10 +75,10 @@ def mux_tb(): if in_c: in_d.next = not in_d if in_d: - if selector == 0: - selector.next = 3 + if selector == 3: + selector.next = 0 else: - selector.next = selector - 1 + selector.next = selector + 1 yield delay(period // 2) # print simulation data on screen and file