mirror of
https://github.com/Klagarge/Cursor.git
synced 2025-07-03 23:31:10 +00:00
Initial commit
This commit is contained in:
18
Libs/Sequential/hdl/DFF_sim11.vhd
Normal file
18
Libs/Sequential/hdl/DFF_sim11.vhd
Normal file
@ -0,0 +1,18 @@
|
||||
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;
|
Reference in New Issue
Block a user