what is the difference?

Status
Not open for further replies.

buenos

Advanced Member level 3
Joined
Oct 24, 2005
Messages
960
Helped
40
Reputation
82
Reaction score
24
Trophy points
1,298
Location
Florida, USA
Activity points
9,116
hi.

what is the difference between the 2 lines?

Code:
assign trdy = (enable == EN_NONE) ? 'bZ : (enable == EN_TR ? 1 : 0); //original
assign trdy = (enable == EN_NONE) ? 'bZ : ((state == ST_MEMWRITE) ? trdy_w : trdy_r) ; //new, with wait cyc

with the second one, the output will never be 'Z'
i think it doesnt matter what is it after the first condition. am i correct?

there are other signals with the same EN_NONE condition, they work.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…