Gast
#252622
Hallo zusammen, ich brauche mal wieder Rat. Ich experimentiere gerade mit FPGAs herum und verwende Xilinx WebPack ISE 6.3i. Ich habe versucht eine StateMachine zu basteln, aber der Compiler bringt folgende Warnung. Netcheck: Gated Clock. Clock net _nXXX is sourced by a combinatorial pin. Tihs is not good design practice. Use the CE pin to control the loading of data into the flip-flop. Mein Quellcode sieht wie folgt aus: ... signal state, followingstate : integer range 4 downto 0; process (clk, reset) begin if (reset = '1') then state <= 0; elsif (rising_edge(clk)) then state <= followingstate; end if; end process; process (state) begin followingstate <= state; case state is when 1 => ... when 2 => ... ... when others => ... end case; end process; Vielleicht kann mir ja jemand weiterhelfen und sagen was ich falsch mache! Vielen Dank im Voraus Andi