Pages

Tuesday, 17 September 2013

Write a verilog code to swap contents of two registers with and without a temporary register?




With temp reg ;

always @ (wd clock)


begin


temp=b;


b=a;


a=temp;


end






Without temp reg;

always @ (wd clock)


begin


a <= b;


b <= a;


end

No comments:

Post a Comment