From 880a367e8da1adf45d9153f8a8c79bce17b105c9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 31 Mar 2018 15:28:14 +0100 Subject: [PATCH] selector test goes in opposite direction --- src/myhdl/mux.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2