library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity Dff is
Port ( d : in std_logic;
clk : in std_logic;
rst: in std_logic;
q : inout std_logic;
qbar : out std_logic);
end Dff;
begin
process(rst,clk)
begin
if (rst='1') then
q <='0';
else if(clk='1' and clk'event) then
q<= d;
end if;
qbar<= not q;
end if;
end process;
end Behavioral;
Clock Information:
-----------------------------------+------------------------+-------+
Clock Signal | Clock buffer(FF name) | Load |
-----------------------------------+------------------------+-------+
clk | BUFGP |2 |
rst | BUFGP |1 |
-----------------------------------+------------------------+-------+
Timing Summary:-
Speed Grade: -4
Timing Detail:-
Data Path: d to q
Gate Net
Cell:in->out fanout Delay Delay Logical Name (Net Name)
---------------------------------------- ------------
IBUF:I->O 2 0.989 1.474 d_IBUF (d_IBUF)
FDC:D 0.765 q
Total 3.228ns (1.754ns logic, 1.474ns route)
(54.3% logic, 45.7% route)
-----------------------------------------------------------------------------------
Timing constraint: Default OFFSET OUT AFTER for Clock 'rst'
Offset: 8.426ns (Levels of Logic = 1)
Source: qbar (LATCH)
Destination: qbar (PAD)
Source Clock: rst rising