??? 04/20/07 05:40 Read: times |
#137592 - The point is i think ... unitentional latches Responding to: ???'s previous message |
There are several ways in which it is possible to infer a latch when it wasnt intentional so if the tools didnt shout about it then people would be complaining that their designs didnt work.
The classic way to mistakenly infer a latch is to have an 'if' statement without an 'else' as in Andy's example.So its not so much a warning about the metastability issues, because most compilers wont actualy let you construct a latch with a combinatioanl feedback loop but always insert their own latch macro, its just a warning against unitentional ones. |