hi
I want to have a module with simply this behavioral code:
entity clocking is
Port ( clk1 : in STD_LOGIC;
clk2 : in STD_LOGIC;
result : out STD_LOGIC);
end clocking;
architecture Behavioral of clocking is
begin
process
begin
if( rising_edge(clk1) ) then
result <= '0';
end if;
if( rising_edge(clk2) ) then
result <= '1';
end if;
end process;
end Behavioral;
the pre-synthesis simulation result is fine, but when I try to Synthesis this module an error occur:
"statement is not synthesizable since it does not hold its value under NOT(clock-edge) condition"
which is pointing to the first IF.
I hope the code be clear. I want a module that rising edge of CLK1 results in 0 then rising edge of CLK2 results in 1. this could occur repeatedly.
can some one help me on this problem?