nervecell_23
Member level 1
- Joined
- Apr 26, 2013
- Messages
- 38
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,565
Is there any way I can code an OR/AND gate more efficiently?
For instance:
Three inputs is fine for the above example, but what if I've got 500 inputs?
For instance:
Code:
wire in_1, in_2, in_3;
wire out_1, out_2;
assign out_1 = (in_1||in_2||in_3);
assign out_2 = (in_1&&in_2&&in_3);
Three inputs is fine for the above example, but what if I've got 500 inputs?