??? 09/20/07 14:21 Modified: 09/20/07 14:27 Read: times |
#144824 - Have I got this right? Responding to: ???'s previous message |
Jez said:
If you do something as simple sounding as compare a register to zero, the compiler will probably use an OR gate tree type arrangement which is fine unless your register has an odd number of bits in which case the OR structure then has a static hazard. It things like this which trip people up when they think 'I understand C so I must be able to code in HDL' Okay, let me guess. The problem is that the path through the OR tree could be much shorter for that odd bit than for all the others, and therefore the tree's output would have a glitch on it in certain cases when the register changed. Is that correct? If I understand what you are saying, that does sound scary. I presume this is only one example of a pazillion similar problems lurking in the murky darkness, ready to entertain without warning. Some questions:
-- Russ |