UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor luan
Visitor
3,085 Views
Registered: ‎04-23-2010

Help, how do I assign GBUF as a GCLK??

Hi,

 

I'm working on a small project and i'm a begginer in VHDL.

 

I am using a Spartan 2 and I'm clocking it at a rate of 32MHz. I then have scaled the clock down to 8 MHz.

I now want to use my scaled clock (8MHz clock) to clock my implemented design.

 

In my VHDL code I have decleared the scaled clock as a buffer wich is than synthesised by Xilinx ISE 6.2 as an output!

I have been reading on different online posts that I should declare the scaled clock as an IBUF and than copy it to a GBUF in order to use it as a clock.

 

I am very unclear with this, do I declare it as a GBUF in my VHDL code or do I make these changes in the constrain file? What would be the correct syntaxing for it?

 

Please help as I'm stuck, can't get my head around this!

 

Thanks in addvance

 

Luan!

0 Kudos
2 Replies
Advisor eilert
Advisor
3,078 Views
Registered: ‎08-14-2007

Re: Help, how do I assign GBUF as a GCLK??

Hi,

when you are designing in VHDL (or verilog) it's not necessary to do anything at all, but assign the clock net to the desired pin in the UCF file.

XST automatically recognizes this net as a clock net and inserts the correct buffers.

 

Manual instantiation of clock elements is only necessary when dealing with DCMs, and even then only when you want to do special things.

 

To be sure, wether your design was implemented as desired or not, you can take a look at the final design in the FPGA-editor.

 

Have a nice synthesis

  Eilert 

0 Kudos
Visitor luan
Visitor
3,075 Views
Registered: ‎04-23-2010

Re: Help, how do I assign GBUF as a GCLK??

Hi Eilert,

 

Thanks for the reply.

 

I have now solved the problem.

 

Thank you once again!

0 Kudos