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
 
 
 
 
 

 

HOME
 

 

 

 

 


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 ieee;

USE ieee.std_logic_1164.ALL;

 

ENTITY dffe IS

PORT( rst, clk, ena, d : IN std_logic;

q : OUT std_logic ); END dffe;

 

ARCHITECTURE synthesis1 OF dffe IS BEGIN

PROCESS (rst, clk) BEGIN

IF (rst = ‘1’) THEN

q <= ‘0’;

ELSIF (clk’EVENT) AND (clk = ‘1’) THEN IF (ena = ‘1’) THEN

q <= d;

 

END IF; END PROCESS;

END synthesis1;

 

 


Want To Know more with

Video ???

Contact for more learning: webmaster@freehost7com

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Home