In Verilog, is it ok to use negedge of clock. Can a memory element be triggered at the negedge of clock? How robust will be the design practically in the chip?
Electrical – Using negative clock edge in phsical design
clockdigital-logicnegativeverilog
Related Topic
- Verilog: sampling data in both posedge and negedge of the clock
- Electronic – When should I use negedge on a clock signal
- Electronic – history of edge-triggered D flip-flop design using three S-R latches
- Electronic – Using both clock edges in an FPGA design
- Electronic – How to redirect/regenerate an input clock to an output pin in the FPGA design (Verilog)
- Electronic – Capacitor for triggering negative edge J-K Flip Flop’s Clock
Best Answer
Internal memory blocks (e.g. M9K) are clocked at positive edge of the clock, thus they will do nothing on negative edge of the clock.
But you can feed inverted clock to the M9K block's clock input. For example, you have circuit built using
always
block which usesposedge
of the clock to set memory address, data to write and control signals, and then, on following negedge, if you feed the same clock inverted into RAM block, RAM block will sample its input wires (address, data, control) and perform requested operation. I would view this type of operation as "waterfall" (not sure if there's any special term for it).But there're downsides of it:
If you have other devices rather than M9K blocks in mind, then you should refer to their datasheets and timing.