mirror of
https://github.com/Klagarge/Cursor.git
synced 2024-11-26 19:23:27 +00:00
19 lines
270 B
VHDL
19 lines
270 B
VHDL
|
ARCHITECTURE sim OF TFF IS
|
||
|
|
||
|
signal q_int: std_ulogic;
|
||
|
|
||
|
BEGIN
|
||
|
|
||
|
process(clk, clr)
|
||
|
begin
|
||
|
if clr = '1' then
|
||
|
q_int <= '0' after delay;
|
||
|
elsif rising_edge(clk) then
|
||
|
q_int <= t xor q_int after delay;
|
||
|
end if;
|
||
|
end process;
|
||
|
|
||
|
q <= q_int;
|
||
|
|
||
|
END sim;
|