*** tpb has joined #yosys | 00:00 | |
*** emeb has quit IRC | 00:10 | |
*** alcorn has joined #yosys | 00:19 | |
*** forksand has quit IRC | 00:36 | |
*** GoldRin has joined #yosys | 00:41 | |
*** cr1901_modern has joined #yosys | 00:43 | |
*** forksand has joined #yosys | 00:50 | |
*** alcorn has quit IRC | 01:13 | |
*** alcorn has joined #yosys | 01:25 | |
*** PyroPeter has quit IRC | 02:14 | |
*** alcorn has quit IRC | 02:14 | |
*** PyroPeter has joined #yosys | 02:28 | |
*** GoldRin has quit IRC | 02:54 | |
*** citypw has joined #yosys | 03:36 | |
*** Jybz has joined #yosys | 05:45 | |
*** _whitelogger has quit IRC | 05:48 | |
*** _whitelogger has joined #yosys | 05:50 | |
*** _whitelogger has quit IRC | 06:06 | |
*** _whitelogger has joined #yosys | 06:08 | |
*** craigo has quit IRC | 06:30 | |
*** emeb_mac has quit IRC | 06:39 | |
*** dys has quit IRC | 08:17 | |
*** dys has joined #yosys | 08:27 | |
*** captain_morgan has quit IRC | 09:12 | |
*** captain_morgan2 has joined #yosys | 09:12 | |
*** maikmerten has joined #yosys | 09:46 | |
maikmerten | hi there. If an I/O pin is not constrained via .pcf file, what is is configured to? Is it configured, e.g., in z-tristate? | 09:49 |
---|---|---|
whitequark | in what pnr package? | 09:50 |
whitequark | nextpnr? | 09:50 |
maikmerten | nextpnr, yes | 09:50 |
whitequark | it's an error unless you pass --pcf-allow-unconstrained | 09:50 |
whitequark | if you do, it's assigned to a random pin. | 09:50 |
maikmerten | well, all I/Os of the design file are constrained. However, I'm using a Pmod-module that I only need a subset of signals of | 09:51 |
maikmerten | but the other signals are still physically connected | 09:51 |
whitequark | oh I see | 09:51 |
maikmerten | and I want to ensure device and FPGA are not pulling in opposite directions | 09:51 |
whitequark | it's neither in .pcf nor in your HDL | 09:51 |
maikmerten | yup | 09:51 |
whitequark | i think on ice40 the default is a weak pullup | 09:52 |
maikmerten | ah, that'd be safe | 09:52 |
maikmerten | would also explain why the board LEDs are dimly lit while programming | 09:52 |
whitequark | yep. | 09:52 |
maikmerten | cool, thanks! | 09:52 |
tnt | "weak" being a relative term :p | 10:04 |
daveshah | Lattice say 100k nominal (at least for up5k), although iirc an attempt to measure the current suggested closer to 20k | 10:05 |
maikmerten | hmmm... 100k... 20k... "close enough" ;-) | 10:06 |
tnt | Yeah, spec says min 11uA and Max 128 uA | 10:06 |
tnt | and I've seen it be closer to 128 than 11 :p | 10:07 |
whitequark | oh 128 ua | 10:07 |
whitequark | that eplains why the glasgow leds shine so bright after startup | 10:07 |
daveshah | Incidentally, up5k IO pins also support 3.3k, 6.8k or 10k nominal | 10:08 |
maikmerten | can the internal pullups "deliver" that continously or is there a reasonable chance of damage when hard-pulling those to GND? | 10:08 |
daveshah | All of these were pretty accurate, within 10% when I measured | 10:08 |
daveshah | They will be fine hard pulled to ground | 10:09 |
tnt | daveshah: really ? I thought that was u4k only and the up5k didn't have that. | 10:09 |
tnt | In icecube I think that option is not there for the up5k. | 10:09 |
maikmerten | daveshah, thanks! | 10:09 |
daveshah | tnt: it is | 10:09 |
daveshah | I think the datasheet omits it | 10:09 |
daveshah | u4k doesn't support it. The only documented support is for ultralite | 10:09 |
daveshah | But icecube (and nextpnr) both support it for up5k and it works | 10:10 |
tnt | oh yeah, sorry, got confused. | 10:10 |
tnt | how do you configure it ? | 10:10 |
daveshah | `-pullup yes -pullup-resistor 3P3K` in the pcf for example | 10:12 |
tnt | maikmerten: something that got me though is that if you have an IO that's constrained, and in the port list of your top module but that you don't assign to anything, it gets mapped to a hard 0 rather than Z. | 10:12 |
daveshah | Or the PULLUP_RESISTOR attribute | 10:12 |
tnt | good to know. | 10:12 |
maikmerten | tnt, good to know indeed | 10:12 |
daveshah | Oops I mean `-pullup_resistor` in the pcf too | 10:13 |
daveshah | It's a good hack if you accidentally put a too low LED resistor on a board | 10:14 |
daveshah | Just use a 6.8K or 10K built in pullup and switch between 0 or Z | 10:14 |
daveshah | and enjoy nice dim LEDs | 10:14 |
maikmerten | (I have a Cyclone-II dev board with a button that pulls an I/O hard to GND that I use for reset. Pin configured to weak pullup. Fun was had observing the board reset when getting off the chair.) | 10:14 |
tnt | daveshah: or save a resistor all together :p | 10:15 |
tnt | maikmerten: that's a bit weak :p | 10:15 |
maikmerten | yeah :-) | 10:15 |
maikmerten | nothing multi-sampling the input wouldn't solve, though ;-) | 10:16 |
*** _whitelogger has quit IRC | 11:24 | |
*** _whitelogger has joined #yosys | 11:26 | |
*** attie has quit IRC | 13:23 | |
*** _whitelogger has quit IRC | 13:33 | |
*** _whitelogger has joined #yosys | 13:35 | |
*** attie has joined #yosys | 14:21 | |
*** unkraut has quit IRC | 15:48 | |
*** craigo has joined #yosys | 16:18 | |
*** emeb_mac has joined #yosys | 16:19 | |
*** emeb_mac has quit IRC | 16:25 | |
*** maikmerten has quit IRC | 16:48 | |
*** citypw has quit IRC | 16:54 | |
*** X-Scale has joined #yosys | 17:19 | |
*** adjtm has quit IRC | 18:14 | |
*** attie has quit IRC | 19:16 | |
*** adjtm has joined #yosys | 19:22 | |
*** cr1901_modern has quit IRC | 19:35 | |
*** unkraut has joined #yosys | 19:40 | |
*** Jybz has quit IRC | 19:56 | |
*** Jybz has joined #yosys | 19:57 | |
*** Jybz has quit IRC | 20:07 | |
*** dys has quit IRC | 20:19 | |
*** Thorn has quit IRC | 20:55 | |
*** emeb_mac has joined #yosys | 21:12 | |
*** egy has quit IRC | 21:28 | |
*** forksand has quit IRC | 23:12 | |
*** gnufan_home has joined #yosys | 23:13 | |
*** forksand has joined #yosys | 23:29 | |
*** forksand has quit IRC | 23:29 | |
*** Thorn has joined #yosys | 23:32 | |
*** gnufan_home has quit IRC | 23:47 | |
*** cr1901_modern has joined #yosys | 23:59 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!