DEV Community

Discussion on: How can you swap two variables without using a third?

Collapse
 
andruallen profile image
AndruAllen

With non-blocking assignment to describe hardware in Verilog:

x <= y;
y <= x;

asic-world.com/tidbits/blocking.html