D Latch VHDL Source Code
Advertisement
This page provides VHDL source code for a D Latch.
VHDL Code for D Latch
entity mydlatch1 is
port (
signal d, g: in std_logic;
signal q: out std_logic
);
end mydlatch1;
architecture behavior of mydlatch1 is
-- rising edge triggered DFF
begin
process (g, d)
begin
if (g = '1') then
q <= d;
end if;
end process;
end behavior;
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)
