title: When should I use reg instead of wire?
body: <p>I'm confused about reg and wire when I was doing my homework. I could not understand differences between reg and wire exactly. Can you explain shortly? Also, I wonder that what will happen when I use <code>output q</code> instead of <code>output reg q</code>?</p>