Watchdog timer implementation in VHDL

Gast #2467692
Lesenswert?
• ▲
▼
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
Lesenswert?
• ▲
▼
>> 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
Lesenswert?
• ▲
▼
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 #2483933
Lesenswert?
• ▲
▼
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

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