Re: Counter clocks on both edges sometimes, but not when different IO pin is used
- From: "Nial Stewart" <nial*REMOVE_THIS*@nialstewartdevelopments.co.uk>
- Date: Mon, 16 May 2011 12:29:00 +0100
In this case, the solution is not to clock anything with your muxed
'clocks' since there is nothing that actually needs to be clocked with
those signals. Instead you should mux those input 'clocks' to create
a logic signal that you then synchronize to your FPGA's clock
I would probably take it a step further and synchronise the two 'clocks' to
the FPGA clock at the IO then select which of the two synchronised inputs is
used as the enable for the counter.
Generalising....
Mr CRC, FPGAs and the tools are designed to guarantee that the output of
one register clocked with one clock will get to the input of any other
register clocked with the same clock (as long as the build meets timing).
This is the beauty of the devices, you don't need to worry about timing,
just functionality.
Once you start introducing asynchronous clock transfers guaranteeing what happens
between them is difficult to constrain, and for the tools to analyse. This is
what needs to be carefully handled in your design.
It is easiest to design, constrain, guarantee meeting timing and so get
guaranteed functional devices if you keep the number of clocks to a minimum.
Preferably 1 (though this is rarely possible).
Nial.
.
- References:
- Counter clocks on both edges sometimes, but not when different IO pin is used
- From: Mr.CRC
- Re: Counter clocks on both edges sometimes, but not when different IO pin is used
- From: Joel Williams
- Re: Counter clocks on both edges sometimes, but not when different IO pin is used
- From: Mr.CRC
- Re: Counter clocks on both edges sometimes, but not when different IO pin is used
- From: KJ
- Re: Counter clocks on both edges sometimes, but not when different IO pin is used
- From: Mr.CRC
- Re: Counter clocks on both edges sometimes, but not when different IO pin is used
- From: KJ
- Counter clocks on both edges sometimes, but not when different IO pin is used
- Prev by Date: Random behavior of xilinx simple dual port block ram
- Next by Date: Re: Random behavior of xilinx simple dual port block ram
- Previous by thread: Re: Counter clocks on both edges sometimes, but not when different IO pin is used
- Next by thread: Re: Counter clocks on both edges sometimes, but not when different IO pin is used
- Index(es):
Relevant Pages
|