C
Clunixchit
Guest
Hello there,
Here is a challenge for all of us.
I have a simulator (proof from alliance) that doesn't support
asynchronous reset. Alliance can work with using only one clock (and
not any synchronous set or reset).
Nevertheless I want to simulation asynchronous reset dff from its
behavioral description.
What would you recommend me to change in my .vhd file in terms of
asynchronous reset ?
-- D flip flop with asynchronous reset
library IEEE;
use IEEE.std_logic_1164.all;
entity dff_asynchrone is
port (
data, re_set, cp : IN std_logic ;
q : OUT std_logic
);
end dff_asynchrone;
architecture behave of dff_asynchrone is
begin
process(cp,re_set)
begin
if re_set = '0' then
q <= '0';
elsif (cp='1' and cp'event) then
q <= data;
end if;
end process;
end behave;
Here is a challenge for all of us.
I have a simulator (proof from alliance) that doesn't support
asynchronous reset. Alliance can work with using only one clock (and
not any synchronous set or reset).
Nevertheless I want to simulation asynchronous reset dff from its
behavioral description.
What would you recommend me to change in my .vhd file in terms of
asynchronous reset ?
-- D flip flop with asynchronous reset
library IEEE;
use IEEE.std_logic_1164.all;
entity dff_asynchrone is
port (
data, re_set, cp : IN std_logic ;
q : OUT std_logic
);
end dff_asynchrone;
architecture behave of dff_asynchrone is
begin
process(cp,re_set)
begin
if re_set = '0' then
q <= '0';
elsif (cp='1' and cp'event) then
q <= data;
end if;
end process;
end behave;