Altera_Forum
Honored Contributor
16 years agotransparent latch & dual edge flip-flops
I read that a transparent latch is tricky to ensure in VHDL code. In principle, one must include a redundant term that the compiler might take away.
http://www.velocityreviews.com/forums/t57539-latches-and-flip-flops.html http://www.velocityreviews.com/forums/t371968-what-is-the-problem-with-latch-inference.html There is a smart way to implement a dual edge flip-flop. However, it seems to me that this is similar to using transparent latches: http://asicdigitaldesign.wordpress.com/2008/09/22/another-look-at-the-dual-edge-flip-flop/i I wonder if safe logic can be put in a schematics file and used in VHDL. Or maybe one must use schematics as top entity to avoid compiler to convert it to VHDL and optimize it?