entity Pulse_outgoing is
Port ( clck : in STD_LOGIC;
reset : in STD_LOGIC;
pulse : out STD_LOGIC);
end Pulse_outgoing;
architecture Behavioral of Pulse_outgoing is
signal count1 : integer range 0 to 100000 := 100000;
signal count2 : integer range 0 to 49000000 := 49000000;
type state is (s1,s2);
signal current: state :=s1;
begin
process (clck, reset)
begin
if (clck'event and clck = '1') then
case current is
when s1 =>
if (count1 = 100000) then
current <= s2;
count1 <= 0;
else count1 <= count1 +1;
pulse <= '1';
end if;
when s2 =>
if (count2 = 49000000) then
current <= s2;
count2 <= 0;
else count2 <= count2 +1;
pulse <= '0';
end if;
when others => null;
end case;
end if;
end process;
end behavioral;
next one im trying except now my outgoing pulse produces nothing when testbench.