kaushikrvs
Member level 5
Usually we sample at rising edge and setup at falling edge of a clock? but Verilog says not to use both clock edges in a module so which one has to be followed?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Usually we sample at rising edge and setup at falling edge of a clock? but Verilog says not to use both clock edges in a module so which one has to be followed?
Normally people use the rising edge. You can use any one and use only that edge through the entire design.
But NEVER use both edges in the same design.
You mean like DDR designs?
I've seen many standard cell libraries offering both
positive and negative edge clocked flip-flops.
I've seen many standard cell libraries offering both
positive and negative edge clocked flip-flops. The
setup time and the hold time both pertain to the
active clock edge. If you have enough clock period
(and duty cycle consistency) to accommodate
these keepout times and any intermediate (logic
prop) delays there's no reason you can't clock on
both edges even inside a single logic block. But
the timing analysis is probably on you, and maybe
synthesis tools aren't supportive (I only do hand
wired logic, still, and only am called upon to do it
when synthesis based, standard cell library approach
can't make it).