Saturday, 2019-10-05

*** tpb has joined #yosys00:00
*** emeb has quit IRC00:10
*** alcorn has joined #yosys00:19
*** forksand has quit IRC00:36
*** GoldRin has joined #yosys00:41
*** cr1901_modern has joined #yosys00:43
*** forksand has joined #yosys00:50
*** alcorn has quit IRC01:13
*** alcorn has joined #yosys01:25
*** PyroPeter has quit IRC02:14
*** alcorn has quit IRC02:14
*** PyroPeter has joined #yosys02:28
*** GoldRin has quit IRC02:54
*** citypw has joined #yosys03:36
*** Jybz has joined #yosys05:45
*** _whitelogger has quit IRC05:48
*** _whitelogger has joined #yosys05:50
*** _whitelogger has quit IRC06:06
*** _whitelogger has joined #yosys06:08
*** craigo has quit IRC06:30
*** emeb_mac has quit IRC06:39
*** dys has quit IRC08:17
*** dys has joined #yosys08:27
*** captain_morgan has quit IRC09:12
*** captain_morgan2 has joined #yosys09:12
*** maikmerten has joined #yosys09:46
maikmertenhi 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
whitequarkin what pnr package?09:50
whitequarknextpnr?09:50
maikmertennextpnr, yes09:50
whitequarkit's an error unless you pass --pcf-allow-unconstrained09:50
whitequarkif you do, it's assigned to a random pin.09:50
maikmertenwell, all I/Os of the design file are constrained. However, I'm using a Pmod-module that I only need a subset of signals of09:51
maikmertenbut the other signals are still physically connected09:51
whitequarkoh I see09:51
maikmertenand I want to ensure device and FPGA are not pulling in opposite directions09:51
whitequarkit's neither in .pcf nor in your HDL09:51
maikmertenyup09:51
whitequarki think on ice40 the default is a weak pullup09:52
maikmertenah, that'd be safe09:52
maikmertenwould also explain why the board LEDs are dimly lit while programming09:52
whitequarkyep.09:52
maikmertencool, thanks!09:52
tnt"weak" being a relative term :p10:04
daveshahLattice say 100k nominal (at least for up5k), although iirc an attempt to measure the current suggested closer to 20k10:05
maikmertenhmmm... 100k... 20k... "close enough" ;-)10:06
tntYeah, spec says min 11uA and Max 128 uA10:06
tntand I've seen it be closer to 128 than 11 :p10:07
whitequarkoh 128 ua10:07
whitequarkthat eplains why the glasgow leds shine so bright after startup10:07
daveshahIncidentally, up5k IO pins also support 3.3k, 6.8k or 10k nominal10:08
maikmertencan the internal pullups "deliver" that continously or is there a reasonable chance of damage when hard-pulling those to GND?10:08
daveshahAll of these were pretty accurate, within 10% when I measured10:08
daveshahThey will be fine hard pulled to ground10:09
tntdaveshah: really ? I thought that was u4k only and the up5k didn't have that.10:09
tntIn icecube I think that option is not there for the up5k.10:09
maikmertendaveshah, thanks!10:09
daveshahtnt: it is10:09
daveshahI think the datasheet omits it10:09
daveshahu4k doesn't support it. The only documented support is for ultralite10:09
daveshahBut icecube (and nextpnr) both support it for up5k and it works10:10
tntoh yeah, sorry, got confused.10:10
tnthow do you configure it ?10:10
daveshah`-pullup yes -pullup-resistor 3P3K` in the pcf for example10:12
tntmaikmerten: 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
daveshahOr the PULLUP_RESISTOR attribute10:12
tntgood to know.10:12
maikmertentnt, good to know indeed10:12
daveshahOops I mean `-pullup_resistor` in the pcf too10:13
daveshahIt's a good hack if you accidentally put a too low LED resistor on a board10:14
daveshahJust use a 6.8K or 10K built in pullup and switch between 0 or Z10:14
daveshahand enjoy nice dim LEDs10: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
tntdaveshah: or save a resistor all together :p10:15
tntmaikmerten: that's a bit weak :p10:15
maikmertenyeah :-)10:15
maikmertennothing multi-sampling the input wouldn't solve, though ;-)10:16
*** _whitelogger has quit IRC11:24
*** _whitelogger has joined #yosys11:26
*** attie has quit IRC13:23
*** _whitelogger has quit IRC13:33
*** _whitelogger has joined #yosys13:35
*** attie has joined #yosys14:21
*** unkraut has quit IRC15:48
*** craigo has joined #yosys16:18
*** emeb_mac has joined #yosys16:19
*** emeb_mac has quit IRC16:25
*** maikmerten has quit IRC16:48
*** citypw has quit IRC16:54
*** X-Scale has joined #yosys17:19
*** adjtm has quit IRC18:14
*** attie has quit IRC19:16
*** adjtm has joined #yosys19:22
*** cr1901_modern has quit IRC19:35
*** unkraut has joined #yosys19:40
*** Jybz has quit IRC19:56
*** Jybz has joined #yosys19:57
*** Jybz has quit IRC20:07
*** dys has quit IRC20:19
*** Thorn has quit IRC20:55
*** emeb_mac has joined #yosys21:12
*** egy has quit IRC21:28
*** forksand has quit IRC23:12
*** gnufan_home has joined #yosys23:13
*** forksand has joined #yosys23:29
*** forksand has quit IRC23:29
*** Thorn has joined #yosys23:32
*** gnufan_home has quit IRC23:47
*** cr1901_modern has joined #yosys23:59

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!