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