| VHDLTutorial | D flip flop example code | |||
|
Introduction to VHDL History of VHDL Naming Conventions Libraries and packages Entities Entity Declaration Entity Example Ports Architectures Architecture declaration Architecture example Configurations Signals Signal representation Multivalued logic representation Built in data types Synthesis vs simulation Logical operators Assignment statements Process statements D Flip flop example code Finite state machine(FSM) Finite state machine example Combinational circuit example code Quad 2 input MUX example Seven segment display controller 8 Bit register 32 bit counter
|
Using a process and the EVENT attribute of a signal, it is possible to specify a D flip-flop
The EVENT attribute can be used to check for the rising edge of a clock signal
The block diagram of a D Flip-Flop is shown below:
LIBRARY USE ieee.std_logic_1164.ALL;
ENTITY dffe ISPORT q : OUT std_logic ); END dffe;
ARCHITECTURE synthesis1 OF dffe IS BEGINPROCESS IF q <= 0; ELSIF (clkEVENT) AND (clk = 1) THEN IF (ena = 1) THENq <= d;
END IF ; END PROCESS;END synthesis1;
Want To Know more with Video ??? Contact for more learning: webmaster@freehost7com
|
|