sequential example

Upload: amit-jadhav

Post on 18-Jan-2016

217 views

Category:

Documents


0 download

DESCRIPTION

sample coding for sequential programming

TRANSCRIPT

Flip-flop with Positive-Edge Clock

LatchesPositive LatchLibrary IEEE;

Use ieee.std_logic_1164.all;

Entity platch is

Port (E, D: in std_logic;

Q: out std_logic);

End platch;

Architecture behavioral of platch is

Begin

Process (E, D)

Begin

If (E ='1') then

Q