Show me how to implement a boolean equation in verilog F A
Show me how to implement a boolean equation in verilog.
F = (A + B).C’
Solution
Implementation:
F = (A + B).C’
output F;
input A, B, C;
wire w1, w2;
and a1(F, w1, w2);
or a1(w1, A, B);
not n1(w2, C);
Code:
module express (F, A, B, C):
output F;
input A, B, C;
wire w1, w2;
assign F = (A | B) & (~C);
//& = bit-wise AND
//| = bit-wise OR
//~ = bi-wise Not

