Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Contributor
bkazour
Posts: 44
Registered: ‎01-05-2010
0

Wake-up Reset mode

Hello,

I have taken it as a programming habbit to write my modules in the following manner:

always @(negedge rst_n or posedge clk)  begin

     if(rst_n == 0) begin

     ...

    end else begin

    ......

    end

end

Now, Assuming there is no external device to do this resetting initially, is there a way to start the system in reset mode ?

 

Thank you

Expert Contributor
evgenis1
Posts: 338
Registered: ‎12-03-2007
0

Re: Wake-up Reset mode

One way of doing it is to connect "rst_n" to the 'locked" output of the DCM, if you use it for the "clk".

I understand you're using Spartan. In Virtex-5 you could've used EOS output of the STARTUP_VIRTEX5 primitive. EOS is asserted at the end of the FPGA configuration.

 

 

 

Hope that helps,

OutputLogic 

Contributor
bkazour
Posts: 44
Registered: ‎01-05-2010
0

Re: Wake-up Reset mode

Hello,

For now, i am not using the DCM, but this may be a very good idea, i will try it and see what happens.

Frankly, i was thinking of finding a way to connect the DONE pin to inside the FPGA, dunno if that is even possible

Contributor
bkazour
Posts: 44
Registered: ‎01-05-2010
0

Re: Wake-up Reset mode

I was doing some reading, and i found that there is a global set/reset GSR provided.

i looked in the code provided by xilinx, and i found that it is instantiated as follows:

 

tri0 GSR = glbl.GSR;

 

I tried it and it didn't synthesize complaining that glbl doesn't exist.

i instantiated the glbl module, but still xilinx couldn't find it, even though i am using some of xilinx's primitives and they used and it is compiled correctly.

Is there anything i am missing in using this module ?

 

Thanks

 

Expert Contributor
evgenis1
Posts: 338
Registered: ‎12-03-2007
0

Re: Wake-up Reset mode

Hi,

 

glbl is only used for simulation: http://www.xilinx.com/support/answers/6537.htm

 

 

 

Thanks,

OutputLogic

Contributor
bkazour
Posts: 44
Registered: ‎01-05-2010
0

Re: Wake-up Reset mode

Oops !
i didn't pay attention to that !
It seems that the DCM is the best solution for now
Thank you