improvements in muxtree/select_leaves test

This commit is contained in:
Clifford Wolf 2015-01-18 13:24:01 +01:00
parent f630868bc9
commit 694cc01f1d
1 changed files with 5 additions and 2 deletions

View File

@ -73,8 +73,11 @@ endmodule
// test case for muxtree with select on leaves // 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) always @(posedge C)
Q <= Q ? Q : D ? 1'b1 : Q; if (!R)
Q <= R;
else
Q <= Q ? Q : D ? D : Q;
endmodule endmodule