nesta
Junior Member level 2
Hi VhdlExperts,
i have a requirement in which i need to generate a ready pulse for 1 clk cycle on some condition.
However i am not finding a way to do it with a process having sensitivity list in it.
The scenario is the rdy signal will be set high by a different process and it should be only 1 clock cycle only.
--- Code snippet for explanation ----
entity gate is
port(rdy : IN std_logic;
-----
);
end entity;
architecture beh of gate is
signal rdy_con : std_logic;
begin
rdy_con <= rdy;
process(clk,rdy)
begin
if(clk ='1' and clk'event) then
if(rdy = '1') then
--- do some processing;
rdy <= '0'; --- this does not toggle to zero(why)
end if;
end if;
end process;
end arch;
------------------------------
Thanks in advance,
Nesta
i have a requirement in which i need to generate a ready pulse for 1 clk cycle on some condition.
However i am not finding a way to do it with a process having sensitivity list in it.
The scenario is the rdy signal will be set high by a different process and it should be only 1 clock cycle only.
--- Code snippet for explanation ----
entity gate is
port(rdy : IN std_logic;
-----
);
end entity;
architecture beh of gate is
signal rdy_con : std_logic;
begin
rdy_con <= rdy;
process(clk,rdy)
begin
if(clk ='1' and clk'event) then
if(rdy = '1') then
--- do some processing;
rdy <= '0'; --- this does not toggle to zero(why)
end if;
end if;
end process;
end arch;
------------------------------
Thanks in advance,
Nesta