From 694cc01f1de8e0d7db7c5e03cb93796430c6ca5b Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 18 Jan 2015 13:24:01 +0100 Subject: [PATCH] improvements in muxtree/select_leaves test --- tests/simple/muxtree.v | 7 +++++-- 1 file 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 -- 2.30.2