What's the difference between std_logic and std_ulogic ?

Status
Not open for further replies.

rajakash

Member level 2
Joined
Nov 9, 2006
Messages
53
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,608
hi friends

wat s the difference between std_logic and std_ulogic
 

difference

std_logic is resolved logic....while std_ulogic is unresolved.....

in case of std_ulogic...as it is unresolved ...so whenvr there r more than one driver on a signal...it cant resolve itself to a particular value...so here explicitly some resolution function is needed to be included....else errors...

however, since std_logic is a resolved logic, so no explicit resolution function is required...i.e. for eg. if there r two drivers on a single line...say one driving 1 and other Z...it'll be resolved as '1', or when they r driving '1' and '0' resp, it'll b resolved as 'X'....

u can check the resolution function used by std_logic in the ieee source file std_logic.vhd
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…