Watchdog timer implementation in VHDL

Gast #2467692
warning: may contain traces of nuts!

no warranty to spelling, mistakes, dogs or watches(not even swiss 
ones)....


entity watchdog
port
(
   clk : in std_logic;
   dog : out std_logic
)
...
signal watch : integer range 0..desired := 0;

...
process (clk)
 if rising_edge(clk) then
  if watch<desired then
   watch <= watch + 1;
   dog <= '0';
  else
   watch <= 0;
   dog <= '1';
  end if;
 end if;
end process;
Gast #2467993
>> what about initialisation of the counter?

done. (no grandpa methods)

>> and observation of signal presence?

can't see this requirement

>>  and start up delay to tolerate late occurance?

the early bird catched the worm...
also you probably know: the last is biten by the dogs, so better watch 
out.


(the universe tends to maximum irony but still some people don't see it)
Gast #2470506
hiii
friends ...actually we want to detect the clock whether its continuously
going high and low or not....
so if its by fault, its stable at some position let us say "high" (not
going to low)..so then we want to get the reply from the watchdog timer
that something is wrong with clock and it will reset or reply to FPGA or
CPLD....
so do u have any VHDL implimentation logic behind it?.....we tried it
but still its not ok...

Merry xmas to all...
thanks...
Gast #2470554
hii
1.yes you r right...thats system clock....

2. but we are providing the same clock to WATCHDOG TIMER..is it 
correct...?
then after the detection of the clock, it will reply to FPGA/CPLD....
Gast #2483933
Actually we need to program the FPGA in VHDL which implements the 
Watchdog timer logic...thats our primary requirement..we also thought 
about hardware Watchdog timer as an alternative to this...but first we 
want to have software algorithm for that.....

Antwort schreiben

Eine eigene Frage? Dieser Thread ist über 14 Jahre alt. Stell sie in einem eigenen Thread – dort lesen mehr Leute mit, und sie wird öfter und schneller beantwortet.

Neuen Thread starten

Eine Lösung, Ergänzung oder Rückmeldung zu diesem Thread? Dann antworte hier.

Formatierung
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.