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.
TrickyDicky,
What do you mean?
Suppose, we have 2 separate output ports.
You're saying we can't use rising_edge(clk) to register the first and falling_edge(clk) for the other?
Assuming we're talking fpga's here. As far as I know a single fabric flipflop can only clock on one single edge. Of course you can make a design with 1 single clock and 2 flipflops. Flipflop A clocks on the posedge, and FF B clocks on the negedge. This can be done. You cannot however make FF A (or B for that matter) clock on BOTH the posedge and the negedge. Remember, this is for fabric FFs.
Again,
I'm not talking about a DDR flip flop!
To elaborae:
Suppose, A is an input pin to the FPGA and B is an output port.
-- first process
if rising_edge(clk) then
internal_sig_1 <= A;
end if;
-- second process
if falling_edge(clk) then
B <= internal_sig_2;
end if;
This is what I meant. I see no reason why it can't be done.
There's no general benefit, I think. It serves a purpose in special cases. Do you imagine a special application that makes you think of using different clock edges?
This can be done ,as they are different flipflops but whats the advantage u see?