Very Large Scale Integration technology
Pages
Home
programes
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment