D Flip-Flop VHDL Source Code
Advertisement
This page provides the VHDL source code for a D Flip-Flop.
VHDL Code
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity DFF1 is
Port (
d, res, clk : in STD_LOGIC;
q : out STD_LOGIC
);
end DFF1;
architecture Behavioral of DFF1 is
begin
process(clk)
begin
if (res = '1') then
q <= '0';
elsif clk'event and clk = '1' then
q <= d;
end if;
end process;
end behavioral;
Explore VHDL Flip-Flops, Counters & Registers
- D Flip-Flop (VHDL Source Code)
- D-Latch (VHDL Source Code)
- JK Flip-Flop (VHDL Source Code)
- T Flip-Flop (VHDL Source Code)
- 4-bit Up-Down Counter (VHDL Source Code)
- 4-bit Binary Asynchronous Reset Counter (VHDL Code)
- 4-bit Binary Synchronous Reset Counter (VHDL Code)
- 4-bit BCD Asynchronous Reset Counter (VHDL Code)
- 4-bit BCD Synchronous Reset Counter (VHDL Code)
- BCD Up-Down Counter (VHDL Source Code)
- Any Sequence Counter (VHDL Code)
- N-Stage Johnson Counter (VHDL Code & Applications)
- Barrel Shifter (VHDL Code)
