spauls
Advanced Member level 2

simple verilog code
Hi All,
i have two codes for swapping of a and b , which one should be OK .
always @ (posedge clock ) begin
a <=b ;
b <= a;
end
always @ (posedge clock) begin
a =b ;
b = a;
end
please clarify.
Hi All,
i have two codes for swapping of a and b , which one should be OK .
always @ (posedge clock ) begin
a <=b ;
b <= a;
end
always @ (posedge clock) begin
a =b ;
b = a;
end
please clarify.