Thanks for clearing my doubt. I have another problem. When I try the minority voter circuit in MagCAD, the output comes that of a majority voter. This is true for the 2D voter. But in the case of 3D minority voter a random output sequence is generated. Same happens when I try to implement full adder. I guess it uses the majority voter principle.