A
a
Guest
module latch(v1,v2,v3,c1,c2);
input v1,v2,v3,c1,c2;
//output b;
reg a,b;
always @ (*)
begin
a=v1;
if (c1) b=a|v2;
if(c2) b=v3;
end
endmodule
input v1,v2,v3,c1,c2;
//output b;
reg a,b;
always @ (*)
begin
a=v1;
if (c1) b=a|v2;
if(c2) b=v3;
end
endmodule