??? 04/20/07 06:10 Read: times |
#137598 - exactly ... Responding to: ???'s previous message |
Jez Smith said:
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. That's exactly it. -a |