RosettaCodeData/Task/Logical-operations/Verilog/logical-operations.v
2023-07-01 13:44:08 -04:00

12 lines
211 B
Verilog

module main;
integer a, b;
initial begin
a = 1; //true
b = 0; //false
$display(a && b); //AND
$display(a || b); //OR
$display(!a); //NOT
$finish ;
end
endmodule