vhdl codes for edge detection

Joined
Feb 26, 2011
Messages
1
Reaction score
0
hi friends,
i m working on a project "edge detection using vhdl" .by using c and mat lab it is implimented but i want to make it on vhdl .so please send me vhdl codes .
 
Joined
Mar 10, 2008
Messages
348
Reaction score
0
The Rising_edge function will do the trick

Code:
Process (Clk)
begin
     if Rising_edge( Clk) then
           Q <= D;                        -- single Flip/Flop
           Counter <= Counter+1;   -- Count number of edges
     end if;
end process;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top