- Code: Alles auswählen
proc_3 : process(clk, reset)
begin
if reset = ’1’ then
x <= ’0’;
c <= ’0’;
elsif clk’event and clk = ’1’ then
x <= input;
if x = ’1’ then
c <= not input;
end if;
end if;
end process;
end behavioral;
so eigentlich ist mir alles klar bis auf die variable c, die mache ich immer falsch,
dies bedeutet doch während x=1 ist, ist c = not input.
Hier ist die lösung und das zweite c ist meine lösung.