S
sonny
Guest
Hi
i am just a newbie and need some help...... i need to generate reset
signal using many internal signals... in simulations, it works fine,
but not sure how it synthesizes the process down below.... i know this
code is not really nice, but have no clue how to make it better....
plz help me out with this.... any help would be very helpful.... thx
in advance.
sonny
p_rst : process(dly_ctrl_a_i, dly_rst_i, int_flg_s, over_flow_s,
ctlr_rst_s, mix_subphase, capt_en_mix_s)
begin
if ctlr_rst_s = '1' or capt_en_mix_s = '1' or mix_subphase
= '1' then
if dly_ctrl_a_i = '1' then
rst_s <= '1';
end if;
if rising_edge(over_flow_s) then
rst_s <= '0';
elsif falling_edge(int_flg_s) then
rst_s <= '0';
elsif falling_edge (dly_rst_i) then
rst_s <= '0';
end if;
else
rst_s <= '0';
end if;
end process;
i am just a newbie and need some help...... i need to generate reset
signal using many internal signals... in simulations, it works fine,
but not sure how it synthesizes the process down below.... i know this
code is not really nice, but have no clue how to make it better....
plz help me out with this.... any help would be very helpful.... thx
in advance.
sonny
p_rst : process(dly_ctrl_a_i, dly_rst_i, int_flg_s, over_flow_s,
ctlr_rst_s, mix_subphase, capt_en_mix_s)
begin
if ctlr_rst_s = '1' or capt_en_mix_s = '1' or mix_subphase
= '1' then
if dly_ctrl_a_i = '1' then
rst_s <= '1';
end if;
if rising_edge(over_flow_s) then
rst_s <= '0';
elsif falling_edge(int_flg_s) then
rst_s <= '0';
elsif falling_edge (dly_rst_i) then
rst_s <= '0';
end if;
else
rst_s <= '0';
end if;
end process;