Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
here are few points!
1. wire gets initialize by default to 'z' whereas reg gets initialize to 'x'
2. wire does not hols previous value where as reg holds old value if not diven.
3. wire can not be driven inside always whereas registers generally deiven inside
always block!
Whenever you want to store a value, then you have to use reg.
But when you just want to pass the value to the next logic element then you can use wire.
reg comes into play when we design sequential elements
wire is used both in sequential and combinational
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.