Continue to Site

Welcome to EDAboard.com

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.

default values of wire and reg

Status
Not open for further replies.

bharath9

Newbie level 3
Joined
Dec 17, 2014
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
22
hi,

what are the default values of wire and reg?
 

There is no default value... you have initialized the value of the "reg" ..it is just like a variable in any programming language. On the other hand wire is a connector you don't have do anything with this. It will take the value of output to which it is connected.
 

I think you meant to ask what are the default initial values of wire and reg. The answer is simple for reg: the X state.

The answer is not so simple for wires, because wires do not store a value. Wires are the resolution of driver values. See my blog https://go.mentor.com/wire-vs-reg.

If a wire has no drivers, it resolves to the Z state. However, the initial resolution of wires at time zero is not defined in the LRM. Some simulators have chosen to make all resolve to X initially, and then move to whatever resolved value to that the wire always creates an event.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top