Hi all, I have a vhdl component with a "clock_in" input. Depending on the mode of operation, I want to switch between two different clock signals. I will never switch on the fly though. Can I use a mux in front of the clock_in input? I'm afraid it might glitch. Thanks David
Selecting between two clock signals
Started by ●August 28, 2003
Reply by ●August 28, 20032003-08-28
"David Lamb" <gretzteam_nospam@yahoo.com> wrote in message news:bilfne$sel$1@home.itg.ti.com...> Hi all, > I have a vhdl component with a "clock_in" input. Depending on the mode of > operation, I want to switch between two different clock signals. I will > never switch on the fly though. Can I use a mux in front of the clock_in > input? I'm afraid it might glitch. > Thanks > David > >David, Do a query for 'clock sources' in the category 'XCELL Journals' on the Xilinx web site. This will provide you with a link called 'XCELL 24 - Trouble-Free Switching Between Clocks (Q1 97)', which, in turn will lead you to xl24_20.pdf, a neat little circuit that hopefully will ease your worries :) Keep in mind that whatever you put in the clock path will affect the setup and hold time requirements for the particular component. Take care, Marten ] remove the obvious to repy by e-mail [
Reply by ●August 28, 20032003-08-28
this is dependant on what chip he is using - is this only a xilinx newsgroup? Marten wrote:>"David Lamb" <gretzteam_nospam@yahoo.com> wrote in message >news:bilfne$sel$1@home.itg.ti.com... > > >>Hi all, >>I have a vhdl component with a "clock_in" input. Depending on the mode of >>operation, I want to switch between two different clock signals. I will >>never switch on the fly though. Can I use a mux in front of the clock_in >>input? I'm afraid it might glitch. >>Thanks >>David >> >> >> >> > >David, > >Do a query for 'clock sources' in the category 'XCELL Journals' on the >Xilinx web site. This will provide you with a link called 'XCELL 24 - >Trouble-Free Switching Between Clocks (Q1 97)', which, in turn will lead you >to xl24_20.pdf, a neat little circuit that hopefully will ease your worries >:) > >Keep in mind that whatever you put in the clock path will affect the setup >and hold time requirements for the particular component. > >Take care, > > >Marten > >] remove the obvious to repy by e-mail [ > > > >
Reply by ●August 28, 20032003-08-28
Fortunately there are things that come out of Xilinx that are applicable to all digital logic. That XCELL article is one of them if you chose to look. "Andrew Paule" <lsboogy@qwest.net> wrote in message news:a2t3b.29$qq3.17593@news.uswest.net...> this is dependant on what chip he is using - is this only a xilinx > newsgroup? > > Marten wrote: > > >"David Lamb" <gretzteam_nospam@yahoo.com> wrote in message > >news:bilfne$sel$1@home.itg.ti.com... > > > > > >>Hi all, > >>I have a vhdl component with a "clock_in" input. Depending on the modeof> >>operation, I want to switch between two different clock signals. I will > >>never switch on the fly though. Can I use a mux in front of theclock_in> >>input? I'm afraid it might glitch. > >>Thanks > >>David > >> > >> > > > >David, > > > >Do a query for 'clock sources' in the category 'XCELL Journals' on the > >Xilinx web site. This will provide you with a link called 'XCELL 24 - > >Trouble-Free Switching Between Clocks (Q1 97)', which, in turn will leadyou> >to xl24_20.pdf, a neat little circuit that hopefully will ease yourworries> >:) > > > >Keep in mind that whatever you put in the clock path will affect thesetup> >and hold time requirements for the particular component. > > > >Take care, > > > > > >Marten
Reply by ●August 28, 20032003-08-28
Click at http://www.xilinx.com/xcell/xl24/xl24_20.pdf This circuit allows totally asynchronous selection between two clock sources. But remember: both clock must be wiggling (however slowly). You cannot use this circuit to enable/disable a clock, which is actually a far simpler problem. The BUFGMUX in Virtex is not quite this clever, it has a set-up time requirement on the S control input. :-( Glad that someone found this old tidbit useful... Peter Alfke ============================= Marten wrote:> > "David Lamb" <gretzteam_nospam@yahoo.com> wrote in message > news:bilfne$sel$1@home.itg.ti.com... > > Hi all, > > I have a vhdl component with a "clock_in" input. Depending on the mode of > > operation, I want to switch between two different clock signals. I will > > never switch on the fly though. Can I use a mux in front of the clock_in > > input? I'm afraid it might glitch. > > Thanks > > David > > > > > > David, > > Do a query for 'clock sources' in the category 'XCELL Journals' on the > Xilinx web site. This will provide you with a link called 'XCELL 24 - > Trouble-Free Switching Between Clocks (Q1 97)', which, in turn will lead you > to xl24_20.pdf, a neat little circuit that hopefully will ease your worries > :) > > Keep in mind that whatever you put in the clock path will affect the setup > and hold time requirements for the particular component. > > Take care, > > Marten > > ] remove the obvious to repy by e-mail [
Reply by ●August 29, 20032003-08-29
Peter Alfke <peter@xilinx.com> wrote: : Click at : http://www.xilinx.com/xcell/xl24/xl24_20.pdf : This circuit allows totally asynchronous selection between two clock sources. : But remember: both clock must be wiggling (however slowly). You cannot : use this circuit to enable/disable a clock, which is actually a far : simpler problem. : The BUFGMUX in Virtex is not quite this clever, it has a set-up time : requirement on the S control input. :-( Peter, what happens if this setup time is violated? Will the BUFGMUX stall (no more output clock until some reset), will it produce a runt ( some clock pulse smaller than any of both input clocks) or will it switch clocks only delayed? I didn't find anything in the datasheet. Nye -- Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Reply by ●August 29, 20032003-08-29
Uwe Bonnes wrote:> > Peter, > > what happens if this setup time is violated? Will the BUFGMUX stall (no more > output clock until some reset), will it produce a runt ( some clock pulse > smaller than any of both input clocks) or will it switch clocks only > delayed? I didn't find anything in the datasheet.I don't know off-hand,. Will look into this when I am back from the European FPL2003 conference, i.e. Sept 8. Peter Alfke> > Nye > -- > Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de > > Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt > --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Reply by ●September 2, 20032003-09-02
Uwe, If the setup is violated, there may be a runt pulse. It will not stall, as soon as the next set of control signals comes along, it will operate normally again. Austin Uwe Bonnes wrote:> Peter Alfke <peter@xilinx.com> wrote: > : Click at > : http://www.xilinx.com/xcell/xl24/xl24_20.pdf > > : This circuit allows totally asynchronous selection between two clock sources. > : But remember: both clock must be wiggling (however slowly). You cannot > : use this circuit to enable/disable a clock, which is actually a far > : simpler problem. > : The BUFGMUX in Virtex is not quite this clever, it has a set-up time > : requirement on the S control input. :-( > > Peter, > > what happens if this setup time is violated? Will the BUFGMUX stall (no more > output clock until some reset), will it produce a runt ( some clock pulse > smaller than any of both input clocks) or will it switch clocks only > delayed? I didn't find anything in the datasheet. > > Nye > -- > Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de > > Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt > --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Reply by ●September 2, 20032003-09-02
Jay, Better in a relative sense: it does not have a setup time requirement (Peter's circuit). But, Peter's circuit does not match all delays, and keep the skew to 0 as part of the DCM feedback loop, either. Austin Jay wrote:> Peter, > > So you mean this circuit is better than the BUFGMUX? > > "Peter Alfke" <peter@xilinx.com> ??????:3F4E7B2D.CFBD1D0D@xilinx.com... > > Click at > > http://www.xilinx.com/xcell/xl24/xl24_20.pdf > > > > This circuit allows totally asynchronous selection between two clock > sources. > > But remember: both clock must be wiggling (however slowly). You cannot > > use this circuit to enable/disable a clock, which is actually a far > > simpler problem. > > The BUFGMUX in Virtex is not quite this clever, it has a set-up time > > requirement on the S control input. :-( > > Glad that someone found this old tidbit useful... > > Peter Alfke > > ============================= > > Marten wrote: > > > > > > "David Lamb" <gretzteam_nospam@yahoo.com> wrote in message > > > news:bilfne$sel$1@home.itg.ti.com... > > > > Hi all, > > > > I have a vhdl component with a "clock_in" input. Depending on the mode > of > > > > operation, I want to switch between two different clock signals. I > will > > > > never switch on the fly though. Can I use a mux in front of the > clock_in > > > > input? I'm afraid it might glitch. > > > > Thanks > > > > David > > > > > > > > > > > > > > David, > > > > > > Do a query for 'clock sources' in the category 'XCELL Journals' on the > > > Xilinx web site. This will provide you with a link called 'XCELL 24 - > > > Trouble-Free Switching Between Clocks (Q1 97)', which, in turn will lead > you > > > to xl24_20.pdf, a neat little circuit that hopefully will ease your > worries > > > :) > > > > > > Keep in mind that whatever you put in the clock path will affect the > setup > > > and hold time requirements for the particular component. > > > > > > Take care, > > > > > > Marten > > > > > > ] remove the obvious to repy by e-mail [
Reply by ●September 3, 20032003-09-03
Hi, I used your circuit to switch between the two clocks. However, when I synthetise in Xilinx ISE 5.2, I get the following warning: (*) These 2 clock signal(s) are generated by combinatorial logic, and XST is not able to identify which are the primary clock signals. Please use the CLOCK_SIGNAL constraint to specify the clock signal(s) generated by combinatorial logic. I don't really understand what it means. I guess I need to tell ISE that the output of the circuit is a clock, but I don't know how... Thanks a lot David "Peter Alfke" <peter@xilinx.com> wrote in message news:3F4E7B2D.CFBD1D0D@xilinx.com...> Click at > http://www.xilinx.com/xcell/xl24/xl24_20.pdf > > This circuit allows totally asynchronous selection between two clocksources.> But remember: both clock must be wiggling (however slowly). You cannot > use this circuit to enable/disable a clock, which is actually a far > simpler problem. > The BUFGMUX in Virtex is not quite this clever, it has a set-up time > requirement on the S control input. :-( > Glad that someone found this old tidbit useful... > Peter Alfke > ============================= > Marten wrote: > > > > "David Lamb" <gretzteam_nospam@yahoo.com> wrote in message > > news:bilfne$sel$1@home.itg.ti.com... > > > Hi all, > > > I have a vhdl component with a "clock_in" input. Depending on the modeof> > > operation, I want to switch between two different clock signals. Iwill> > > never switch on the fly though. Can I use a mux in front of theclock_in> > > input? I'm afraid it might glitch. > > > Thanks > > > David > > > > > > > > > > David, > > > > Do a query for 'clock sources' in the category 'XCELL Journals' on the > > Xilinx web site. This will provide you with a link called 'XCELL 24 - > > Trouble-Free Switching Between Clocks (Q1 97)', which, in turn will leadyou> > to xl24_20.pdf, a neat little circuit that hopefully will ease yourworries> > :) > > > > Keep in mind that whatever you put in the clock path will affect thesetup> > and hold time requirements for the particular component. > > > > Take care, > > > > Marten > > > > ] remove the obvious to repy by e-mail [




