Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #488123 > unrolled thread
| Started by | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| First post | 2017-12-13 19:43 -0800 |
| Last post | 2017-12-16 11:59 -0600 |
| Articles | 20 on this page of 48 — 12 participants |
Back to article view | Back to sci.electronics.design
FPGA one-shot John Larkin <jjlarkin@highlandtechnology.com> - 2017-12-13 19:43 -0800
Re: FPGA one-shot krw@notreal.com - 2017-12-13 22:57 -0500
Re: FPGA one-shot John Larkin <jjlarkin@highlandtechnology.com> - 2017-12-13 20:02 -0800
Re: FPGA one-shot Richard Damon <Richard@Damon-Family.org> - 2017-12-13 23:29 -0500
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-14 02:10 -0500
Re: FPGA one-shot Theo Markettos <theom+news@chiark.greenend.org.uk> - 2017-12-14 11:44 +0000
Re: FPGA one-shot John Larkin <jjlarkin@highlandtechnology.com> - 2017-12-14 08:54 -0800
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-14 12:39 -0500
Re: FPGA one-shot krw@notreal.com - 2017-12-14 09:12 -0500
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-14 10:02 -0500
Re: FPGA one-shot krw@notreal.com - 2017-12-14 10:35 -0500
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-14 12:50 -0500
Re: FPGA one-shot krw@notreal.com - 2017-12-14 21:59 -0500
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-15 00:56 -0500
Re: FPGA one-shot krw@notreal.com - 2017-12-15 07:19 -0500
Re: FPGA one-shot whit3rd <whit3rd@gmail.com> - 2017-12-14 00:52 -0800
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-14 09:53 -0500
Re: FPGA one-shot Allan Herriman <allanherriman@hotmail.com> - 2017-12-14 10:49 +0000
Re: FPGA one-shot Allan Herriman <allanherriman@hotmail.com> - 2017-12-14 11:39 +0000
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-14 10:18 -0500
Re: FPGA one-shot Allan Herriman <allanherriman@hotmail.com> - 2017-12-15 10:21 +0000
Re: FPGA one-shot krw@notreal.com - 2017-12-15 07:21 -0500
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-15 10:57 -0500
Re: FPGA one-shot Allan Herriman <allanherriman@hotmail.com> - 2017-12-16 09:50 +0000
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-16 09:27 -0500
Re: FPGA one-shot Allan Herriman <allanherriman@hotmail.com> - 2017-12-16 16:32 +0000
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-16 12:44 -0500
Re: FPGA one-shot Allan Herriman <allanherriman@hotmail.com> - 2017-12-18 08:54 +0000
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-18 12:07 -0500
Re: FPGA one-shot Allan Herriman <allanherriman@hotmail.com> - 2017-12-19 10:11 +0000
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-19 09:30 -0500
Re: FPGA one-shot John Larkin <jjlarkin@highlandtechnology.com> - 2017-12-19 07:29 -0800
Re: FPGA one-shot John Larkin <jjlarkin@highland_snip_technology.com> - 2017-12-14 10:31 -0800
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-14 14:06 -0500
Re: FPGA one-shot bloggs.fredbloggs.fred@gmail.com - 2017-12-14 07:33 -0800
Re: FPGA one-shot John Larkin <jjlarkin@highlandtechnology.com> - 2017-12-14 09:09 -0800
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-14 12:45 -0500
Re: FPGA one-shot Jon Elson <jmelson@wustl.edu> - 2017-12-14 13:56 -0600
Re: FPGA one-shot Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-12-14 11:05 -0800
Re: FPGA one-shot John Larkin <jjlarkin@highland_snip_technology.com> - 2017-12-14 11:23 -0800
Re: FPGA one-shot Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-12-14 11:35 -0800
Re: FPGA one-shot John Larkin <jjlarkin@highland_snip_technology.com> - 2017-12-14 13:24 -0800
Re: FPGA one-shot Jon Elson <jmelson@wustl.edu> - 2017-12-14 13:49 -0600
Re: FPGA one-shot rickman <gnuarm@gmail.com> - 2017-12-14 15:03 -0500
Re: FPGA one-shot John Larkin <jjlarkin@highland_snip_technology.com> - 2017-12-14 13:34 -0800
Re: FPGA one-shot Jon Elson <jmelson@wustl.edu> - 2017-12-15 15:50 -0600
Re: FPGA one-shot John Larkin <jjlarkin@highland_snip_technology.com> - 2017-12-15 15:10 -0800
Re: FPGA one-shot Les Cargill <lcargill99@comcast.com> - 2017-12-16 11:59 -0600
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
| From | Allan Herriman <allanherriman@hotmail.com> |
|---|---|
| Date | 2017-12-15 10:21 +0000 |
| Message-ID | <5a33a235$0$1563$b1db1813$ba189b79@news.astraweb.com> |
| In reply to | #488176 |
On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: > Allan Herriman wrote on 12/14/2017 6:39 AM: >> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >> >> >>> The placement and routing is quite easy to control from your favourite >>> HDL, once you know how. This is important to get right as otherwise the >>> results will not be repeatable. >> >> This Xilinx forum thread gives some examples of placement and routing in VHDL: >> >> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated-ring- oscillator/m-p/808774/highlight/true#M5557 > > When you say "routing", it doesn't appear to deal with the actual routing. > He does mention that the attributes assign specific I/Os on the LUTs and so > which pin is connected to which is determined. But the routing > interconnects still need to be wired up in the chip editor I believe. There is no manual step needed. Once you lock the pins, the routing will be fixed (to an extent). I haven't done manual routing on an FPGA since the '90s. I haven't done manual placement for a few months. Even then, it was all in the form of relative placements in HDL, so the tools still have the ability to move the entire macro around on the die. Allan
[toc] | [prev] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2017-12-15 07:21 -0500 |
| Message-ID | <gef73d5dub17a8gd27evbog9t3pqreepir@4ax.com> |
| In reply to | #488300 |
On 15 Dec 2017 10:21:42 GMT, Allan Herriman <allanherriman@hotmail.com> wrote: >On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: > >> Allan Herriman wrote on 12/14/2017 6:39 AM: >>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >>> >>> >>>> The placement and routing is quite easy to control from your favourite >>>> HDL, once you know how. This is important to get right as otherwise >the >>>> results will not be repeatable. >>> >>> This Xilinx forum thread gives some examples of placement and routing >in VHDL: >>> >>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated-ring- >oscillator/m-p/808774/highlight/true#M5557 >> >> When you say "routing", it doesn't appear to deal with the actual >routing. >> He does mention that the attributes assign specific I/Os on the LUTs >and so >> which pin is connected to which is determined. But the routing >> interconnects still need to be wired up in the chip editor I believe. > >There is no manual step needed. Once you lock the pins, the routing will >be fixed (to an extent). Nonsense. The next release of the routing software, or even the next modification to the HDL may completely change the routing. > >I haven't done manual routing on an FPGA since the '90s. Have you tuned for exact timing of asynchronous timing? >I haven't done manual placement for a few months. Even then, it was all >in the form of relative placements in HDL, so the tools still have the >ability to move the entire macro around on the die. ...and you're not controlling the largest variable, the routing.
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-12-15 10:57 -0500 |
| Message-ID | <p10re0$bm9$1@dont-email.me> |
| In reply to | #488300 |
Allan Herriman wrote on 12/15/2017 5:21 AM: > On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: > >> Allan Herriman wrote on 12/14/2017 6:39 AM: >>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >>> >>> >>>> The placement and routing is quite easy to control from your favourite >>>> HDL, once you know how. This is important to get right as otherwise > the >>>> results will not be repeatable. >>> >>> This Xilinx forum thread gives some examples of placement and routing > in VHDL: >>> >>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated-ring- > oscillator/m-p/808774/highlight/true#M5557 >> >> When you say "routing", it doesn't appear to deal with the actual > routing. >> He does mention that the attributes assign specific I/Os on the LUTs > and so >> which pin is connected to which is determined. But the routing >> interconnects still need to be wired up in the chip editor I believe. > > There is no manual step needed. Once you lock the pins, the routing will > be fixed (to an extent). "To an extent" is one of those things where the devil is in the details. Routing within a block is dedicated and either a path exists or it doesn't. But routing between blocks is much more flexible and so subject to variations depending on what the software chooses. It has been a long time since I opened up a Xilinx chip in the editor, but the interconnects have always been in levels. There are direct links between adjacent blocks, north, east, south and west. These are the fastest and not subject to much variation from routing choices since there aren't any choices other than use them or not. See the diagonal traces between blocks in the chip editor image in the link you provided? Those will not be direct traces. The software will have to pick a route through the routing matrix which can be very different from run to run. When the circuit has an async feedback path, the software can't time it, so there is no way to place a timing constraint to make it use a faster path. So the tools won't help you here. This has to be addressed manually on each run of the tools. You might be able to put together a script to semi-automate it, but you will need to handle this outside of the normal automated tool usage. It should be completely documented so it can be repeated anytime the device is touched. > I haven't done manual routing on an FPGA since the '90s. > > I haven't done manual placement for a few months. Even then, it was all > in the form of relative placements in HDL, so the tools still have the > ability to move the entire macro around on the die. Placement is easy, it can be done in the HDL. Routing is another matter altogether. There are (or were) things called "hard" macros. This is a piece of logic with routing that is already done and can be dropped into a design as an entity. I don't know if they are supported in HDL. I don't know they are still supported at all. Their down side is that nothing could be routed through the hard macro since the tools have no idea what can be used and what can't. I suspect it was just too hard a problem to deal with for the routing tools to work optimally. This is similar to the issues of partial reconfiguration. The partial reconfiguration was the easy part. Developing tools to support designing modules to use in partial reconfiguration was the hard part. Same problem, getting the tools to effectively route in just a portion of the chip. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | Allan Herriman <allanherriman@hotmail.com> |
|---|---|
| Date | 2017-12-16 09:50 +0000 |
| Message-ID | <5a34ec5f$0$26927$b1db1813$eb6074ea@news.astraweb.com> |
| In reply to | #488335 |
On Fri, 15 Dec 2017 10:57:50 -0500, rickman wrote: > Allan Herriman wrote on 12/15/2017 5:21 AM: >> On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: >> >>> Allan Herriman wrote on 12/14/2017 6:39 AM: >>>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >>>> >>>> >>>>> The placement and routing is quite easy to control from your >>>>> favourite HDL, once you know how. This is important to get right as >>>>> otherwise >> the >>>>> results will not be repeatable. >>>> >>>> This Xilinx forum thread gives some examples of placement and routing >> in VHDL: >>>> >>>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated-ring- >> oscillator/m-p/808774/highlight/true#M5557 >>> >>> When you say "routing", it doesn't appear to deal with the actual >> routing. >>> He does mention that the attributes assign specific I/Os on the LUTs >> and so >>> which pin is connected to which is determined. But the routing >>> interconnects still need to be wired up in the chip editor I believe. >> >> There is no manual step needed. Once you lock the pins, the routing >> will be fixed (to an extent). > > "To an extent" is one of those things where the devil is in the details. > Routing within a block is dedicated and either a path exists or it > doesn't. But routing between blocks is much more flexible and so subject > to variations depending on what the software chooses. In general, I agree with that. Look sideways at the PAR software or make a trivial change to the source code and it will do something completely different, and often something unexpected. Sometimes it will do something wildly suboptimal. But in this case, I believe Larkin has just one connection that will be contained within a single switch box next to the IOB. It will not use any inter-switchbox routing (with all the uncertainty that entails). My experience has been that in this particular case (and this particular case only), locking the pins correctly may remove any choice the router has, resulting in repeatable routing. (I won't say repeatable timing, because we still have PVT to worry about.) Depending on the exact switchbox resources used, this may also require that other routing be prohibited in that area to work. Perhaps I should point out that whilst I have done some of this sort of manual placement and routing recently, I have not done the exact route of IBUF output to OUTFF clear input. Sometimes there are quirks that do not become apparent until the design hits the tools. > It has been a long time since I opened up a Xilinx chip in the editor, 'nuf said. Allan
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-12-16 09:27 -0500 |
| Message-ID | <p13ags$ha0$1@dont-email.me> |
| In reply to | #488432 |
Allan Herriman wrote on 12/16/2017 4:50 AM: > On Fri, 15 Dec 2017 10:57:50 -0500, rickman wrote: > >> Allan Herriman wrote on 12/15/2017 5:21 AM: >>> On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: >>> >>>> Allan Herriman wrote on 12/14/2017 6:39 AM: >>>>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >>>>> >>>>> >>>>>> The placement and routing is quite easy to control from your >>>>>> favourite HDL, once you know how. This is important to get right as >>>>>> otherwise >>> the >>>>>> results will not be repeatable. >>>>> >>>>> This Xilinx forum thread gives some examples of placement and routing >>> in VHDL: >>>>> >>>>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated-ring- >>> oscillator/m-p/808774/highlight/true#M5557 >>>> >>>> When you say "routing", it doesn't appear to deal with the actual >>> routing. >>>> He does mention that the attributes assign specific I/Os on the LUTs >>> and so >>>> which pin is connected to which is determined. But the routing >>>> interconnects still need to be wired up in the chip editor I believe. >>> >>> There is no manual step needed. Once you lock the pins, the routing >>> will be fixed (to an extent). >> >> "To an extent" is one of those things where the devil is in the details. >> Routing within a block is dedicated and either a path exists or it >> doesn't. But routing between blocks is much more flexible and so subject >> to variations depending on what the software chooses. > > In general, I agree with that. Look sideways at the PAR software or make > a trivial change to the source code and it will do something completely > different, and often something unexpected. Sometimes it will do > something wildly suboptimal. > > But in this case, I believe Larkin has just one connection that will be > contained within a single switch box next to the IOB. It will not use > any inter-switchbox routing (with all the uncertainty that entails). > > My experience has been that in this particular case (and this particular > case only), locking the pins correctly may remove any choice the router > has, resulting in repeatable routing. (I won't say repeatable timing, > because we still have PVT to worry about.) > > Depending on the exact switchbox resources used, this may also require > that other routing be prohibited in that area to work. > > > Perhaps I should point out that whilst I have done some of this sort of > manual placement and routing recently, I have not done the exact route of > IBUF output to OUTFF clear input. Sometimes there are quirks that do not > become apparent until the design hits the tools. I guess my work with Xilinx parts is getting old. I didn't remember the IOB FFs *having* accessible async Clear/Preset inputs which would have required a FF from the fabric. But I looked at the Xynq data sheet and the IOB FF have accessible Clear/Preset inputs. So there will be routing on the general fabric as I expect there is no direct connection between the input and the Clear pin within the IOB. As to your presumption of this removing "any choice the router has", I think that is fallacious. The switch matrix is a general purpose routing medium and I have seen the tool do, as you say, "wildly suboptimal" routes. The only way to tell is to give it a try. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | Allan Herriman <allanherriman@hotmail.com> |
|---|---|
| Date | 2017-12-16 16:32 +0000 |
| Message-ID | <5a354a98$0$3119$b1db1813$ba189b79@news.astraweb.com> |
| In reply to | #488454 |
On Sat, 16 Dec 2017 09:27:37 -0500, rickman wrote: > Allan Herriman wrote on 12/16/2017 4:50 AM: >> On Fri, 15 Dec 2017 10:57:50 -0500, rickman wrote: >> >>> Allan Herriman wrote on 12/15/2017 5:21 AM: >>>> On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: >>>> >>>>> Allan Herriman wrote on 12/14/2017 6:39 AM: >>>>>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >>>>>> >>>>>> >>>>>>> The placement and routing is quite easy to control from your >>>>>>> favourite HDL, once you know how. This is important to get right >>>>>>> as otherwise >>>> the >>>>>>> results will not be repeatable. >>>>>> >>>>>> This Xilinx forum thread gives some examples of placement and >>>>>> routing >>>> in VHDL: >>>>>> >>>>>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated-ring- >>>> oscillator/m-p/808774/highlight/true#M5557 >>>>> >>>>> When you say "routing", it doesn't appear to deal with the actual >>>> routing. >>>>> He does mention that the attributes assign specific I/Os on the LUTs >>>> and so >>>>> which pin is connected to which is determined. But the routing >>>>> interconnects still need to be wired up in the chip editor I >>>>> believe. >>>> >>>> There is no manual step needed. Once you lock the pins, the routing >>>> will be fixed (to an extent). >>> >>> "To an extent" is one of those things where the devil is in the >>> details. >>> Routing within a block is dedicated and either a path exists or it >>> doesn't. But routing between blocks is much more flexible and so >>> subject to variations depending on what the software chooses. >> >> In general, I agree with that. Look sideways at the PAR software or >> make a trivial change to the source code and it will do something >> completely different, and often something unexpected. Sometimes it >> will do something wildly suboptimal. >> >> But in this case, I believe Larkin has just one connection that will be >> contained within a single switch box next to the IOB. It will not use >> any inter-switchbox routing (with all the uncertainty that entails). >> >> My experience has been that in this particular case (and this >> particular case only), locking the pins correctly may remove any choice >> the router has, resulting in repeatable routing. (I won't say >> repeatable timing, because we still have PVT to worry about.) >> >> Depending on the exact switchbox resources used, this may also require >> that other routing be prohibited in that area to work. >> >> >> Perhaps I should point out that whilst I have done some of this sort of >> manual placement and routing recently, I have not done the exact route >> of IBUF output to OUTFF clear input. Sometimes there are quirks that >> do not become apparent until the design hits the tools. > > I guess my work with Xilinx parts is getting old. I didn't remember the > IOB FFs *having* accessible async Clear/Preset inputs which would have > required a FF from the fabric. But I looked at the Xynq data sheet and > the IOB FF have accessible Clear/Preset inputs. So there will be > routing on the general fabric as I expect there is no direct connection > between the input and the Clear pin within the IOB. I can't try it here (I'm not at work and I deliberately don't have the tools installed at home) but I believe both signals appear on the same switchbox, which is about as close to a direct connection as one can get outside a slice. > As to your presumption of this removing "any choice the router has", I > think that is fallacious. The switch matrix is a general purpose > routing medium and I have seen the tool do, as you say, "wildly > suboptimal" routes. I'm fairly sure that rather than being general purpose, the switch matrix is sparse and doesn't support all input to output connections. (The exact details are not documented publicly.) With pin locking, one can force particular paths through the switchbox. This is based on my observations of tool behaviour rather than an inspection of the die, thus there is a chance that it is wrong as you suggest. Please note that I'm only referring to intra-switchbox routing. All bets are off once the routing goes outside the local switchbox. > The only way to tell is to give it a try. Oh yes. Allan
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-12-16 12:44 -0500 |
| Message-ID | <p13m2b$878$1@dont-email.me> |
| In reply to | #488467 |
Allan Herriman wrote on 12/16/2017 11:32 AM: > On Sat, 16 Dec 2017 09:27:37 -0500, rickman wrote: > >> Allan Herriman wrote on 12/16/2017 4:50 AM: >>> On Fri, 15 Dec 2017 10:57:50 -0500, rickman wrote: >>> >>>> Allan Herriman wrote on 12/15/2017 5:21 AM: >>>>> On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: >>>>> >>>>>> Allan Herriman wrote on 12/14/2017 6:39 AM: >>>>>>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >>>>>>> >>>>>>> >>>>>>>> The placement and routing is quite easy to control from your >>>>>>>> favourite HDL, once you know how. This is important to get right >>>>>>>> as otherwise >>>>> the >>>>>>>> results will not be repeatable. >>>>>>> >>>>>>> This Xilinx forum thread gives some examples of placement and >>>>>>> routing >>>>> in VHDL: >>>>>>> >>>>>>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated-ring- >>>>> oscillator/m-p/808774/highlight/true#M5557 >>>>>> >>>>>> When you say "routing", it doesn't appear to deal with the actual >>>>> routing. >>>>>> He does mention that the attributes assign specific I/Os on the LUTs >>>>> and so >>>>>> which pin is connected to which is determined. But the routing >>>>>> interconnects still need to be wired up in the chip editor I >>>>>> believe. >>>>> >>>>> There is no manual step needed. Once you lock the pins, the routing >>>>> will be fixed (to an extent). >>>> >>>> "To an extent" is one of those things where the devil is in the >>>> details. >>>> Routing within a block is dedicated and either a path exists or it >>>> doesn't. But routing between blocks is much more flexible and so >>>> subject to variations depending on what the software chooses. >>> >>> In general, I agree with that. Look sideways at the PAR software or >>> make a trivial change to the source code and it will do something >>> completely different, and often something unexpected. Sometimes it >>> will do something wildly suboptimal. >>> >>> But in this case, I believe Larkin has just one connection that will be >>> contained within a single switch box next to the IOB. It will not use >>> any inter-switchbox routing (with all the uncertainty that entails). >>> >>> My experience has been that in this particular case (and this >>> particular case only), locking the pins correctly may remove any choice >>> the router has, resulting in repeatable routing. (I won't say >>> repeatable timing, because we still have PVT to worry about.) >>> >>> Depending on the exact switchbox resources used, this may also require >>> that other routing be prohibited in that area to work. >>> >>> >>> Perhaps I should point out that whilst I have done some of this sort of >>> manual placement and routing recently, I have not done the exact route >>> of IBUF output to OUTFF clear input. Sometimes there are quirks that >>> do not become apparent until the design hits the tools. >> >> I guess my work with Xilinx parts is getting old. I didn't remember the >> IOB FFs *having* accessible async Clear/Preset inputs which would have >> required a FF from the fabric. But I looked at the Xynq data sheet and >> the IOB FF have accessible Clear/Preset inputs. So there will be >> routing on the general fabric as I expect there is no direct connection >> between the input and the Clear pin within the IOB. > > > I can't try it here (I'm not at work and I deliberately don't have the > tools installed at home) but I believe both signals appear on the same > switchbox, which is about as close to a direct connection as one can get > outside a slice. > > >> As to your presumption of this removing "any choice the router has", I >> think that is fallacious. The switch matrix is a general purpose >> routing medium and I have seen the tool do, as you say, "wildly >> suboptimal" routes. > > > I'm fairly sure that rather than being general purpose, the switch matrix > is sparse and doesn't support all input to output connections. (The > exact details are not documented publicly.) With pin locking, one can > force particular paths through the switchbox. This is based on my > observations of tool behaviour rather than an inspection of the die, thus > there is a chance that it is wrong as you suggest. > > Please note that I'm only referring to intra-switchbox routing. All bets > are off once the routing goes outside the local switchbox. > > >> The only way to tell is to give it a try. > > Oh yes. You are more familiar with the newer devices than I am. The issue isn't even if you can get the route through the local switchbox. It is whether it will always pick the same route. As you say, the switch matrix is somewhat sparse, but the issue is whether it goes through a single switchbox or not. I guess we'll find out when John tries it. I thought the problem was going to be the lack of a reset pin on the IOB FF which would have forced the use of a fabric FF with routing to/from the IOB. Then I think the locking of LUTs (for delay) and the FF to a single CLB would have been the approach with the best shot at producing a controlled pulse width even if the routing delay to the IOB would have been variable. But that can be constrained since it is a path from the "clock" (trigger input) to the output pin. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | Allan Herriman <allanherriman@hotmail.com> |
|---|---|
| Date | 2017-12-18 08:54 +0000 |
| Message-ID | <5a37824a$0$3130$b1db1813$ba189b79@news.astraweb.com> |
| In reply to | #488475 |
On Sat, 16 Dec 2017 12:44:35 -0500, rickman wrote:
> Allan Herriman wrote on 12/16/2017 11:32 AM:
>> On Sat, 16 Dec 2017 09:27:37 -0500, rickman wrote:
>>
>>> Allan Herriman wrote on 12/16/2017 4:50 AM:
>>>> On Fri, 15 Dec 2017 10:57:50 -0500, rickman wrote:
>>>>
>>>>> Allan Herriman wrote on 12/15/2017 5:21 AM:
>>>>>> On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote:
>>>>>>
>>>>>>> Allan Herriman wrote on 12/14/2017 6:39 AM:
>>>>>>>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> The placement and routing is quite easy to control from your
>>>>>>>>> favourite HDL, once you know how. This is important to get
>>>>>>>>> right as otherwise
>>>>>> the
>>>>>>>>> results will not be repeatable.
>>>>>>>>
>>>>>>>> This Xilinx forum thread gives some examples of placement and
>>>>>>>> routing
>>>>>> in VHDL:
>>>>>>>>
>>>>>>>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated-ring-
>>>>>> oscillator/m-p/808774/highlight/true#M5557
>>>>>>>
>>>>>>> When you say "routing", it doesn't appear to deal with the actual
>>>>>> routing.
>>>>>>> He does mention that the attributes assign specific I/Os on the
>>>>>>> LUTs
>>>>>> and so
>>>>>>> which pin is connected to which is determined. But the routing
>>>>>>> interconnects still need to be wired up in the chip editor I
>>>>>>> believe.
>>>>>>
>>>>>> There is no manual step needed. Once you lock the pins, the
>>>>>> routing will be fixed (to an extent).
>>>>>
>>>>> "To an extent" is one of those things where the devil is in the
>>>>> details.
>>>>> Routing within a block is dedicated and either a path exists or it
>>>>> doesn't. But routing between blocks is much more flexible and so
>>>>> subject to variations depending on what the software chooses.
>>>>
>>>> In general, I agree with that. Look sideways at the PAR software or
>>>> make a trivial change to the source code and it will do something
>>>> completely different, and often something unexpected. Sometimes it
>>>> will do something wildly suboptimal.
>>>>
>>>> But in this case, I believe Larkin has just one connection that will
>>>> be contained within a single switch box next to the IOB. It will not
>>>> use any inter-switchbox routing (with all the uncertainty that
>>>> entails).
>>>>
>>>> My experience has been that in this particular case (and this
>>>> particular case only), locking the pins correctly may remove any
>>>> choice the router has, resulting in repeatable routing. (I won't say
>>>> repeatable timing, because we still have PVT to worry about.)
>>>>
>>>> Depending on the exact switchbox resources used, this may also
>>>> require that other routing be prohibited in that area to work.
>>>>
>>>>
>>>> Perhaps I should point out that whilst I have done some of this sort
>>>> of manual placement and routing recently, I have not done the exact
>>>> route of IBUF output to OUTFF clear input. Sometimes there are
>>>> quirks that do not become apparent until the design hits the tools.
>>>
>>> I guess my work with Xilinx parts is getting old. I didn't remember
>>> the IOB FFs *having* accessible async Clear/Preset inputs which would
>>> have required a FF from the fabric. But I looked at the Xynq data
>>> sheet and the IOB FF have accessible Clear/Preset inputs. So there
>>> will be routing on the general fabric as I expect there is no direct
>>> connection between the input and the Clear pin within the IOB.
>>
>>
>> I can't try it here (I'm not at work and I deliberately don't have the
>> tools installed at home) but I believe both signals appear on the same
>> switchbox, which is about as close to a direct connection as one can
>> get outside a slice.
>>
>>
>>> As to your presumption of this removing "any choice the router has", I
>>> think that is fallacious. The switch matrix is a general purpose
>>> routing medium and I have seen the tool do, as you say, "wildly
>>> suboptimal" routes.
>>
>>
>> I'm fairly sure that rather than being general purpose, the switch
>> matrix is sparse and doesn't support all input to output connections.
>> (The exact details are not documented publicly.) With pin locking, one
>> can force particular paths through the switchbox. This is based on my
>> observations of tool behaviour rather than an inspection of the die,
>> thus there is a chance that it is wrong as you suggest.
>>
>> Please note that I'm only referring to intra-switchbox routing. All
>> bets are off once the routing goes outside the local switchbox.
>>
>>
>>> The only way to tell is to give it a try.
>>
>> Oh yes.
>
> You are more familiar with the newer devices than I am. The issue isn't
> even if you can get the route through the local switchbox. It is
> whether it will always pick the same route. As you say, the switch
> matrix is somewhat sparse, but the issue is whether it goes through a
> single switchbox or not. I guess we'll find out when John tries it.
>
> I thought the problem was going to be the lack of a reset pin on the IOB
> FF which would have forced the use of a fabric FF with routing to/from
> the IOB.
> Then I think the locking of LUTs (for delay) and the FF to a single
> CLB
> would have been the approach with the best shot at producing a
> controlled pulse width even if the routing delay to the IOB would have
> been variable. But that can be constrained since it is a path from the
> "clock" (trigger input) to the output pin.
I ran an experiment today at work. I used the following VHDL source in
the smallest Kintex 7 part (which has the same fabric as the OP's Zynq).
The net obuf_input (FF Q to pin driver) used dedicated routing and didn't
go through any switchboxes at all.
The net ibuf_output (which connects back to the FF reset input) was
restricted to the local switchbox as expected. It needed multiple passes
though the switchbox though, as clearly this isn't a connection that
Xilinx expects customers to use often.
I didn't check, but I imagine that the path through the switchbox would
change if other routing was also passing through the switchbox (which
does happen in a dense design).
I have not simulated this code or tested it in any way. Use at own risk.
library ieee;
use ieee.std_logic_1164.all;
library unisim;
use unisim.vcomponents.all;
entity larkin_oneshot is
generic (
IOSTANDARD : string := "LVCMOS18"
);
port (
trig : in std_logic;
oneshot_pin : inout std_logic
);
end entity larkin_oneshot;
architecture rtl of larkin_oneshot is
signal obuf_input : std_logic;
signal ibuf_output : std_logic;
begin -- architecture rtl of entity larkin_oneshot
iobuf_inst : component IOBUF
generic map (
IBUF_LOW_PWR => FALSE,
SLEW => "FAST",
IOSTANDARD => IOSTANDARD
)
port map (
O => ibuf_output,
IO => oneshot_pin,
I => obuf_input,
T => '0'
);
oddr_inst : component ODDR
generic map (
DDR_CLK_EDGE => "SAME_EDGE",
SRTYPE => "ASYNC"
)
port map (
Q => obuf_input,
C => trig,
CE => '1',
D1 => '1',
D2 => '1',
R => ibuf_output
);
end architecture rtl; -- of entity larkin_oneshot
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-12-18 12:07 -0500 |
| Message-ID | <p18skt$c8h$1@dont-email.me> |
| In reply to | #488670 |
Allan Herriman wrote on 12/18/2017 3:54 AM: > On Sat, 16 Dec 2017 12:44:35 -0500, rickman wrote: > >> Allan Herriman wrote on 12/16/2017 11:32 AM: >>> On Sat, 16 Dec 2017 09:27:37 -0500, rickman wrote: >>> >>>> Allan Herriman wrote on 12/16/2017 4:50 AM: >>>>> On Fri, 15 Dec 2017 10:57:50 -0500, rickman wrote: >>>>> >>>>>> Allan Herriman wrote on 12/15/2017 5:21 AM: >>>>>>> On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: >>>>>>> >>>>>>>> Allan Herriman wrote on 12/14/2017 6:39 AM: >>>>>>>>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>>> The placement and routing is quite easy to control from your >>>>>>>>>> favourite HDL, once you know how. This is important to get >>>>>>>>>> right as otherwise >>>>>>> the >>>>>>>>>> results will not be repeatable. >>>>>>>>> >>>>>>>>> This Xilinx forum thread gives some examples of placement and >>>>>>>>> routing >>>>>>> in VHDL: >>>>>>>>> >>>>>>>>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated-ring- >>>>>>> oscillator/m-p/808774/highlight/true#M5557 >>>>>>>> >>>>>>>> When you say "routing", it doesn't appear to deal with the actual >>>>>>> routing. >>>>>>>> He does mention that the attributes assign specific I/Os on the >>>>>>>> LUTs >>>>>>> and so >>>>>>>> which pin is connected to which is determined. But the routing >>>>>>>> interconnects still need to be wired up in the chip editor I >>>>>>>> believe. >>>>>>> >>>>>>> There is no manual step needed. Once you lock the pins, the >>>>>>> routing will be fixed (to an extent). >>>>>> >>>>>> "To an extent" is one of those things where the devil is in the >>>>>> details. >>>>>> Routing within a block is dedicated and either a path exists or it >>>>>> doesn't. But routing between blocks is much more flexible and so >>>>>> subject to variations depending on what the software chooses. >>>>> >>>>> In general, I agree with that. Look sideways at the PAR software or >>>>> make a trivial change to the source code and it will do something >>>>> completely different, and often something unexpected. Sometimes it >>>>> will do something wildly suboptimal. >>>>> >>>>> But in this case, I believe Larkin has just one connection that will >>>>> be contained within a single switch box next to the IOB. It will not >>>>> use any inter-switchbox routing (with all the uncertainty that >>>>> entails). >>>>> >>>>> My experience has been that in this particular case (and this >>>>> particular case only), locking the pins correctly may remove any >>>>> choice the router has, resulting in repeatable routing. (I won't say >>>>> repeatable timing, because we still have PVT to worry about.) >>>>> >>>>> Depending on the exact switchbox resources used, this may also >>>>> require that other routing be prohibited in that area to work. >>>>> >>>>> >>>>> Perhaps I should point out that whilst I have done some of this sort >>>>> of manual placement and routing recently, I have not done the exact >>>>> route of IBUF output to OUTFF clear input. Sometimes there are >>>>> quirks that do not become apparent until the design hits the tools. >>>> >>>> I guess my work with Xilinx parts is getting old. I didn't remember >>>> the IOB FFs *having* accessible async Clear/Preset inputs which would >>>> have required a FF from the fabric. But I looked at the Xynq data >>>> sheet and the IOB FF have accessible Clear/Preset inputs. So there >>>> will be routing on the general fabric as I expect there is no direct >>>> connection between the input and the Clear pin within the IOB. >>> >>> >>> I can't try it here (I'm not at work and I deliberately don't have the >>> tools installed at home) but I believe both signals appear on the same >>> switchbox, which is about as close to a direct connection as one can >>> get outside a slice. >>> >>> >>>> As to your presumption of this removing "any choice the router has", I >>>> think that is fallacious. The switch matrix is a general purpose >>>> routing medium and I have seen the tool do, as you say, "wildly >>>> suboptimal" routes. >>> >>> >>> I'm fairly sure that rather than being general purpose, the switch >>> matrix is sparse and doesn't support all input to output connections. >>> (The exact details are not documented publicly.) With pin locking, one >>> can force particular paths through the switchbox. This is based on my >>> observations of tool behaviour rather than an inspection of the die, >>> thus there is a chance that it is wrong as you suggest. >>> >>> Please note that I'm only referring to intra-switchbox routing. All >>> bets are off once the routing goes outside the local switchbox. >>> >>> >>>> The only way to tell is to give it a try. >>> >>> Oh yes. >> >> You are more familiar with the newer devices than I am. The issue isn't >> even if you can get the route through the local switchbox. It is >> whether it will always pick the same route. As you say, the switch >> matrix is somewhat sparse, but the issue is whether it goes through a >> single switchbox or not. I guess we'll find out when John tries it. >> >> I thought the problem was going to be the lack of a reset pin on the IOB >> FF which would have forced the use of a fabric FF with routing to/from >> the IOB. >> Then I think the locking of LUTs (for delay) and the FF to a single >> CLB >> would have been the approach with the best shot at producing a >> controlled pulse width even if the routing delay to the IOB would have >> been variable. But that can be constrained since it is a path from the >> "clock" (trigger input) to the output pin. > > > I ran an experiment today at work. I used the following VHDL source in > the smallest Kintex 7 part (which has the same fabric as the OP's Zynq). > The net obuf_input (FF Q to pin driver) used dedicated routing and didn't > go through any switchboxes at all. That's certainly expected. > The net ibuf_output (which connects back to the FF reset input) was > restricted to the local switchbox as expected. It needed multiple passes > though the switchbox though, as clearly this isn't a connection that > Xilinx expects customers to use often. > I didn't check, but I imagine that the path through the switchbox would > change if other routing was also passing through the switchbox (which > does happen in a dense design). > > I have not simulated this code or tested it in any way. Use at own risk. Interesting. Can you provide any details on the switch box routing, like an image, perhaps? Or should I install the tools and try it myself? I've always found the chip editor to be a messy tool to learn, but just looking at stuff hasn't been too hard. My main reason for not wanting to install the Xilinx tools is dealing with the licensing issues that always seem to be a PITA. I suspect there aren't too many choices for how to route the signal through the one switch box. But if the design is not otherwise empty and any of the switch box paths used in this iteration are used by another route, it may end up using multiple switch boxes resulting in significant routing delays. Adding a timing constraint for clock to output won't help with this feedback path. I don't recall if there are any timing constraints for such an async loop. They are hard for the tools to analyze which is the main reason for avoiding them like the plague. Yes, it can be made to work obviously, but FPGA companies have enough to do without supporting this sort of feature which would open huge cans of worms for them. So short of generating a timing analysis script, there will be no automation for even verifying timing of this path every time you route the design. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | Allan Herriman <allanherriman@hotmail.com> |
|---|---|
| Date | 2017-12-19 10:11 +0000 |
| Message-ID | <5a38e5eb$0$3145$b1db1813$ba189b79@news.astraweb.com> |
| In reply to | #488689 |
On Mon, 18 Dec 2017 12:07:40 -0500, rickman wrote: > Allan Herriman wrote on 12/18/2017 3:54 AM: >> On Sat, 16 Dec 2017 12:44:35 -0500, rickman wrote: >> >>> Allan Herriman wrote on 12/16/2017 11:32 AM: >>>> On Sat, 16 Dec 2017 09:27:37 -0500, rickman wrote: >>>> >>>>> Allan Herriman wrote on 12/16/2017 4:50 AM: >>>>>> On Fri, 15 Dec 2017 10:57:50 -0500, rickman wrote: >>>>>> >>>>>>> Allan Herriman wrote on 12/15/2017 5:21 AM: >>>>>>>> On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: >>>>>>>> >>>>>>>>> Allan Herriman wrote on 12/14/2017 6:39 AM: >>>>>>>>>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> The placement and routing is quite easy to control from your >>>>>>>>>>> favourite HDL, once you know how. This is important to get >>>>>>>>>>> right as otherwise >>>>>>>> the >>>>>>>>>>> results will not be repeatable. >>>>>>>>>> >>>>>>>>>> This Xilinx forum thread gives some examples of placement and >>>>>>>>>> routing >>>>>>>> in VHDL: >>>>>>>>>> >>>>>>>>>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated- ring- >>>>>>>> oscillator/m-p/808774/highlight/true#M5557 >>>>>>>>> >>>>>>>>> When you say "routing", it doesn't appear to deal with the >>>>>>>>> actual >>>>>>>> routing. >>>>>>>>> He does mention that the attributes assign specific I/Os on the >>>>>>>>> LUTs >>>>>>>> and so >>>>>>>>> which pin is connected to which is determined. But the routing >>>>>>>>> interconnects still need to be wired up in the chip editor I >>>>>>>>> believe. >>>>>>>> >>>>>>>> There is no manual step needed. Once you lock the pins, the >>>>>>>> routing will be fixed (to an extent). >>>>>>> >>>>>>> "To an extent" is one of those things where the devil is in the >>>>>>> details. >>>>>>> Routing within a block is dedicated and either a path exists or it >>>>>>> doesn't. But routing between blocks is much more flexible and so >>>>>>> subject to variations depending on what the software chooses. >>>>>> >>>>>> In general, I agree with that. Look sideways at the PAR software >>>>>> or make a trivial change to the source code and it will do >>>>>> something completely different, and often something unexpected. >>>>>> Sometimes it will do something wildly suboptimal. >>>>>> >>>>>> But in this case, I believe Larkin has just one connection that >>>>>> will be contained within a single switch box next to the IOB. It >>>>>> will not use any inter-switchbox routing (with all the uncertainty >>>>>> that entails). >>>>>> >>>>>> My experience has been that in this particular case (and this >>>>>> particular case only), locking the pins correctly may remove any >>>>>> choice the router has, resulting in repeatable routing. (I won't >>>>>> say repeatable timing, because we still have PVT to worry about.) >>>>>> >>>>>> Depending on the exact switchbox resources used, this may also >>>>>> require that other routing be prohibited in that area to work. >>>>>> >>>>>> >>>>>> Perhaps I should point out that whilst I have done some of this >>>>>> sort of manual placement and routing recently, I have not done the >>>>>> exact route of IBUF output to OUTFF clear input. Sometimes there >>>>>> are quirks that do not become apparent until the design hits the >>>>>> tools. >>>>> >>>>> I guess my work with Xilinx parts is getting old. I didn't remember >>>>> the IOB FFs *having* accessible async Clear/Preset inputs which >>>>> would have required a FF from the fabric. But I looked at the Xynq >>>>> data sheet and the IOB FF have accessible Clear/Preset inputs. So >>>>> there will be routing on the general fabric as I expect there is no >>>>> direct connection between the input and the Clear pin within the >>>>> IOB. >>>> >>>> >>>> I can't try it here (I'm not at work and I deliberately don't have >>>> the tools installed at home) but I believe both signals appear on the >>>> same switchbox, which is about as close to a direct connection as one >>>> can get outside a slice. >>>> >>>> >>>>> As to your presumption of this removing "any choice the router has", >>>>> I think that is fallacious. The switch matrix is a general purpose >>>>> routing medium and I have seen the tool do, as you say, "wildly >>>>> suboptimal" routes. >>>> >>>> >>>> I'm fairly sure that rather than being general purpose, the switch >>>> matrix is sparse and doesn't support all input to output connections. >>>> (The exact details are not documented publicly.) With pin locking, >>>> one can force particular paths through the switchbox. This is based >>>> on my observations of tool behaviour rather than an inspection of the >>>> die, thus there is a chance that it is wrong as you suggest. >>>> >>>> Please note that I'm only referring to intra-switchbox routing. All >>>> bets are off once the routing goes outside the local switchbox. >>>> >>>> >>>>> The only way to tell is to give it a try. >>>> >>>> Oh yes. >>> >>> You are more familiar with the newer devices than I am. The issue >>> isn't even if you can get the route through the local switchbox. It >>> is whether it will always pick the same route. As you say, the switch >>> matrix is somewhat sparse, but the issue is whether it goes through a >>> single switchbox or not. I guess we'll find out when John tries it. >>> >>> I thought the problem was going to be the lack of a reset pin on the >>> IOB FF which would have forced the use of a fabric FF with routing >>> to/from the IOB. >>> Then I think the locking of LUTs (for delay) and the FF to a single >>> CLB >>> would have been the approach with the best shot at producing a >>> controlled pulse width even if the routing delay to the IOB would have >>> been variable. But that can be constrained since it is a path from the >>> "clock" (trigger input) to the output pin. >> >> >> I ran an experiment today at work. I used the following VHDL source in >> the smallest Kintex 7 part (which has the same fabric as the OP's >> Zynq). The net obuf_input (FF Q to pin driver) used dedicated routing >> and didn't go through any switchboxes at all. > > That's certainly expected. > > >> The net ibuf_output (which connects back to the FF reset input) was >> restricted to the local switchbox as expected. It needed multiple >> passes though the switchbox though, as clearly this isn't a connection >> that Xilinx expects customers to use often. >> I didn't check, but I imagine that the path through the switchbox would >> change if other routing was also passing through the switchbox (which >> does happen in a dense design). >> >> I have not simulated this code or tested it in any way. Use at own >> risk. > > Interesting. Can you provide any details on the switch box routing, > like an image, perhaps? The ratsnest doesn't show much: http://www.users.on.net/~julide/larkin_oneshot_1.png but the routing view shows the switchbox (the rectangle on the right). I highlighted the ibuf_output net (which goes back to the FF reset input). http://www.users.on.net/~julide/larkin_oneshot_2.png > Or should I install the tools and try it > myself? I've always found the chip editor to be a messy tool to learn, > but just looking at stuff hasn't been too hard. My main reason for not > wanting to install the Xilinx tools is dealing with the licensing issues > that always seem to be a PITA. Small parts (such as the one the OP is using) use the free Webpack license. It will call home with usage information. You can always use an airgap if you don't like that. https://www.xilinx.com/support/download.html > I don't recall if there are any timing constraints for such an async > loop. They are hard for the tools to analyze which is the main reason > for avoiding them like the plague. Yes, it can be made to work > obviously, but FPGA companies have enough to do without supporting this > sort of feature which would open huge cans of worms for them. So short > of generating a timing analysis script, there will be no automation for > even verifying timing of this path every time you route the design. I'm fairly sure you can constrain any path. Allan
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-12-19 09:30 -0500 |
| Message-ID | <p1b7qu$apj$1@dont-email.me> |
| In reply to | #488749 |
Allan Herriman wrote on 12/19/2017 5:11 AM: > On Mon, 18 Dec 2017 12:07:40 -0500, rickman wrote: > >> Allan Herriman wrote on 12/18/2017 3:54 AM: >>> On Sat, 16 Dec 2017 12:44:35 -0500, rickman wrote: >>> >>>> Allan Herriman wrote on 12/16/2017 11:32 AM: >>>>> On Sat, 16 Dec 2017 09:27:37 -0500, rickman wrote: >>>>> >>>>>> Allan Herriman wrote on 12/16/2017 4:50 AM: >>>>>>> On Fri, 15 Dec 2017 10:57:50 -0500, rickman wrote: >>>>>>> >>>>>>>> Allan Herriman wrote on 12/15/2017 5:21 AM: >>>>>>>>> On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: >>>>>>>>> >>>>>>>>>> Allan Herriman wrote on 12/14/2017 6:39 AM: >>>>>>>>>>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> The placement and routing is quite easy to control from your >>>>>>>>>>>> favourite HDL, once you know how. This is important to get >>>>>>>>>>>> right as otherwise >>>>>>>>> the >>>>>>>>>>>> results will not be repeatable. >>>>>>>>>>> >>>>>>>>>>> This Xilinx forum thread gives some examples of placement and >>>>>>>>>>> routing >>>>>>>>> in VHDL: >>>>>>>>>>> >>>>>>>>>>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated- > ring- >>>>>>>>> oscillator/m-p/808774/highlight/true#M5557 >>>>>>>>>> >>>>>>>>>> When you say "routing", it doesn't appear to deal with the >>>>>>>>>> actual >>>>>>>>> routing. >>>>>>>>>> He does mention that the attributes assign specific I/Os on the >>>>>>>>>> LUTs >>>>>>>>> and so >>>>>>>>>> which pin is connected to which is determined. But the routing >>>>>>>>>> interconnects still need to be wired up in the chip editor I >>>>>>>>>> believe. >>>>>>>>> >>>>>>>>> There is no manual step needed. Once you lock the pins, the >>>>>>>>> routing will be fixed (to an extent). >>>>>>>> >>>>>>>> "To an extent" is one of those things where the devil is in the >>>>>>>> details. >>>>>>>> Routing within a block is dedicated and either a path exists or it >>>>>>>> doesn't. But routing between blocks is much more flexible and so >>>>>>>> subject to variations depending on what the software chooses. >>>>>>> >>>>>>> In general, I agree with that. Look sideways at the PAR software >>>>>>> or make a trivial change to the source code and it will do >>>>>>> something completely different, and often something unexpected. >>>>>>> Sometimes it will do something wildly suboptimal. >>>>>>> >>>>>>> But in this case, I believe Larkin has just one connection that >>>>>>> will be contained within a single switch box next to the IOB. It >>>>>>> will not use any inter-switchbox routing (with all the uncertainty >>>>>>> that entails). >>>>>>> >>>>>>> My experience has been that in this particular case (and this >>>>>>> particular case only), locking the pins correctly may remove any >>>>>>> choice the router has, resulting in repeatable routing. (I won't >>>>>>> say repeatable timing, because we still have PVT to worry about.) >>>>>>> >>>>>>> Depending on the exact switchbox resources used, this may also >>>>>>> require that other routing be prohibited in that area to work. >>>>>>> >>>>>>> >>>>>>> Perhaps I should point out that whilst I have done some of this >>>>>>> sort of manual placement and routing recently, I have not done the >>>>>>> exact route of IBUF output to OUTFF clear input. Sometimes there >>>>>>> are quirks that do not become apparent until the design hits the >>>>>>> tools. >>>>>> >>>>>> I guess my work with Xilinx parts is getting old. I didn't remember >>>>>> the IOB FFs *having* accessible async Clear/Preset inputs which >>>>>> would have required a FF from the fabric. But I looked at the Xynq >>>>>> data sheet and the IOB FF have accessible Clear/Preset inputs. So >>>>>> there will be routing on the general fabric as I expect there is no >>>>>> direct connection between the input and the Clear pin within the >>>>>> IOB. >>>>> >>>>> >>>>> I can't try it here (I'm not at work and I deliberately don't have >>>>> the tools installed at home) but I believe both signals appear on the >>>>> same switchbox, which is about as close to a direct connection as one >>>>> can get outside a slice. >>>>> >>>>> >>>>>> As to your presumption of this removing "any choice the router has", >>>>>> I think that is fallacious. The switch matrix is a general purpose >>>>>> routing medium and I have seen the tool do, as you say, "wildly >>>>>> suboptimal" routes. >>>>> >>>>> >>>>> I'm fairly sure that rather than being general purpose, the switch >>>>> matrix is sparse and doesn't support all input to output connections. >>>>> (The exact details are not documented publicly.) With pin locking, >>>>> one can force particular paths through the switchbox. This is based >>>>> on my observations of tool behaviour rather than an inspection of the >>>>> die, thus there is a chance that it is wrong as you suggest. >>>>> >>>>> Please note that I'm only referring to intra-switchbox routing. All >>>>> bets are off once the routing goes outside the local switchbox. >>>>> >>>>> >>>>>> The only way to tell is to give it a try. >>>>> >>>>> Oh yes. >>>> >>>> You are more familiar with the newer devices than I am. The issue >>>> isn't even if you can get the route through the local switchbox. It >>>> is whether it will always pick the same route. As you say, the switch >>>> matrix is somewhat sparse, but the issue is whether it goes through a >>>> single switchbox or not. I guess we'll find out when John tries it. >>>> >>>> I thought the problem was going to be the lack of a reset pin on the >>>> IOB FF which would have forced the use of a fabric FF with routing >>>> to/from the IOB. >>>> Then I think the locking of LUTs (for delay) and the FF to a single >>>> CLB >>>> would have been the approach with the best shot at producing a >>>> controlled pulse width even if the routing delay to the IOB would have >>>> been variable. But that can be constrained since it is a path from the >>>> "clock" (trigger input) to the output pin. >>> >>> >>> I ran an experiment today at work. I used the following VHDL source in >>> the smallest Kintex 7 part (which has the same fabric as the OP's >>> Zynq). The net obuf_input (FF Q to pin driver) used dedicated routing >>> and didn't go through any switchboxes at all. >> >> That's certainly expected. >> >> >>> The net ibuf_output (which connects back to the FF reset input) was >>> restricted to the local switchbox as expected. It needed multiple >>> passes though the switchbox though, as clearly this isn't a connection >>> that Xilinx expects customers to use often. >>> I didn't check, but I imagine that the path through the switchbox would >>> change if other routing was also passing through the switchbox (which >>> does happen in a dense design). >>> >>> I have not simulated this code or tested it in any way. Use at own >>> risk. >> >> Interesting. Can you provide any details on the switch box routing, >> like an image, perhaps? > > > The ratsnest doesn't show much: > http://www.users.on.net/~julide/larkin_oneshot_1.png > > but the routing view shows the switchbox (the rectangle on the right). I > highlighted the ibuf_output net (which goes back to the FF reset input). > http://www.users.on.net/~julide/larkin_oneshot_2.png The routing view doesn't do much to indicate how other routing might conflict. Looks like they have means internally of cross connecting traces in the switch box through multiple connections. I believe this is done through pass transistors rather than buffers, so even if one routing iteration uses four rather than three connections it won't be much variation. The concern is if local congestion causes this route to leave the switch box to use a longer route and/or other switch boxes. >> Or should I install the tools and try it >> myself? I've always found the chip editor to be a messy tool to learn, >> but just looking at stuff hasn't been too hard. My main reason for not >> wanting to install the Xilinx tools is dealing with the licensing issues >> that always seem to be a PITA. > > > Small parts (such as the one the OP is using) use the free Webpack > license. It will call home with usage information. You can always use > an airgap if you don't like that. > https://www.xilinx.com/support/download.html I'm talking about the simple hassle of getting the licensing to work. It's fine 95% of the time, but that other 5% can be a bear. I just don't look forward to installing any tools using Flexlm. >> I don't recall if there are any timing constraints for such an async >> loop. They are hard for the tools to analyze which is the main reason >> for avoiding them like the plague. Yes, it can be made to work >> obviously, but FPGA companies have enough to do without supporting this >> sort of feature which would open huge cans of worms for them. So short >> of generating a timing analysis script, there will be no automation for >> even verifying timing of this path every time you route the design. > > > I'm fairly sure you can constrain any path. I'd love to see the syntax for this. My understanding is all the constraints operate on endpoints defined by clocks and I/O pads. Async path loops can not even be evaluated as the tool reports an async loop as an error. I have never seen a timing constraint that operates on an arbitrary route or async path segment. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-12-19 07:29 -0800 |
| Message-ID | <n1ci3dlk9m2srnrlbi32kmgeuvq820ijt4@4ax.com> |
| In reply to | #488670 |
On 18 Dec 2017 08:54:34 GMT, Allan Herriman <allanherriman@hotmail.com> wrote: >On Sat, 16 Dec 2017 12:44:35 -0500, rickman wrote: > >> Allan Herriman wrote on 12/16/2017 11:32 AM: >>> On Sat, 16 Dec 2017 09:27:37 -0500, rickman wrote: >>> >>>> Allan Herriman wrote on 12/16/2017 4:50 AM: >>>>> On Fri, 15 Dec 2017 10:57:50 -0500, rickman wrote: >>>>> >>>>>> Allan Herriman wrote on 12/15/2017 5:21 AM: >>>>>>> On Thu, 14 Dec 2017 10:18:25 -0500, rickman wrote: >>>>>>> >>>>>>>> Allan Herriman wrote on 12/14/2017 6:39 AM: >>>>>>>>> On Thu, 14 Dec 2017 10:49:41 +0000, Allan Herriman wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>>> The placement and routing is quite easy to control from your >>>>>>>>>> favourite HDL, once you know how. This is important to get >>>>>>>>>> right as otherwise >>>>>>> the >>>>>>>>>> results will not be repeatable. >>>>>>>>> >>>>>>>>> This Xilinx forum thread gives some examples of placement and >>>>>>>>> routing >>>>>>> in VHDL: >>>>>>>>> >>>>>>>>> https://forums.xilinx.com/t5/UltraScale-Architecture/Gated-ring- >>>>>>> oscillator/m-p/808774/highlight/true#M5557 >>>>>>>> >>>>>>>> When you say "routing", it doesn't appear to deal with the actual >>>>>>> routing. >>>>>>>> He does mention that the attributes assign specific I/Os on the >>>>>>>> LUTs >>>>>>> and so >>>>>>>> which pin is connected to which is determined. But the routing >>>>>>>> interconnects still need to be wired up in the chip editor I >>>>>>>> believe. >>>>>>> >>>>>>> There is no manual step needed. Once you lock the pins, the >>>>>>> routing will be fixed (to an extent). >>>>>> >>>>>> "To an extent" is one of those things where the devil is in the >>>>>> details. >>>>>> Routing within a block is dedicated and either a path exists or it >>>>>> doesn't. But routing between blocks is much more flexible and so >>>>>> subject to variations depending on what the software chooses. >>>>> >>>>> In general, I agree with that. Look sideways at the PAR software or >>>>> make a trivial change to the source code and it will do something >>>>> completely different, and often something unexpected. Sometimes it >>>>> will do something wildly suboptimal. >>>>> >>>>> But in this case, I believe Larkin has just one connection that will >>>>> be contained within a single switch box next to the IOB. It will not >>>>> use any inter-switchbox routing (with all the uncertainty that >>>>> entails). >>>>> >>>>> My experience has been that in this particular case (and this >>>>> particular case only), locking the pins correctly may remove any >>>>> choice the router has, resulting in repeatable routing. (I won't say >>>>> repeatable timing, because we still have PVT to worry about.) >>>>> >>>>> Depending on the exact switchbox resources used, this may also >>>>> require that other routing be prohibited in that area to work. >>>>> >>>>> >>>>> Perhaps I should point out that whilst I have done some of this sort >>>>> of manual placement and routing recently, I have not done the exact >>>>> route of IBUF output to OUTFF clear input. Sometimes there are >>>>> quirks that do not become apparent until the design hits the tools. >>>> >>>> I guess my work with Xilinx parts is getting old. I didn't remember >>>> the IOB FFs *having* accessible async Clear/Preset inputs which would >>>> have required a FF from the fabric. But I looked at the Xynq data >>>> sheet and the IOB FF have accessible Clear/Preset inputs. So there >>>> will be routing on the general fabric as I expect there is no direct >>>> connection between the input and the Clear pin within the IOB. >>> >>> >>> I can't try it here (I'm not at work and I deliberately don't have the >>> tools installed at home) but I believe both signals appear on the same >>> switchbox, which is about as close to a direct connection as one can >>> get outside a slice. >>> >>> >>>> As to your presumption of this removing "any choice the router has", I >>>> think that is fallacious. The switch matrix is a general purpose >>>> routing medium and I have seen the tool do, as you say, "wildly >>>> suboptimal" routes. >>> >>> >>> I'm fairly sure that rather than being general purpose, the switch >>> matrix is sparse and doesn't support all input to output connections. >>> (The exact details are not documented publicly.) With pin locking, one >>> can force particular paths through the switchbox. This is based on my >>> observations of tool behaviour rather than an inspection of the die, >>> thus there is a chance that it is wrong as you suggest. >>> >>> Please note that I'm only referring to intra-switchbox routing. All >>> bets are off once the routing goes outside the local switchbox. >>> >>> >>>> The only way to tell is to give it a try. >>> >>> Oh yes. >> >> You are more familiar with the newer devices than I am. The issue isn't >> even if you can get the route through the local switchbox. It is >> whether it will always pick the same route. As you say, the switch >> matrix is somewhat sparse, but the issue is whether it goes through a >> single switchbox or not. I guess we'll find out when John tries it. >> >> I thought the problem was going to be the lack of a reset pin on the IOB >> FF which would have forced the use of a fabric FF with routing to/from >> the IOB. >> Then I think the locking of LUTs (for delay) and the FF to a single >> CLB >> would have been the approach with the best shot at producing a >> controlled pulse width even if the routing delay to the IOB would have >> been variable. But that can be constrained since it is a path from the >> "clock" (trigger input) to the output pin. > > >I ran an experiment today at work. I used the following VHDL source in >the smallest Kintex 7 part (which has the same fabric as the OP's Zynq). >The net obuf_input (FF Q to pin driver) used dedicated routing and didn't >go through any switchboxes at all. > >The net ibuf_output (which connects back to the FF reset input) was >restricted to the local switchbox as expected. It needed multiple passes >though the switchbox though, as clearly this isn't a connection that >Xilinx expects customers to use often. >I didn't check, but I imagine that the path through the switchbox would >change if other routing was also passing through the switchbox (which >does happen in a dense design). > >I have not simulated this code or tested it in any way. Use at own risk. > > >library ieee; >use ieee.std_logic_1164.all; >library unisim; >use unisim.vcomponents.all; > > >entity larkin_oneshot is > generic ( > IOSTANDARD : string := "LVCMOS18" > ); > port ( > trig : in std_logic; > oneshot_pin : inout std_logic > ); >end entity larkin_oneshot; > > >architecture rtl of larkin_oneshot is > > signal obuf_input : std_logic; > signal ibuf_output : std_logic; > >begin -- architecture rtl of entity larkin_oneshot > > iobuf_inst : component IOBUF > generic map ( > IBUF_LOW_PWR => FALSE, > SLEW => "FAST", > IOSTANDARD => IOSTANDARD > ) > port map ( > O => ibuf_output, > IO => oneshot_pin, > I => obuf_input, > T => '0' > ); > > oddr_inst : component ODDR > generic map ( > DDR_CLK_EDGE => "SAME_EDGE", > SRTYPE => "ASYNC" > ) > port map ( > Q => obuf_input, > C => trig, > CE => '1', > D1 => '1', > D2 => '1', > R => ibuf_output > ); > >end architecture rtl; -- of entity larkin_oneshot That's cool. We'll try it and see what it does. John -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highland_snip_technology.com> |
|---|---|
| Date | 2017-12-14 10:31 -0800 |
| Message-ID | <khg53d195a45ongsduqocddpt7j8mrg026@4ax.com> |
| In reply to | #488146 |
On 14 Dec 2017 10:49:41 GMT, Allan Herriman <allanherriman@hotmail.com> wrote: >On Wed, 13 Dec 2017 19:43:20 -0800, John Larkin wrote: > >> I have an async signal, call it TRIG, inside a Zynq 7020. >> >> At the rising edge of TRIG, I want to make an async one-shot. It will >> leave the chip as RX and reset some outboard ecl logic. Anything from, >> say, 2 ns to 10 ns width would work. >> >> The board is built, and we can't easily add more connections to the FPGA >> or hack in glue logic. Well, it would be ugly. >> >> Here are some ideas: >> >> https://www.dropbox.com/s/4azi5hzkqzsyeiy/FPGA_OneShots.JPG?raw=1 >> >> We could play with i/o cell slew rates and drive strengths to tune the >> timing. And use as many delay stages (circuit B) as we like... there are >> tons of unused balls. >> >> Or maybe use some internal delay path, if we can find one that is >> reasonably repeatable. >> >> The compiler will probably let us do circuit A or B without whining >> much, but might object to the third one. >> >> I grew up on async hairball logic, so this seems reasonable to me, but >> my FPGA guys are horrified. We don't want to spin up a 250 MHz PLL here >> and do it synchronously, for various reasons. >> >> An internal passive pullup resistor charging an i/o pin capacitance >> would be fun, but I don't think we could make a short enough blip. >> >> Any other ideas or comments? > > >"Some internal delay mechanism" on your block diagram could be an IDELAY >(or IODELAY), which gives you a calibrated delay that will be independent >of PVT. Of course, it's independent of PVT because you give it (actually >an IDELAY_CTRL) a reference clock at 200MHz (or some other, higher >frequencies). Max delay is a few ns, delay resolution is some tens of ps, >and jitter is some tens of ps as well. IDELAY sounds ideal for setting my pulse width, because it's calibrated and tweakable. We'll look into that. > >I recently ran some ring oscillator experiments in the same FPGA family. >I used LUTs as delay elements and when coded (in VHDL) such that all >elements were in the same slice and the routing was all in the local >switchbox, I measured a frequency of 945MHz for a 3 element ring. That >should give you some idea of the achievable delays. I did a ring oscillator to measure chip temperature, on a part that didn't have an internal sensor. https://www.dropbox.com/s/hq595kyhlhx5f1y/ESM_Ring_Oscillator.jpg?raw=1 -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-12-14 14:06 -0500 |
| Message-ID | <p0ui2s$m70$1@dont-email.me> |
| In reply to | #488215 |
John Larkin wrote on 12/14/2017 1:31 PM: > On 14 Dec 2017 10:49:41 GMT, Allan Herriman > <allanherriman@hotmail.com> wrote: > >> On Wed, 13 Dec 2017 19:43:20 -0800, John Larkin wrote: >> >>> I have an async signal, call it TRIG, inside a Zynq 7020. >>> >>> At the rising edge of TRIG, I want to make an async one-shot. It will >>> leave the chip as RX and reset some outboard ecl logic. Anything from, >>> say, 2 ns to 10 ns width would work. >>> >>> The board is built, and we can't easily add more connections to the FPGA >>> or hack in glue logic. Well, it would be ugly. >>> >>> Here are some ideas: >>> >>> https://www.dropbox.com/s/4azi5hzkqzsyeiy/FPGA_OneShots.JPG?raw=1 >>> >>> We could play with i/o cell slew rates and drive strengths to tune the >>> timing. And use as many delay stages (circuit B) as we like... there are >>> tons of unused balls. >>> >>> Or maybe use some internal delay path, if we can find one that is >>> reasonably repeatable. >>> >>> The compiler will probably let us do circuit A or B without whining >>> much, but might object to the third one. >>> >>> I grew up on async hairball logic, so this seems reasonable to me, but >>> my FPGA guys are horrified. We don't want to spin up a 250 MHz PLL here >>> and do it synchronously, for various reasons. >>> >>> An internal passive pullup resistor charging an i/o pin capacitance >>> would be fun, but I don't think we could make a short enough blip. >>> >>> Any other ideas or comments? >> >> >> "Some internal delay mechanism" on your block diagram could be an IDELAY >> (or IODELAY), which gives you a calibrated delay that will be independent >> of PVT. Of course, it's independent of PVT because you give it (actually >> an IDELAY_CTRL) a reference clock at 200MHz (or some other, higher >> frequencies). Max delay is a few ns, delay resolution is some tens of ps, >> and jitter is some tens of ps as well. > > IDELAY sounds ideal for setting my pulse width, because it's > calibrated and tweakable. We'll look into that. It still has to be routed to the logic. So you haven't worked around the problem of wildly variable routing delays which add to your pulse width. As usual John is trying to work with things he doesn't understand by applying methods he has used on totally unrelated designs. Sit down and draw a block diagram showing not just the delay you wish to control, but the delays on every bit of wire in the design. Then maybe the picture will emerge. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | bloggs.fredbloggs.fred@gmail.com |
|---|---|
| Date | 2017-12-14 07:33 -0800 |
| Message-ID | <ca3c21b9-e8f8-48cc-8530-51e2952db414@googlegroups.com> |
| In reply to | #488123 |
On Wednesday, December 13, 2017 at 10:43:29 PM UTC-5, John Larkin wrote: > I have an async signal, call it TRIG, inside a Zynq 7020. > > At the rising edge of TRIG, I want to make an async one-shot. It will > leave the chip as RX and reset some outboard ecl logic. Anything from, > say, 2 ns to 10 ns width would work. > > The board is built, and we can't easily add more connections to the > FPGA or hack in glue logic. Well, it would be ugly. > > Here are some ideas: > > https://www.dropbox.com/s/4azi5hzkqzsyeiy/FPGA_OneShots.JPG?raw=1 > > We could play with i/o cell slew rates and drive strengths to tune the > timing. And use as many delay stages (circuit B) as we like... there > are tons of unused balls. > > Or maybe use some internal delay path, if we can find one that is > reasonably repeatable. > > The compiler will probably let us do circuit A or B without whining > much, but might object to the third one. > > I grew up on async hairball logic, so this seems reasonable to me, but > my FPGA guys are horrified. We don't want to spin up a 250 MHz PLL > here and do it synchronously, for various reasons. > > An internal passive pullup resistor charging an i/o pin capacitance > would be fun, but I don't think we could make a short enough blip. > > Any other ideas or comments? > > > -- > > John Larkin Highland Technology, Inc > > lunatic fringe electronics You can use what's called an event driven state machine to produce that pulse. How long does that TRIG last? If it's well in excess of 10ns then you can process TRIG and a delayed version of itself to CLR the FF.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-12-14 09:09 -0800 |
| Message-ID | <1gb53d9313c292qoera3oehjls982al77b@4ax.com> |
| In reply to | #488179 |
On Thu, 14 Dec 2017 07:33:53 -0800 (PST), bloggs.fredbloggs.fred@gmail.com wrote: >On Wednesday, December 13, 2017 at 10:43:29 PM UTC-5, John Larkin wrote: >> I have an async signal, call it TRIG, inside a Zynq 7020. >> >> At the rising edge of TRIG, I want to make an async one-shot. It will >> leave the chip as RX and reset some outboard ecl logic. Anything from, >> say, 2 ns to 10 ns width would work. >> >> The board is built, and we can't easily add more connections to the >> FPGA or hack in glue logic. Well, it would be ugly. >> >> Here are some ideas: >> >> https://www.dropbox.com/s/4azi5hzkqzsyeiy/FPGA_OneShots.JPG?raw=1 >> >> We could play with i/o cell slew rates and drive strengths to tune the >> timing. And use as many delay stages (circuit B) as we like... there >> are tons of unused balls. >> >> Or maybe use some internal delay path, if we can find one that is >> reasonably repeatable. >> >> The compiler will probably let us do circuit A or B without whining >> much, but might object to the third one. >> >> I grew up on async hairball logic, so this seems reasonable to me, but >> my FPGA guys are horrified. We don't want to spin up a 250 MHz PLL >> here and do it synchronously, for various reasons. >> >> An internal passive pullup resistor charging an i/o pin capacitance >> would be fun, but I don't think we could make a short enough blip. >> >> Any other ideas or comments? >> >> >> -- >> >> John Larkin Highland Technology, Inc >> >> lunatic fringe electronics > >You can use what's called an event driven state machine to produce that pulse. How long does that TRIG last? If it's well in excess of 10ns then you can process TRIG and a delayed version of itself to CLR the FF. TRIG will last maybe 20 ns or so, and I need the ecl reset to be done before then. If I had a roughly reliable (say, 3:1) delay line inside the chip (or even by looping through a pin or two) I could also do the classic A_and_notB gate to make a pulse. I don't need to use the dflop. The problem is to make that async delay without asking my guys to spend days fighting the tools and testing that the results survive recompiles. I did the board schematic so it's arguably my fault that this one-shot thing needs to be done. I need a fix that works quickly and gets me minimal harassment from the people that will actually implement it. I am of course managing a process that I don't entirely understand, but isn't that what managers do? -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-12-14 12:45 -0500 |
| Message-ID | <p0udbv$k1t$1@dont-email.me> |
| In reply to | #488195 |
John Larkin wrote on 12/14/2017 12:09 PM: > On Thu, 14 Dec 2017 07:33:53 -0800 (PST), > bloggs.fredbloggs.fred@gmail.com wrote: > >> On Wednesday, December 13, 2017 at 10:43:29 PM UTC-5, John Larkin wrote: >>> I have an async signal, call it TRIG, inside a Zynq 7020. >>> >>> At the rising edge of TRIG, I want to make an async one-shot. It will >>> leave the chip as RX and reset some outboard ecl logic. Anything from, >>> say, 2 ns to 10 ns width would work. >>> >>> The board is built, and we can't easily add more connections to the >>> FPGA or hack in glue logic. Well, it would be ugly. >>> >>> Here are some ideas: >>> >>> https://www.dropbox.com/s/4azi5hzkqzsyeiy/FPGA_OneShots.JPG?raw=1 >>> >>> We could play with i/o cell slew rates and drive strengths to tune the >>> timing. And use as many delay stages (circuit B) as we like... there >>> are tons of unused balls. >>> >>> Or maybe use some internal delay path, if we can find one that is >>> reasonably repeatable. >>> >>> The compiler will probably let us do circuit A or B without whining >>> much, but might object to the third one. >>> >>> I grew up on async hairball logic, so this seems reasonable to me, but >>> my FPGA guys are horrified. We don't want to spin up a 250 MHz PLL >>> here and do it synchronously, for various reasons. >>> >>> An internal passive pullup resistor charging an i/o pin capacitance >>> would be fun, but I don't think we could make a short enough blip. >>> >>> Any other ideas or comments? >>> >>> >>> -- >>> >>> John Larkin Highland Technology, Inc >>> >>> lunatic fringe electronics >> >> You can use what's called an event driven state machine to produce that pulse. How long does that TRIG last? If it's well in excess of 10ns then you can process TRIG and a delayed version of itself to CLR the FF. > > TRIG will last maybe 20 ns or so, and I need the ecl reset to be done > before then. > > If I had a roughly reliable (say, 3:1) delay line inside the chip (or > even by looping through a pin or two) I could also do the classic > A_and_notB gate to make a pulse. I don't need to use the dflop. The > problem is to make that async delay without asking my guys to spend > days fighting the tools and testing that the results survive > recompiles. The two circuits are equivalent regarding the use of the tools. One simply uses a combinatorial path to generate a pulse and the other uses a FF as what is essentially a combinatorial device requiring the same delay element. There is no remotely easy way to generate delays in an FPGA if you can't control the routing. The logic hardware isn't the problem, it's the routing. Put all the logic into a single block and most of the routing will be less flexible and less timing variable block internal routing. Then you may have a chance. > I did the board schematic so it's arguably my fault that this one-shot > thing needs to be done. I need a fix that works quickly and gets me > minimal harassment from the people that will actually implement it. > > I am of course managing a process that I don't entirely understand, > but isn't that what managers do? Good managers solve problems by using people and tools as they are intended to be used. Either or both can be abused. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | Jon Elson <jmelson@wustl.edu> |
|---|---|
| Date | 2017-12-14 13:56 -0600 |
| Message-ID | <QKadnafoB9MoS6_HnZ2dnUU7-aGdnZ2d@giganews.com> |
| In reply to | #488195 |
John Larkin wrote: > TRIG will last maybe 20 ns or so, and I need the ecl reset to be done > before then. > What's the fastest clock on the FPGA? If you have a 100 MHz clock, then, set a FF on the rising edge of TRIG on a clock edge, and clear it on the next clock edge. That will give a 10 ns wide pulse. Jon
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-12-14 11:05 -0800 |
| Message-ID | <779fd78f-5c63-4c15-8aae-23ee50ad84ff@googlegroups.com> |
| In reply to | #488123 |
Den torsdag den 14. december 2017 kl. 04.43.29 UTC+1 skrev John Larkin:
> I have an async signal, call it TRIG, inside a Zynq 7020.
>
> At the rising edge of TRIG, I want to make an async one-shot. It will
> leave the chip as RX and reset some outboard ecl logic. Anything from,
> say, 2 ns to 10 ns width would work.
>
> The board is built, and we can't easily add more connections to the
> FPGA or hack in glue logic. Well, it would be ugly.
>
> Here are some ideas:
>
> https://www.dropbox.com/s/4azi5hzkqzsyeiy/FPGA_OneShots.JPG?raw=1
>
> We could play with i/o cell slew rates and drive strengths to tune the
> timing. And use as many delay stages (circuit B) as we like... there
> are tons of unused balls.
>
> Or maybe use some internal delay path, if we can find one that is
> reasonably repeatable.
>
> The compiler will probably let us do circuit A or B without whining
> much, but might object to the third one.
>
> I grew up on async hairball logic, so this seems reasonable to me, but
> my FPGA guys are horrified. We don't want to spin up a 250 MHz PLL
> here and do it synchronously, for various reasons.
>
> An internal passive pullup resistor charging an i/o pin capacitance
> would be fun, but I don't think we could make a short enough blip.
>
> Any other ideas or comments?
>
something like this?
module top(input trig, inout trgd, output oneshot);
IOBUF IOBUF_inst (
.O(trigdi), // Buffer output
.IO(trgd), // Buffer inout port (connect directly to top-level port)
.I(trig), // Buffer input
.T(0) // 3-state enable input, high=input, low=output
);
assign oneshot = trig & ~trigdi;
endmodule
I haven't tried but it results in this,
https://www.dropbox.com/s/uoexiuh2fmtusgg/schematic.pdf
I'm guessing Tiop + Tiiop width
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highland_snip_technology.com> |
|---|---|
| Date | 2017-12-14 11:23 -0800 |
| Message-ID | <dmj53d93dgbrusoknf741hc2anoejas1bg@4ax.com> |
| In reply to | #488220 |
On Thu, 14 Dec 2017 11:05:54 -0800 (PST), Lasse Langwadt Christensen <langwadt@fonz.dk> wrote: >Den torsdag den 14. december 2017 kl. 04.43.29 UTC+1 skrev John Larkin: >> I have an async signal, call it TRIG, inside a Zynq 7020. >> >> At the rising edge of TRIG, I want to make an async one-shot. It will >> leave the chip as RX and reset some outboard ecl logic. Anything from, >> say, 2 ns to 10 ns width would work. >> >> The board is built, and we can't easily add more connections to the >> FPGA or hack in glue logic. Well, it would be ugly. >> >> Here are some ideas: >> >> https://www.dropbox.com/s/4azi5hzkqzsyeiy/FPGA_OneShots.JPG?raw=1 >> >> We could play with i/o cell slew rates and drive strengths to tune the >> timing. And use as many delay stages (circuit B) as we like... there >> are tons of unused balls. >> >> Or maybe use some internal delay path, if we can find one that is >> reasonably repeatable. >> >> The compiler will probably let us do circuit A or B without whining >> much, but might object to the third one. >> >> I grew up on async hairball logic, so this seems reasonable to me, but >> my FPGA guys are horrified. We don't want to spin up a 250 MHz PLL >> here and do it synchronously, for various reasons. >> >> An internal passive pullup resistor charging an i/o pin capacitance >> would be fun, but I don't think we could make a short enough blip. >> >> Any other ideas or comments? >> > >something like this? > >module top(input trig, inout trgd, output oneshot); > > IOBUF IOBUF_inst ( > .O(trigdi), // Buffer output > .IO(trgd), // Buffer inout port (connect directly to top-level port) > .I(trig), // Buffer input > .T(0) // 3-state enable input, high=input, low=output > ); > >assign oneshot = trig & ~trigdi; > >endmodule > >I haven't tried but it results in this, > >https://www.dropbox.com/s/uoexiuh2fmtusgg/schematic.pdf > >I'm guessing Tiop + Tiiop width Right. IDELAY can be added to tune that. Slew rate maybe too. > > > This chip drives a 14-bit DAC that isn't implemented yet, so I have essentially 14 test points that I can probe. And a ton of unused balls as the delay nodes. So I think we'll do a bunch of simple experiments on the next build, to see what sorts of delays we can get, and how repeatable they are. -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
[toc] | [prev] | [next] | [standalone]
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
Back to top | Article view | sci.electronics.design
csiph-web