diff options
Diffstat (limited to 'tests/simple/muxtree.v')
-rw-r--r-- | tests/simple/muxtree.v | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/simple/muxtree.v b/tests/simple/muxtree.v index 46c78d4cf..1fb1cea5e 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 |