These programs are using Data Flow Modeling

//NOT gate
module notgate(a,y);
input a;
output y;
assign y= ~a;
endmodule

//OR gate
module orgate(a,b,y);
inpput a,b;
output y;
assign y=(a|b);
endmodule

//AND gate
module andgate(a,b,y);
input a,b;
output y;
assign y=(a&b);
endmodule

//NOR gate
module norgate(a,b,y);
inpput a,b;
output y;
assign y=~(a|b);
endmodule



//NAND gate
module nandgate(a,b,y);
input a,b;
output y;
assign y=~(a&b);
endmodule




//XOR gate
module xorgate(a,b,y);
input a,b;
output y;
assign y=(a^b);
endmodule

//XNOR gate
module xnorgate(a,b,y);
input a,b;
output y;
assign y=(~(a^b));
endmodule