aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-01-18 13:24:01 +0100
committerClifford Wolf <clifford@clifford.at>2015-01-18 13:24:01 +0100
commit694cc01f1de8e0d7db7c5e03cb93796430c6ca5b (patch)
treead32a9be9951a5922c23746ad7057d8c70ead156 /tests/simple
parentf630868bc992d0c26b38a7e48933545b461249f1 (diff)
downloadyosys-694cc01f1de8e0d7db7c5e03cb93796430c6ca5b.tar.gz
yosys-694cc01f1de8e0d7db7c5e03cb93796430c6ca5b.tar.bz2
yosys-694cc01f1de8e0d7db7c5e03cb93796430c6ca5b.zip
improvements in muxtree/select_leaves test
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 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