N-bit Vor- Rückwärtszähler in VHDL notieren?

Gast #604351
Lesenswert?

Xilinx ISE Software -> Edit -> Language Templates -> VHDL -> Synthesis 
Constructs -> Coding Examples -> Counters -> Binary -> Up/Down Counters

process (<clock>)
begin
   if <clock>='1' and <clock>'event then
      if <count_direction>='1' then
         <count> <= <count> + 1;
      else
         <count> <= <count> - 1;
      end if;
   end if;
end process;

Ich würde dir auch das "xst.pdf" Dokument von Xilinx empfehlen.

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