3wais
Member level 4
- Joined
- Sep 12, 2011
- Messages
- 70
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,288
- Location
- Alexandria,Egypt
- Activity points
- 1,787
I want the output to be high for one clock cycle after a high edge of an input signal is detected
so I tried this code
but it can not be synthesized
so I tried this code
but it can not be synthesized
Code:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity Counter is
Port ( Start : in STD_LOGIC;
CLK : in STD_LOGIC;
Count : out STD_LOGIC);
end Counter;
architecture Behavioral of Counter is
begin
process (CLK,Start)
begin
if (Start'event and Start = '1') then
Count <= '1';
elsif (CLK'event and CLK = '1') then
Count <= '0';
end if;
end process;
end Behavioral;