Divide by two counter using D-Latch

Status
Not open for further replies.

spartanthewarrior

Full Member level 2
Joined
Jun 13, 2007
Messages
122
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,142
divide by 2 counter

How can i design divide by two counter using D-Latch
 

design a divide by two counter using d-latch

_____________________________________________________
_____________________________________________________
 

d latch

Here is the 'code' for a D-latch.

Note that a D-latch is typically something you DON'T want in a FPGA design.
FPGA designs use clocked latches (flipflops), and not this D-latch type (which is not edge sensitive but level sensitive).

Code:
  process (c, d)
  begin
    if (c = '1') the
      q <= d;
    end if;
  end process;
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…