1 / 7

Edge-Triggered D Flip-Flops

Edge-Triggered D Flip-Flops. Discussion D4.2 Example 26. Edge-triggered D Flip-flop. -- Example 26: Edge-triggered D flip-flop library IEEE; use IEEE.STD_LOGIC_1164. all ; entity flipflop is port ( clk : in STD_LOGIC; D : in STD_LOGIC; q : out STD_LOGIC;

Download Presentation

Edge-Triggered D Flip-Flops

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Edge-Triggered D Flip-Flops Discussion D4.2 Example 26

  2. Edge-triggered D Flip-flop

  3. -- Example 26: Edge-triggered D flip-flop library IEEE; use IEEE.STD_LOGIC_1164.all; entity flipflop is port( clk : in STD_LOGIC; D : in STD_LOGIC; q : out STD_LOGIC; notq : out STD_LOGIC ); end flipflop; architecture flipflop of flipflop is signal f1,f2,f3,f4,f5,f6: STD_LOGIC; begin f1 <= not(f4 and f2); f2 <= not(f1 and f5); f3 <= not(f6 and f4); f4 <= not(f3 and clk); f5 <= not(f4 and clk and f6); f6 <= not(f5 and D); q <= f1; notq <= f2; end flipflop;

  4. Aldec Active-HDL Simulation

  5. Edge-triggered D Flip-flop with asynchronous set and reset

  6. -- Example 26: ED flip-flop with clr and set library IEEE; use IEEE.STD_LOGIC_1164.all; entity flipflopcs is port( clk : in STD_LOGIC; D : in STD_LOGIC; set : in STD_LOGIC; clr : in STD_LOGIC; q : out STD_LOGIC; notq : out STD_LOGIC ); end flipflopcs; architecture flipflopcs of flipflopcs is signal f1,f2,f3,f4,f5,f6: STD_LOGIC; begin f1 <= not(f4 and f2 andnot set); f2 <= not(f1 and f5 andnot clr); f3 <= not(f6 and f4 andnot set); f4 <= not(f3 and clk andnot clr); f5 <= not(f4 and clk and f6 andnot set); f6 <= not(f5 and D andnot clr); q <= f1; notq <= f2; end flipflopcs;

  7. Aldec Active-HDL Simulation

More Related