|
|
|
|
|
Xilinx User Community Forums :
Design Tools :
Design Entry :
How to Add a Clock in ISE?
|
|
|
|
|

|
How to Add a Clock in ISE?
|
|
jonathan.ross
Visitor
Posts: 13
Registered: 05-29-2009

Message 1 of 12

Viewed 323 times
|

|
|
I apologize for the naivety, but I can't deduce how to introduce a clock into my VHDL project in ISE. I need a single clock with synchronized 125MHZ and 500MHZ outputs, so I went through the core generator and used the Clocking Wizard to create, what I thought, was a clock resource. I see the result under the design tab, but I can't figure out how to access the outputs from it and link them to my components. Further, I still don't know how to connect the inputs and outputs of my components to those of the FPGA chip. If it matters, this is supposed to be for a Virtex-6 LX240 (ML605). I'm doing this while I wait for a reference design to become available and the product to ship, which is why I'm trying to connect pins and clocks up myself.
|
Solved!
 Go to Solution
|
|
|
11-01-2009 01:59 PM
|
|
|
|
|

|
Re: How to Add a Clock in ISE?
|
|
drjohnsmith
Expert Contributor
Posts: 272
Registered: 07-09-2009

Message 2 of 12

Viewed 308 times
|

|
|
Hi A clock source, as in an oscilator ? You need to provide the signal into your chip / design form outside. In a test bench, to generate the orriginal clock you do something like, process begin clk <= '0'; wait for 5 ns; clk <= '1'; wait for 5 ns;
end process; this toggles the output 'clk' every 5 ns, giving a 10 ns period, i.e. 100 MHz. Please remeber this is only in a test bench, this can NOT be synthesised to go into the FPGA.
|
|
|
|
11-02-2009 04:06 AM
|
|
|
|
|

|
Re: How to Add a Clock in ISE?
|
|
jonathan.ross
Visitor
Posts: 13
Registered: 05-29-2009

Message 3 of 12

Viewed 303 times
|

|
|
Thanks. I did have a working testbench already. Since synthesizing and simulating are different I wanted to make sure my project was correct by synthesizing, placing, and routing it, and also running some post synthesis simulations. If I wait for the ML605 reference designs to come out, who knows how far off my design could be from what can by synthesized. However, when I try to synthesize I'm told there's no clock, and therefore all of my entities are eliminated from the design. If I need to provide the signal from outside, I assume that it comes in on some pin, and then the Xilinx clock wizard is for giving me whatever frequency I need out of that. Besides actually getting a clock signal into my project, I'm worried about whether or not ISE will be smart enough to automatically route the clock signal over the low skew pathways specifically designed for clock signals, and... well... I'm just worried in general that I'm doing things correctly. I want to make sure I both get a clock signal in, and that I get it in the right way. First, however, how do I get it in so that I can synthesize my project? Thanks!
|
|
|
|
11-02-2009 09:31 AM
|
|
|
|
|

|
Re: How to Add a Clock in ISE?
|
|
drjohnsmith
Expert Contributor
Posts: 272
Registered: 07-09-2009

Message 4 of 12

Viewed 294 times
|

|
|
Hi Ok, clock is just another IO pin of the FPGA. If your in VHDL, all IO pins will be ports in the top level. And ISE will automatically point them at IO pins. Use the UCF file to allocate pins to actual pin number, and also the voltage / drive settings etc. Very simple approximation, Is ISE smart, no, like all other synthesisers it's very dumb. 'all' its trying to do is implement the design so that it meets the timing constraints you have set. If you set none in the UCF, then synth will just do what it wants to make the design. Again very simply, if your using global clocks ( as you should unless it's REAL complex ), clock routing in the FPGA is hard wired, So don't worry. Set your constraint in the UCF, period and pin type / placement are the most important ones, and all will be fine. Have you worked your way through any of the tutorials available from Xilinx ?
|
|
|
|
11-02-2009 10:10 AM
|
|
|
|
|
|
|
|
|

|
Re: How to Add a Clock in ISE?
|
|
drjohnsmith
Expert Contributor
Posts: 272
Registered: 07-09-2009

Message 7 of 12

Viewed 228 times
|

|
|
Hi we're obviously talking at cross putpose here, If it's not simulation, would use a wire be a good enough answer ? what board are yopu using ?
|
|
|
|
11-05-2009 08:11 AM
|
|
|
|
|

|
Re: How to Add a Clock in ISE?
|
|
jonathan.ross
Visitor
Posts: 13
Registered: 05-29-2009

Message 8 of 12

Viewed 227 times
|

|
|
Well, unfortunatly, I don't know what "use a wire" means... I don't yet have a board, or reference design, but it will be the ML605. I created a design from scratch, and I can do unit tests without a problem by driving the clk signal myself using the wait keyword, but I can't get the clock connected to my clk signal when I synthesize because wait is not a synthesizable construct. How do I "use a wire?"
|
|
|
|
11-05-2009 08:31 AM
|
|
|
|
|
|
|
|
|
|
|
|
|