cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
3,136 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
Highlighted
Teacher
Teacher
3,129 Views
Registered: ‎08-14-2007

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
Highlighted
Visitor
Visitor
3,126 Views
Registered: ‎04-23-2010

Hi Eilert,

 

Thanks for the reply.

 

I have now solved the problem.

 

Thank you once again!

0 Kudos