The NOR gate (NOT-OR gate) is another universal gate formed by combining an OR gate followed by a NOT gate.
It has two or more inputs and one output.
The output is the inverse (complement) of the OR operation.
The output is HIGH (1) only when all inputs are LOW (0).
If any input is HIGH (1), the output becomes LOW (0).
BLOCK DIAGRAM:
Y=(A⊕B )'
module NOR2_1(Y,A,B);
input A,B;
output Y;
assign y = (~(A|B));
endmodule
module tb_NOR2_1();
reg A,B;
wire Y;
NOR2_1 DUX(Y,A,B);
initial
begin
A=1'b0 ; B=1'b0;
#10 A=1'b0 ; B=1'b1;
#10 A=1'b1 ; B=1'b0;
#10 A=1'b1 ; B=1'b1;
#20 $finish();
end
endmodule
OUTPUT:
Pin Assignment:
Input A = J15
Input B = L16
Output Y = H17