summaryrefslogtreecommitdiff
path: root/tests/simple
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple')
-rw-r--r--tests/simple/muxtree.v7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/simple/muxtree.v b/tests/simple/muxtree.v
index 46c78d4c..1fb1cea5 100644
--- a/tests/simple/muxtree.v
+++ b/tests/simple/muxtree.v
@@ -73,8 +73,11 @@ endmodule
// test case for muxtree with select on leaves
-module select_leaves(input C, D, output reg Q);
+module select_leaves(input R, C, D, output reg Q);
always @(posedge C)
- Q <= Q ? Q : D ? 1'b1 : Q;
+ if (!R)
+ Q <= R;
+ else
+ Q <= Q ? Q : D ? D : Q;
endmodule