You are on page 1of 1

module v1(a,b,p,g);

integer i;
input [0:7] a;
input [0:7] b;
output [0:7] p ;
output [0:7] g;
initial
begin
//for (i=0;i<8;i=i+1)
p[i] = a[i] ^ b[i];
g[i] = a[i] | b[i];
end
endmodule

You might also like