# what is the difference?

Status
Not open for further replies.

#### buenos

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.