FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2007, 08:14 PM
radarman
Guest
 
Posts: n/a
Default (Xilinx) OPB watchdog timer fails to release RESET

Hi,
I'm working on a Microblaze system in a Spartan 3-2000. I am trying to
implement a watchdog timer using the opb_timebase_wdt IP core. I'm
currently using ISE/EDK 8.2.02i, and the WDT version is 1.00a.

The watchdog timer otherwise works fine. I can start/stop/reset the
timer with no problem. The trouble is that when the watchdog timer
DOES cause a reset, it won't release the reset line, which was
effectively locking up the system. It did NOT respond like the
datasheet.

To solve the immediate problem, I have inserted an edge detector into
the reset control logic, which allows the system to reboot, but I
can't get the WDT_Reset signal to go low at all. The end result is
that the WDT can only reset the system once.

I did bring both signals out on test points, and I can see this
behavior on a scope. The interrupt performs as expected, but once the
WDT_Reset signal goes high, it stays high until I reconfigure the
FPGA.

Note, I am using a custom reset controller, because the ComBlock 1200
board I'm using requires special treatment due to the clock situation.
(the clock isn't stable until after configuration, causing DCM
problems). Any reset input will cause both a sys_reset and dcm_reset.
dcm_reset is released as soon as the reset input goes away, but
sys_reset is held until the clock is stable for at least 64 clocks or
so. I haven't had any other problems with this reset controller.

What am I missing here?

Thanks!

Reply With Quote
  #2 (permalink)  
Old 03-27-2007, 11:17 PM
Alan Nishioka
Guest
 
Posts: n/a
Default Re: (Xilinx) OPB watchdog timer fails to release RESET

On Mar 27, 11:14 am, "radarman" <jsham...@gmail.com> wrote:
> I did bring both signals out on test points, and I can see this
> behavior on a scope. The interrupt performs as expected, but once the
> WDT_Reset signal goes high, it stays high until I reconfigure the
> FPGA.


Why don't you copy C:\EDK81/hw/XilinxProcessorIPLib/pcores/
opb_timebase_wdt_v1_00_a
to your local pcores directory and modify timebase_wdt_core.vhd to do
what you want it to do?

Alan Nishioka

Reply With Quote
  #3 (permalink)  
Old 03-28-2007, 01:17 PM
Brian Drummond
Guest
 
Posts: n/a
Default Re: (Xilinx) OPB watchdog timer fails to release RESET

On 27 Mar 2007 11:14:16 -0700, "radarman" <[email protected]> wrote:

>Hi,
>I'm working on a Microblaze system in a Spartan 3-2000. I am trying to
>implement a watchdog timer using the opb_timebase_wdt IP core. I'm
>currently using ISE/EDK 8.2.02i, and the WDT version is 1.00a.
>
>The watchdog timer otherwise works fine. I can start/stop/reset the
>timer with no problem. The trouble is that when the watchdog timer
>DOES cause a reset, it won't release the reset line, which was
>effectively locking up the system. It did NOT respond like the
>datasheet.
>
>To solve the immediate problem, I have inserted an edge detector into
>the reset control logic, which allows the system to reboot, but I
>can't get the WDT_Reset signal to go low at all. The end result is
>that the WDT can only reset the system once.


>What am I missing here?


Ummm, the watchdog isn't clocked from the DCM, by any chance?
I have seen a cunning synchronous reset block rendered completely
inoperative by the fact that its own clock went away while it held the
DCM in reset!

- Brian
Reply With Quote
  #4 (permalink)  
Old 03-28-2007, 06:04 PM
Alan Nishioka
Guest
 
Posts: n/a
Default Re: (Xilinx) OPB watchdog timer fails to release RESET

On Mar 27, 11:14 am, "radarman" <jsham...@gmail.com> wrote:
> The watchdog timer otherwise works fine. I can start/stop/reset the
> timer with no problem. The trouble is that when the watchdog timer
> DOES cause a reset, it won't release the reset line, which was
> effectively locking up the system. It did NOT respond like the
> datasheet.


The source in /cygdrive/c/EDK81/hw/XilinxProcessorIPLib/pcores/
opb_timebase_wdt_v1_00_a/hdl/vhdl/timebase_wdt_core.vhd says that the
state machine will only leave the ExpiredTwice state on OPB_Rst.

So you need an OPB_Rst to release the WDT_Reset line.

Alan Nishioka

Reply With Quote
  #5 (permalink)  
Old 03-30-2007, 11:14 PM
radarman
Guest
 
Posts: n/a
Default Re: (Xilinx) OPB watchdog timer fails to release RESET

On Mar 28, 11:04 am, "Alan Nishioka" <a...@nishioka.com> wrote:
> On Mar 27, 11:14 am, "radarman" <jsham...@gmail.com> wrote:
>
> > The watchdog timer otherwise works fine. I can start/stop/reset the
> > timer with no problem. The trouble is that when the watchdog timer
> > DOES cause a reset, it won't release the reset line, which was
> > effectively locking up the system. It did NOT respond like the
> > datasheet.

>
> The source in /cygdrive/c/EDK81/hw/XilinxProcessorIPLib/pcores/
> opb_timebase_wdt_v1_00_a/hdl/vhdl/timebase_wdt_core.vhd says that the
> state machine will only leave the ExpiredTwice state on OPB_Rst.
>
> So you need an OPB_Rst to release the WDT_Reset line.
>
> Alan Nishioka


After I inserted the edge detector, the OPB reset was being released.
The trouble is that the watchdog timer refused to release ITS reset
output, even after OPB Reset cycled..

The reset controller is operating from the input clock, not the DCM
clock. It has to, in order to bring the dcm out of reset. The clock on
this board is a bit difficult, because it's not free-running at
configuration time.

Ultimately, the problem was solved another way. We have an async reset
line going to another FPGA that can handle the problem. If the
communications link goes down, the controller will just hit the "reset
button"

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
timer program [email protected] Verilog 5 11-04-2008 11:20 AM
Fisrt timer... [email protected] Verilog 4 10-14-2008 06:36 PM
Conversion from Xilinx ISE 7 to 8 fails kron FPGA 0 01-29-2007 02:56 PM
Xilinx MIG fails [email protected] FPGA 2 09-22-2006 03:53 PM
OPB Timer MicroBlaze Raymond FPGA 2 05-23-2006 01:44 PM


All times are GMT +1. The time now is 03:31 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved