vveerendra
Newbie level 5
module code1(A,B,CLK);
input CLK;
input A;
output B;
reg B;
always @(posedge CLK)
begin
B<=A;
end
always@(negedge CLK)
begin
B<=~A;
end
endmodule
input CLK;
input A;
output B;
reg B;
always @(posedge CLK)
begin
B<=A;
end
always@(negedge CLK)
begin
B<=~A;
end
endmodule