LSI Interview Question

Write a verilog code to swap data with and without a temp register.

Interview Answers

Anonymous

Oct 21, 2010

nonblocking assignment a<=b; b<=a;

Anonymous

Nov 15, 2017

Another way: a = a + b b = a - b a = a - b