bad synchronous description

Gast #387890
Lesenswert?

Hallo,

kann mir bitte jemand sagen was an diesem VHDL-Code-Snippet falsch sein
kann:

SYNC_ON_RX_DATA: process (DATA_RX, SLR_BIT_CNT_sig)
begin
  if falling_edge (DATA_RX) and SLR_ENABLE_sig = '0' then
     SLR_ENABLE_sig <= '1';
  elsif SLR_BIT_CNT_sig = 9 then
     SLR_ENABLE_sig <= '0';
  end if;
end process;

Ich bekomme immer folgende Fehlermeldung:
Signal SLR_ENABLE_sig cannot be synthesized, bad synchronous
description.

Sebastian.

PS: Wie kann ich den Code hier VHDL bunt darstellen???
Gast #387891
Lesenswert?

vhdl in eckige Klammern für Syntax Highlightning.

So wird nen Schuh drauss:
1
SYNC_ON_RX_DATA: process (DATA_RX)
2
begin
3
  if falling_edge (DATA_RX) then
4
    if SLR_ENABLE_sig = '0' then
5
      SLR_ENABLE_sig <= '1';
6
    elsif SLR_BIT_CNT_sig = 9 then
7
      SLR_ENABLE_sig <= '0';
8
    end if;
9
  end if;
10
end process;

1. Nur der Clock kommt in die Sens.Liste
2. bei einem synchr. Prozess wird in der äusseren If Schleife nur der
Clock abgefragt

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren